Fix ChangeLog entry in last commit (silent change).
[gnulib.git] / ChangeLog
1 2012-05-21  Simon Josefsson  <simon@josefsson.org>
2
3         gc: fix libgcrypt detection on older machines.
4         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
5         copyright years because the file has been distributed every year
6         since it was created.
7
8 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
9
10         crypto: fix bug in large buffer handling
11         Problem reported by Serge Belyshev for glibc in
12         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
13         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
14         * lib/md4.c (md4_process_block):
15         * lib/md5.c (md5_process_block):
16         * lib/sha1.c (sha1_process_block):
17         * lib/sha256.c (sha256_process_block):
18         Don't assume the buffer length is less than 2**32.
19         * lib/sha512.c (sha512_process_block): Likewise.
20         Here, the bug is present only in the rare case where the host does
21         not support uint64_t or where size_t is wider than 64 bits.
22         Use u64size to work around the problems.
23         * lib/u64.h (u64size): New macro.
24
25 2012-05-15  Pádraig Brady  <P@draigBrady.com>
26
27         fsusage: fix block size returned on older Linux 2.6
28
29         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
30         which is available since Linux 2.6.
31         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
32         when the member is available so it can be used as a fallback.
33         * doc/posix-functions/statvfs.texi: Mention the hang issue
34         on Linux < 2.6.36.
35
36 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
37
38         bootstrap: suppress stderr chatter
39         * build-aux/bootstrap (insert_sorted_if_absent, main program):
40         Omit unnecessary chatter to stderr.  The main program chatter
41         was there only inadvertantly.
42
43         bootstrap: .gitignore files created by autopoint, libtool
44         I ran into this problem when bootstrapping the latest diffutils.
45         After './bootstrap', 'git status' reported lots of untracked files
46         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
47         autopoint and do not need to be version-controlled.
48         * build-aux/bootstrap: Put into .gitignore the files that
49         autopoint and libtool create, by keeping track of files that exist
50         after but not before these programs are run.
51         (version_controlled_file): Move up.  2nd arg is now full file
52         name, not base name; this is more convenient.  Put CVS at the end,
53         as it's now somewhat deprecated.
54
55 2012-05-14  Jim Meyering  <meyering@redhat.com>
56
57         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
58         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
59         definition.  Reported by Bruno Haible.
60
61 2012-05-13  Bruno Haible  <bruno@clisp.org>
62             Paul Eggert  <eggert@cs.ucla.edu>
63
64         binary-io: Define set_binary_mode function.
65         * lib/binary-io.h (set_binary_mode): New function.
66         (SET_BINARY): Define in terms of set_binary_mode.
67         * modules/binary-io (configure.ac): Require AC_C_INLINE.
68         * tests/test-binary-io.c (main): Accept an argument, and test either
69         set_binary_mode or SET_BINARY depending on the argument.
70         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
71         argument. Clean up also t-bin-out0.tmp.
72
73 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
74
75         bootstrap: take advantage of POSIX shell features
76
77         The 'bootstrap' script offered by Gnulib script already uses POSIX
78         shell features (like $((...)) arithmetic expansions) that are not
79         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
80         means that bootstrap must already be run using a proper POSIX shell,
81         which will thus provide more features, like ${var#pattern} parameter
82         expansion or inversion of a command exit status with '!'.  We can
83         thus use these features to improve the clarity and the performances
84         of the bootstrap script.
85
86         Suggested by Eric Blake.
87
88         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
89         of sed/expr plus command substitutions, to save some forks.  While
90         we are at it, prefer the POSIX $(...) form of command substitution,
91         rather than the legacy form `...` (since the former is visually
92         clearer and interacts better with quoting), and prefer the idiom:
93           "if ! CMD; then ACTION ..."
94         over the idiom:
95           "if CMD; then :; else ACTION ..."
96         which was required by legacy Bourne shells not supporting '!'.
97
98 2012-05-12  Bruno Haible  <bruno@clisp.org>
99
100         system-quote: Add more comments.
101         * lib/system-quote.h: Add more comments about wilcards and limitations.
102         Suggested by Eli Zaretskii <eliz@gnu.org>.
103
104         sh-quote, system-quote: Add comments about wildcards.
105         * lib/sh-quote.h: Clarify what happens with wildcard characters.
106         * lib/system-quote.h: Likewise.
107         Reported by Eli Zaretskii <eliz@gnu.org>.
108
109 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
110
111         fsusage: check for GNU/Linux statvfs problem dynamically
112         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
113         Define STAT_STATFS2_BSIZE too, since in this case the code now
114         checks dynamically whether statvfs is reliable, falling back on
115         Linux-style statfs otherwise.
116         (statvfs_works): New function, for dynamically testing statvfs.
117         (get_fs_usage) [STAT_STATVFS]: Use it.
118         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
119         statvfs on GNU/Linux hosts, since it's now done dynamically.
120
121 2012-05-10  Bruno Haible  <bruno@clisp.org>
122
123         system-quote, execute, spawn-pipe: Escape '?' on Windows.
124         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
125         '?' character.
126         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
127         * tests/test-system-quote-main.c (check_all): Check also strings like
128         "??????????".
129         Reported by Eli Zaretskii <eliz@gnu.org>.
130
131 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
132
133         _Noreturn: port config.h to gcc -Wundef
134         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
135         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
136         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
137
138 2012-05-10  Bruno Haible  <bruno@clisp.org>
139
140         system-quote: Refactor.
141         * lib/system-quote.h (system_quote_copy): Fix comment.
142         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
143         New functions, extracted from system_quote_copy.
144         (system_quote_length, system_quote_copy): Use these functions.
145         Reported by Paul Eggert.
146
147 2012-05-08  Bruno Haible  <bruno@clisp.org>
148
149         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
150         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
151
152 2012-05-08  Bruno Haible  <bruno@clisp.org>
153
154         Tests for module 'system-quote'.
155         * modules/system-quote-tests: New file.
156         * tests/test-system-quote.sh: New file.
157         * tests/test-system-quote-main.c: New file.
158         * tests/test-system-quote-child.c: New file.
159
160         New module 'system-quote'.
161         * lib/system-quote.h: New file.
162         * lib/system-quote.c: New file.
163         * modules/system-quote: New file.
164
165 2012-05-08  Bruno Haible  <bruno@clisp.org>
166
167         sh-quote: Make C++ safe and allow multiple inclusion.
168         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
169         declarations in extern "C".
170
171 2012-05-08  Bruno Haible  <bruno@clisp.org>
172
173         sh-quote tests: Make tests stricter.
174         * tests/test-sh-quote.c (check_one): Check the return value of
175         shell_quote_copy.
176         (main): Check a string with a CR character. Check a string that
177         contains UCHAR_MAX.
178
179 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
180
181         warnings.m4: provide a means to specify the program to compile.
182         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
183         (gl_WARN_ADD): here.
184         Use gl_AS_VAR_APPEND.
185         Support an argument to specify the program to compile.
186         (gl_WARN_ADD): Accept an argument to specify the program to compile.
187         AC_SUBST the WARN_CFLAGS when they are used.
188         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
189         leave this to gl_WARN_ADD.
190
191 2012-05-08  Eric Blake  <eblake@redhat.com>
192
193         doc: recommendations on gettext version
194         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
195         choice between versions.
196         * DEPENDENCIES (gettext): Cover both approaches.
197
198 2012-05-08  Jim Meyering  <meyering@redhat.com>
199
200         init.sh: explain why EXEEXT support uses aliases rather than functions
201         * tests/init.sh: Add a comment.
202
203         init.sh: don't let bash aliases interfere with tests
204         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
205         is bash.  This avoids problems for those who alias standard commands to
206         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
207         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
208
209 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
210
211         stdint: be more consistent with glibc, SunOS libc
212         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
213         (gl_int_fast16_t, gl_uint_fast16_t)
214         (gl_int_fast32_t, gl_uint_fast32_t)
215         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
216         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
217         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
218         Be consistent with glibc by default, and with SunOS 5.10 and later
219         if __sun is defined.  This lessens the likelihood of clashes if
220         code compiled for older hosts is combined with code compiled for
221         newer ones.  Problem reported by Niels Möller in
222         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
223
224 2012-05-07  Eric Blake  <eblake@redhat.com>
225
226         isatty: relax license to LGPLv2+
227         * modules/isatty (License): Relax license.
228
229 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
230
231         stat-size: comment fix
232         * lib/stat-size.h: Remove obsolete comment about indenting.
233
234 2012-05-06  Bruno Haible  <bruno@clisp.org>
235
236         Tests for module 'sh-quote'.
237         * modules/sh-quote-tests: New file.
238         * tests/test-sh-quote.c: New file.
239
240 2012-05-06  Bruno Haible  <bruno@clisp.org>
241
242         sh-quote: Improve shell_quote_argv's signature.
243         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
244         * lib/sh-quote.c (shell_quote_argv): Likewise.
245
246 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
247
248         stdint: document issues with int_fast8_t etc.
249         * doc/posix-headers/stdint.texi (stdint.h): Say that other
250         stdint.h substitutes may define these types differently.  See
251         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
252
253 2012-05-05  Bruno Haible  <bruno@clisp.org>
254
255         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
256         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
257         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
258         or 'guessing no (mishandles large arguments)'.
259
260 2012-05-05  Bruno Haible  <bruno@clisp.org>
261
262         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
263         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
264         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
265         set gl_cv_func_link_follows_symlink to "guessing no".
266
267 2012-05-05  Bruno Haible  <bruno@clisp.org>
268
269         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
270         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
271         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
272         "guessing no".
273         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
274
275 2012-05-05  Bruno Haible  <bruno@clisp.org>
276
277         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
278         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
279         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
280         set gl_cv_struct_dirent_d_ino to "guessing yes".
281
282 2012-05-05  Bruno Haible  <bruno@clisp.org>
283
284         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
285         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
286         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
287         "guessing yes".
288
289 2012-05-05  Bruno Haible  <bruno@clisp.org>
290
291         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
292         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
293         compiling to a glibc system, set gl_cv_func_signbit and
294         gl_cv_func_signbit_gcc to "guessing yes".
295
296 2012-05-05  Bruno Haible  <bruno@clisp.org>
297
298         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
299         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
300         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
301         to "guessing yes".
302         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
303         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
304
305 2012-05-05  Bruno Haible  <bruno@clisp.org>
306
307         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
308         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
309         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
310         gl_cv_func_realpath_works to "guessing yes".
311
312 2012-05-05  Bruno Haible  <bruno@clisp.org>
313
314         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
315         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
316         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
317
318 2012-05-04  Bruno Haible  <bruno@clisp.org>
319
320         Tweak last commit.
321         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
322         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
323
324 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
325
326         unistd_h: make it easier to avoid sys_types_h
327         This is useful for Emacs, which has its own method of porting to
328         Windows, and which therefore does not need the sys_types_h module.
329         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
330         code moved here from gl_SYS_TYPES_H.
331         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
332         using the code directly.
333         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
334         gl_SYS_TYPES_H.
335         * modules/sys_types (Files):
336         * modules/unistd (Files): Add m4/off_t.m4.
337
338 2012-05-03  Bruno Haible  <bruno@clisp.org>
339
340         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
341         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
342         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
343         "guessing yes" or "guessing no".
344         (gl_FUNC_LSTAT): Update.
345         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
346         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
347         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
348
349 2012-05-03  Bruno Haible  <bruno@clisp.org>
350
351         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
352         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
353         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
354         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
355         cross-compiling, choose the first alternative on glibc systems.
356         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
357
358 2012-05-03  Bruno Haible  <bruno@clisp.org>
359
360         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
361         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
362         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
363
364 2012-05-03  Bruno Haible  <bruno@clisp.org>
365
366         chown: Avoid "guessing no" when cross-compiling to glibc systems.
367         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
368
369 2012-05-03  Bruno Haible  <bruno@clisp.org>
370
371         Avoid "guessing no" guesses when cross-compiling to glibc systems.
372         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
373         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
374         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
375         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
376         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
377         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
378         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
379         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
380         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
381         compiling to glibc systems, set gl_cv_func_chown_slash_works,
382         gl_cv_func_chown_ctime_works to "guessing yes".
383         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
384         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
385         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
386         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
387         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
388         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
389         compiling to glibc systems, set gl_cv_func_open_directory_works to
390         "guessing yes".
391         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
392         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
393         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
394         "guessing yes".
395         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
396         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
397         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
398         compiling to glibc systems, set gl_cv_func_floorf_ieee to
399         "guessing yes".
400         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
401         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
402         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
403         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
404         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
405         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
406         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
407         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
408         "guessing yes".
409         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
410         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
411         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
412         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
413         "guessing yes".
414         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
415         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
416         "guessing yes".
417         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
418         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
419         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
420         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
421         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
422         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
423         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
424         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
425         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
426         compiling to glibc systems, set gl_cv_func_log10f_ieee to
427         "guessing yes".
428         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
429         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
430         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
431         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
432         "guessing yes".
433         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
434         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
435         "guessing yes".
436         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
437         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
438         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
439         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
440         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
441         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
442         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
443         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
444         compiling to glibc systems, set gl_cv_func_mkfifo_works to
445         "guessing yes".
446         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
447         compiling to glibc systems, set gl_cv_func_mknod_works to
448         "guessing yes".
449         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
450         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
451         "guessing yes".
452         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
453         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
454         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
455         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
456         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
457         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
458         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
459         compiling to glibc systems, set gl_cv_func_svid_putenv to
460         "guessing yes".
461         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
462         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
463         "guessing yes".
464         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
465         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
466         "guessing yes".
467         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
468         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
469         to "guessing yes".
470         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
471         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
472         to "guessing yes".
473         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
474         compiling to glibc systems, set gl_cv_func_rmdir_works to
475         "guessing yes".
476         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
477         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
478         gl_cv_func_unlink_parent_fails to "guessing yes".
479         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
480         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
481         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
482         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
483         gl_cv_func_rename_dest_works to "guessing yes".
484         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
485         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
486         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
487         compiling to glibc systems, set gl_cv_func_roundf_ieee to
488         "guessing yes".
489         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
490         compiling to glibc systems, set gl_cv_func_roundl_ieee to
491         "guessing yes".
492         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
493         compiling to glibc systems, set gl_cv_func_setenv_works to
494         "guessing yes".
495         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
496         compiling to glibc systems, set gl_cv_func_unsetenv_works to
497         "guessing yes".
498         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
499         compiling to glibc systems, set gl_cv_func_sleep_works to
500         "guessing yes".
501         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
502         compiling to glibc systems, set gl_cv_func_stat_file_slash to
503         "guessing yes".
504         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
505         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
506         "guessing yes".
507         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
508         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
509         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
510         compiling to glibc systems, set gl_cv_func_truncf_ieee to
511         "guessing yes".
512         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
513         compiling to glibc systems, set gl_cv_func_truncl_ieee to
514         "guessing yes".
515         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
516         compiling to glibc systems, set gl_cv_func_usleep_works to
517         "guessing yes".
518         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
519         compiling to glibc systems, set gl_cv_func_futimesat_works to
520         "guessing yes".
521
522 2012-05-03  Bruno Haible  <bruno@clisp.org>
523
524         Say "guessing yes" or "guessing no" when cross-compiling.
525         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
526         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
527         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
528         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
529         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
530         am_cv_func_working_getline to "guessing yes" or "guessing no".
531         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
532         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
533         (gl_FUNC_MEMMEM): When cross-compiling, set
534         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
535         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
536         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
537         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
538         set gl_cv_func_strcasestr_works_always to "guessing yes" or
539         "guessing no".
540         (gl_FUNC_STRCASESTR): When cross-compiling, set
541         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
542         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
543         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
544         (gl_FUNC_STRSTR): When cross-compiling, set
545         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
546         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
547         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
548         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
549         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
550
551 2012-05-01  Bruno Haible  <bruno@clisp.org>
552
553         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
554         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
555         * build-aux/reloc-ldflags: Likewise.
556         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
557
558 2012-05-01  Bruno Haible  <bruno@clisp.org>
559
560         gnulib-tool: Remove transitional code.
561         * gnulib-tool: Don't warn about --import with 0 arguments any more.
562         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
563
564 2012-05-01  Bruno Haible  <bruno@clisp.org>
565
566         getcwd: Fix misindentation.
567         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
568
569 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
570
571         exclude: process exclude and include directives in order
572         This restores the pre-2009 behavior, and is part of a fix of a
573         grep bug reported by Quentin Arce in
574         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
575         * lib/exclude.c (struct exclude): Remove 'tail' member.
576         (new_exclude_segment): Prepend the new segment instead of appending.
577         Return void, since that's now more convenient.
578         (file_pattern_matches): Renamed from excluded_file_pattern_p.
579         (file_name_matches): Renamed from excluded_file_name_p.
580         (file_pattern_matches, file_name_matches):
581         Return true if the pattern matches, not if it excludes.
582         All callers changed.
583         (excluded_file_name): Process the list in reverse order;
584         since the list is now reversed this restores the pre-2009 behavior.
585         (add_exclude): Adjust to new reversed-order list.  Use local var
586         rather than macro, for clarity.
587         * tests/test-exclude7.sh: Adjust to corrected behavior.
588
589         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
590         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
591         it's not possible here.  Handle the case of \ at end of pattern
592         without dumping core.
593         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
594
595         _Noreturn: future-proof non-GNU and non-MSVC compilers
596         * build-aux/snippet/_Noreturn.h (_Noreturn):
597         * m4/gnulib-common.m4 (gl_COMMON_BODY):
598         Do not define _Noreturn if __STDC_VERSION__ indicates this is
599         C11 or later.  This is more likely to work with random future C
600         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
601         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
602
603         exclude: handle wildcards with FNM_EXTMATCH
604         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
605         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
606         comment that "has wildcards" really means "has or may have
607         wildcards".  Simplify by avoiding the need to call strcspn.
608
609 2012-04-29  Bruno Haible  <bruno@clisp.org>
610
611         gnulib-tool: Fix list of authors.
612         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
613
614 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
615
616         bootstrap: support Automake-NG in $buildreq
617         * bootstrap (check_versions): Handle automake and aclocal from
618         Automake-NG specially.  They can be specified as respectively
619         the "automake-ng" and "aclocal-ng" requirements.
620
621 2012-04-25  Eric Blake  <eblake@redhat.com>
622
623         bootstrap: only force latest Makefile.in.in for gettext module
624         * build-aux/bootstrap (with_gettext): Only install latest
625         Makefile.in.in for projects requesting bleeding edge gettext.
626
627 2012-04-22  Bruno Haible  <bruno@clisp.org>
628
629         doc: Mention reason for replacement on glibc/Linux systems.
630         * doc/posix-functions/dprintf.texi: Mention the problem with special
631         'long double' values.
632         * doc/posix-functions/fprintf.texi: Likewise.
633         * doc/posix-functions/printf.texi: Likewise.
634         * doc/posix-functions/snprintf.texi: Likewise.
635         * doc/posix-functions/sprintf.texi: Likewise.
636         * doc/posix-functions/vdprintf.texi: Likewise.
637         * doc/posix-functions/vfprintf.texi: Likewise.
638         * doc/posix-functions/vprintf.texi: Likewise.
639         * doc/posix-functions/vsnprintf.texi: Likewise.
640         * doc/posix-functions/vsprintf.texi: Likewise.
641         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
642         platforms with F_DUPFD_CLOEXEC problems.
643         * doc/posix-functions/glob.texi: Mention which platforms are affected
644         by the problem with symbolic links.
645         * doc/posix-functions/linkat.texi: Mention the problem with
646         AT_SYMLINK_FOLLOW on Linux.
647
648 2012-04-22  Bruno Haible  <bruno@clisp.org>
649
650         pwrite: Don't replace on all platforms.
651         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
652
653 2012-04-22  Bruno Haible  <bruno@clisp.org>
654
655         rint* tests: Avoid gcc warnings.
656         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
657         * tests/test-rintf.c (INFINITY, NAN): Likewise.
658         * tests/test-rintl.c (INFINITY, NAN): Likewise.
659
660 2012-04-21  Bruno Haible  <bruno@clisp.org>
661
662         users.txt: Update.
663         * users.txt: Add freedink, wdiff. Update URLs for projects that have
664         switched from CVS to git, bzr, or svn.
665
666 2012-04-21  Bruno Haible  <bruno@clisp.org>
667
668         Large File Support for native Windows platforms.
669
670         * m4/largefile.m4 (gl_LARGEFILE): New macro.
671         * modules/largefile (configure.ac): Require gl_LARGEFILE.
672
673         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
674         type.
675         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
676         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
677         * doc/posix-headers/sys_types.texi: Mention the effect of the
678         'largefile' module.
679
680         * lib/fcntl.in.h: Add comments about off_t.
681         * modules/fcntl-h (Depends-on): Add sys_types.
682
683         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
684         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
685         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
686         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
687         * modules/unistd (Depends-on): Add sys_types.
688         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
689
690         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
691         instead of lseek.
692         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
693         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
694         * modules/lseek (Depends-on): Add sys_types.
695
696         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
697         msvc-nothrow.h.
698         (SetFileSize): New function.
699         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
700         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
701         if Large File Support is requested.
702         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
703         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
704
705         * lib/stdio.in.h: Add comments about off_t.
706         * modules/stdio (Depends-on): Add sys_types.
707
708         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
709         instead of ftello.
710         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
711         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
712         (gl_PREREQ_FTELLO): New macro.
713         * modules/ftello (Depends-on): Add sys_types.
714         (configure.ac): Incoke gl_PREREQ_FTELLO.
715
716         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
717         instead of fseeko.
718         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
719         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
720         (gl_PREREQ_FSEEKO): New macro.
721         * modules/fseeko (Depends-on): Add sys_types.
722         (configure.ac): Invoke gl_PREREQ_FSEEKO.
723
724         * lib/sys_stat.in.h: Add comments about off_t.
725         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
726         64-bit integer for st_size in 'struct stat'.
727         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
728         Define _GL_WINDOWS_64_BIT_ST_SIZE.
729         * modules/sys_stat (Depends-on): Add sys_types.
730         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
731
732         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
733         instead of stat or _stat.
734
735         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
736         'struct _stati64' instead of fstat and 'struct stat'.
737         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
738         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
739
740         Reported by Ray Satiro <raysatiro@yahoo.com>.
741
742 2012-04-19  Eric Blake  <eblake@redhat.com>
743
744         bootstrap: accommodate older libtool
745         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
746         Reported by Daniel P. Berrange.
747
748 2012-04-19  Jim Meyering  <meyering@redhat.com>
749
750         announce-gen: avoid failure due to lack of Digest::SHA1
751         Even with the preferred Digest::SHA available, this script
752         would fail when the backup module, Digest::SHA1, was not installed.
753         * build-aux/announce-gen: Quote the conditional use of "use".
754         Reported by Reuben Thomas in:
755         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
756
757         bootstrap: don't let a user's CDPATH setting affect this script
758         When CDPATH is set, cd will sometimes generate output.
759         When "cd" is run in a subshell whose output matters, that
760         surprising-to-some output can cause malfunction.
761         Unsetting CDPATH turns off this shell "feature."
762         * build-aux/bootstrap (CDPATH): Unset.
763         Reported by Reuben Thomas in:
764         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
765         and inspired by his patch here:
766         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
767
768 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
769         and Jim Meyering  <meyering@redhat.com>
770
771         maint.mk: catch "see @xref{}" and similar
772         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
773         prohibit "See also @xref{", "Also see @pxref{", and similar.
774
775 2012-04-16  Jim Meyering  <meyering@redhat.com>
776
777         bootstrap: really use gnulib's po/Makefile.in.in
778         * build-aux/bootstrap: Correct the source file name in previous change.
779         Reported by Akim Demaille.
780
781         configmake: correct minor inconsistency in Makefile rule
782         * modules/configmake (Makefile.am): All other rules like this one
783         run the final "mv -f ..." in the same backslash-continued command
784         as the one that does everything else.  This one put the mv -f ...
785         command on a separate, non-backslash-continued line.
786         Make it like the others.
787
788         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
789         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
790         the one from gettext.  Reported by Akim Demaille.
791
792 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
793
794         Fix recursion of install-* into po directories.
795         Bison's install-pdf bug reported by Hans Aberg at
796         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
797         * build-aux/po/Makefile.in.in (install-dvi, install-html)
798         (install-info, install-pdf, install-ps): New targets.
799
800 2012-04-16  Jim Meyering  <meyering@redhat.com>
801
802         maint: avoid spurious "make sc_maint" failure
803         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
804         exempt all *.class file names, for lib/javaversion.class.
805
806 2012-04-15  Bruno Haible  <bruno@clisp.org>
807
808         lseek: Make configure test independent of environment.
809         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
810         Windows, we know that lseek() on pipes is broken; skip the runtime
811         test.
812
813 2012-04-14  Bruno Haible  <bruno@clisp.org>
814
815         stat: Bypass buggy override in mingw64.
816         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
817         * lib/stat.c (stat) [mingw64]: Define to _stat.
818         * doc/posix-functions/stat.texi: Mention mingw64 bug.
819
820 2012-04-14  Bruno Haible  <bruno@clisp.org>
821
822         pathmax: Fix compilation error on MSVC 9.
823         * modules/pathmax (Depends-on): Add unistd.
824
825 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
826
827         README: document pointer comparison assumption
828         * README (Portability guidelines): Document assumption about
829         pointer comparisons, in response to a recent bug-gnulib comment by
830         Jeffrey Kegler.
831
832 2012-04-12  Bruno Haible  <bruno@clisp.org>
833
834         Tests for module 'getrusage'.
835         * modules/getrusage-tests: New file.
836         * tests/test-getrusage.c: New file.
837
838         New module 'getrusage'.
839         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
840         warn-on-use.h.
841         (getrusage): New declaration.
842         * lib/getrusage.c: New file.
843         * m4/getrusage.m4: New file.
844         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
845         is declared.
846         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
847         HAVE_GETRUSAGE.
848         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
849         snippet/c++defs, snippet/warn-on-use.
850         (Makefile.am): Update generation of sys/resource.h. Substitute
851         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
852         * modules/getrusage: New file.
853         * doc/posix-functions/getrusage.texi: Mention the new module.
854
855 2012-04-12  Bruno Haible  <bruno@clisp.org>
856
857         Tests for module 'sys_resource'.
858         * modules/sys_resource-tests: New file.
859         * tests/test-sys_resource.c: New file.
860
861         New module 'sys_resource'.
862         * lib/sys_resource.in.h: New file.
863         * m4/sys_resource_h.m4: New file.
864         * modules/sys_resource: New file.
865         * doc/posix-headers/sys_resource.texi: Mention the new module.
866
867 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
868
869         ioctl: Fix compilation error on mingw.
870         * lib/ioctl.c: Include <windows.h>.
871         Also reported by Ray Satiro <raysatiro@yahoo.com>.
872
873 2012-04-04  Jim Meyering  <meyering@redhat.com>
874
875         regex: correct #pragma guard expression
876         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
877         not 4.3.  Correct its cpp guard expression.
878
879 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
880
881         regex: remove unnecessary type punning
882         Problem reported by Vladimir Serbinenko in
883         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
884         * lib/regex.h (struct re_pattern_buffer): Change the type of
885         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
886         Fix comment to match code.
887         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
888         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
889         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
890         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
891         (set_regs):
892         Omit no-longer-necessary casts.
893
894 2012-04-03  Bruno Haible  <bruno@clisp.org>
895
896         Tests for module 'ilogbl'.
897         * modules/ilogbl-tests: New file.
898         * tests/test-ilogbl.c: New file.
899
900         New module 'ilogbl'.
901         * lib/math.in.h (ilogbl): New declaration.
902         * lib/ilogbl.c: New file.
903         * m4/ilogbl.m4: New file.
904         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
905         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
906         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
907         Split sed invocation, to avoid the limit of 100 substitutions of
908         HP-UX 'sed'.
909         * modules/ilogbl: New file.
910         * tests/test-math-c++.cc: Check the declaration of ilogbl.
911         * doc/posix-functions/ilogbl.texi: Mention the new module.
912
913 2012-04-03  Bruno Haible  <bruno@clisp.org>
914
915         Tests for module 'ilogbf'.
916         * modules/ilogbf-tests: New file.
917         * tests/test-ilogbf.c: New file.
918
919         New module 'ilogbf'.
920         * lib/math.in.h (ilogbf): New declaration.
921         * lib/ilogbf.c: New file.
922         * m4/ilogbf.m4: New file.
923         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
924         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
925         REPLACE_ILOGBF.
926         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
927         REPLACE_ILOGBF.
928         * modules/ilogbf: New file.
929         * tests/test-math-c++.cc: Check the declaration of ilogbf.
930         * doc/posix-functions/ilogbf.texi: Mention the new module.
931
932 2012-04-03  Bruno Haible  <bruno@clisp.org>
933
934         Tests for module 'ilogb'.
935         * modules/ilogb-tests: New file.
936         * tests/test-ilogb.c: New file.
937         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
938         tests/test-logb-ieee.h.
939
940         New module 'ilogb'.
941         * lib/math.in.h (ilogb): New declaration.
942         * lib/ilogb.c: New file.
943         * m4/ilogb.m4: New file.
944         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
945         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
946         REPLACE_ILOGB.
947         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
948         REPLACE_ILOGB.
949         * modules/ilogb: New file.
950         * tests/test-math-c++.cc: Check the declaration of ilogb.
951         * doc/posix-functions/ilogb.texi: Mention the new module.
952
953 2012-04-03  Bruno Haible  <bruno@clisp.org>
954
955         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
956         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
957         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
958         (main): Check their values.
959         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
960         problem.
961
962 2012-04-03  Bruno Haible  <bruno@clisp.org>
963
964         Tests for module 'logbl-ieee'.
965         * modules/logbl-ieee-tests: New file.
966         * tests/test-logbl-ieee.c: New file.
967
968         New module 'logbl-ieee'.
969         * modules/logbl-ieee: New file.
970
971         Tests for module 'logb-ieee'.
972         * modules/logb-ieee-tests: New file.
973         * tests/test-logb-ieee.c: New file.
974
975         New module 'logb-ieee'.
976         * modules/logb-ieee: New file.
977
978         Tests for module 'logbf-ieee'.
979         * modules/logbf-ieee-tests: New file.
980         * tests/test-logbf-ieee.c: New file.
981         * tests/test-logb-ieee.h: New file.
982
983         New module 'logbf-ieee'.
984         * modules/logbf-ieee: New file.
985
986 2012-04-03  Bruno Haible  <bruno@clisp.org>
987
988         Tests for module 'logbl'.
989         * modules/logbl-tests: New file.
990         * tests/test-logbl.c: New file.
991
992         New module 'logbl'.
993         * lib/math.in.h (logbl): New declaration.
994         * lib/logbl.c: New file.
995         * m4/logbl.m4: New file.
996         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
997         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
998         REPLACE_LOGBL.
999         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
1000         REPLACE_LOGBL.
1001         * modules/logbl: New file.
1002         * tests/test-math-c++.cc: Check the declaration of logbl.
1003         * doc/posix-functions/logbl.texi: Mention the new module.
1004
1005 2012-04-02  Bruno Haible  <bruno@clisp.org>
1006
1007         Tests for module 'logbf'.
1008         * modules/logbf-tests: New file.
1009         * tests/test-logbf.c: New file.
1010
1011         New module 'logbf'.
1012         * lib/math.in.h (logbf): New declaration.
1013         * lib/logbf.c: New file.
1014         * m4/logbf.m4: New file.
1015         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
1016         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
1017         REPLACE_LOGBF.
1018         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
1019         REPLACE_LOGBF.
1020         * modules/logbf: New file.
1021         * tests/test-math-c++.cc: Check the declaration of logbf.
1022         * doc/posix-functions/logbf.texi: Mention the new module.
1023
1024 2012-04-02  Bruno Haible  <bruno@clisp.org>
1025
1026         logb tests: More tests.
1027         * tests/test-logb.h: New file, based on tests/test-logb.c and
1028         tests/test-frexp.h.
1029         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
1030         (main): Just invoke test_function.
1031         * modules/logb-tests (Files): Add tests/test-logb.h,
1032         tests/minus-zero.h, tests/randomd.c.
1033         (Makefile.am): Add randomd.c to test_logb_SOURCES.
1034
1035         logb: Provide replacement and workarounds.
1036         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
1037         is 1.
1038         * lib/logb.c: New file.
1039         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
1040         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
1041         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
1042         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
1043         * modules/logb (Files): Add lib/logb.c.
1044         (Depends-on): Add isfinite, frexp, isnand.
1045         (configure.ac): Compile the replacement code logb.c if needed.
1046         * tests/test-math-c++.cc: Check the declaration of logb.
1047         * doc/posix-functions/logb.texi: Mention the replacement and the bug
1048         with subnormal numbers.
1049
1050 2012-04-02  Bruno Haible  <bruno@clisp.org>
1051
1052         log10* tests: Speed up.
1053         * tests/test-log10.h (test_function): Reduce amount of random numbers
1054         to test.
1055
1056 2012-04-01  Bruno Haible  <bruno@clisp.org>
1057
1058         logf-ieee: Fix test whether logf works.
1059         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
1060
1061 2012-04-01  Bruno Haible  <bruno@clisp.org>
1062
1063         log10l: Work around log10l-ieee test failure on IRIX 6.5.
1064         * lib/log10l.c: Include <float.h>
1065         (log10l): On IRIX, normalize the +Infinity value.
1066         * modules/log10l (Depends-on): Add 'float'.
1067         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
1068         +Infinity.
1069
1070         log10f-ieee: Work around test failure on NetBSD 5.1.
1071         * m4/log10f-ieee.m4: New file.
1072         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
1073         test whether log10f works with a negative argument. Replace it if not.
1074         * lib/log10f.c (log10f): For negative arguments, return NaN.
1075         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
1076         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
1077         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
1078
1079         log10f-ieee: Work around test failure on Solaris 9.
1080         * modules/log10f-ieee (Depends-on): Add log10-ieee.
1081         (configure.ac): Require gl_FUNC_LOG10F.
1082
1083         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1084         * m4/log10-ieee.m4: New file.
1085         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
1086         whether log10 works with a negative argument. Replace it if not.
1087         * lib/log10.c (log10): For negative arguments, return NaN.
1088         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
1089         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
1090         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
1091
1092         Tests for module 'log10l-ieee'.
1093         * modules/log10l-ieee-tests: New file.
1094         * tests/test-log10l-ieee.c: New file.
1095
1096         New module 'log10l-ieee'.
1097         * modules/log10l-ieee: New file.
1098
1099         Tests for module 'log10-ieee'.
1100         * modules/log10-ieee-tests: New file.
1101         * tests/test-log10-ieee.c: New file.
1102
1103         New module 'log10-ieee'.
1104         * modules/log10-ieee: New file.
1105
1106         Tests for module 'log10f-ieee'.
1107         * modules/log10f-ieee-tests: New file.
1108         * tests/test-log10f-ieee.c: New file.
1109         * tests/test-log10-ieee.h: New file.
1110
1111         New module 'log10f-ieee'.
1112         * modules/log10f-ieee: New file.
1113
1114 2012-04-01  Bruno Haible  <bruno@clisp.org>
1115
1116         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
1117         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
1118         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
1119         workaround.
1120         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
1121         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
1122         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
1123         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
1124         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
1125         (Depends-on): Update conditions.
1126         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
1127         IRIX 6.5, OSF/1 5.1 problems.
1128
1129 2012-04-01  Bruno Haible  <bruno@clisp.org>
1130
1131         log10f: Work around OSF/1 5.1 bug.
1132         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
1133         * lib/log10f.c (log10f): If logf exists, use it and provide just the
1134         workaround.
1135         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
1136         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
1137         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
1138         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
1139         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
1140         (Depends-on): Update conditions.
1141         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
1142
1143 2012-04-01  Bruno Haible  <bruno@clisp.org>
1144
1145         log10: Work around OSF/1 5.1 bug.
1146         * lib/math.in.h (log10): New declaration.
1147         * lib/log10.c: New file.
1148         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
1149         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
1150         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
1151         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
1152         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
1153         * modules/log10 (Files): Add lib/log10.c.
1154         (Depends-on): Add math.
1155         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
1156         * tests/test-math-c++.cc: Check the declaration of log10.
1157         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
1158
1159 2012-03-31  Bruno Haible  <bruno@clisp.org>
1160
1161         log10l tests: More tests.
1162         * modules/log10l-tests (Files): Add tests/test-log10l.h,
1163         tests/minus-zero.h, tests/randoml.c.
1164         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
1165         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
1166         (main): Invoke test_function.
1167
1168         log10f tests: More tests.
1169         * modules/log10f-tests (Files): Add tests/test-log10.h,
1170         tests/minus-zero.h, tests/randomf.c.
1171         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
1172         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
1173         (main): Invoke test_function.
1174
1175         log10 tests: More tests.
1176         * tests/test-log10.h: New file.
1177         * modules/log10-tests (Files): Add tests/test-log10.h,
1178         tests/minus-zero.h, tests/randomd.c.
1179         (Makefile.am): Add randomd.c to test_log10_SOURCES.
1180         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
1181         (main): Invoke test_function.
1182
1183 2012-03-31  Simon Josefsson  <simon@josefsson.org>
1184
1185         fflush: Fix syntax error.
1186         * lib/fflush.c: Include unused-parameter.h, needed for
1187         _GL_UNUSED_PARAMETER.
1188         * modules/fflush (Depends-on): Add snippet/unused-parameter.
1189
1190 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
1191
1192         regex: pacify GCC when compiling GRUB
1193         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
1194         a diagnostic.  Reported by Vladimir Serbinenko in
1195         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
1196
1197 2012-03-29  Eric Blake  <eblake@redhat.com>
1198
1199         stdio: don't assume gets any more
1200         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
1201         support.
1202         * modules/stdio (Makefile.am): Likewise.
1203         * lib/stdio-read.c (gets): Likewise.
1204         * tests/test-stdio-c++.cc: Likewise.
1205         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
1206         * lib/stdio.in.h (gets): Make warning occur in more places.
1207         * doc/posix-functions/gets.texi (gets): Update documentation.
1208         Reported by Christer Solskogen.
1209
1210         maint.mk: fix syntax checks without exclusions
1211         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
1212         Reported by Daniel P. Berrange.
1213
1214         strerror_r: avoid compiler warning
1215         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
1216         level.
1217
1218         fflush: avoid compiler warning
1219         * lib/fflush.c (update_fpos_cache): Mark variables that are
1220         potentially unused.
1221
1222 2012-03-25  Bruno Haible  <bruno@clisp.org>
1223
1224         Tests for module 'localeconv'.
1225         * modules/localeconv-tests: New file.
1226         * tests/test-localeconv.c: New file.
1227
1228         New module 'localeconv'.
1229         * lib/locale.in.h (localeconv): New declaration.
1230         * lib/localeconv.c: New file.
1231         * m4/localeconv.m4: New file.
1232         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
1233         REPLACE_LOCALECONV.
1234         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
1235         REPLACE_LOCALECONV.
1236         * modules/localeconv: New file.
1237         * modules/nl_langinfo (Depends-on): Add localeconv.
1238         * modules/human (Depends-on): Likewise.
1239         * doc/posix-functions/localeconv.texi: Mention the new module.
1240
1241 2012-03-25  Bruno Haible  <bruno@clisp.org>
1242
1243         locale: Provide a complete 'struct lconv'.
1244         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1245         'struct lconv' does not contain int_p_cs_precedes.
1246         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1247         * doc/posix-headers/locale.texi: Update.
1248
1249         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
1250         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
1251         * doc/posix-headers/locale.texi: Update.
1252
1253         locale: Provide a working 'struct lconv'.
1254         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
1255         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1256         'struct lconv' does not even contain decimal_point.
1257         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
1258         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
1259         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1260         * doc/posix-headers/locale.texi: Mention the problems with
1261         'struct lconv'.
1262         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
1263
1264 2012-03-24  Bruno Haible  <bruno@clisp.org>
1265
1266         Enable common subexpression optimization in GCC.
1267         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
1268         macros.
1269         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
1270         GCC attribute 'const'.
1271         (uc_locale_language): Declare with GCC attribute 'pure'.
1272         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
1273         with GCC attribute 'const'.
1274         * lib/unictype.in.h (uc_is_general_category_withtable,
1275         uc_combining_class, uc_combining_class_name,
1276         uc_combining_class_long_name, uc_bidi_class_name,
1277         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
1278         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
1279         uc_decimal_value, uc_digit_value, uc_numeric_value,
1280         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
1281         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
1282         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
1283         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
1284         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
1285         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
1286         Declare with GCC attribute 'const'.
1287         (uc_general_category_name, uc_general_category_long_name,
1288         uc_general_category_byname, uc_general_category,
1289         uc_is_general_category, uc_combining_class_byname,
1290         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
1291         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
1292         Declare with GCC attribute 'pure'.
1293         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
1294         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
1295         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
1296         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
1297         with GCC attribute 'pure'.
1298         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
1299         'const'.
1300         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
1301         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
1302         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
1303         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
1304         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
1305         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
1306         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
1307         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
1308         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
1309         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
1310         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
1311         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
1312         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
1313         GCC attribute 'pure'.
1314         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
1315         'const'.
1316         * lib/uniwidth.in.h (uc_width): Simplify declaration.
1317         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
1318         u32_strwidth): Declare with GCC attribute 'pure'.
1319
1320         Enable common subexpression optimization in GCC.
1321         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1322         (alphasort): Declare with GCC attribute 'pure'.
1323         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1324         (atoll): Declare with GCC attribute 'pure'.
1325         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
1326         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
1327         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
1328         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1329         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
1330         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
1331         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
1332
1333 2012-03-24  Bruno Haible  <bruno@clisp.org>
1334
1335         gnulib-tool: Avoid unintended error output from 'cmp'.
1336         * gnulib-tool (func_add_file, func_update_file, func_import): Use
1337         "cmp -s", not "cmp > /dev/null".
1338
1339 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
1340
1341         gnulib-tool: fix imprecise comments w.r.t. an automake bug
1342
1343         It's not just Automake versions < 1.9b that creates an empty
1344         pkgdatadir at installation time if pkgdata_DATA is specified
1345         to empty; modern automake versions do this as well, at least
1346         until automake 1.11.4 (not yet released at the moment of writing,
1347         but soon to appear).  That behaviour was generally considered a
1348         feature rather than a bug, at least until this discussion:
1349         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
1350
1351         See also automake bugs #10997 and #11030.
1352
1353         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
1354         reference to relevant automake bug numbers.
1355         (func_emit_tests_Makefile_am): Likewise.
1356
1357 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1358
1359         announce-gen: use Digest::SHA when possible
1360         * build-aux/announce-gen: Use Digest::SHA when possible, falling
1361         back to Digest::SHA1 if necessary.
1362
1363 2012-03-20  Jim Meyering  <meyering@redhat.com>
1364
1365         tests: avoid gcc warnings about argv vs. const initializers
1366         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
1367         warnings about discarding 'const' qualifier from pointer target type.
1368         * tests/test-posix_spawn2.c (main): Likewise.
1369
1370 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1371
1372         README-release: simplify slightly
1373         * top/README-release: Run "git checkout master" only once.
1374
1375 2012-03-15  Mark Wielaard  <mark@klomp.org>
1376
1377         git-merge-changelog: add specific example on how to use with hg.
1378         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
1379
1380 2012-03-18  Mark Wielaard  <mark@klomp.org>
1381
1382         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
1383
1384 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
1385
1386         git-version-gen: don't let "prefix" envvar cause trouble
1387         * build-aux/git-version-gen (prefix): Initialize properly,
1388         so as not to use a value specified via the environment.
1389         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
1390
1391 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1392
1393         regex: diagnose too-large repeat counts in EREs
1394         Previously, the code did not diagnose the too-large repeat count
1395         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
1396         as if it were 'b\{1000000000}', which is unexpected.
1397         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
1398         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
1399         is a reasonable one for this problem.  Another option would be to
1400         create a new REG_OVERFLOW error for repeat counts that are too large.
1401         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
1402         count is too large, so that the caller can distinguish the two cases.
1403         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
1404         "Too large" return code, and that repeat counts are one example of this.
1405
1406 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1407
1408         doc: some glibc x32 integer width issues
1409         * doc/posix-headers/sys_types.texi (sys/types.h):
1410         * doc/posix-headers/time.texi (time.h):
1411         Mention that glibc x32 does not conform to POSIX in a couple of
1412         areas related to integer widths.
1413
1414 2012-03-15  Bruno Haible  <bruno@clisp.org>
1415
1416         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
1417         * lib/fma.c (VOLATILE): New macro.
1418         (FUNC): Use it to work around a GCC compiler bug.
1419
1420 2012-03-13  Bruno Haible  <bruno@clisp.org>
1421
1422         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1423         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
1424         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
1425         REPLACE_HYPOTL to 1.
1426         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
1427
1428 2012-03-13  Bruno Haible  <bruno@clisp.org>
1429
1430         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1431         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
1432         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
1433         REPLACE_REMAINDERL to 1.
1434         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
1435         bug.
1436
1437 2012-03-13  Bruno Haible  <bruno@clisp.org>
1438
1439         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1440         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
1441         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
1442         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
1443         too big rounding errors.
1444         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
1445         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
1446         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
1447         (Depends-on): Update conditions.
1448         * tests/test-sqrtl.c (my_ldexpl): New function.
1449         (main): Add test of a particular value.
1450         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1451
1452 2012-03-13  Pádraig Brady  <P@draigBrady.com>
1453
1454         doc: Update timer_* platform portability notes.
1455         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
1456         that always return ENOSYS.
1457         * doc/posix-functions/timer_delete.texi: Likewise.
1458         * doc/posix-functions/timer_gettime.texi: Likewise.
1459         * doc/posix-functions/timer_settime.texi: Likewise.
1460
1461 2012-03-13  Bruno Haible  <bruno@clisp.org>
1462
1463         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1464         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
1465         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
1466         REPLACE_CBRTL to 1.
1467         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1468
1469 2012-03-13  Bruno Haible  <bruno@clisp.org>
1470
1471         remainderl: Avoid compilation error on AIX >= 5.2.
1472         * lib/math.in.h (remainderl): Undefine macro from the system header.
1473
1474 2012-03-13  Bruno Haible  <bruno@clisp.org>
1475
1476         Avoid compilation errors with MSVC option -fp:strict.
1477         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
1478         * lib/cbrtf.c: Likewise.
1479         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1480
1481 2012-03-12  Bruno Haible  <bruno@clisp.org>
1482
1483         uninorm: Don't crash in out-of-memory conditions.
1484         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
1485         gracefully.
1486         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
1487         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
1488
1489 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
1490
1491         quote: fix syntax-check
1492         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
1493         also exports quote_quoting_options.
1494
1495 2012-03-12  Simon Josefsson  <simon@josefsson.org>
1496
1497         Collapse list of copyright years to ranges.  See
1498         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
1499         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
1500         build-aux/csharpexec.sh.in, build-aux/gnupload,
1501         build-aux/install-reloc, build-aux/javacomp.sh.in,
1502         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
1503         build-aux/move-if-change, build-aux/reloc-ldflags,
1504         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
1505
1506 2012-03-11  Bruno Haible  <bruno@clisp.org>
1507
1508         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1509         * m4/log2f-ieee.m4: New file.
1510         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
1511         whether log2f works with a minus zero argument. Replace it if not.
1512         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
1513         (Depends-on): Add log2-ieee.
1514         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
1515         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
1516
1517         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1518         * m4/log2-ieee.m4: New file.
1519         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
1520         whether log2 works with a minus zero argument. Replace it if not.
1521         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
1522         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
1523         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
1524
1525         Tests for module 'log2l-ieee'.
1526         * modules/log2l-ieee-tests: New file.
1527         * tests/test-log2l-ieee.c: New file.
1528
1529         New module 'log2l-ieee'.
1530         * modules/log2l-ieee: New file.
1531
1532         Tests for module 'log2-ieee'.
1533         * modules/log2-ieee-tests: New file.
1534         * tests/test-log2-ieee.c: New file.
1535
1536         New module 'log2-ieee'.
1537         * modules/log2-ieee: New file.
1538
1539         Tests for module 'log2f-ieee'.
1540         * modules/log2f-ieee-tests: New file.
1541         * tests/test-log2f-ieee.c: New file.
1542         * tests/test-log2-ieee.h: New file.
1543
1544         New module 'log2f-ieee'.
1545         * modules/log2f-ieee: New file.
1546
1547 2012-03-11  Bruno Haible  <bruno@clisp.org>
1548
1549         Tests for module 'log2l'.
1550         * modules/log2l-tests: New file.
1551         * tests/test-log2l.c: New file.
1552
1553         New module 'log2l'.
1554         * lib/math.in.h (log2l): New declaration.
1555         * lib/log2l.c: New file.
1556         * m4/log2l.m4: New file.
1557         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
1558         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
1559         REPLACE_LOG2L.
1560         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
1561         REPLACE_LOG2L.
1562         * modules/log2l: New file.
1563         * tests/test-math-c++.cc: Check the declaration of log2l.
1564         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
1565         and OSF/1 problems.
1566
1567 2012-03-11  Bruno Haible  <bruno@clisp.org>
1568
1569         Tests for module 'log2f'.
1570         * modules/log2f-tests: New file.
1571         * tests/test-log2f.c: New file.
1572
1573         New module 'log2f'.
1574         * lib/math.in.h (log2f): New declaration.
1575         * lib/log2f.c: New file.
1576         * m4/log2f.m4: New file.
1577         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
1578         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
1579         REPLACE_LOG2F.
1580         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
1581         REPLACE_LOG2F.
1582         * modules/log2f: New file.
1583         * tests/test-math-c++.cc: Check the declaration of log2f.
1584         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
1585         and OSF/1 and Cygwin problems.
1586
1587 2012-03-11  Bruno Haible  <bruno@clisp.org>
1588
1589         Tests for module 'log2'.
1590         * modules/log2-tests: New file.
1591         * tests/test-log2.c: New file.
1592         * tests/test-log2.h: New file.
1593
1594         New module 'log2'.
1595         * lib/math.in.h (log2): New declaration.
1596         * lib/log2.c: New file.
1597         * m4/log2.m4: New file.
1598         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
1599         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
1600         REPLACE_LOG2.
1601         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
1602         REPLACE_LOG2.
1603         * modules/log2: New file.
1604         * tests/test-math-c++.cc: Check the declaration of log2.
1605         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
1606         and OSF/1 and Cygwin problems.
1607
1608 2012-03-11  Bruno Haible  <bruno@clisp.org>
1609
1610         exp2* tests: More tests.
1611         * tests/test-exp2.h (test_function): Test all integral arguments that
1612         don't need to overflow or denormalized numbers.
1613         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
1614         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
1615         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
1616
1617 2012-03-10  Bruno Haible  <bruno@clisp.org>
1618
1619         log1pl-ieee: Work around test failure on AIX 7.1.
1620         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
1621
1622         log1pl-ieee: Work around test failure on IRIX 6.5.
1623         * m4/log1pl-ieee.m4: New file.
1624         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
1625         test whether log1pl works with a minus zero argument. Replace it if
1626         not.
1627         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
1628         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
1629         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
1630         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
1631         (Depends-on): Update conditions.
1632         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1633         m4/signbit.m4.
1634         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
1635         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
1636
1637         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
1638         * m4/log1pf-ieee.m4: New file.
1639         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
1640         test whether log1pf works with a minus zero argument. Replace it if
1641         not.
1642         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
1643         m4/signbit.m4.
1644         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
1645         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
1646
1647         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
1648         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
1649         (configure.ac): Require gl_FUNC_LOG1PF.
1650
1651         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
1652         * m4/log1p-ieee.m4: New file.
1653         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
1654         whether log1p works with a minus zero argument. Replace it if not.
1655         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
1656         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
1657         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
1658         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
1659         (Depends-on): Update conditions.
1660         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1661         m4/signbit.m4.
1662         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
1663         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
1664
1665         Tests for module 'log1pl-ieee'.
1666         * modules/log1pl-ieee-tests: New file.
1667         * tests/test-log1pl-ieee.c: New file.
1668
1669         New module 'log1pl-ieee'.
1670         * modules/log1pl-ieee: New file.
1671
1672         Tests for module 'log1p-ieee'.
1673         * modules/log1p-ieee-tests: New file.
1674         * tests/test-log1p-ieee.c: New file.
1675
1676         New module 'log1p-ieee'.
1677         * modules/log1p-ieee: New file.
1678
1679         Tests for module 'log1pf-ieee'.
1680         * modules/log1pf-ieee-tests: New file.
1681         * tests/test-log1pf-ieee.c: New file.
1682         * tests/test-log1p-ieee.h: New file.
1683
1684         New module 'log1pf-ieee'.
1685         * modules/log1pf-ieee: New file.
1686
1687 2012-03-10  Bruno Haible  <bruno@clisp.org>
1688
1689         Tests for module 'log1pl'.
1690         * modules/log1pl-tests: New file.
1691         * tests/test-log1pl.c: New file.
1692
1693         New module 'log1pl'.
1694         * lib/math.in.h (log1pl): New declaration.
1695         * lib/log1pl.c: New file.
1696         * m4/log1pl.m4: New file.
1697         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
1698         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
1699         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
1700         * modules/log1pl: New file.
1701         * tests/test-math-c++.cc: Check the declaration of log1pl.
1702         * doc/posix-functions/log1pl.texi: Mention the new module.
1703
1704 2012-03-10  Bruno Haible  <bruno@clisp.org>
1705
1706         Tests for module 'log1pf'.
1707         * modules/log1pf-tests: New file.
1708         * tests/test-log1pf.c: New file.
1709
1710         New module 'log1pf'.
1711         * lib/math.in.h (log1pf): New declaration.
1712         * lib/log1pf.c: New file.
1713         * m4/log1pf.m4: New file.
1714         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
1715         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
1716         REPLACE_LOG1PF.
1717         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
1718         REPLACE_LOG1PF.
1719         * modules/log1pf: New file.
1720         * tests/test-math-c++.cc: Check the declaration of log1pf.
1721         * doc/posix-functions/log1pf.texi: Mention the new module.
1722
1723 2012-03-10  Bruno Haible  <bruno@clisp.org>
1724
1725         log1p tests: More tests.
1726         * tests/test-log1p.h: New file.
1727         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
1728         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
1729         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
1730         (main): Invoke test_function.
1731
1732         log1p: Provide replacement for Minix and MSVC.
1733         * lib/math.in.h (log1p): New declaration.
1734         * lib/log1p.c: New file.
1735         * m4/log1p.m4: New file.
1736         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
1737         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
1738         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
1739         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
1740         (Depends-on): Add math, isnand, log, round.
1741         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
1742         HAVE_LOG1P is 0.
1743         * tests/test-math-c++.cc: Check the declaration of log1p.
1744         * doc/posix-functions/log1p.texi: Mention the replacement.
1745
1746 2012-03-10  Bruno Haible  <bruno@clisp.org>
1747
1748         math tests: Small simplification.
1749         * tests/test-exp.h (test_function): Use the same err_bound for
1750         'double' on platforms with sizeof (long double) == sizeof (double)
1751         than on platforms with sizeof (long double) > sizeof (double).
1752         * tests/test-exp2.h (test_function): Likewise.
1753         * tests/test-expm1.h (test_function): Likewise.
1754         * tests/test-log.h (test_function): Likewise.
1755
1756 2012-03-10  Bruno Haible  <bruno@clisp.org>
1757
1758         Fix some comments.
1759         * lib/expl.c: Fix an ambiguous comment.
1760         * lib/expm1.c: Likewise.
1761         * lib/expm1l.c: Likewise.
1762         * lib/exp2.c: Likewise.
1763         * lib/exp2l.c: Likewise.
1764
1765 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
1766
1767         regex: allow inclusion of <regex.h> before <limits.h>
1768         Without this patch, portable programs had to include <limits.h> before
1769         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
1770         I ran into this problem with a test version of GNU grep on Solaris 8.
1771         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
1772         This is done conditionally so that this change can be merged
1773         back to glibc.
1774         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
1775         using the included regex.
1776
1777         fts: depend on fdopendir
1778         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
1779         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
1780         problem was introduced when fdopendir was split out.
1781
1782 2012-03-10  Bruno Haible  <bruno@clisp.org>
1783
1784         Remove unused variables.
1785         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
1786         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1787
1788 2012-03-10  Bruno Haible  <bruno@clisp.org>
1789
1790         isnanf-nolibm: Fix last commit.
1791         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
1792
1793         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
1794         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
1795
1796 2012-03-10  Bruno Haible  <bruno@clisp.org>
1797
1798         logf-ieee: Work around test failure on NetBSD 5.1.
1799         * m4/logf-ieee.m4: New file.
1800         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
1801         whether logf works with a negative argument. Replace it if not.
1802         * lib/logf.c (logf): For negative arguments, return NaN.
1803         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
1804         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
1805         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
1806
1807         logf-ieee: Work around test failure on Solaris 9.
1808         * modules/logf-ieee (Depends-on): Add log-ieee.
1809         (configure.ac): Require gl_FUNC_LOGF.
1810
1811         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1812         * m4/log-ieee.m4: New file.
1813         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
1814         log works with a negative argument. Replace it if not.
1815         * lib/log.c (log): For negative arguments, return NaN.
1816         * modules/log-ieee (Files): Add m4/log-ieee.m4.
1817         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
1818         * doc/posix-functions/log.texi: Mention the log-ieee module.
1819
1820         Tests for module 'logl-ieee'.
1821         * modules/logl-ieee-tests: New file.
1822         * tests/test-logl-ieee.c: New file.
1823
1824         New module 'logl-ieee'.
1825         * modules/logl-ieee: New file.
1826
1827         Tests for module 'log-ieee'.
1828         * modules/log-ieee-tests: New file.
1829         * tests/test-log-ieee.c: New file.
1830
1831         New module 'log-ieee'.
1832         * modules/log-ieee: New file.
1833
1834         Tests for module 'logf-ieee'.
1835         * modules/logf-ieee-tests: New file.
1836         * tests/test-logf-ieee.c: New file.
1837         * tests/test-log-ieee.h: New file.
1838
1839         New module 'logf-ieee'.
1840         * modules/logf-ieee: New file.
1841
1842 2012-03-10  Bruno Haible  <bruno@clisp.org>
1843
1844         log: Fix bug introduced on 2012-03-09.
1845         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
1846
1847 2012-03-10  Pádraig Brady  <P@draigBrady.com>
1848
1849         timer-time: link explicitly with pthreads on glibc
1850         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1851         to support static linking, when newer glibc is
1852         detected, as that contains pthread emulation of
1853         POSIX timer functions where required.
1854         * modules/timer-time: Depend on threadlib to
1855         pull in the appropriate library to link.
1856
1857 2012-03-10  Bruno Haible  <bruno@clisp.org>
1858
1859         log* tests: More tests.
1860         * tests/test-log.h: New file.
1861         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
1862         (main): Invoke test_function.
1863         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
1864         (main): Invoke test_function.
1865         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
1866         (main): Invoke test_function.
1867         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1868         tests/randomd.c.
1869         (Makefile.am): Add randomd.c to test_log_SOURCES.
1870         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1871         tests/randomf.c.
1872         (Makefile.am): Add randomf.c to test_logf_SOURCES.
1873         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1874         tests/randoml.c.
1875         (Depends-on): Add 'float'.
1876         (Makefile.am): Add randoml.c to test_logl_SOURCES.
1877
1878 2012-03-09  Bruno Haible  <bruno@clisp.org>
1879
1880         logl: Work around OSF/1 5.1 bug.
1881         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
1882         * lib/logl.c (logl): If logl exists, use it and provide just the
1883         workaround.
1884         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
1885         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
1886         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
1887         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
1888         * modules/logl (configure.ac): Consider REPLACE_LOGL.
1889         (Depends-on): Update conditions.
1890         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
1891
1892 2012-03-09  Bruno Haible  <bruno@clisp.org>
1893
1894         logf: Work around OSF/1 5.1 bug.
1895         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
1896         * lib/logf.c (logf): If logf exists, use it and provide just the
1897         workaround.
1898         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
1899         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
1900         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
1901         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
1902         * modules/logf (configure.ac): Consider REPLACE_LOGF.
1903         (Depends-on): Update conditions.
1904         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
1905
1906 2012-03-09  Bruno Haible  <bruno@clisp.org>
1907
1908         log: Work around OSF/1 5.1 bug.
1909         * lib/math.in.h (log): New declaration.
1910         * lib/log.c: New file.
1911         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
1912         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
1913         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
1914         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
1915         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
1916         * modules/log (Files): Add lib/log.c.
1917         (Depends-on): Add math.
1918         (configure.ac): If REPLACE_LOG is 1, compile an override.
1919         * tests/test-math-c++.cc: Check the declaration of log.
1920         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
1921
1922 2012-03-09  Jim Meyering  <meyering@redhat.com>
1923
1924         readtokens.c: adjust wording in a comment
1925         * lib/readtokens.c: Insert omitted "that" in a comment.
1926
1927 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1928
1929         modechange: add notations +40, 00440, etc.
1930         * lib/modechange.c (mode_compile): Support new notations
1931         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
1932
1933 2012-03-08  Bruno Haible  <bruno@clisp.org>
1934
1935         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
1936         * m4/exp2l-ieee.m4: New file.
1937         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
1938         test whether exp2l works with a NaN argument and with a negative
1939         infinity argument. Replace it if not.
1940         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
1941         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
1942         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
1943         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
1944         (Depends-on): Update conditions.
1945         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
1946         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
1947         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
1948
1949         Tests for module 'exp2l-ieee'.
1950         * modules/exp2l-ieee-tests: New file.
1951         * tests/test-exp2l-ieee.c: New file.
1952
1953         New module 'exp2l-ieee'.
1954         * modules/exp2l-ieee: New file.
1955
1956         Tests for module 'exp2-ieee'.
1957         * modules/exp2-ieee-tests: New file.
1958         * tests/test-exp2-ieee.c: New file.
1959
1960         New module 'exp2-ieee'.
1961         * modules/exp2-ieee: New file.
1962
1963         Tests for module 'exp2f-ieee'.
1964         * modules/exp2f-ieee-tests: New file.
1965         * tests/test-exp2f-ieee.c: New file.
1966         * tests/test-exp2-ieee.h: New file.
1967
1968         New module 'exp2f-ieee'.
1969         * modules/exp2f-ieee: New file.
1970
1971 2012-03-08  Bruno Haible  <bruno@clisp.org>
1972
1973         Tests for module 'exp2l'.
1974         * modules/exp2l-tests: New file.
1975         * tests/test-exp2l.c: New file.
1976
1977         New module 'exp2l'.
1978         * lib/math.in.h (exp2l): New declaration.
1979         * lib/exp2l.c: New file.
1980         * lib/expl-table.c: New file, extracted from lib/expl.c.
1981         * lib/expl.c (gl_expl_table): New declaration.
1982         (expl): Remove expl_table. Update reference.
1983         * m4/exp2l.m4: New file.
1984         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
1985         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
1986         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
1987         * modules/exp2l: New file.
1988         * modules/expl (Files): Add lib/expl-table.c.
1989         (configure.ac): Compile also expl-table.c.
1990         * tests/test-math-c++.cc: Check the declaration of exp2l.
1991         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
1992         problem.
1993
1994 2012-03-08  Bruno Haible  <bruno@clisp.org>
1995
1996         Tests for module 'exp2f'.
1997         * modules/exp2f-tests: New file.
1998         * tests/test-exp2f.c: New file.
1999
2000         New module 'exp2f'.
2001         * lib/math.in.h (exp2f): New declaration.
2002         * lib/exp2f.c: New file.
2003         * m4/exp2f.m4: New file.
2004         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
2005         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
2006         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
2007         * modules/exp2f: New file.
2008         * tests/test-math-c++.cc: Check the declaration of exp2f.
2009         * doc/posix-functions/exp2f.texi: Mention the new module and the
2010         IRIX problem.
2011
2012 2012-03-08  Bruno Haible  <bruno@clisp.org>
2013
2014         Tests for module 'exp2'.
2015         * modules/exp2-tests: New file.
2016         * tests/test-exp2.c: New file.
2017         * tests/test-exp2.h: New file.
2018
2019         New module 'exp2'.
2020         * lib/math.in.h (exp2): New declaration.
2021         * lib/exp2.c: New file.
2022         * m4/exp2.m4: New file.
2023         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
2024         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
2025         REPLACE_EXP2.
2026         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
2027         REPLACE_EXP2.
2028         * modules/exp2: New file.
2029         * tests/test-math-c++.cc: Check the declaration of exp2.
2030         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
2031         and OpenBSD problems.
2032
2033 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
2034
2035         savedir: fix comment typo
2036         * lib/savedir.c (savedirstream): Fix typo in comment.
2037
2038 2012-03-08  Bruno Haible  <bruno@clisp.org>
2039
2040         test-readtokens.c: use const; remove unwarranted cast
2041         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
2042
2043 2012-03-08  Bruno Haible  <bruno@clisp.org>
2044
2045         fmal: Avoid compilation error on AIX.
2046         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
2047         AIX 5.2..7.1.
2048
2049 2012-03-08  Bruno Haible  <bruno@clisp.org>
2050
2051         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
2052         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
2053         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
2054         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
2055         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
2056         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
2057         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
2058
2059 2012-03-08  Bruno Haible  <bruno@clisp.org>
2060
2061         remainderf: Override buggy system function on IRIX 6.5.
2062         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
2063         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
2064         when it exists.
2065         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
2066
2067 2012-03-08  Jim Meyering  <meyering@redhat.com>
2068
2069         test-readtokens.c: avoid const-related compilation warnings
2070         * tests/test-readtokens.c: Avoid const-related compilation warnings.
2071
2072 2012-03-07  Jim Meyering  <meyering@redhat.com>
2073             Bruno Haible  <bruno@clisp.org>
2074
2075         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
2076         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
2077         tests/randomd.c.
2078         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
2079         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
2080         tests/randoml.c.
2081         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
2082
2083 2012-03-07  Bruno Haible  <bruno@clisp.org>
2084
2085         expm1l: Avoid compilation error on AIX.
2086         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
2087         AIX 5.2..7.1.
2088
2089 2012-03-07  Bruno Haible  <bruno@clisp.org>
2090
2091         expm1l: Don't override undeclared system function on IRIX 6.5.
2092         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
2093         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
2094         it exists. Set HAVE_DECL_EXPM1L.
2095         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
2096         HAVE_EXPM1L.
2097         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
2098         HAVE_EXPM1L.
2099         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
2100
2101 2012-03-07  Bruno Haible  <bruno@clisp.org>
2102
2103         remainderl: Don't override undeclared system function on IRIX 6.5.
2104         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
2105         HAVE_REMAINDERL.
2106         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
2107         declared when it exists. Set HAVE_DECL_REMAINDERL.
2108         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
2109         not HAVE_REMAINDERL.
2110         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
2111         HAVE_REMAINDERL.
2112         * doc/posix-functions/remainderl.texi: Mention missing declaration
2113         problem.
2114
2115 2012-03-07  Bruno Haible  <bruno@clisp.org>
2116
2117         rintf: Don't override undeclared system function on IRIX 6.5.
2118         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
2119         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
2120         exists. Set HAVE_DECL_RINTF.
2121         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
2122         HAVE_RINTF.
2123         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
2124         HAVE_RINTF.
2125         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
2126
2127 2012-03-07  Bruno Haible  <bruno@clisp.org>
2128
2129         roundl: Avoid compilation error on AIX.
2130         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
2131         AIX 5.2..7.1.
2132
2133 2012-03-07  Bruno Haible  <bruno@clisp.org>
2134
2135         roundl: Don't override undeclared system function on IRIX 6.5.
2136         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
2137         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
2138         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
2139         * modules/roundl (configure.ac): For replacement code, test
2140         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
2141         (Depends-on): Update conditions.
2142         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
2143
2144 2012-03-07  Bruno Haible  <bruno@clisp.org>
2145
2146         roundf: Don't override undeclared system function on IRIX 6.5.
2147         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
2148         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
2149         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
2150         * modules/roundf (configure.ac): For replacement code, test
2151         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
2152         (Depends-on): Update conditions.
2153         * modules/roundf-ieee (Depends-on): Update conditions.
2154         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
2155
2156 2012-03-07  Bruno Haible  <bruno@clisp.org>
2157
2158         round: Don't override undeclared system function on IRIX 6.5.
2159         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
2160         argument.
2161         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
2162         also when it is not declared. Set HAVE_ROUND. For replacement code,
2163         test HAVE_ROUND, not HAVE_DECL_ROUND.
2164         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
2165         not HAVE_DECL_ROUND.
2166         (Depends-on): Update conditions.
2167         * modules/round-ieee (Depends-on): Update conditions.
2168         * doc/posix-functions/round.texi: Mention the IRIX problem.
2169
2170 2012-03-07  Bruno Haible  <bruno@clisp.org>
2171
2172         copysignf: Don't override undeclared system function on IRIX 6.5.
2173         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
2174         HAVE_COPYSIGNF.
2175         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
2176         declared when it exists. Set HAVE_DECL_COPYSIGNF.
2177         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
2178         not HAVE_COPYSIGNF.
2179         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
2180         HAVE_COPYSIGNF.
2181         * doc/posix-functions/copysignf.texi: Mention missing declaration
2182         problem.
2183
2184 2012-03-07  Jim Meyering  <meyering@redhat.com>
2185
2186         readtokens: add tests
2187         * modules/readtokens-tests: New file.
2188         * tests/test-readtokens.c: New file.
2189
2190 2012-03-07  Jim Meyering  <meyering@redhat.com>
2191
2192         quotearg: the module must now include quote.h
2193         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
2194         So must the module.
2195         * modules/quotearg (Files): Add quote.h.
2196
2197 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
2198
2199         readtokens: avoid core dumps with unusual calling patterns
2200         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
2201         * lib/readtokens.c: Include limits.h.
2202         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
2203         (readtoken): Don't cache the delimiters; the cache code was buggy
2204         if !delim && saved_delim, or if the new n_delim differs from the old.
2205         Also, it wasn't thread-safe.
2206
2207 2012-03-07  Bruno Haible  <bruno@clisp.org>
2208
2209         quote: Adhere to common module description layout.
2210         * modules/quote (Makefile.am): Add back empty section.
2211
2212 2012-03-06  Akim Demaille  <demaille@gostai.com>
2213
2214         quote: fuse into quotearg
2215         This patch is made for the benefit of Bison.
2216         quote does not leave the choice of the quoting style to the user.
2217         quoting_style provides poor customizability, yet quoting_options,
2218         which is very rich, is hidden inside quotearg.c.  So in order to
2219         allow quote customization, move its implementation to quotearg.c.
2220         * lib/quote.c: Remove.
2221         * modules/quote: Adjust.
2222         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
2223         warning: provide all the members of literal structs.
2224         (quote_quoting_options): New.
2225         (quote, quote_n): Import implementation from quote.c.
2226         * lib/quote.h: Import the comments from quote.c.
2227         (quote_quoting_options): New.
2228
2229 2012-03-06  Bruno Haible  <bruno@clisp.org>
2230
2231         Tests for module 'expm1l-ieee'.
2232         * modules/expm1l-ieee-tests: New file.
2233         * tests/test-expm1l-ieee.c: New file.
2234
2235         New module 'expm1l-ieee'.
2236         * modules/expm1l-ieee: New file.
2237
2238         Tests for module 'expm1f-ieee'.
2239         * modules/expm1f-ieee-tests: New file.
2240         * tests/test-expm1f-ieee.c: New file.
2241
2242         New module 'expm1f-ieee'.
2243         * modules/expm1f-ieee: New file.
2244
2245         Tests for module 'expm1-ieee'.
2246         * modules/expm1-ieee-tests: New file.
2247         * tests/test-expm1-ieee.c: New file.
2248         * tests/test-expm1-ieee.h: New file.
2249
2250         New module 'expm1-ieee'.
2251         * modules/expm1-ieee: New file.
2252         * m4/expm1-ieee.m4: New file.
2253         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
2254         whether expm1 works with a minus zero argument. Replace it if not.
2255         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
2256         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
2257         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
2258         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
2259         (Depends-on): Update conditions.
2260         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
2261         AIX problem.
2262
2263 2012-03-06  Bruno Haible  <bruno@clisp.org>
2264
2265         Work around expm1f bug on IRIX 6.5.
2266         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
2267         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
2268         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
2269         not work.
2270         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
2271         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
2272         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
2273         (Depends-on): Update conditions.
2274         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
2275
2276 2012-03-06  Bruno Haible  <bruno@clisp.org>
2277
2278         Tests for module 'expm1l'.
2279         * modules/expm1l-tests: New file.
2280         * tests/test-expm1l.c: New file.
2281
2282         New module 'expm1l'.
2283         * lib/math.in.h (expm1l): New declaration.
2284         * lib/expm1l.c: New file.
2285         * m4/expm1l.m4: New file.
2286         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
2287         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
2288         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
2289         * modules/expm1l: New file.
2290         * tests/test-math-c++.cc: Check the declaration of expm1l.
2291         * doc/posix-functions/expm1l.texi: Mention the new module.
2292
2293 2012-03-06  Bruno Haible  <bruno@clisp.org>
2294
2295         Tests for module 'expm1f'.
2296         * modules/expm1f-tests: New file.
2297         * tests/test-expm1f.c: New file.
2298
2299         New module 'expm1f'.
2300         * lib/math.in.h (expm1f): New declaration.
2301         * lib/expm1f.c: New file.
2302         * m4/expm1f.m4: New file.
2303         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
2304         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
2305         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
2306         * modules/expm1f: New file.
2307         * tests/test-math-c++.cc: Check the declaration of expm1f.
2308         * doc/posix-functions/expm1f.texi: Mention the new module.
2309
2310 2012-03-06  Bruno Haible  <bruno@clisp.org>
2311
2312         Tests for module 'expm1'.
2313         * modules/expm1-tests: New file.
2314         * tests/test-expm1.c: New file.
2315         * tests/test-expm1.h: New file.
2316
2317         New module 'expm1'.
2318         * lib/math.in.h (expm1): New declaration.
2319         * lib/expm1.c: New file.
2320         * m4/expm1.m4: New file.
2321         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
2322         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
2323         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
2324         * modules/expm1: New file.
2325         * tests/test-math-c++.cc: Check the declaration of expm1.
2326         * doc/posix-functions/expm1.texi: Mention the new module.
2327
2328 2012-03-06  Bruno Haible  <bruno@clisp.org>
2329
2330         math: Ensure declarations of math functions.
2331         * modules/acosf (Depends-on): Add 'extensions'.
2332         * modules/asinf (Depends-on): Likewise.
2333         * modules/atan2f (Depends-on): Likewise.
2334         * modules/atanf (Depends-on): Likewise.
2335         * modules/cbrt (Depends-on): Likewise.
2336         * modules/cbrtf (Depends-on): Likewise.
2337         * modules/cbrtl (Depends-on): Likewise.
2338         * modules/copysignf (Depends-on): Likewise.
2339         * modules/copysignl (Depends-on): Likewise.
2340         * modules/cosf (Depends-on): Likewise.
2341         * modules/coshf (Depends-on): Likewise.
2342         * modules/expf (Depends-on): Likewise.
2343         * modules/fabsf (Depends-on): Likewise.
2344         * modules/fabsl (Depends-on): Likewise.
2345         * modules/fmaf (Depends-on): Likewise.
2346         * modules/fmal (Depends-on): Likewise.
2347         * modules/fmodf (Depends-on): Likewise.
2348         * modules/fmodl (Depends-on): Likewise.
2349         * modules/frexpf (Depends-on): Likewise.
2350         * modules/frexpl (Depends-on): Likewise.
2351         * modules/hypot (Depends-on): Likewise.
2352         * modules/hypotf (Depends-on): Likewise.
2353         * modules/hypotl (Depends-on): Likewise.
2354         * modules/ldexpf (Depends-on): Likewise.
2355         * modules/ldexpl (Depends-on): Likewise.
2356         * modules/log10f (Depends-on): Likewise.
2357         * modules/log10l (Depends-on): Likewise.
2358         * modules/log1p (Depends-on): Likewise.
2359         * modules/logb (Depends-on): Likewise.
2360         * modules/logf (Depends-on): Likewise.
2361         * modules/modff (Depends-on): Likewise.
2362         * modules/modfl (Depends-on): Likewise.
2363         * modules/powf (Depends-on): Likewise.
2364         * modules/remainderf (Depends-on): Likewise.
2365         * modules/remainderl (Depends-on): Likewise.
2366         * modules/rintf (Depends-on): Likewise.
2367         * modules/rintl (Depends-on): Likewise.
2368         * modules/sinf (Depends-on): Likewise.
2369         * modules/sinhf (Depends-on): Likewise.
2370         * modules/sqrtf (Depends-on): Likewise.
2371         * modules/tanf (Depends-on): Likewise.
2372         * modules/tanhf (Depends-on): Likewise.
2373         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
2374         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
2375         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
2376         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
2377         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
2378         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
2379         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
2380         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
2381         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
2382         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
2383         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
2384         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
2385         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
2386         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
2387         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
2388         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
2389         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
2390         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2391         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
2392         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
2393         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
2394         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
2395         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
2396         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
2397         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
2398         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
2399         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
2400         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2401         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
2402         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
2403         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2404         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
2405         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
2406         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2407         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2408         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2409         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
2410         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
2411         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
2412         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
2413         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
2414
2415 2012-03-06  Bruno Haible  <bruno@clisp.org>
2416
2417         math: Update module names in warnings.
2418         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
2419         tanl): Use specific module name in warn-on-use warning.
2420
2421 2012-03-06  Bruno Haible  <bruno@clisp.org>
2422
2423         expl: Simplify computation.
2424         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
2425
2426 2012-03-05  Bruno Haible  <bruno@clisp.org>
2427
2428         exp* tests: More tests.
2429         * tests/test-exp.h: New file.
2430         * tests/test-exp.c: Include <float.h> and test-exp.h.
2431         (main): Invoke test_function.
2432         * tests/test-expf.c: Include <float.h> and test-exp.h.
2433         (main): Invoke test_function.
2434         * tests/test-expl.c: Include <float.h> and test-exp.h.
2435         (main): Invoke test_function.
2436         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
2437         (Makefile.am): Add randomd.c to test_exp_SOURCES.
2438         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
2439         (Makefile.am): Add randomf.c to test_expf_SOURCES.
2440         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
2441         (Depends-on): Add 'float'.
2442         (Makefile.am): Add randoml.c to test_expl_SOURCES.
2443
2444         expl: Fix precision of computed result.
2445         * lib/expl.c: Completely rewritten.
2446         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
2447         (Maintainer): Add me.
2448         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
2449
2450 2012-03-05  Bruno Haible  <bruno@clisp.org>
2451
2452         cbrt* tests: More tests.
2453         * tests/test-cbrt.h: New file.
2454         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
2455         (main): Invoke test_function.
2456         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
2457         (main): Invoke test_function.
2458         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
2459         (main): Invoke test_function.
2460         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
2461         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
2462         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
2463         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
2464         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
2465         (Depends-on): Add 'float'.
2466         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
2467
2468 2012-03-05  Bruno Haible  <bruno@clisp.org>
2469
2470         hypot* tests: More tests.
2471         * tests/test-hypot.h: New file, partially extracted from
2472         tests/test-hypotl.c.
2473         * tests/test-hypot.c: Include test-hypot.h.
2474         (main): Invoke test_function.
2475         * tests/test-hypotf.c: Include test-hypot.h.
2476         (main): Invoke test_function.
2477         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
2478         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
2479         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
2480         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
2481         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
2482         tests/randomf.c.
2483         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
2484         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
2485         tests/randoml.c.
2486         (Depends-on): Add 'fpucw', 'float'.
2487         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
2488
2489 2012-03-05  Bruno Haible  <bruno@clisp.org>
2490
2491         fpucw: Doc about FreeBSD.
2492         * lib/fpucw.h: Mention FreeBSD in comments.
2493
2494 2012-03-04  Bruno Haible  <bruno@clisp.org>
2495
2496         sqrt* tests: More tests.
2497         * tests/test-sqrt.h: New file.
2498         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
2499         (main): Invoke test_function.
2500         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
2501         (main): Invoke test_function.
2502         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
2503         (main): Invoke test_function.
2504         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
2505         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
2506         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
2507         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
2508         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
2509         (Depends-on): Add 'float'.
2510         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
2511
2512 2012-03-04  Bruno Haible  <bruno@clisp.org>
2513
2514         remainder* tests: More tests.
2515         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
2516         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
2517         (main): Invoke test_function.
2518         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
2519         (main): Invoke test_function.
2520         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
2521         (main): Invoke test_function.
2522         * modules/remainder-tests (Files): Add tests/test-remainder.h,
2523         tests/randomd.c.
2524         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
2525         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
2526         tests/randomf.c.
2527         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
2528         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
2529         tests/randoml.c.
2530         (Depends-on): Add 'float'.
2531         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
2532
2533 2012-03-04  Bruno Haible  <bruno@clisp.org>
2534
2535         remainder, remainderf, remainderl: Fix computation for large quotients.
2536         * lib/remainder.c: Completely rewritten.
2537         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
2538         USE_FLOAT.
2539         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
2540         USE_LONG_DOUBLE.
2541         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
2542         isnand, isinf. Remove round, fma.
2543         * modules/remainderf (Files): Add lib/remainder.c.
2544         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
2545         Remove roundf, fmaf.
2546         * modules/remainderl (Files): Add lib/remainder.c.
2547         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
2548         isinf. Remove roundl, fmal.
2549         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
2550         REMAINDER_LIBM.
2551         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
2552         REMAINDERF_LIBM.
2553         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
2554         REMAINDERL_LIBM.
2555
2556 2012-03-04  Bruno Haible  <bruno@clisp.org>
2557
2558         fmod* tests: More tests.
2559         * tests/test-fmod.h (my_ldexp): New function.
2560         (test_function): Reduce amount of random numbers to test. Add tests
2561         of very large quotients x / y.
2562         * tests/test-fmod.c (MAX_EXP): New macro.
2563         * tests/test-fmodf.c (MAX_EXP): Likewise.
2564         * tests/test-fmodl.c (MAX_EXP): Likewise.
2565
2566 2012-03-04  Bruno Haible  <bruno@clisp.org>
2567
2568         fmod, fmodl: Fix computation for large quotients x / y.
2569         * lib/fmod.c: Completely rewritten.
2570         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
2571         USE_LONG_DOUBLE.
2572         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
2573         isnand. Remove fma.
2574         * modules/fmodl (Files): Add lib/fmod.c.
2575         (Depends-on): Add float, isfinite, signbit, fabsl,
2576         frexpl, ldexpl, isnanl. Remove fma.
2577         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
2578         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
2579
2580 2012-03-03  Bruno Haible  <bruno@clisp.org>
2581
2582         fmod* tests: More tests.
2583         * tests/test-fmod.h: New file.
2584         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
2585         (main): Invoke test_function.
2586         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
2587         (main): Invoke test_function.
2588         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
2589         (main): Invoke test_function.
2590         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
2591         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
2592         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
2593         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
2594         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
2595         (Depends-on): Add 'float'.
2596         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
2597
2598 2012-03-03  Bruno Haible  <bruno@clisp.org>
2599
2600         rint* tests: More tests.
2601         * tests/test-rint.h: New file, partially extracted from
2602         tests/test-rintl.c.
2603         * tests/test-rint.c: Include test-rint.h.
2604         (main): Invoke test_function.
2605         * tests/test-rintf.c: Include test-rint.h.
2606         (main): Invoke test_function.
2607         * tests/test-rintl.c: Include test-rint.h.
2608         (main): Invoke test_function.
2609         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
2610         (Makefile.am): Add randomd.c to test_rint_SOURCES.
2611         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
2612         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
2613         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
2614         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
2615
2616 2012-03-03  Bruno Haible  <bruno@clisp.org>
2617
2618         modf* tests: More tests.
2619         * tests/test-modf.h: New file.
2620         * tests/test-modf.c: Include <float.h> and test-modf.h.
2621         (main): Invoke test_function.
2622         * tests/test-modff.c: Include <float.h> and test-modf.h.
2623         (main): Invoke test_function.
2624         * tests/test-modfl.c: Include <float.h> and test-modf.h.
2625         (main): Invoke test_function.
2626         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
2627         (Makefile.am): Add randomd.c to test_modf_SOURCES.
2628         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
2629         (Makefile.am): Add randomf.c to test_modff_SOURCES.
2630         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
2631         (Depends-on): Add 'float'.
2632         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
2633
2634 2012-03-03  Bruno Haible  <bruno@clisp.org>
2635
2636         fabs* tests: More tests.
2637         * tests/test-fabs.h: New file, partially extracted from
2638         tests/test-fabsl.c.
2639         * tests/test-fabs.c (RANDOM): New macro.
2640         * tests/test-fabsf.c (RANDOM): New macro.
2641         * tests/test-fabsl.c (RANDOM): New macro.
2642         * modules/fabs-tests (Files): Add tests/randomd.c.
2643         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
2644         * modules/fabsf-tests (Files): Add tests/randomf.c.
2645         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
2646         * modules/fabsl-tests (Files): Add tests/randoml.c.
2647         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
2648
2649 2012-03-03  Bruno Haible  <bruno@clisp.org>
2650
2651         ldexp* tests: More tests.
2652         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
2653         * tests/test-ldexp.c (RANDOM): New macro.
2654         * tests/test-ldexpf.c (RANDOM): New macro.
2655         * tests/test-ldexpl.c (RANDOM): New macro.
2656         * modules/ldexp-tests (Files): Add tests/randomd.c.
2657         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
2658         * modules/ldexpf-tests (Files): Add tests/randomf.c.
2659         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
2660         * modules/ldexpl-tests (Files): Add tests/randoml.c.
2661         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
2662
2663 2012-03-03  Bruno Haible  <bruno@clisp.org>
2664
2665         frexp* tests: More tests.
2666         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
2667         * tests/test-frexp.c (RANDOM): New macro.
2668         * tests/test-frexpf.c (RANDOM): New macro.
2669         * tests/test-frexpl.c (RANDOM): New macro.
2670         * modules/frexp-tests (Files): Add tests/randomd.c.
2671         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
2672         * modules/frexpf-tests (Files): Add tests/randomf.c.
2673         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
2674         * modules/frexpl-tests (Files): Add tests/randoml.c.
2675         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
2676
2677 2012-03-03  Bruno Haible  <bruno@clisp.org>
2678
2679         Support for pseudo-random numbers in tests.
2680         * tests/randomf.c: New file.
2681         * tests/randomd.c: New file.
2682         * tests/randoml.c: New file.
2683         * tests/macros.h (randomf, randomd, randoml): New declarations.
2684
2685 2012-03-03  Bruno Haible  <bruno@clisp.org>
2686
2687         frexp* tests: Refactor.
2688         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
2689         * tests/test-frexp.c: Include and use it.
2690         * tests/test-frexpf.c: Likewise.
2691         * tests/test-frexpl.c: Likewise.
2692         * modules/frexp-tests (Files): Add tests/test-frexp.h.
2693         * modules/frexpf-tests (Files): Likewise.
2694         * modules/frexpl-tests (Files): Likewise.
2695
2696 2012-03-02  Jim Meyering  <meyering@redhat.com>
2697
2698         maint: don't specify XZ_OPT=-9ev in dist-related rule
2699         Using xz's -9 option is warranted only if you have a very large
2700         tarball (see xz's documentation for the sizes vs. presets), and
2701         requires 64MiB of memory at decompression time.
2702         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
2703         Automake's default of just "-e" is fine.  Override on a
2704         per-package basis by setting XZ_OPT e.g., in cfg.mk.
2705
2706 2012-03-01  Eric Blake  <eblake@redhat.com>
2707
2708         maint.mk: allow announcement for non-gnulib project
2709         * maint.mk (announcement): Skip gnulib version if not used.
2710
2711 2012-03-01  Jim Meyering  <meyering@redhat.com>
2712
2713         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
2714         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
2715         envvar settings cannot interfere.  Otherwise, setting envvars like
2716         prohibit=foo require=bar, etc. would cause spurious test failures.
2717
2718 2012-03-01  Eric Blake  <eblake@redhat.com>
2719
2720         maint.mk: add per-line exclusions to prohibitions
2721         * maint.mk (_sc_search_regexp): Add $exclude parameter.
2722         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
2723         (sc_const_long_option): Use it.
2724
2725 2012-03-01  Bruno Haible  <bruno@clisp.org>
2726
2727         Tests for module 'expl-ieee'.
2728         * modules/expl-ieee-tests: New file.
2729         * tests/test-expl-ieee.c: New file.
2730
2731         New module 'expl-ieee'.
2732         * modules/expl-ieee: New file.
2733
2734         Tests for module 'exp-ieee'.
2735         * modules/exp-ieee-tests: New file.
2736         * tests/test-exp-ieee.c: New file.
2737
2738         New module 'exp-ieee'.
2739         * modules/exp-ieee: New file.
2740
2741         Tests for module 'expf-ieee'.
2742         * modules/expf-ieee-tests: New file.
2743         * tests/test-expf-ieee.c: New file.
2744         * tests/test-exp-ieee.h: New file.
2745
2746         New module 'expf-ieee'.
2747         * modules/expf-ieee: New file.
2748
2749 2012-02-29  Bruno Haible  <bruno@clisp.org>
2750
2751         cbrtl-ieee: Work around test failure on IRIX 6.5.
2752         * m4/cbrtl-ieee.m4: New file.
2753         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
2754         test whether cbrtl works with a minus zero argument. Replace it if not.
2755         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
2756         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
2757         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
2758         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
2759         (Depends-on): Update conditions.
2760         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
2761         m4/signbit.m4.
2762         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
2763         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
2764         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
2765
2766         Tests for module 'cbrtl-ieee'.
2767         * modules/cbrtl-ieee-tests: New file.
2768         * tests/test-cbrtl-ieee.c: New file.
2769
2770         New module 'cbrtl-ieee'.
2771         * modules/cbrtl-ieee: New file.
2772
2773         Tests for module 'cbrt-ieee'.
2774         * modules/cbrt-ieee-tests: New file.
2775         * tests/test-cbrt-ieee.c: New file.
2776
2777         New module 'cbrt-ieee'.
2778         * modules/cbrt-ieee: New file.
2779
2780         Tests for module 'cbrtf-ieee'.
2781         * modules/cbrtf-ieee-tests: New file.
2782         * tests/test-cbrtf-ieee.c: New file.
2783         * tests/test-cbrt-ieee.h: New file.
2784
2785         New module 'cbrtf-ieee'.
2786         * modules/cbrtf-ieee: New file.
2787
2788 2012-02-29  Bruno Haible  <bruno@clisp.org>
2789
2790         cbrtf: Work around bug in IRIX 6.5 system function.
2791         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
2792         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
2793         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
2794         work.
2795         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
2796         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
2797         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
2798         (Depends-on): Update conditions.
2799         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
2800
2801 2012-02-29  Bruno Haible  <bruno@clisp.org>
2802
2803         Tests for module 'cbrtl'.
2804         * modules/cbrtl-tests: New file.
2805         * tests/test-cbrtl.c: New file.
2806
2807         New module 'cbrtl'.
2808         * lib/math.in.h (cbrtl): New declaration.
2809         * lib/cbrtl.c: New file.
2810         * m4/cbrtl.m4: New file.
2811         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
2812         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
2813         HAVE_DECL_CBRTL.
2814         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
2815         HAVE_DECL_CBRTL.
2816         * modules/cbrtl: New file.
2817         * tests/test-math-c++.cc: Check the declaration of cbrtl.
2818         * doc/posix-functions/cbrtl.texi: Mention the new module.
2819
2820 2012-02-29  Bruno Haible  <bruno@clisp.org>
2821
2822         Tests for module 'cbrtf'.
2823         * modules/cbrtf-tests: New file.
2824         * tests/test-cbrtf.c: New file.
2825
2826         New module 'cbrtf'.
2827         * lib/math.in.h (cbrtf): New declaration.
2828         * lib/cbrtf.c: New file.
2829         * m4/cbrtf.m4: New file.
2830         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
2831         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
2832         HAVE_DECL_CBRTF.
2833         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
2834         HAVE_DECL_CBRTF.
2835         * modules/cbrtf: New file.
2836         * tests/test-math-c++.cc: Check the declaration of cbrtf.
2837         * doc/posix-functions/cbrtf.texi: Mention the new module.
2838
2839 2012-02-29  Bruno Haible  <bruno@clisp.org>
2840
2841         cbrt: Provide replacement on MSVC and Minix.
2842         * lib/math.in.h (cbrt): New declaration.
2843         * lib/cbrt.c: New file.
2844         * m4/cbrt.m4: New file.
2845         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
2846         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
2847         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
2848         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
2849         (Depends-on): Add dependencies.
2850         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
2851         * tests/test-math-c++.cc: Check the declaration of cbrt.
2852         * doc/posix-functions/cbrt.texi: Mention that the module provides a
2853         replacement.
2854
2855 2012-02-29  Bruno Haible  <bruno@clisp.org>
2856
2857         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
2858         * m4/hypotl-ieee.m4: New file.
2859         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
2860         test whether hypotl works with mixed NaN and Infinity arguments.
2861         Replace it if not.
2862         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
2863         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
2864         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
2865         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
2866         (Depends-on): Update conditions.
2867         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
2868         (Depends-on): Add hypot-ieee.
2869         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
2870         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
2871
2872         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
2873         * m4/hypotf-ieee.m4: New file.
2874         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
2875         test whether hypotf works with mixed NaN and Infinity arguments.
2876         Replace it if not.
2877         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
2878         (Depends-on): Add hypot-ieee.
2879         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
2880         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
2881
2882         hypot-ieee: Work around test failure on OSF/1 and native Windows.
2883         * lib/math.in.h (hypot): New declaration.
2884         * lib/hypot.c: New file.
2885         * m4/hypot-ieee.m4: New file.
2886         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
2887         whether hypot works with mixed NaN and Infinity arguments. Replace it
2888         if not.
2889         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
2890         REPLACE_HYPOT.
2891         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
2892         * modules/hypot (Files): Add lib/hypot.c.
2893         (Depends-on): Add dependencies.
2894         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
2895         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
2896         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
2897         * tests/test-math-c++.cc: Check the declaration of hypot.
2898         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
2899
2900         Tests for module 'hypotl-ieee'.
2901         * modules/hypotl-ieee-tests: New file.
2902         * tests/test-hypotl-ieee.c: New file.
2903
2904         New module 'hypotl-ieee'.
2905         * modules/hypotl-ieee: New file.
2906
2907         Tests for module 'hypot-ieee'.
2908         * modules/hypot-ieee-tests: New file.
2909         * tests/test-hypot-ieee.c: New file.
2910
2911         New module 'hypot-ieee'.
2912         * modules/hypot-ieee: New file.
2913
2914         Tests for module 'hypotf-ieee'.
2915         * modules/hypotf-ieee-tests: New file.
2916         * tests/test-hypotf-ieee.c: New file.
2917         * tests/test-hypot-ieee.h: New file.
2918
2919         New module 'hypotf-ieee'.
2920         * modules/hypotf-ieee: New file.
2921
2922 2012-02-29  Bruno Haible  <bruno@clisp.org>
2923
2924         Remove unused variables.
2925         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
2926         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2927         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
2928         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2929
2930 2012-02-29  Eric Blake  <eblake@redhat.com>
2931
2932         termios: fix pid_t always, not just for tcgetsid
2933         * doc/posix-headers/termios.texi (termios.h): Mention problem.
2934         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
2935         just when building tcgetsid.
2936
2937 2012-02-29  Bruno Haible  <bruno@clisp.org>
2938
2939         Tests for module 'hypotl'.
2940         * modules/hypotl-tests: New file.
2941         * tests/test-hypotl.c: New file.
2942
2943         New module 'hypotl'.
2944         * lib/math.in.h (hypotl): New declaration.
2945         * lib/hypotl.c: New file.
2946         * m4/hypotl.m4: New file.
2947         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2948         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
2949         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
2950         * modules/hypotl: New file.
2951         * tests/test-math-c++.cc: Check the hypotl declaration.
2952         * doc/posix-functions/hypotl.texi: Mention the new module.
2953
2954 2012-02-29  Eric Blake  <eblake@redhat.com>
2955
2956         tcgetsid: fix cygwin header bug
2957         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
2958
2959         docs: update cygwin progress
2960         * doc/posix-functions/llround.texi (llround): Added in cygwin
2961         1.7.8.
2962         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
2963         * doc/glibc-functions/program_invocation_name.texi
2964         (program_invocation_name): Likewise.
2965         * doc/glibc-functions/program_invocation_short_name.texi
2966         (program_invocation_short_name): Likewise.
2967         * doc/glibc-functions/madvise.texi (madvise): Likewise.
2968         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
2969         Likewise.
2970         * doc/posix-functions/pthread_spin_destroy.texi
2971         (pthread_spin_destroy): Added in cygwin 1.7.10.
2972         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
2973         Likewise.
2974         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
2975         Likewise.
2976         * doc/posix-functions/pthread_spin_trylock.texi
2977         (pthread_spin_trylock): Likewise.
2978         * doc/posix-functions/pthread_spin_unlock.texi
2979         (pthread_spin_unlock): Likewise.
2980         * doc/posix-functions/pthread_setschedprio.texi
2981         (pthread_setschedprio): Likewise.
2982         * doc/posix-functions/pthread_attr_getstack.texi
2983         (pthread_attr_getstack): Likewise.
2984         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
2985         (pthread_attr_getstackaddr): Likewise.
2986         * doc/glibc-functions/pthread_getattr_np.texi
2987         (pthread_getattr_np): Likewise.
2988         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
2989         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
2990         * doc/posix-functions/clock_settime.texi (clock_settime):
2991         Likewise.
2992         * doc/posix-functions/pthread_attr_getguardsize.texi
2993         (pthread_attr_getguardsize): Likewise.
2994         * doc/posix-functions/pthread_attr_setguardsize.texi
2995         (pthread_attr_setguardsize): Likewise.
2996         * doc/posix-functions/pthread_attr_setstack.texi
2997         (pthread_attr_setstack): Likewise.
2998         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
2999         (pthread_attr_setstackaddr): Likewise.
3000         * doc/posix-functions/clock_getcpuclockid.texi
3001         (clock_getcpuclockid): Likewise.
3002         * doc/posix-functions/pthread_getcpuclockid.texi
3003         (pthread_getcpuclockid): Likewise.
3004         * doc/glibc-functions/error.texi (error): Likewise.
3005         * doc/glibc-functions/error_at_line.texi (error_at_line):
3006         Likewise.
3007         * doc/glibc-functions/error_message_count.texi
3008         (error_message_count): Likewise.
3009         * doc/glibc-functions/error_one_per_line.texi
3010         (error_one_per_line): Likewise.
3011         * doc/glibc-functions/error_print_progname.texi
3012         (error_print_progname): Likewise.
3013         * doc/posix-functions/pthread_condattr_getclock.texi
3014         (pthread_condattr_getclock): Likewise.
3015         * doc/posix-functions/pthread_condattr_setclock.texi
3016         (pthread_condattr_setclock): Likewise.
3017         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
3018         Likewise.
3019         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
3020         * doc/glibc-functions/getpt.texi (getpt): Likewise.
3021         * doc/glibc-functions/get_current_dir_name.texi
3022         (get_current_dir_name): Likewise.
3023         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
3024         Likewise.
3025         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
3026         wrong return type.
3027         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
3028         1.7.11.
3029
3030 2012-02-29  Bruno Haible  <bruno@clisp.org>
3031
3032         Tests for module 'hypotf'.
3033         * modules/hypotf-tests: New file.
3034         * tests/test-hypotf.c: New file.
3035
3036         New module 'hypotf'.
3037         * lib/math.in.h (hypotf): New declaration.
3038         * lib/hypotf.c: New file.
3039         * m4/hypotf.m4: New file.
3040         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
3041         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
3042         REPLACE_HYPOTF.
3043         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
3044         REPLACE_HYPOTF.
3045         * modules/hypotf: New file.
3046         * tests/test-math-c++.cc: Check the hypotf declaration.
3047         * doc/posix-functions/hypotf.texi: Mention the new module.
3048
3049         hypot: Prepare for hypotf module.
3050         * m4/hypot.m4: New file.
3051         * modules/hypot (Files): Add m4/hypot.m4.
3052         (configure.ac): Invoke gl_FUNC_HYPOT.
3053
3054 2012-02-29  Bruno Haible  <bruno@clisp.org>
3055
3056         hypot tests: More tests.
3057         * tests/test-hypot.c: Include <float.h>.
3058         (main): Add tests about overflow and underflow.
3059
3060 2012-02-29  Bruno Haible  <bruno@clisp.org>
3061
3062         math code: Add comments.
3063         * lib/acosl.c: Add comment about related glibc source files.
3064         * lib/asinl.c: Likewise.
3065         * lib/atanl.c: Likewise.
3066         * lib/expl.c: Likewise.
3067         * lib/logl.c: Likewise.
3068         * lib/sincosl.c: Likewise.
3069         * lib/sinl.c: Likewise.
3070         * lib/tanl.c: Likewise.
3071         * lib/trigl.c: Likewise.
3072         * lib/cosl.c: Likewise. Fix comments.
3073
3074 2012-02-28  Bruno Haible  <bruno@clisp.org>
3075
3076         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
3077         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
3078         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
3079         HUGE_VALL are defined.
3080         (numeric_equald): Renamed from numeric_equal.
3081         (numeric_equalf, numeric_equall): New functions.
3082         (main): Check also HUGE_VALF, HUGE_VALL.
3083         * modules/math-tests (Files): Add tests/macros.h.
3084         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
3085         HUGE_VALL.
3086
3087 2012-02-28  Bruno Haible  <bruno@clisp.org>
3088
3089         doc: Move ISO C11 feature notes into POSIX chapters.
3090         * doc/posix-functions/aligned_alloc.texi: Renamed from
3091         doc/glibc-functions/aligned_alloc.texi.
3092         * doc/posix-functions/quick_exit.texi: Renamed from
3093         doc/glibc-functions/quick_exit.texi.
3094         * doc/posix-headers/uchar.texi: Renamed from
3095         doc/glibc-headers/uchar.texi.
3096         * doc/posix-functions/c16rtomb.texi: Renamed from
3097         doc/glibc-functions/c16rtomb.texi.
3098         * doc/posix-functions/c32rtomb.texi: Renamed from
3099         doc/glibc-functions/c32rtomb.texi.
3100         * doc/posix-functions/mbrtoc16.texi: Renamed from
3101         doc/glibc-functions/mbrtoc16.texi.
3102         * doc/posix-functions/mbrtoc32.texi: Renamed from
3103         doc/glibc-functions/mbrtoc32.texi.
3104         * doc/gnulib.texi: Update.
3105         (Glibc uchar.h): Remove section.
3106         Suggested by Eric Blake.
3107
3108 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
3109
3110         stdnoreturn: port to MSVC better
3111         MSVC standard headers use __declspec(noreturn), so #define noreturn
3112         to empty on that platform.  Reported by Bruno Haible in
3113         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
3114         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
3115         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
3116
3117 2012-02-28  Bruno Haible  <bruno@clisp.org>
3118
3119         doc: Mention new glibc headers and functions.
3120         * doc/glibc-headers/uchar.texi: New file.
3121         * doc/glibc-functions/aligned_alloc.texi: New file.
3122         * doc/glibc-functions/c16rtomb.texi: New file.
3123         * doc/glibc-functions/c32rtomb.texi: New file.
3124         * doc/glibc-functions/clock_adjtime.texi: New file.
3125         * doc/glibc-functions/fanotify_init.texi: New file.
3126         * doc/glibc-functions/fanotify_mark.texi: New file.
3127         * doc/glibc-functions/inet6_opt_append.texi: New file.
3128         * doc/glibc-functions/inet6_opt_find.texi: New file.
3129         * doc/glibc-functions/inet6_opt_finish.texi: New file.
3130         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
3131         * doc/glibc-functions/inet6_opt_init.texi: New file.
3132         * doc/glibc-functions/inet6_opt_next.texi: New file.
3133         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
3134         * doc/glibc-functions/inet6_rth_add.texi: New file.
3135         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
3136         * doc/glibc-functions/inet6_rth_init.texi: New file.
3137         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
3138         * doc/glibc-functions/inet6_rth_segments.texi: New file.
3139         * doc/glibc-functions/inet6_rth_space.texi: New file.
3140         * doc/glibc-functions/login.texi: New file.
3141         * doc/glibc-functions/mbrtoc16.texi: New file.
3142         * doc/glibc-functions/mbrtoc32.texi: New file.
3143         * doc/glibc-functions/name_to_handle_at.texi: New file.
3144         * doc/glibc-functions/ntp_gettimex.texi: New file.
3145         * doc/glibc-functions/open_by_handle_at.texi: New file.
3146         * doc/glibc-functions/prlimit.texi: New file.
3147         * doc/glibc-functions/process_vm_readv.texi: New file.
3148         * doc/glibc-functions/process_vm_writev.texi: New file.
3149         * doc/glibc-functions/recvmmsg.texi: New file.
3150         * doc/glibc-functions/scandirat.texi: New file.
3151         * doc/glibc-functions/sendmmsg.texi: New file.
3152         * doc/glibc-functions/setns.texi: New file.
3153         * doc/glibc-functions/timespec_get.texi: New file.
3154         * doc/gnulib.texi: Include them.
3155         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
3156         sections.
3157         Reported by Eric Blake.
3158
3159 2012-02-28  Bruno Haible  <bruno@clisp.org>
3160
3161         Avoid compilation errors with MSVC option -fp:strict.
3162         * lib/floor.c: Use MSVC specific pragma fenv_access.
3163         * lib/ceil.c: Likewise.
3164         * lib/trunc.c: Likewise.
3165         * lib/round.c: Likewise.
3166         * lib/rint.c: Likewise.
3167         * lib/fma.c: Likewise.
3168         * lib/integer_length.c: Likewise.
3169         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3170         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3171         * tests/test-floor2.c: Likewise.
3172         * tests/test-floorf2.c: Likewise.
3173         * tests/test-ceil2.c: Likewise.
3174         * tests/test-ceilf2.c: Likewise.
3175         * tests/test-trunc2.c: Likewise.
3176         * tests/test-truncf2.c: Likewise.
3177         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3178
3179 2012-02-27  Bruno Haible  <bruno@clisp.org>
3180
3181         Tests for module 'sqrtl-ieee'.
3182         * modules/sqrtl-ieee-tests: New file.
3183         * tests/test-sqrtl-ieee.c: New file.
3184
3185         New module 'sqrtl-ieee'.
3186         * modules/sqrtl-ieee: New file.
3187
3188         Tests for module 'sqrt-ieee'.
3189         * modules/sqrt-ieee-tests: New file.
3190         * tests/test-sqrt-ieee.c: New file.
3191
3192         New module 'sqrt-ieee'.
3193         * modules/sqrt-ieee: New file.
3194
3195         Tests for module 'sqrtf-ieee'.
3196         * modules/sqrtf-ieee-tests: New file.
3197         * tests/test-sqrtf-ieee.c: New file.
3198         * tests/test-sqrt-ieee.h: New file.
3199
3200         New module 'sqrtf-ieee'.
3201         * modules/sqrtf-ieee: New file.
3202
3203 2012-02-27  Bruno Haible  <bruno@clisp.org>
3204
3205         remainderl-ieee: Work around test failure on OSF/1.
3206         * m4/remainderl-ieee.m4: New file.
3207         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
3208         present, test whether remainderl works with a zero second argument.
3209         Replace it if not.
3210         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
3211         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
3212         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
3213         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
3214         (Depends-on): Update conditions.
3215         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
3216         (Depends-on): Add remainder-ieee.
3217         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
3218         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
3219         module.
3220
3221         remainderf-ieee: Work around test failure on OSF/1.
3222         * m4/remainderf-ieee.m4: New file.
3223         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
3224         present, test whether remainderf works with a zero second argument.
3225         Replace it if not.
3226         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
3227         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
3228         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
3229         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
3230         (Depends-on): Update conditions.
3231         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
3232         (Depends-on): Add remainder-ieee.
3233         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
3234         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
3235         module.
3236
3237         remainder-ieee: Work around test failure on OSF/1.
3238         * m4/remainder-ieee.m4: New file.
3239         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
3240         present, test whether remainder works with a zero second argument.
3241         Replace it if not.
3242         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
3243         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
3244         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
3245         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
3246         (Depends-on): Update dependencies.
3247         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
3248         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
3249         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
3250
3251         Tests for module 'remainderl-ieee'.
3252         * modules/remainderl-ieee-tests: New file.
3253         * tests/test-remainderl-ieee.c: New file.
3254
3255         New module 'remainderl-ieee'.
3256         * modules/remainderl-ieee: New file.
3257
3258         Tests for module 'remainder-ieee'.
3259         * modules/remainder-ieee-tests: New file.
3260         * tests/test-remainder-ieee.c: New file.
3261
3262         New module 'remainder-ieee'.
3263         * modules/remainder-ieee: New file.
3264
3265         Tests for module 'remainderf-ieee'.
3266         * modules/remainderf-ieee-tests: New file.
3267         * tests/test-remainderf-ieee.c: New file.
3268         * tests/test-remainder-ieee.h: New file.
3269
3270         New module 'remainderf-ieee'.
3271         * modules/remainderf-ieee: New file.
3272
3273 2012-02-27  Bruno Haible  <bruno@clisp.org>
3274
3275         modff, modfl: Fix configure syntax error.
3276         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
3277         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3278
3279 2012-02-27  Bruno Haible  <bruno@clisp.org>
3280
3281         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
3282         * m4/fmodl-ieee.m4: New file.
3283         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
3284         whether fmodl works with zero arguments. Replace it if not.
3285         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
3286         (Depends-on): Add fmod-ieee.
3287         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
3288         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
3289
3290         fmodf-ieee: Work around test failure on OSF/1.
3291         * m4/fmodf-ieee.m4: New file.
3292         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
3293         whether fmodf works with zero arguments. Replace it if not.
3294         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
3295         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
3296         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
3297         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
3298         (Depends-on): Update dependencies.
3299         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
3300         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
3301         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
3302
3303         fmodf-ieee: Work around test failure on MSVC 9.
3304         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
3305         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
3306
3307         fmod-ieee: Work around test failures on OSF/1, mingw.
3308         * m4/fmod-ieee.m4: New file.
3309         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
3310         whether fmod works with zero arguments. Replace it if not.
3311         * lib/math.in.h (fmod): New declaration.
3312         * lib/fmod.c: New file.
3313         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
3314         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
3315         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
3316         * modules/fmod (Files): Add lib/fmod.c.
3317         (Depends-on): Add math, isinf, trunc, fma.
3318         (configure.ac): Arrange to compile lib/fmod.c if needed.
3319         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
3320         m4/signbit.m4.
3321         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
3322         * tests/test-math-c++.cc: Check the declaration of fmod.
3323         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
3324
3325         fmodl-ieee: Fix test failures.
3326         * lib/fmodl.c (fmodl): Treat Inf specially.
3327         * modules/fmodl (Depends-on): Add isinf.
3328
3329         Tests for module 'fmodl-ieee'.
3330         * modules/fmodl-ieee-tests: New file.
3331         * tests/test-fmodl-ieee.c: New file.
3332
3333         New module 'fmodl-ieee'.
3334         * modules/fmodl-ieee: New file.
3335
3336         Tests for module 'fmod-ieee'.
3337         * modules/fmod-ieee-tests: New file.
3338         * tests/test-fmod-ieee.c: New file.
3339
3340         New module 'fmod-ieee'.
3341         * modules/fmod-ieee: New file.
3342
3343         Tests for module 'fmodf-ieee'.
3344         * modules/fmodf-ieee-tests: New file.
3345         * tests/test-fmodf-ieee.c: New file.
3346         * tests/test-fmod-ieee.h: New file.
3347
3348         New module 'fmodf-ieee'.
3349         * modules/fmodf-ieee: New file.
3350
3351 2012-02-27  Bruno Haible  <bruno@clisp.org>
3352
3353         Tests for module 'rintl-ieee'.
3354         * modules/rintl-ieee-tests: New file.
3355         * tests/test-rintl-ieee.c: New file.
3356
3357         New module 'rintl-ieee'.
3358         * modules/rintl-ieee: New file.
3359
3360         Tests for module 'rint-ieee'.
3361         * modules/rint-ieee-tests: New file.
3362         * tests/test-rint-ieee.c: New file.
3363
3364         New module 'rint-ieee'.
3365         * modules/rint-ieee: New file.
3366
3367         Tests for module 'rintf-ieee'.
3368         * modules/rintf-ieee-tests: New file.
3369         * tests/test-rintf-ieee.c: New file.
3370         * tests/test-rint-ieee.h: New file.
3371
3372         New module 'rintf-ieee'.
3373         * modules/rintf-ieee: New file.
3374
3375 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
3376
3377         regex: re_search etc. should return -2 when memory exhausted
3378         This bug was uncovered when testing 'grep'.  Without the fix,
3379         re_search and friends return -1 when memory is exhausted, but -1
3380         means no match, and this causes grep to falsely report no-match
3381         instead of memory-exhaustion.  See
3382         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
3383         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
3384         trouble; this can occur if re_search_internal ran out of memory.
3385
3386 2012-02-26  Bruno Haible  <bruno@clisp.org>
3387
3388         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
3389         * m4/modfl-ieee.m4: New file.
3390         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
3391         whether modfl works with Inf. Replace it if not.
3392         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
3393         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
3394         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
3395         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
3396         (Depends-on): Update dependencies.
3397         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
3398         m4/signbit.m4.
3399         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
3400         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
3401
3402         modfl-ieee: Fix dependencies.
3403         * modules/modfl-ieee (Depends-on): Add modf-ieee.
3404
3405         modfl-ieee: Fix test failures.
3406         * lib/modfl.c (modfl): Treat NaN and Inf specially.
3407         * modules/modfl (Depends-on): Add isfinite, isinf.
3408
3409         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
3410         * m4/modff-ieee.m4: New file.
3411         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
3412         whether modff works with NaN and Inf. Replace it if not.
3413         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
3414         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
3415         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
3416         * modules/modff (configure.ac): Consider REPLACE_MODFF.
3417         (Depends-on): Update dependencies.
3418         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
3419         m4/signbit.m4.
3420         (Depends-on): Add modf-ieee.
3421         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
3422         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
3423
3424         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
3425         * m4/modf-ieee.m4: New file.
3426         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
3427         whether modf works with NaN and Inf. Replace it if not.
3428         * lib/math.in.h (modf): New declaration.
3429         * lib/modf.c: New file.
3430         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
3431         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
3432         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
3433         * modules/modf (Files): Add lib/modf.c.
3434         (Depends-on): Add math, isfinite, trunc, isinf.
3435         (configure.ac): Addrange to compile lib/modf.c if needed.
3436         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
3437         m4/signbit.m4.
3438         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
3439         * tests/test-math-c++.cc: Check the declaration of modf.
3440         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
3441
3442         Tests for module 'modfl-ieee'.
3443         * modules/modfl-ieee-tests: New file.
3444         * tests/test-modfl-ieee.c: New file.
3445
3446         New module 'modfl-ieee'.
3447         * modules/modfl-ieee: New file.
3448
3449         Tests for module 'modf-ieee'.
3450         * modules/modf-ieee-tests: New file.
3451         * tests/test-modf-ieee.c: New file.
3452
3453         New module 'modf-ieee'.
3454         * modules/modf-ieee: New file.
3455
3456         Tests for module 'modff-ieee'.
3457         * modules/modff-ieee-tests: New file.
3458         * tests/test-modff-ieee.c: New file.
3459         * tests/test-modf-ieee.h: New file.
3460
3461         New module 'modff-ieee'.
3462         * modules/modff-ieee: New file.
3463
3464 2012-02-26  Bruno Haible  <bruno@clisp.org>
3465
3466         Tests for module 'fabsl-ieee'.
3467         * modules/fabsl-ieee-tests: New file.
3468         * tests/test-fabsl-ieee.c: New file.
3469
3470         New module 'fabsl-ieee'.
3471         * modules/fabsl-ieee: New file.
3472
3473         Tests for module 'fabs-ieee'.
3474         * modules/fabs-ieee-tests: New file.
3475         * tests/test-fabs-ieee.c: New file.
3476
3477         New module 'fabs-ieee'.
3478         * modules/fabs-ieee: New file.
3479
3480         Tests for module 'fabsf-ieee'.
3481         * modules/fabsf-ieee-tests: New file.
3482         * tests/test-fabsf-ieee.c: New file.
3483         * tests/test-fabs-ieee.h: New file.
3484
3485         New module 'fabsf-ieee'.
3486         * modules/fabsf-ieee: New file.
3487
3488 2012-02-26  Bruno Haible  <bruno@clisp.org>
3489
3490         Tests for module 'fmal-ieee'.
3491         * modules/fmal-ieee-tests: New file.
3492         * tests/test-fmal-ieee.c: New file.
3493
3494         New module 'fmal-ieee'.
3495         * modules/fmal-ieee: New file.
3496
3497         Tests for module 'fma-ieee'.
3498         * modules/fma-ieee-tests: New file.
3499         * tests/test-fma-ieee.c: New file.
3500
3501         New module 'fma-ieee'.
3502         * modules/fma-ieee: New file.
3503
3504         Tests for module 'fmaf-ieee'.
3505         * modules/fmaf-ieee-tests: New file.
3506         * tests/test-fmaf-ieee.c: New file.
3507         * tests/test-fma-ieee.h: New file.
3508
3509         New module 'fmaf-ieee'.
3510         * modules/fmaf-ieee: New file.
3511
3512 2012-02-26  Bruno Haible  <bruno@clisp.org>
3513
3514         Tests for module 'ldexpl-ieee'.
3515         * modules/ldexpl-ieee-tests: New file.
3516         * tests/test-ldexpl-ieee.c: New file.
3517
3518         New module 'ldexpl-ieee'.
3519         * modules/ldexpl-ieee: New file.
3520
3521         Tests for module 'ldexp-ieee'.
3522         * modules/ldexp-ieee-tests: New file.
3523         * tests/test-ldexp-ieee.c: New file.
3524
3525         New module 'ldexp-ieee'.
3526         * modules/ldexp-ieee: New file.
3527
3528         Tests for module 'ldexpf-ieee'.
3529         * modules/ldexpf-ieee-tests: New file.
3530         * tests/test-ldexpf-ieee.c: New file.
3531         * tests/test-ldexp-ieee.h: New file.
3532
3533         New module 'ldexpf-ieee'.
3534         * modules/ldexpf-ieee: New file.
3535
3536 2012-02-26  Bruno Haible  <bruno@clisp.org>
3537
3538         Refactor frexp*-ieee tests.
3539         * tests/test-frexp-ieee.h: New file.
3540         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
3541         (main): Just call test_function.
3542         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
3543         (main): Just call test_function.
3544         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
3545         (main): Just call test_function.
3546         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
3547         * modules/frexp-ieee-tests (Files): Likewise.
3548         * modules/frexpl-ieee-tests (Files): Likewise.
3549
3550         Tests for module 'frexpl-ieee'.
3551         * modules/frexpl-ieee-tests: New file.
3552         * tests/test-frexpl-ieee.c: New file.
3553
3554         New module 'frexpl-ieee'.
3555         * modules/frexpl-ieee: New file.
3556
3557         Tests for module 'frexp-ieee'.
3558         * modules/frexp-ieee-tests: New file.
3559         * tests/test-frexp-ieee.c: New file.
3560
3561         New module 'frexp-ieee'.
3562         * modules/frexp-ieee: New file.
3563
3564         Tests for module 'frexpf-ieee'.
3565         * modules/frexpf-ieee-tests: New file.
3566         * tests/test-frexpf-ieee.c: New file.
3567
3568         New module 'frexpf-ieee'.
3569         * modules/frexpf-ieee: New file.
3570
3571 2012-02-26  Bruno Haible  <bruno@clisp.org>
3572
3573         roundl-ieee tests: More tests.
3574         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3575         (main): Add tests for [MX] shaded specification in POSIX.
3576         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3577         (Depends-on): Add isnanl-nolibm.
3578
3579         round-ieee tests: More tests.
3580         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3581         (main): Add tests for [MX] shaded specification in POSIX.
3582         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3583         (Depends-on): Add isnand-nolibm.
3584
3585         roundf-ieee tests: More tests.
3586         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3587         (main): Add tests for [MX] shaded specification in POSIX.
3588         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3589         (Depends-on): Add isnanf-nolibm.
3590
3591         truncl-ieee tests: More tests.
3592         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3593         (main): Add tests for [MX] shaded specification in POSIX.
3594         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3595         (Depends-on): Add isnanl-nolibm.
3596
3597         trunc-ieee tests: More tests.
3598         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3599         (main): Add tests for [MX] shaded specification in POSIX.
3600         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3601         (Depends-on): Add isnand-nolibm.
3602
3603         truncf-ieee tests: More tests.
3604         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3605         (main): Add tests for [MX] shaded specification in POSIX.
3606         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3607         (Depends-on): Add isnanf-nolibm.
3608
3609         ceill-ieee tests: More tests.
3610         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3611         (main): Add tests for [MX] shaded specification in POSIX.
3612         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3613         (Depends-on): Add isnanl-nolibm.
3614
3615         ceil-ieee tests: More tests.
3616         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3617         (main): Add tests for [MX] shaded specification in POSIX.
3618         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3619         (Depends-on): Add isnand-nolibm.
3620
3621         ceilf-ieee tests: More tests.
3622         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3623         (main): Add tests for [MX] shaded specification in POSIX.
3624         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3625         (Depends-on): Add isnanf-nolibm.
3626
3627         floorl-ieee tests: More tests.
3628         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3629         (main): Add tests for [MX] shaded specification in POSIX.
3630         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3631         (Depends-on): Add isnanl-nolibm.
3632
3633         floor-ieee tests: More tests.
3634         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3635         (main): Add tests for [MX] shaded specification in POSIX.
3636         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3637         (Depends-on): Add isnand-nolibm.
3638
3639         floorf-ieee tests: More tests.
3640         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3641         (main): Add tests for [MX] shaded specification in POSIX.
3642         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3643         (Depends-on): Add isnanf-nolibm.
3644
3645 2012-02-26  Bruno Haible  <bruno@clisp.org>
3646
3647         fpieee: More comments.
3648         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
3649
3650 2012-02-25  Bruno Haible  <bruno@clisp.org>
3651
3652         Tests for module 'log10l'.
3653         * modules/log10l-tests: New file.
3654         * tests/test-log10l.c: New file.
3655         * tests/test-math-c++.cc: Check the declaration of log10l.
3656
3657         New module 'log10l'.
3658         * lib/math.in.h (log10l): New declaration.
3659         * lib/log10l.c: New file.
3660         * m4/log10l.m4: New file.
3661         * modules/log10l: New file.
3662         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
3663         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
3664         HAVE_DECL_LOG10L.
3665         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
3666         HAVE_DECL_LOG10L.
3667         * doc/posix-functions/log10l.texi: Mention the new module.
3668
3669 2012-02-25  Bruno Haible  <bruno@clisp.org>
3670
3671         fmodl, remainder*: Avoid wrong results due to rounding errors.
3672         * lib/fmodl.c (fmodl): Correct the result if it is not within the
3673         expected bounds.
3674         * lib/remainderf.c (remainderf): Likewise.
3675         * lib/remainder.c (remainder): Likewise.
3676         * lib/remainderl.c (remainderl): Likewise.
3677
3678 2012-02-25  Bruno Haible  <bruno@clisp.org>
3679
3680         Tests for module 'remainderl'.
3681         * modules/remainderl-tests: New file.
3682         * tests/test-remainderl.c: New file.
3683         * tests/test-math-c++.cc: Check the declaration of remainderl.
3684
3685         New module 'remainderl'.
3686         * lib/math.in.h (remainderl): New declaration.
3687         * lib/remainderl.c: New file.
3688         * m4/remainderl.m4: New file.
3689         * modules/remainderl: New file.
3690         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
3691         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
3692         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
3693         HAVE_REMAINDERL.
3694         * doc/posix-functions/remainderl.texi: Mention the new module.
3695
3696 2012-02-25  Bruno Haible  <bruno@clisp.org>
3697
3698         Tests for module 'remainderf'.
3699         * modules/remainderf-tests: New file.
3700         * tests/test-remainderf.c: New file.
3701         * tests/test-math-c++.cc: Check the declaration of remainderf.
3702
3703         New module 'remainderf'.
3704         * lib/math.in.h (remainderf): New declaration.
3705         * lib/remainderf.c: New file.
3706         * m4/remainderf.m4: New file.
3707         * modules/remainderf: New file.
3708         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
3709         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
3710         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
3711         HAVE_REMAINDERF.
3712         * doc/posix-functions/remainderf.texi: Mention the new module.
3713
3714 2012-02-25  Bruno Haible  <bruno@clisp.org>
3715
3716         remainder: Support for MSVC.
3717         * lib/math.in.h (remainder): New declaration.
3718         * lib/remainder.c: New file.
3719         * m4/remainder.m4: New file.
3720         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
3721         (Depends-on): Add math, round, fma.
3722         (configure.ac): Use results of gl_FUNC_REMAINDER.
3723         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
3724         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
3725         HAVE_DECL_REMAINDER.
3726         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
3727         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
3728         * tests/test-math-c++.cc: Check the declaration of remainder.
3729         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
3730         problems are fixed.
3731
3732 2012-02-25  Bruno Haible  <bruno@clisp.org>
3733
3734         Tests for module 'fmodl'.
3735         * modules/fmodl-tests: New file.
3736         * tests/test-fmodl.c: New file.
3737         * tests/test-math-c++.cc: Check the declaration of fmodl.
3738
3739         New module 'fmodl'.
3740         * lib/math.in.h (fmodl): New declaration.
3741         * lib/fmodl.c: New file.
3742         * m4/fmodl.m4: New file.
3743         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
3744         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
3745         REPLACE_FMODL.
3746         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
3747         REPLACE_FMODL.
3748         * modules/fmodl: New file.
3749         * doc/posix-functions/fmodl.texi: Mention the new module.
3750
3751 2012-02-25  Bruno Haible  <bruno@clisp.org>
3752
3753         Tests for module 'modfl'.
3754         * modules/modfl-tests: New file.
3755         * tests/test-modfl.c: New file.
3756         * tests/test-math-c++.cc: Check the declaration of modfl.
3757
3758         New module 'modfl'.
3759         * lib/math.in.h (modfl): New declaration.
3760         * lib/modfl.c: New file.
3761         * m4/modfl.m4: New file.
3762         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
3763         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
3764         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
3765         * modules/modfl: New file.
3766         * doc/posix-functions/modfl.texi: Mention the new module.
3767
3768 2012-02-25  Bruno Haible  <bruno@clisp.org>
3769
3770         Tests for module 'fabsl'.
3771         * modules/fabsl-tests: New file.
3772         * tests/test-fabsl.c: New file.
3773         * tests/test-math-c++.cc: Check the declaration of fabsl.
3774
3775         New module 'fabsl'.
3776         * lib/math.in.h (fabsl): New declaration.
3777         * lib/fabsl.c: New file.
3778         * m4/fabsl.m4: New file.
3779         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
3780         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
3781         REPLACE_FABSL.
3782         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
3783         REPLACE_FABSL.
3784         * modules/fabsl: New file.
3785         * doc/posix-functions/fabsl.texi: Mention the new module.
3786
3787 2012-02-25  Bruno Haible  <bruno@clisp.org>
3788
3789         fabs tests: More tests.
3790         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
3791         (zero): New variable.
3792         (main): Add tests for signed zero.
3793         * modules/fabs-tests (Files): Add tests/minus-zero.h.
3794
3795         fabsf tests: More tests.
3796         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
3797         (zero): New variable.
3798         (main): Add tests for signed zero.
3799         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
3800
3801 2012-02-24  Bruno Haible  <bruno@clisp.org>
3802
3803         atanl: Provide function definition on MSVC.
3804         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
3805         function pointer.
3806         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
3807
3808 2012-02-24  Bruno Haible  <bruno@clisp.org>
3809
3810         acosl: Provide function definition on MSVC.
3811         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
3812         function pointer.
3813         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
3814
3815 2012-02-24  Bruno Haible  <bruno@clisp.org>
3816
3817         asinl: Provide function definition on MSVC.
3818         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
3819         function pointer.
3820         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
3821
3822 2012-02-24  Bruno Haible  <bruno@clisp.org>
3823
3824         tanl: Provide function definition on MSVC.
3825         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
3826         function pointer.
3827         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
3828
3829 2012-02-24  Bruno Haible  <bruno@clisp.org>
3830
3831         cosl: Provide function definition on MSVC.
3832         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
3833         function pointer.
3834         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
3835
3836 2012-02-24  Bruno Haible  <bruno@clisp.org>
3837
3838         sinl: Provide function definition on MSVC.
3839         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
3840         function pointer.
3841         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
3842
3843 2012-02-24  Bruno Haible  <bruno@clisp.org>
3844
3845         logl: Provide function definition on MSVC.
3846         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
3847         function pointer.
3848         * lib/math.in.h (logl): Undefine if it does not exist as a function.
3849
3850 2012-02-24  Bruno Haible  <bruno@clisp.org>
3851
3852         expl: Provide function definition on MSVC.
3853         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
3854         function pointer.
3855         * lib/math.in.h (expl): Undefine if it does not exist as a function.
3856
3857 2012-02-24  Bruno Haible  <bruno@clisp.org>
3858
3859         sqrtl: Provide function definition on MSVC.
3860         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
3861         a function pointer.
3862         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
3863
3864 2012-02-24  Bruno Haible  <bruno@clisp.org>
3865
3866         ceill: Provide function definition on MSVC.
3867         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
3868         used as a function pointer.
3869         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
3870
3871 2012-02-24  Bruno Haible  <bruno@clisp.org>
3872
3873         floorl: Provide function definition on MSVC.
3874         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
3875         used as a function pointer.
3876         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
3877
3878 2012-02-24  Bruno Haible  <bruno@clisp.org>
3879
3880         ceilf: Provide function definition on MSVC.
3881         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
3882         used as a function pointer.
3883         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
3884
3885 2012-02-24  Bruno Haible  <bruno@clisp.org>
3886
3887         floorf: Provide function definition on MSVC.
3888         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
3889         used as a function pointer.
3890         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
3891
3892 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3893
3894         stdnoreturn: new module
3895         This implements a replacement for C11's <stdnoreturn.h>.
3896         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
3897         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
3898         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
3899         * tests/test-stdnoreturn.c: New files.
3900
3901 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
3902
3903         regex: fix false multibyte matches in some regular expressions
3904         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
3905         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
3906         * lib/regex_internal.c (re_string_skip_chars):
3907         Fix miscomputation of remain_len that may cause incomplete
3908         multi-byte character and false match.
3909
3910 2012-02-24  Jim Meyering  <meyering@redhat.com>
3911
3912         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
3913         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
3914         uses with "==" *before* the call, e.g., 0 == strcmp (...)
3915         Remove now-unnecessary str''cmp obfuscation.
3916         Suggested by Akim Demaille.
3917
3918 2012-02-24  Bruno Haible  <bruno@clisp.org>
3919
3920         streq: Rename macro.
3921         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
3922         * NEWS: Mention the change.
3923         * lib/mbrtowc.c (mbrtowc): Update.
3924         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
3925         * lib/wcwidth.c (wcwidth): Update.
3926         Suggested by Akim Demaille and Jim Meyering.
3927
3928 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
3929
3930         regex: fix typo in definition of MIN
3931         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
3932         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
3933
3934 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3935             Bruno Haible  <bruno@clisp.org>
3936
3937         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
3938         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
3939         entries into a stack-allocated buffer directly.
3940         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
3941
3942 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3943             Bruno Haible  <bruno@clisp.org>
3944
3945         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
3946
3947          - There were several instances of this pattern:
3948
3949              for (;;) {
3950                n = acl (f, GETACLCNT, 0, NULL);
3951                [ allocate an array A of size N ]
3952                if (acl (f, GETACL, n, a) == n)
3953                  break;
3954              }
3955
3956            This loop might never terminate if some other process is constantly
3957            manipulating the file's ACL.  The loop should be rewritten to
3958            terminate.
3959
3960          - The acl (... GETACLNT ...) call is merely an optimization; its value
3961            is merely a hint as to how big to make the array.  A better
3962            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
3963            and just guess a reasonably-big size, growing the size and trying
3964            again if it's not large enough.  This guarantees termination, and
3965            saves a system call.
3966
3967         * lib/acl-internal.h: Include <limits.h>.
3968         (MIN, SIZE_MAX): New macros.
3969         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
3970         a stack-allocated buffer, and use malloc if it does not fit. Don't
3971         use GETACLCNT.
3972         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3973
3974 2012-02-19  Bruno Haible  <bruno@clisp.org>
3975
3976         acl: Fix endless loop on Solaris with vxfs.
3977         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
3978         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
3979         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3980         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
3981         * tests/test-sameacls.c (main)[Solaris]: Likewise.
3982         Reported by Bill Jones in
3983         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
3984
3985 2012-02-19  Bruno Haible  <bruno@clisp.org>
3986
3987         acl: Fix copy-acl test failure on Solaris 11 2011-11.
3988         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
3989         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
3990         that this function returns 0 in some more cases.
3991
3992 2012-02-19  Bruno Haible  <bruno@clisp.org>
3993
3994         acl: Update doc references.
3995         * doc/acl-resources.txt: Update links to Solaris documentation.
3996
3997 2012-02-19  Bruno Haible  <bruno@clisp.org>
3998
3999         Fix test failure in many locales on Solaris 11.
4000         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
4001         'tr' arguments.
4002         * tests/test-pipe-filter-ii1.c (main): Likewise.
4003         * build-aux/bootstrap (check_versions): Run 'tr' command with range
4004         expressions in the C locale.
4005         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
4006         * m4/host-os.m4 (gl_HOST_OS): Likewise.
4007
4008 2012-02-19  Bruno Haible  <bruno@clisp.org>
4009
4010         gnulib-tool: Improve usage message.
4011         * gnulib-tool (func_usage): Move doc of --help and --version to the
4012         section "Operation modes".
4013
4014 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
4015
4016         README-release: make it easier to execute commands
4017         * top/README-release: break commands out on to separate lines.
4018
4019 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
4020
4021         GNUmakefile: simplify detection of unconfigured trees
4022         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
4023         whether the tree make is being run from is already configured or
4024         not.  Related simplifications.
4025
4026 2012-02-13  Simon Josefsson  <simon@josefsson.org>
4027
4028         * gnulib-tool (func_usage): Document --help and --version.
4029
4030 2012-02-11  Jim Meyering  <meyering@redhat.com>
4031
4032         bootstrap: don't exit 0 upon gnulib-tool failure
4033         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
4034         its exit status, not 0.
4035
4036 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
4037
4038         README-release: various improvements
4039         * top/README-release: Give a command to push changes for the
4040         release.  Add "distcheck" to list of other pre-release checks.
4041         Fix instance of "make stable" which should be "make TYPE".
4042
4043 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
4044
4045         maint: replace FSF snail-mail addresses with URLs
4046         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
4047         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
4048         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
4049         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
4050         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
4051         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
4052         * lib/check-version.c, lib/check-version.h, lib/config.charset:
4053         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
4054         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
4055         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
4056         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
4057         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
4058         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
4059         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
4060         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
4061         * lib/glthread/thread.c, lib/glthread/thread.h:
4062         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
4063         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
4064         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
4065         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
4066         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
4067         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
4068         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
4069         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
4070         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
4071         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
4072         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
4073         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
4074         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
4075         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
4076         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
4077         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
4078         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
4079         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
4080         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
4081         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
4082         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
4083         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
4084         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
4085         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
4086         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
4087         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
4088         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
4089         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
4090         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
4091         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
4092         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
4093         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
4094         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
4095         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
4096         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
4097         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
4098         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
4099         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
4100         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
4101         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
4102         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
4103         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
4104         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
4105         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
4106         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
4107         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
4108         * tests/test-poll.c, tests/test-quotearg-simple.c:
4109         * tests/test-quotearg.c, tests/test-quotearg.h:
4110         * tests/test-round-ieee.c, tests/test-round1.c:
4111         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
4112         * tests/test-roundl-ieee.c, tests/test-roundl.c:
4113         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
4114         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
4115         * tests/test-strerror.c, tests/test-strerror_r.c:
4116         * tests/test-strsignal.c, tests/test-strverscmp.c:
4117         * tests/test-xmemdup0.c:
4118         Replace FSF snail mail addresses with URLs, as per GNU coding
4119         standards.  See glibc bug
4120         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
4121
4122 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
4123
4124         README-release: capitalize a word and split a line
4125         * top/README-release: Fix punctuation and spacing.
4126
4127 2012-02-08  Akim Demaille  <demaille@gostai.com>
4128
4129         fatal-signal: use C prototypes (with explicit void).
4130         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
4131         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
4132
4133 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
4134
4135         regex: spelling fix
4136         * lib/regexec.c: spelling fix
4137
4138         regex: rely on stdint.h for SIZE_MAX
4139         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
4140
4141 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
4142
4143         regex: merge glibc changes
4144
4145         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
4146         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
4147         (init_word_char): Work even if bitset words are not exactly 32 or
4148         64 bits wide.  Don't assume there are no padding bits.
4149         * lib/regex.c [_LIBC]: Do not include <config.h>.
4150         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
4151         and -Wtype-limits.
4152         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
4153         needless disagreement with glibc.  All uses changed.  Define it to
4154         1 only if _GNU_SOURCE, to match glibc.
4155         (_REG_RM_NAME): Remove; no longer needed, since the names in
4156         question are now all protected by __USE_GNU.
4157         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
4158         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
4159         * lib/regex_internal.h (MIN): New macro.
4160
4161         2012-01-03 Ulrich Drepper <drepper@gmail.com>
4162         * lib/regcomp.c (init_word_char): Optimize regex a bit.
4163
4164         2011-12-30 Jakub Jelinek <jakub@redhat.com>
4165         * lib/regex_internal.c (re_string_fetch_byte_case):
4166         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
4167         is miscompiled, and it turns out it is because of an incorrect
4168         attribute on re_string_fetch_byte_case.  Unlike
4169         re_string_peek_byte_case, this one is really not pure, it modifies
4170         memory (increments pstr->cur_idx), and with the pure attribute GCC
4171         assumed it doesn't and it cached the presumed value of
4172         regexp->cur_idx in a variable across the
4173          for (;; ++i)
4174            {
4175              if (i >= BRACKET_NAME_BUF_SIZE)
4176                return REG_EBRACK;
4177              if (token->type == OP_OPEN_CHAR_CLASS)
4178                ch = re_string_fetch_byte_case (regexp);
4179              else
4180                ch = re_string_fetch_byte (regexp);
4181              if (re_string_eoi(regexp))
4182                return REG_EBRACK;
4183              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
4184                break;
4185              elem->opr.name[i] = ch;
4186            }
4187
4188         2011-11-29 Andreas Schwab <schwab@redhat.com>
4189         * lib/regcomp.c (build_equiv_class):
4190         Fix access after end of search string in regex matcher.
4191
4192         2011-11-12 Ulrich Drepper <drepper@redhat.com>
4193         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
4194
4195         2011-10-12 Ulrich Drepper <drepper@redhat.com>
4196         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
4197
4198         2011-10-11 Ulrich Drepper <drepper@redhat.com>
4199         * lib/regcomp.c (parse_branch, parse_sub_exp):
4200         More regex memory leak fixes and tests.
4201         (parse_sub_exp, parse_bracket_exp):
4202         Fix memory leak for some invalid regular expressions.
4203
4204         2011-05-28 Ulrich Drepper <drepper@gmail.com>
4205         * lib/regex_internal.c, lib/regexec.c:
4206         Fix unnecessary overallocation due to incomplete character.  When
4207         incomplete characters are found at the end of a string the code
4208         ran amok and allocated lots of memory.  Stricter limits are now in
4209         place.
4210
4211         2011-05-20 Reuben Thomas <rrt@sc3d.org>
4212         * lib/regex.h: Update documentation.
4213
4214         2011-05-16 Aharon Robbins <arnold@skeeve.com>
4215         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
4216
4217         2010-05-05 Andreas Schwab <schwab@redhat.com>
4218         * lib/regexec.c (find_collation_sequence_value):
4219         Fix lookup of collation sequence value during regexp matching.
4220
4221         2010-01-22 Ulrich Drepper <drepper@redhat.com>
4222         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
4223
4224         2008-01-16 Ulrich Drepper <drepper@redhat.com>
4225         * lib/regex.h: Cleanup namespace.
4226
4227         2007-11-26 Ulrich Drepper <drepper@redhat.com>
4228         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
4229
4230         2007-08-26 Ulrich Drepper <drepper@redhat.com>
4231         * lib/regex_internal.h: Prevent some declarations and definitions
4232         to be seen when used in tests.
4233
4234         2005-05-06 Ulrich Drepper <drepper@redhat.com>
4235         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
4236         __libc_lock_* macros if not _LIBC.
4237         (struct re_dfa_t): Add lock.
4238
4239 2012-02-07  Eric Blake  <eblake@redhat.com>
4240
4241         maint.mk: also prohibit lower-case @var@
4242         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
4243         lower case, like @top_srcdir@.
4244
4245 2012-02-04  Eric Blake  <eblake@redhat.com>
4246
4247         canonicalize: avoid uninitialized memory use
4248         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
4249         random '/' left in dest.
4250         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
4251
4252 2012-02-04  Bruno Haible  <bruno@clisp.org>
4253
4254         isatty: Fix test failure of ptsname_r on native Windows.
4255         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
4256         and don't set errno.
4257         (isatty): Test first whether fd is valid. Set errno when returning 0.
4258
4259 2012-02-04  Bruno Haible  <bruno@clisp.org>
4260
4261         spawn-pipe tests: Fix a NULL program name in a diagnostic.
4262         * tests/test-spawn-pipe-main.c: Include progname.h.
4263         (main): Invoke set_program_name.
4264         * modules/spawn-pipe-tests (Depends-on): Add progname.
4265
4266         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
4267         * tests/test-nonblocking-socket-main.c: Include progname.h.
4268         (main): Invoke set_program_name.
4269         * modules/nonblocking-socket-tests (Depends-on): Add progname.
4270
4271         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
4272         * tests/test-nonblocking-pipe-main.c: Include progname.h.
4273         (main): Invoke set_program_name.
4274         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
4275
4276 2012-02-04  Eric Blake  <eblake@redhat.com>
4277
4278         canonicalize-lgpl: fix // handling
4279         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
4280
4281         canonicalize: fix // handling
4282         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
4283         /// to //, since only // is special.
4284
4285 2012-02-04  Bruno Haible  <bruno@clisp.org>
4286
4287         ioctl: Fix test failure on native Windows.
4288         * lib/ioctl.c: Include msvc-nothrow.h.
4289         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
4290
4291 2012-02-04  Bruno Haible  <bruno@clisp.org>
4292
4293         fsync: Avoid test failure on native Windows.
4294         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
4295         read-only.
4296
4297 2012-02-04  Bruno Haible  <bruno@clisp.org>
4298
4299         sys_select: Avoid syntax error on OpenBSD 5.0.
4300         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
4301         currently being included, just include the system's <sys/select.h>.
4302
4303 2012-02-04  Bruno Haible  <bruno@clisp.org>
4304
4305         sys_select: Avoid syntax error on OpenBSD 5.0.
4306         * lib/sys_select.in.h: Include <signal.h> only after the include_next
4307         <sys/select.h>, not before.
4308         Reported by Jiri B <jirib@devio.us>.
4309
4310 2012-02-04  Bruno Haible  <bruno@clisp.org>
4311
4312         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
4313         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
4314         global variables.
4315         * tests/test-get-rusage-data.c (main): Likewise.
4316         Reported by Jim Meyering.
4317
4318 2012-02-04  Bruno Haible  <bruno@clisp.org>
4319
4320         stdioext: Fix last commit.
4321         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
4322
4323 2012-02-03  Bruno Haible  <bruno@clisp.org>
4324
4325         stdioext: Add tentative support for Plan9.
4326         * lib/stdio-impl.h: Include <errno.h>.
4327         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
4328         * lib/freadable.c (freadable): Likewise.
4329         * lib/fwritable.c (fwritable): Likewise.
4330         * lib/fbufmode.c (fbufmode): Likewise.
4331         * lib/freading.c (freading): Likewise.
4332         * lib/fwriting.c (fwriting): Likewise.
4333         * lib/freadptr.c (freadptr): Likewise.
4334         * lib/freadseek.c (freadptrinc): Likewise.
4335         * lib/freadahead.c (freadahead): Likewise.
4336         * lib/fpurge.c (fpurge): Likewise.
4337         * lib/fseeko.c (rpl_fseeko): Likewise.
4338         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
4339         Reported by Jens Staal <staal1978@gmail.com>.
4340
4341 2012-02-02  Jim Meyering  <meyering@redhat.com>
4342
4343         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
4344         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
4345         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
4346         not even to try to add the attribute.  Instead, add a pragma to suppress
4347         the suggestion/warning.
4348
4349 2012-01-31  Karl Berry  <karl@gnu.org>
4350
4351         setstate doc: typo.
4352         * doc/posix-functions/setstate.texi (setstate): { not (.
4353
4354 2012-01-31  Bruno Haible  <bruno@clisp.org>
4355
4356         popen: Make more robust on Windows.
4357         * lib/popen.c: On native Windows, use the _popen based code even if
4358         HAVE_POPEN is set.
4359         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
4360         environment variable on native Windows.
4361
4362 2012-01-30  Bruno Haible  <bruno@clisp.org>
4363
4364         pclose: Fix typo.
4365         * lib/stdio.in.h (pclose): Fix typo in warning message.
4366
4367 2012-01-30  Bruno Haible  <bruno@clisp.org>
4368
4369         doc about getlogin_r, setstate.
4370         * doc/posix-functions/getlogin_r.texi: List the incompatible
4371         declaration problem under "not fixed by gnulib".
4372         * doc/posix-functions/setstate.texi: Mention incompatible declaration
4373         problem on Solaris 11 and other platforms.
4374
4375 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
4376             Bruno Haible  <bruno@clisp.org>
4377
4378         poll tests: Make test more robust.
4379         * tests/test-poll.c: Include macros.h.
4380         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
4381         return value of various I/O operations.
4382         * modules/poll-tests (Files): Add tests/macros.h.
4383
4384 2012-01-30  Bruno Haible  <bruno@clisp.org>
4385
4386         sys_stat: Fix support for mingw64 and MSVC.
4387         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
4388         header files already do it.
4389         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
4390         stat itself.
4391         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4392
4393 2012-01-30  Bruno Haible  <bruno@clisp.org>
4394
4395         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
4396         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
4397         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
4398
4399 2012-01-29  Bruno Haible  <bruno@clisp.org>
4400
4401         quotearg: Fix test failure on MacOS X 10.5.
4402         * tests/test-quotearg-simple.c: Include localcharset.h.
4403         (main): If the locale encoding is not ASCII, bypass the tests of
4404         locale_quoting_style and clocale_quoting_style.
4405         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
4406
4407 2012-01-29  Jim Meyering  <meyering@redhat.com>
4408
4409         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
4410         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
4411         detect uses of canonicalize_file_name.
4412
4413 2012-01-28  Bruno Haible  <bruno@clisp.org>
4414
4415         test-framework-sh: Fix test failure with AIX 7.1 diff.
4416         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
4417         in column 1, like 'diff -c' does.
4418         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
4419         whether 'diff -u' is used. Instead, test whether the output contains
4420         some '@' character.
4421
4422 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4423
4424         strtoimax: eliminate need for stdint.h, inttypes.h checks
4425         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
4426         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
4427         the prerequisites for a recently-introduced strtoimax test.
4428         I guess this might cause strtoimax to be replaced when not
4429         strictly necessary on older hosts, but this shouldn't introduce
4430         any bugs and it should make Emacs 'configure' faster on typical
4431         modern hosts.  Problem discovered when importing the latest gnulib
4432         to an Emacs test version.
4433         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
4434
4435 2012-01-28  Bruno Haible  <bruno@clisp.org>
4436
4437         sys_time: Override 'struct timeval' on some native Windows platforms.
4438         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
4439         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
4440         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
4441         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
4442         needs to be overridden.
4443         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
4444         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
4445         * tests/test-sys_select.c: Check that the tv_sec member has the same
4446         size as a 'time_t'.
4447         * tests/test-sys_time.c: Likewise.
4448         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
4449         is set, set also REPLACE_GETTIMEOFDAY.
4450         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
4451         convert the resulting 'struct timeval' before returning.
4452         * lib/select.c: Include <sys/time.h>.
4453         (select, timeval): Undefine at the right place.
4454         * modules/select (Depends-on): Add sys_time.
4455         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
4456         some Windows platforms.
4457         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4458
4459 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4460
4461         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
4462         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
4463         an integer.
4464         * lib/fcntl.c (dupfd): Likewise.
4465         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
4466
4467 2012-01-28  Bruno Haible  <bruno@clisp.org>
4468
4469         fcntl: Avoid compilation error on native Windows.
4470         * modules/fcntl (Depends-on): Add 'close'.
4471
4472 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4473
4474         select, poll, isatty: Avoid warnings on x86_64 mingw64.
4475         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
4476         pointer to an integer.
4477         * lib/poll.c (IsConsoleHandle): Likewise.
4478         * lib/isatty.c (IsConsoleHandle): Likewise.
4479
4480 2012-01-28  Jim Meyering  <meyering@redhat.com>
4481
4482         doc: clarify README-release
4483         * top/README-release: Clarify: you should make a point to have
4484         the latest stable versions of build tools in your PATH, and the
4485         reference to buildreq is solely for its list of tool names, not
4486         for its minimal-functional version numbers.
4487         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
4488
4489         maint.mk: use more readable (yet functionally equivalent) quoting
4490         It is common to quote a single quote in a single quoted string like
4491         this:  '...'\''...'.  Unless you know the idiom, that looks like
4492         gibberish, so prefer to double-quote the string when possible.
4493         Then you can use a more readable, lone single quote: "...'..."
4494         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
4495         "don't" is more readable than the equivalent 'don'\''t'.
4496         (sc_cast_of_x_alloc_return_value): Likewise.
4497         (sc_cast_of_alloca_return_value): Likewise.
4498         (sc_makefile_path_separator_check): Similar: use ":" in '...',
4499         rather than '\'':'\''.
4500
4501 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4502
4503         stdalign: relax _Alignof and tighten _Alignas test
4504         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
4505         as it was too strict: alignof must divide offsetof, but it need
4506         not equal offsetof.  Inspired by Joseph S. Myers's comment
4507         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
4508         Conversely, tighten the _Alignas test a bit, as the resulting
4509         alignment must be exactly 8.
4510
4511 2012-01-27  Bruno Haible  <bruno@clisp.org>
4512
4513         stdalign: Document the last change.
4514         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
4515
4516 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4517
4518         stdalign: check that alignof and offsetof are consistent
4519         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
4520         Problem reported for gnulib by Richard W.M. Jones in
4521         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
4522
4523 2012-01-27  Jim Meyering  <meyering@redhat.com>
4524
4525         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
4526         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
4527         convert a sequence with gaps to the minimal containing range.
4528         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
4529         * tests/test-update-copyright.sh: Test for this.
4530         The FSF confirmed it is ok to do this, assuming there is at
4531         least one significant change per year in the affected range:
4532         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
4533
4534 2012-01-26  Bruno Haible  <bruno@clisp.org>
4535
4536         pipe2: refine doc about thread-safety
4537         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
4538         multithread-safety problem.
4539         * doc/glibc-functions/accept4.texi: Likewise.
4540
4541 2012-01-26  Bruno Haible  <bruno@clisp.org>
4542
4543         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
4544         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
4545         In the test program, include <fcntl.h>, for O_RDONLY.
4546
4547 2012-01-26  Eric Blake  <eblake@redhat.com>
4548
4549         pipe2: document lack of thread-safety in replacement
4550         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
4551         issue in replacement.
4552         * doc/glibc-functions/accept4.texi (accept4): Likewise.
4553         Based on a report by Eric Wong.
4554
4555 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4556             Bruno Haible  <bruno@clisp.org>
4557
4558         malloca: Avoid warnings on x86_64 mingw64.
4559         * lib/malloca.c: Include <stdint.h>.
4560         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
4561         * modules/malloca (Depends-on): Add stdint.
4562         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
4563
4564 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
4565
4566         obstack: remove __STDC__ conditionals
4567         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
4568         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
4569         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
4570         m4/include_next.m4 as the only gnulib-maintained places that still
4571         refer to __STDC__.
4572
4573 2012-01-24  Bruno Haible  <bruno@clisp.org>
4574
4575         havelib: Modern quoting.
4576         * build-aux/config.rpath: Quote 'like this', not `like this', as per
4577         the recent change to the GNU coding standards.
4578
4579 2012-01-24  Bruno Haible  <bruno@clisp.org>
4580
4581         stdint: Improve support for Android.
4582         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
4583         Reported by Simon Josefsson <simon@josefsson.org>.
4584
4585 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4586
4587         doc: omit trailing empty lines from INSTALL etc.
4588         * doc/Makefile (INSTALL): Omit trailing empty lines.
4589         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
4590         omit trailing empty lines.  This simplifies the build procedure.
4591
4592 2012-01-23  Jim Meyering  <meyering@redhat.com>
4593
4594         tests: avoid spurious warnings about gl_sockets_startup
4595         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
4596         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
4597         reporting a "statement with no effect".
4598         * tests/test-accept.c (main): Mark as "(void)".
4599         * tests/test-accept4.c (main): Likewise.
4600         * tests/test-bind.c (main): Likewise.
4601         * tests/test-connect.c (main): Likewise.
4602         * tests/test-getpeername.c (main): Likewise.
4603         * tests/test-getsockname.c (main): Likewise.
4604         * tests/test-getsockopt.c (main): Likewise.
4605         * tests/test-listen.c (main): Likewise.
4606         * tests/test-recv.c (main): Likewise.
4607         * tests/test-recvfrom.c (main): Likewise.
4608         * tests/test-send.c (main): Likewise.
4609         * tests/test-sendto.c (main): Likewise.
4610         * tests/test-setsockopt.c (main): Likewise.
4611         * tests/test-shutdown.c (main): Likewise.
4612
4613 2012-01-21  Bruno Haible  <bruno@clisp.org>
4614
4615         locale-fr.m4: Fix for Android.
4616         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
4617         failure of the test program on Bionic libc.
4618
4619 2012-01-21  Jim Meyering  <meyering@redhat.com>
4620
4621         bootstrap: fail when bootstrap_post_import_hook fails
4622         Otherwise, it's far too easy to miss diagnostics emitted
4623         between gnulib-tool's output and that of running configure.
4624         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
4625
4626 2012-01-17  Jim Meyering  <meyering@redhat.com>
4627
4628         maint: enable sc_trailing_blank
4629         * build-aux/pmccabe.css: Remove trailing blanks.
4630         * doc/acl-cygwin.txt: Likewise.
4631         * doc/gnu-oids.texi: Likewise
4632         * cfg.mk: Enable sc_trailing_blank.
4633         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
4634
4635 2012-01-17  Jim Meyering  <meyering@redhat.com>
4636
4637         maint: enable sc_prohibit_openat_without_use
4638         * cfg.mk: Enable sc_prohibit_openat_without_use.
4639         Exempt lib/selinux-at.c.
4640
4641 2012-01-17  Jim Meyering  <meyering@redhat.com>
4642
4643         maint: enable sc_prohibit_cloexec_without_use
4644         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
4645         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
4646
4647 2012-01-17  Jim Meyering  <meyering@redhat.com>
4648
4649         maint: enable sc_prohibit_intprops_without_use
4650         * cfg.mk: Enable sc_prohibit_intprops_without_use
4651         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
4652
4653 2012-01-17  Jim Meyering  <meyering@redhat.com>
4654
4655         maint: enable sc_prohibit_hash_pjw_without_use
4656         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
4657         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
4658         to match any use of \<hash_pjw\>, i.e., not necessarily with a
4659         following " (".
4660
4661 2012-01-17  Jim Meyering  <meyering@redhat.com>
4662
4663         maint: enable double-word-prohibiting rule
4664         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
4665         Exempt three files.
4666
4667 2012-01-17  Jim Meyering  <meyering@redhat.com>
4668
4669         maint: remove empty lines at EOF, but excluding modules/*
4670         Apply syntax rules at home as well as abroad.  Most changes
4671         were induced by running this:
4672           make srcdir=. _build-aux=build-aux -f top/maint.mk \
4673             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
4674             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
4675         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
4676         Exempt modules/* and two binary files.
4677         Also exempt doc/INSTALL*, per request from Bruno Haible.
4678         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
4679         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
4680         * doc/Copyright/request-assign.future: Likewise.
4681         * doc/Copyright/request-disclaim.changes: Likewise.
4682         * doc/INSTALL: Likewise.
4683         * doc/INSTALL.ISO: Likewise.
4684         * doc/INSTALL.UTF-8: Likewise.
4685         * doc/acl-cygwin.txt: Likewise.
4686         * doc/acl-resources.txt: Likewise.
4687         * doc/fdl-1.2.texi: Likewise.
4688         * doc/fdl-1.3.texi: Likewise.
4689         * doc/fdl.texi: Likewise.
4690         * lib/argp-pin.c: Likewise.
4691         * lib/round.c: Likewise.
4692         * lib/unicase/u16-totitle.c: Likewise.
4693         * lib/unictype/block_test.c: Likewise.
4694         * lib/uninorm/canonical-decomposition.c: Likewise.
4695         * m4/README: Likewise.
4696         * m4/relocatable-lib.m4: Likewise.
4697         * tests/test-isnand-nolibm.c: Likewise.
4698         * tests/test-isnand.c: Likewise.
4699         * tests/uninorm/NormalizationTest.txt: Likewise.
4700
4701 2012-01-17  Jim Meyering  <meyering@redhat.com>
4702
4703         maint: add framework to run syntax-check rules against gnulib sources
4704         * cfg.mk: New file, to disable all currently-failing tests.
4705         We'll enable them one by one, as they are made to pass.
4706         * Makefile (sc_maint): New rule.
4707
4708 2012-01-21  Bruno Haible  <bruno@clisp.org>
4709
4710         stdint: Add support for Android.
4711         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
4712         include the system's <stdint.h>.
4713         Reported by Simon Josefsson <simon@josefsson.org>.
4714
4715 2012-01-19  Jim Meyering  <meyering@redhat.com>
4716
4717         bootstrap: add bootstrap_post_import_hook
4718         Bison does still need something like the gnulib_mk_hook whose
4719         invocation I had to remove along with slurp in commit 767ccd40.
4720         Technically, we could get along without it, but doing so would
4721         have required living with a warning and a mandatory post-bootstrap
4722         automake rerun.
4723         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
4724         (bootstrap_post_import_hook): New function.
4725         Invoke it after gnulib-tool --import and before autoreconf.
4726
4727 2012-01-18  Jim Meyering  <meyering@redhat.com>
4728
4729         gitlog-to-changelog: don't use "no_"-prefixed variable name
4730         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
4731         to enable both --cluster and --no-cluster.  Change variable name,
4732         s/\$no_cluster/$cluster/, and reverse usage to match.
4733
4734         gitlog-to-changelog: use "||", not "or" in expressions
4735         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
4736         expressions.
4737
4738 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
4739
4740         gitlog-to-changelog: new option --no-cluster
4741         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
4742         clustering of adjacent commit messages.
4743
4744 2012-01-17  Jim Meyering  <meyering@redhat.com>
4745
4746         maint: spell file systems with two words, not one
4747         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
4748         two words, not one.
4749
4750 2012-01-16  Jim Meyering  <meyering@redhat.com>
4751
4752         bootstrap: add a FIXME comment to ensure we eventually remove the hack
4753         * build-aux/bootstrap (gnulib_tool_options): Add comment.
4754
4755 2012-01-16  Eric Blake  <eblake@redhat.com>
4756
4757         bootstrap: cater to autoconf 2.59
4758         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
4759         is not available.
4760
4761         bootstrap: properly check for libtool
4762         * build-aux/bootstrap (libtoolize): Also run libtool when older
4763         usage is detected.
4764
4765 2012-01-15  Bruno Haible  <bruno@clisp.org>
4766
4767         Improve support for MSVC 9.
4768         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
4769         clashes on MSVC.
4770         * lib/fcntl.in.h: Likewise.
4771         * lib/stdlib.in.h: Likewise.
4772         * lib/sys_stat.in.h: Likewise.
4773
4774 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
4775
4776         gnupload: we hold the master copy of this script now
4777         For motivation and more information, see:
4778         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
4779         * build-aux/gnupload: Make it clear in the heading comments that the
4780         master copy of this file is maintained by gnulib.  Since we are at
4781         it, bump its copyright year and ...
4782         ($scriptversion): ... the date in its version.
4783         ($usage): Patches and bug reports should be sent to the gnulib list,
4784         not the automake one.
4785         * config/srclist.txt: Don't try to sync 'gnupload' from automake
4786         anymore.
4787
4788 2012-01-15  Bruno Haible  <bruno@clisp.org>
4789
4790         Fix module 'random'.
4791         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
4792         initstate, setstate are declared.
4793
4794 2012-01-14  Bruno Haible  <bruno@clisp.org>
4795
4796         Tests for module 'random'.
4797         * modules/random-tests: New file.
4798         * tests/test-random.c: New file, based on tests/test-random_r.c.
4799
4800         New module 'random'.
4801         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
4802         declarations.
4803         * lib/random.c: New file, based on glibc/stdlib/random.c.
4804         * m4/random.m4: New file.
4805         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
4806         HAVE_RANDOM.
4807         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
4808         * modules/random: New file.
4809         * config/srclist.txt: Add an entry for random.c.
4810         * doc/posix-functions/random.texi: Mention the 'random' module.
4811         * doc/posix-functions/initstate.texi: Likewise.
4812         * doc/posix-functions/setstate.texi: Likewise.
4813         * doc/posix-functions/srandom.texi: Likewise.
4814
4815 2012-01-12  Bruno Haible  <bruno@clisp.org>
4816
4817         random_r: Use common idioms.
4818         * lib/random_r.c: Include <stdlib.h> first.
4819
4820         random_r: Override incompatible API on AIX, OSF/1.
4821         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
4822         Override the system function if REPLACE_RANDOM_R is 1.
4823         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
4824         and OSF/1, set REPLACE_RANDOM_R.
4825         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
4826         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
4827         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
4828         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
4829         * doc/glibc-functions/random_r.texi: Likewise.
4830         * doc/glibc-functions/setstate_r.texi: Likewise.
4831
4832         random_r: Support for MSVC 9.
4833         * lib/random_r.c: Include stdint.h, not inttypes.h.
4834
4835 2012-01-12  Eric Blake  <eblake@redhat.com>
4836
4837         inet_ntop: guard extra work by IF_LINT
4838         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
4839         better code generation when not checking for warnings.
4840         Suggested by Paul Eggert and Jim Meyering.
4841
4842         strptime: fix regression on mingw
4843         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
4844         Fix regression.  Reported by Bruno Haible.
4845
4846 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
4847             Bruno Haible  <bruno@clisp.org>
4848
4849         copy-file: add error-code-returning variant.
4850         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
4851         (qcopy_file_preserving): New declaration.
4852         * lib/copy-file.c (qcopy_file_preserving): Renamed from
4853         copy_file_preserving. Change return type to 'int'. Don't emit an error
4854         message here.
4855         (copy_file_preserving): New function.
4856         * tests/test-copy-file.c: Include <stdlib.h>.
4857         (main): Test qcopy_file_preserving if the environment variable
4858         NO_STDERR_OUTPUT is set.
4859         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
4860         with NO_STDERR_OUTPUT
4861         * tests/test-copy-file-2.sh: Likewise.
4862
4863 2012-01-10  Bruno Haible  <bruno@clisp.org>
4864
4865         copy-file: Use 'quote' module consistently.
4866         * lib/copy-file.c (copy_file_preserving): Use quote().
4867
4868         copy-file: Refactor.
4869         * lib/copy-file.c: Include quote.h.
4870         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
4871         message here.
4872         * modules/copy-file (Depends-on): Add quote.
4873
4874         acl: Export qcopy_acl.
4875         * lib/acl.h (qcopy_acl): New declaration.
4876         * lib/copy-acl.c (qcopy_acl): Make non-static.
4877
4878         acl: Rename a local variable.
4879         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
4880
4881         acl: Align return values of copy_acl and qcopy_acl.
4882         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
4883         maybe < -1.
4884
4885 2012-01-11  Eric Blake  <eblake@redhat.com>
4886
4887         strptime: silence gcc warnings
4888         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
4889         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
4890         Reported by Daniel P. Berrange.
4891
4892         inet_ntop: silence gcc warning
4893         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
4894         Reported by Daniel P. Berrange.
4895
4896 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
4897
4898         getloadavg test: skip the test on GNU/Linux without /proc mounted
4899         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
4900         file.  When /proc is not mounted, it always fails with ENOENT.
4901         * tests/test-getloadavg.c (main): Treat ENOENT return code from
4902         getloadavg(3) the same way as ENOSYS and ENOTSUP.
4903
4904 2012-01-10  Bruno Haible  <bruno@clisp.org>
4905
4906         regex: Avoid link error on MSVC 9.
4907         * modules/regex (Depends-on): Add wctype.
4908
4909 2012-01-10  Bruno Haible  <bruno@clisp.org>
4910
4911         doc: Mention --with-tests option.
4912         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
4913         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
4914         --with-tests.
4915         Reported by Reuben Thomas.
4916
4917 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
4918
4919         users.txt: order package names lexicographically.
4920         * users.txt: Order package names lexicographically.
4921
4922 2012-01-10  Jim Meyering  <meyering@redhat.com>
4923
4924         maint.mk: fix description in comment
4925         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
4926
4927         ignore-value: remove deprecated ignore_ptr function
4928         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
4929         * NEWS: Note this.
4930
4931 2012-01-09  Jim Meyering  <meyering@redhat.com>
4932
4933         test-init.sh: avoid a subshell
4934         * tests/test-init.sh: Remove protective subshell.
4935         Suggested by Bernhard Voelker.  While a subshell is normally
4936         required to protect against older shells (Solaris, FreeBSD) that
4937         warn about a missing program before performing redirection, the
4938         shell-selection tests performed by init.sh probably exclude any
4939         offending shell.
4940
4941 2012-01-08  Bruno Haible  <bruno@clisp.org>
4942
4943         setlocale tests: Avoid test failure on Solaris 11 2011-11.
4944         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
4945         variable.
4946
4947 2012-01-08  Bruno Haible  <bruno@clisp.org>
4948
4949         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
4950         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4951         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4952         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
4953         macro.
4954         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
4955         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4956         * lib/spawn_faction_addopen.c: Add workaround implementation if
4957         HAVE_WORKING_POSIX_SPAWN.
4958         * modules/spawn (Makefile): Substitute
4959         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4960         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
4961         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
4962         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4963         (Depends-on): Update conditions.
4964         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
4965         the Solaris 11 bug.
4966
4967 2012-01-08  Bruno Haible  <bruno@clisp.org>
4968
4969         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
4970         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4971         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4972         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
4973         macro.
4974         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
4975         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4976         * lib/spawn_faction_adddup2.c: Add workaround implementation if
4977         HAVE_WORKING_POSIX_SPAWN.
4978         * modules/spawn (Makefile): Substitute
4979         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4980         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
4981         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
4982         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4983         (Depends-on): Update conditions.
4984         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
4985         the Solaris 11 bug.
4986
4987 2012-01-08  Bruno Haible  <bruno@clisp.org>
4988
4989         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
4990         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4991         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4992         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
4993         HAVE_WORKING_POSIX_SPAWN.
4994         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
4995         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
4996         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4997         * lib/spawn_faction_addclose.c: Add workaround implementation if
4998         HAVE_WORKING_POSIX_SPAWN.
4999         * modules/spawn (Makefile): Substitute
5000         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
5001         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
5002         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
5003         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
5004         (Depends-on): Update conditions.
5005         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
5006         the Solaris 11 bug.
5007
5008 2012-01-08  Bruno Haible  <bruno@clisp.org>
5009
5010         doc: Update for Solaris 11 2011-11.
5011         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
5012         * m4/printf.m4: Update comments.
5013
5014 2012-01-08  Bruno Haible  <bruno@clisp.org>
5015
5016         mktime: Avoid compilation error on Solaris 11.
5017         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
5018
5019 2012-01-08  Bruno Haible  <bruno@clisp.org>
5020
5021         doc: Small fix.
5022         * doc/posix-headers/nl_types.texi: Correct platforms list.
5023
5024 2012-01-08  Simon Josefsson  <simon@josefsson.org>
5025
5026         Add lgpl-3.0 module.
5027         * MODULES.html.sh (Support for building documentation): Add
5028         lgpl-3.0.
5029         * modules/lgpl-3.0: New file.
5030
5031 2012-01-08  Jim Meyering  <meyering@redhat.com>
5032
5033         select.c: indent with spaces, not TABs
5034         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
5035
5036 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5037
5038         quotearg: do not use grave accent for left quote
5039         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
5040         locale_quoting_style.
5041         (quotearg_buffer_restyled): Fix example.
5042         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
5043
5044 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5045
5046         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
5047         Most programs do not have translation catalogs for English and much
5048         less separate catalogs for British and American English.  Drop the
5049         suggestion to translators about these two, and provide it
5050         automatically for Unicode locales.  Like most programs, even those
5051         using American English, we use single quotation marks.  This conflicts
5052         with the American typographic convention, but works better when you
5053         cite the entire error message within double quotes.  It also tries not
5054         to clash with established practice and with what non-gnulib programs
5055         will usually do.
5056         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
5057         using an UTF-8 or GB-18030 locale.  The list of other locales with
5058         quotes was provided by Bruno Haible.
5059         (quotearg_buffer_restyled): Adjust instructions to translators.
5060         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
5061         text, since this would be wrong when using Unicode.
5062         * modules/quotearg: Depend on c-strcaseeq.
5063
5064 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5065
5066         quotearg: fix Wikipedia link
5067         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
5068
5069 2012-01-07  Simon Josefsson  <simon@josefsson.org>
5070
5071         Fix for mingw with MSVC9.
5072         * m4/ld-version-script.m4: Check that compiler rejects version
5073         scripts with syntax errors.  Reported by Bruno Haible
5074         <bruno@clisp.org>.
5075
5076 2012-01-06  Bruno Haible  <bruno@clisp.org>
5077
5078         Talk about "native Windows API", not "Woe32".
5079         * lib/accept4.c: Update comments to mention native Windows.
5080         * lib/execute.c: Likewise.
5081         * lib/fatal-signal.c: Likewise.
5082         * lib/localcharset.c: Likewise.
5083         * lib/nanosleep.c: Likewise.
5084         * lib/nl_langinfo.c: Likewise.
5085         * lib/pclose.c: Likewise.
5086         * lib/pipe-filter-gi.c: Likewise.
5087         * lib/pipe-filter-ii.c: Likewise.
5088         * lib/pipe.c: Likewise.
5089         * lib/pipe2.c: Likewise.
5090         * lib/popen.c: Likewise.
5091         * lib/progreloc.c: Likewise.
5092         * lib/relocatable.c: Likewise.
5093         * lib/sigaction.c: Likewise.
5094         * lib/sigprocmask.c: Likewise.
5095         * lib/spawn-pipe.h: Likewise.
5096         * lib/spawn-pipe.c: Likewise.
5097         * lib/spawni.c: Likewise.
5098         * lib/stat-time.h: Likewise.
5099         * lib/w32spawn.h: Likewise.
5100         * tests/test-isatty.c: Likewise.
5101         * lib/config.charset: More comments.
5102         * doc/gnulib-intro.texi: Mention native Windows.
5103         * doc/posix-functions/_Exit_C99.texi: Likewise.
5104         * doc/posix-headers/fcntl.texi: Likewise.
5105
5106 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
5107
5108         argp: Avoid crash if translator uses % characters in a translation.
5109         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
5110         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
5111
5112 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
5113
5114         doc: C11 and C++11 are now official
5115         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
5116         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
5117         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
5118         * modules/stdalign:
5119         Replace references to draft C1X to C11, and to draft C++0X to C++11.
5120
5121 2012-01-06  Bruno Haible  <bruno@clisp.org>
5122
5123         uc-is-grapheme-break tests: Tweak.
5124         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
5125         message.
5126
5127 2012-01-06  Bruno Haible  <bruno@clisp.org>
5128
5129         test-init.sh: correct the test for diff -u
5130         * tests/test-init.sh: Also redirect stdout to /dev/null.
5131
5132 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
5133
5134         Use ', not `, for quoting output.
5135         * build-aux/announce-gen (usage, sizes, print_news_deltas)
5136         (print_changelog_deltas, get_tool_versions, main program):
5137         * build-aux/git-version-gen:
5138         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
5139         * build-aux/move-if-change (help):
5140         * build-aux/useless-if-before-free (usage, main program):
5141         * check-module (parse_module_file, usage)
5142         (find_included_lib_files, check_module):
5143         * lib/argmatch.c (main) [TEST]:
5144         * lib/argp-help.c (_help):
5145         * lib/getopt1.c (main) [TEST]:
5146         * lib/git-merge-changelog.c (usage):
5147         * lib/xstrtol-error.c (xstrtol_error):
5148         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
5149         * m4/argz.m4 (gl_FUNC_ARGZ):
5150         * m4/bison.m4 (gl_BISON):
5151         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
5152         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
5153         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
5154         * m4/fpending.m4 (gl_PREREQ_FPENDING):
5155         * m4/gc-random.m4 (gl_GC_RANDOM):
5156         * m4/intl.m4 (gt_CHECK_DECL):
5157         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
5158         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
5159         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
5160         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
5161         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
5162         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
5163         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
5164         * tests/test-dirname.c (main):
5165         * tests/test-getpass.c (main):
5166         * tests/test-iconvme.c (main):
5167         * tests/test-parse-datetime.c (LOG):
5168         * tests/test-xstrtoimax.sh:
5169         * tests/test-xstrtol.sh:
5170         * tests/test-xstrtoll.sh:
5171         * tests/test-xstrtoumax.sh:
5172         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
5173         * top/GNUmakefile (abort-due-to-no-makefile):
5174         Quote 'like this', not `like this', as per the recent change to
5175         the GNU coding standards.
5176
5177 2012-01-05  Bruno Haible  <bruno@clisp.org>
5178
5179         strtoimax: Don't force a replacement on systems where intmax_t is int.
5180         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
5181         'intmax_t' is not larger than 'int'.
5182         Reported by Pádraig Brady <P@draigBrady.com>.
5183
5184 2012-01-05  Bruno Haible  <bruno@clisp.org>
5185
5186         doc: Mention NetBSD bugs.
5187         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
5188         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
5189
5190 2012-01-05  Bruno Haible  <bruno@clisp.org>
5191
5192         strtoumax tests: Enhance tests.
5193         * tests/test-strtoumax.c (main): Add tests for large values.
5194
5195 2012-01-05  Bruno Haible  <bruno@clisp.org>
5196
5197         strtoimax: Work around AIX 5.1 bug.
5198         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
5199         definition.
5200         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
5201         Set HAVE_STRTOIMAX.
5202         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
5203         REPLACE_STRTOIMAX.
5204         * modules/inttypes-incomplete (Makefile.am): Substitute
5205         REPLACE_STRTOIMAX.
5206         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
5207         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
5208         (Depends-on): Update conditions.
5209         * tests/test-strtoimax.c (main): Add tests for large values.
5210         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
5211
5212 2012-01-05  Bruno Haible  <bruno@clisp.org>
5213
5214         inttypes: Modernize.
5215         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
5216         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
5217         (Makefile.am): Update inttypes.h rule.
5218
5219 2012-01-05  Jim Meyering  <meyering@redhat.com>
5220
5221         init.sh: don't waste a subshell just to redirect stderr
5222         * tests/init.sh: In testing for diff -u and diff -c, use a
5223         stderr-redirecting exec inside `...` rather than a subshell.
5224
5225         test-init.sh: avoid failure on HP-UX 11.00
5226         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
5227         resolves to diff -c or cmp.  Reported by Bruno Haible.
5228
5229 2012-01-05  Bruno Haible  <bruno@clisp.org>
5230
5231         Tests for module 'strtoull'.
5232         * modules/strtoull-tests: New file.
5233         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
5234
5235 2012-01-05  Bruno Haible  <bruno@clisp.org>
5236
5237         Tests for module 'strtoll'.
5238         * modules/strtoll-tests: New file.
5239         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
5240
5241 2012-01-05  Bruno Haible  <bruno@clisp.org>
5242
5243         Tests for module 'strtoul'.
5244         * modules/strtoul-tests: New file.
5245         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
5246
5247 2012-01-05  Bruno Haible  <bruno@clisp.org>
5248
5249         Tests for module 'strtol'.
5250         * modules/strtol-tests: New file.
5251         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
5252
5253 2012-01-04  Jim Meyering  <meyering@redhat.com>
5254
5255         test-init.sh: accommodate Solaris 5.10's different diff -u output
5256         * tests/test-init.sh: Also exempt @@ lines from the comparison
5257         of diff output, since Solaris 5.10 and GNU diff formats differ.
5258         Reported by Stefano Lattarini.
5259
5260 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
5261
5262         test-posixtm: don't assume signed integer wraparound
5263         * tests/test-posixtm.c (main): Don't assume wraparound semantics
5264         after signed integer overflow.  Inspired by (though it may not
5265         fix) Bruno Haible's bug report in
5266         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
5267
5268         Spell out "Windows 9x" and "Windows XP".
5269         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
5270         "Windows 9x" and "WinXP" with "Windows XP".
5271
5272 2012-01-04  Jim Meyering  <meyering@redhat.com>
5273
5274         test-vc-list-files-cvs.sh: remove obsolete comment
5275         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
5276         double exit.  Now that's all encapsulated via skip_ and Exit.
5277
5278 2012-01-04  Bruno Haible  <bruno@clisp.org>
5279
5280         Talk about "native Windows API", not "Win32".
5281         * lib/classpath.c: Update comments to mention native Windows.
5282         * lib/csharpexec.c: Likewise.
5283         * lib/dup2.c: Likewise.
5284         * lib/error.c: Likewise.
5285         * lib/fcntl.c: Likewise.
5286         * lib/filename.h: Likewise.
5287         * lib/findprog.c: Likewise.
5288         * lib/get-rusage-as.c: Likewise.
5289         * lib/get-rusage-data.c: Likewise.
5290         * lib/getpagesize.c: Likewise.
5291         * lib/javaexec.c: Likewise.
5292         * lib/msvc-inval.c: Likewise.
5293         * lib/msvc-nothrow.c: Likewise.
5294         * lib/nanosleep.c: Likewise.
5295         * lib/nonblocking.c: Likewise.
5296         * lib/printf-parse.c: Likewise.
5297         * lib/setlocale.c: Likewise.
5298         * lib/sigaction.c: Likewise.
5299         * lib/strerror_r.c: Likewise.
5300         * lib/tmpdir.c: Likewise.
5301         * lib/vasnprintf.c: Likewise.
5302         * lib/w32spawn.h: Likewise.
5303         * lib/waitpid.c: Likewise.
5304         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
5305         * m4/locale-ar.m4: Likewise.
5306         * m4/locale-fr.m4: Likewise.
5307         * m4/locale-ja.m4: Likewise.
5308         * m4/locale-tr.m4: Likewise.
5309         * m4/locale-zh.m4: Likewise.
5310         * m4/printf.m4: Likewise.
5311         * tests/test-cloexec.c: Likewise.
5312         * tests/test-copy-acl.sh: Likewise.
5313         * tests/test-copy-file.sh: Likewise.
5314         * tests/test-file-has-acl.sh: Likewise.
5315         * tests/test-set-mode-acl.sh: Likewise.
5316         * tests/test-dup-safer.c: Likewise.
5317         * tests/test-dup2.c: Likewise.
5318         * tests/test-dup3.c: Likewise.
5319         * tests/test-fcntl.c: Likewise.
5320         * tests/test-nonblocking-pipe.h: Likewise.
5321         * tests/test-nonblocking-socket.h: Likewise.
5322         * tests/test-pipe.c: Likewise.
5323         * tests/test-pipe2.c: Likewise.
5324         * tests/test-spawn-pipe-child.c: Likewise.
5325         * doc/acl-resources.txt: Likewise.
5326         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5327         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
5328         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
5329         * lib/localcharset.c: Update comments to mention native Windows.
5330         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5331         * lib/localename.c: Likewise.
5332         * lib/progreloc.c: Likewise.
5333         * lib/relocatable.c: Likewise.
5334         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5335         (windows_compute_revents): Renamed from win32_compute_revents.
5336         (windows_compute_revents_socket): Renamed from
5337         win32_compute_revents_socket.
5338         * lib/select.c: Update comments to mention native Windows.
5339         (windows_poll_handle): Renamed from win32_poll_handle.
5340         * m4/threadlib.m4: Update comments to mention native Windows.
5341         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
5342         --enable-threads=windows instead of --enable-threads=win32. Set
5343         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
5344         * lib/glthread/lock.h: Update comments to mention native Windows.
5345         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
5346         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
5347         USE_WIN32_THREADS.
5348         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
5349         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
5350         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
5351         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
5352         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
5353         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
5354         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
5355         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
5356         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
5357         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
5358         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
5359         * tests/test-tls.c: Likewise.
5360         Rationale:
5361         Microsoft renamed the "Win32 API" to "Windows API", as it is available
5362         on both 32-bit and 64-bit Windows systems.
5363         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
5364         line of distinction is between "native Windows" on one side and Unix/
5365         POSIX systems on the other side. More details in
5366         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
5367         Suggested by Paul Eggert.
5368
5369 2012-01-03  Bruno Haible  <bruno@clisp.org>
5370
5371         isatty: Support for MSVC 9.
5372         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
5373         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
5374         (_isatty_nothrow): New function.
5375         (isatty): Use it instead of _isatty.
5376         (IsConsoleHandle): Add comment, from Paolo Bonzini.
5377         * lib/poll.c (IsConsoleHandle): Likewise.
5378         * lib/select.c (IsConsoleHandle): Likewise.
5379         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
5380         (gl_PREREQ_ISATTY): New macro.
5381         * modules/isatty (Depends-on): Add msvc-inval.
5382         (configure.ac): Invoke gl_PREREQ_ISATTY.
5383
5384 2012-01-03  Jim Meyering  <meyering@redhat.com>
5385
5386         maint.mk: remove temporary transition aid from over 1.5 years ago
5387         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
5388         purpose was to aid in the transition (avoiding silent malfunction)
5389         from that old name to the new _sc_search_regexp.  This shim was
5390         added by commit 219c504b.
5391
5392         init.sh: do not try to accommodate compare arguments starting with "-"
5393         * tests/init.sh (compare_dev_null_): Do not try to accommodate
5394         compare arguments that start with "-".  Besides, we do not worry
5395         about this when invoking diff or cmp; why start now with sed?
5396         Using "--" to separate options from argument would trigger sed
5397         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
5398         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
5399
5400 2012-01-02  Bruno Haible  <bruno@clisp.org>
5401
5402         Enhance tests for module 'isatty'.
5403         * modules/isatty-tests (Depends-on): Add pipe-posix.
5404         * tests/test-isatty.c: Include <fcntl.h>.
5405         (DEV_NULL): New macro.
5406         (main): Test the resut of isatty() also on regular files, pipes, and
5407         /dev/null.
5408
5409         New module 'isatty'.
5410         * lib/unistd.in.h (isatty): New declaration.
5411         * lib/isatty.c: New file, based on an idea of
5412         Bastien Roucariès <roucaries.bastien@gmail.com>.
5413         * m4/isatty.m4: New file.
5414         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
5415         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
5416         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
5417         REPLACE_ISATTY.
5418         * modules/isatty: New file.
5419         * doc/posix-functions/isatty.texi: Mention the new module.
5420         Suggested by Paolo Bonzini.
5421
5422 2012-01-02  Bruno Haible  <bruno@clisp.org>
5423
5424         canonicalize: Tweak 2011-12-29 commit.
5425         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
5426         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
5427
5428 2012-01-02  Jim Meyering  <meyering@redhat.com>
5429
5430         gitlog-to-changelog: describe input syntax in --help output
5431         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
5432
5433         gitlog-to-changelog: fix typo in --help: show backslash before email @
5434         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
5435         in sources, but not in actual output.
5436
5437 2011-12-30  Jim Meyering  <meyering@redhat.com>
5438
5439         gitlog-to-changelog: don't malfunction when name contains %-directive
5440         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
5441         in a name string cause trouble.  E.g., with a user name of "%s",
5442         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
5443
5444 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
5445
5446         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
5447         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
5448         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
5449         the "  (tiny change)" notation that is appended to the standard
5450         ChangeLog "date  name  email" header line.
5451
5452 2012-01-01  Jim Meyering  <meyering@redhat.com>
5453
5454         test-framework-sh: init.sh: fix "make dist" failure
5455         When using gnulib-tool's --with-tests option and any module that
5456         depends on test-framework-sh, "make dist" would fail due to the
5457         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
5458         in the gltests directory, and not in the gllib/ directory.
5459         One way to work around that is to move the EXTRA_DIST += init.sh
5460         from the primary module to the -tests one:
5461         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
5462         * modules/test-framework-sh (Makefile.am): ...not here.
5463         Reported by Tom G. Christensen in
5464         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
5465
5466         version-etc: update copyright year reported by --version
5467         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
5468
5469 2011-12-31  Pádraig Brady  <P@draigBrady.com>
5470
5471         canonicalize: only stat() if required
5472         * lib/canonicalize.c (canonicalize_filename_mode):
5473         Avoid calling l?stat() when both CAN_MISSING,
5474         and CAN_NOLINKS are set, as we neither need
5475         to resolve symlinks or test component existence.
5476
5477 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
5478
5479         doc: cover st_ino issues once; add OpenVMS etc.
5480         * doc/posix-functions/stat.texi (stat):
5481         * doc/posix-functions/lstat.texi (lstat):
5482         * doc/posix-functions/fstatat.texi (fstatat):
5483         * doc/posix-functions/fstat.texi (fstat):
5484         Move general 'struct stat' stuff to sys_stat.texi,
5485         leaving behind a pointer.
5486         * doc/posix-headers/sys_stat.texi (sys/stat.h):
5487         Merge duplicate info about 'struct stat' problems into here.
5488         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
5489         and suggest partial workarounds.
5490
5491         same-inode: port to OpenVMS
5492         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
5493         three st_ino values.
5494
5495 2011-12-30  Pádraig Brady  <P@draigBrady.com>
5496
5497         canonicalize: fix references to stat() and lstat()
5498         * lib/canonicalize.c (canonicalize_filename_mode):
5499         Ensure references always resolve to a replacement
5500         function if required (even via a macro).
5501
5502 2011-12-30  Jim Meyering  <meyering@redhat.com>
5503
5504         gitlog-to-changelog: remove a little duplication
5505         * build-aux/gitlog-to-changelog (main): Grep @lines once,
5506         rather than twice.
5507
5508 2011-12-29  Pádraig Brady  <P@draigBrady.com>
5509
5510         canonicalize: add support for not resolving symlinks
5511         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
5512         indicate we don't want to follow symlinks.  Also
5513         provide CAN_MODE_MASK to aid setting these existing
5514         mutually exclusive values.
5515         * lib/canonicalize.c (canonicalize_filename_mode):
5516         Extract the flags from can_mode parameter, which
5517         are currently just used to select between stat()
5518         and lstat().  Also ensure that mutually exclusive
5519         values are flagged immediately as invalid.
5520         * tests/test-canonicalize.c: Verify symlinks are
5521         not followed, and that invalid flag combinations
5522         are diagnosed.
5523
5524 2011-12-25  Jim Meyering  <meyering@redhat.com>
5525
5526         gitlog-to-changelog: do not clump multi-paragraph entries
5527         Identical header lines (date,name,email+coauthors) are suppressed,
5528         thus putting all entries with those same characteristics under
5529         a single header.  However, when a log entry consists of two or
5530         more paragraphs, it may not be clear where it starts and ends.
5531         This change makes it so that such an entry is always separated
5532         from others by a header line, even when that header would
5533         otherwise be suppressed.
5534         * build-aux/gitlog-to-changelog: Implement the above.
5535         Inspired by a related request from Stefano Lattarini in
5536         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
5537
5538 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
5539
5540         announce-gen: fix `cmd' typo in diagnostic
5541         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
5542         diagnostic: a missing '$' meant that the command was not output.
5543
5544 2011-12-23  Jim Meyering  <meyering@redhat.com>
5545
5546         test-framework-sh: distribute init.sh
5547         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
5548         Otherwise, "make -C gnulib-tests check" (at least in grep) would
5549         fail due to the lack of init.sh.
5550
5551         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
5552         * modules/atexit-tests: Rather than listing tests/init.sh,
5553         now that there's a module for it, simply depend on that new module.
5554         * modules/closein-tests: Likewise.
5555         * modules/exclude-tests: Likewise.
5556         * modules/getcwd-tests: Likewise.
5557         * modules/perror-tests: Likewise.
5558         * modules/pread-tests: Likewise.
5559         * modules/pwrite-tests: Likewise.
5560         * modules/vc-list-files-tests: Likewise.
5561         * modules/verify-tests: Likewise.
5562         * modules/xalloc-die-tests: Likewise.
5563         * modules/xstrtoimax-tests: Likewise.
5564         * modules/xstrtol-tests: Likewise.
5565         * modules/xstrtoll-tests: Likewise.
5566         * modules/xstrtoumax-tests: Likewise.
5567         * modules/yesno-tests: Likewise.
5568
5569 2011-12-22  Jim Meyering  <meyering@redhat.com>
5570
5571         test-framework-sh: add minimal tests of init.sh's compare function
5572         * modules/test-framework-sh-tests: New file.
5573         * tests/test-init.sh: New file.
5574
5575         test-framework-sh: new module
5576         * modules/test-framework-sh: New file.
5577         * MODULES.html.sh (Support for maintaining and releasing projects):
5578         List it.
5579
5580         init.sh: do not emit simulated diff output to stderr
5581         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
5582
5583 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
5584
5585         .gitignore: ignore gnulib.dvi and regex.info
5586         * doc/.gitignore:add gnulib.dvi and regex.info
5587
5588 2011-12-22  Jim Meyering  <meyering@redhat.com>
5589
5590         init.sh: correct previous change
5591         * tests/init.sh (compare): My previous change was wrong.
5592         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
5593
5594         init.sh: avoid unwarranted test failure when using "set -e"
5595         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
5596         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
5597         a use like "compare exp out" would get evoke an unconditional failure.
5598
5599 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
5600
5601         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
5602         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
5603         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
5604         autoreconf that did not.
5605         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
5606         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
5607
5608 2011-12-17  Jim Meyering  <meyering@redhat.com>
5609
5610         bootstrap: remove some now-unneeded code
5611         This script arose back when gnulib-tool was young.
5612         Since then, it has seen improvements that render much of this
5613         script unnecessary.  In particular, it can now make symlinks
5614         to the files it uses.  Also, I no longer see as much value in
5615         marking files as read-only via comments.
5616         If you relied on the symlink-creation feature of the preceding
5617         version of this script, you can get most of that functionality
5618         by adding the --symlink option to the definition of
5619         gnulib_tool_option_extras in your bootstrap.conf file.
5620         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
5621         Run autopoint and libtoolize *before* gnulib-tool.
5622         After it, run an abbreviated autoreconf, rather than a loop around
5623         all tools.
5624         (slirp, bt_mark_as_generated): Remove functions.
5625
5626 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5627
5628         ftoastr: fix typo
5629         * lib/ftoastr.h: Fix misspelling in comment.
5630
5631 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
5632
5633         * top/README-release: fix punctuation.
5634
5635 2011-12-17  Jim Meyering  <meyering@redhat.com>
5636
5637         bootstrap: correct the recent buildreq change
5638         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
5639         had no effect.
5640         * build-aux/bootstrap (buildreq): Bracket each search term with
5641         "*...*", so that the shell "case" statement works as intended.
5642         Add comments.
5643
5644 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
5645
5646         build: let bootstrap resort to wget when downloading .po files
5647         * build-aux/bootstrap (download_po_files): Fallback to wget when
5648         downloading the .po files via rsync fails.  This is necessary to
5649         bootstrap from behind a strict firewall.
5650
5651 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5652
5653         stdint: don't assume C++11 when compiling with g++
5654         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
5655         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
5656         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
5657         work also in C++ before C++11, as that improperly inhibits
5658         generating a substitute stdint.h for that case.
5659
5660 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5661
5662         alloca: protect comment from gnulib-tool
5663         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
5664         that gnulib-tool doesn't think it's a license, and munge it to
5665         say "GCC version 3".
5666
5667 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
5668
5669         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
5670         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
5671         $(abs_top_builddir) instead of $(top_builddir).
5672
5673 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
5674
5675         strftime-tests: also test nanoseconds
5676         * tests/test-strftime.c (T): Add a test of %N.
5677
5678 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
5679
5680         inttypes, stdint: add C++11 support
5681         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
5682         when including inttypes.h and stdint.h.  Support this change to
5683         the standard.
5684         * doc/posix-headers/inttypes.texi (inttypes.h):
5685         * doc/posix-headers/stdint.texi (stdint.h): Document this.
5686         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
5687         Define if not defined already, for the benefit of pre-C++11 hosts.
5688         Define the standard format macros (e.g., PRId8) always.
5689         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
5690         Likewise, if __cpluspus.  Define the standard constant and limit
5691         macros (e.g., INT8_C, INT8_MAX) always.
5692         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
5693         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
5694         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
5695         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
5696         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
5697         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
5698         Likewise.
5699
5700 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
5701
5702         nonblocking tests: Fix test failure on Linux/PPC.
5703         Suggested by Prerna Saxena in
5704         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
5705         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
5706         Set to 1100000.
5707
5708 2011-12-12  Jim Meyering  <meyering@redhat.com>
5709
5710         argmatch: don't hard-code `' when listing valid option arguments
5711         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
5712         use the quote function to add quotes.  Use fputs rather than
5713         fprintf for the format string with no format directive.
5714
5715 2011-12-07  Eric Blake  <eblake@redhat.com>
5716
5717         bootstrap: detect tools required by gnulib-tool
5718         * build-aux/bootstrap (buildreq): Provide minimum implicit
5719         dependencies.
5720         * DEPENDENCIES: Mention patch as a prereq.
5721
5722 2011-12-04  Bruno Haible  <bruno@clisp.org>
5723
5724         sethostname: Port to Windows platforms.
5725         * lib/sethostname.c: Provide an alternate implementation for Windows
5726         platforms.
5727         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
5728         (main): Skip the test if sethostname() fails with EPERM. On Windows
5729         platforms, don't check the result of gethostname().
5730
5731 2011-12-04  Bruno Haible  <bruno@clisp.org>
5732             Jim Meyering  <meyering@redhat.com>
5733
5734         tests: Avoid spurious error message on platforms without mktemp program.
5735         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
5736
5737 2011-12-04  Bruno Haible  <bruno@clisp.org>
5738
5739         sethostname: Fix documentation.
5740         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
5741         "not fixed" section.
5742
5743 2011-12-03  Bruno Haible  <bruno@clisp.org>
5744
5745         gnulib-tool: Verify that the License field is present and non-empty.
5746         * gnulib-tool (func_get_license_raw): New function, extracted from
5747         func_get_license.
5748         (func_get_license): Use it. Warn if the module is not a test module and
5749         has no license.
5750         Suggested by Jim Meyering.
5751
5752 2011-12-03  Bruno Haible  <bruno@clisp.org>
5753
5754         sethostname tests: Fix link error on mingw.
5755         * tests/test-sethostname1.c: New file, extracted from
5756         tests/test-sethostname.c.
5757         * tests/test-sethostname2.c: New file, extracted from
5758         tests/test-sethostname.c.
5759         * tests/test-sethostname.c: Remove file.
5760         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
5761         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
5762         (Depends-on): Add gethostname.
5763         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
5764         Link the latter with $(GETHOSTNAME_LIB).
5765
5766         sethostname tests: Fix compilation error on mingw.
5767         * tests/test-sethostname.c: Don't include <sys/types.h>.
5768         (geteuid): Use a dummy value without uid_t.
5769         * modules/sethostname-tests (Depends-on): Remove sys_types.
5770
5771         sethostname tests: Avoid a gcc warning.
5772         * tests/test-sethostname.c (main): Remove an unused variable.
5773
5774         Tweak last commit.
5775         * modules/sethostname-tests (Files): Sort by decreasing importance.
5776         (configure.ac): Check for geteuid.
5777         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
5778         the test when there's nothing to test. Drop an unnecessary cast.
5779         Improve an error message. Verify that the final sethostname() call
5780         succeeds.
5781
5782 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5783
5784         Add a test suite for the sethostname module.
5785         * modules/sethostname-tests: New file.  A test program
5786         for the sethostname module.
5787         * tests/test-sethostname.c: Likewise.
5788
5789 2011-12-03  Bruno Haible  <bruno@clisp.org>
5790
5791         Tweak last commit.
5792         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
5793         Fix preprocessor directives indentation. Fix typos.
5794         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
5795         * modules/unistd (Makefile): Likewise.
5796
5797 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5798
5799         Integrate the sethostname module into unistd.
5800         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
5801         into the unistd.h header.
5802         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
5803         preprocessor directives.
5804         * modules/unistd: Setup the Makefile substitutions of the
5805         SETHOSTNAME preprocessor directives.
5806
5807 2011-12-03  Bruno Haible  <bruno@clisp.org>
5808
5809         Tweak last commit.
5810         * lib/sethostname.c: Don't include <string.h>.
5811         (sethostname): No need to copy the argument string to the stack. Don't
5812         call clearerr. Preserve errno when fprintf failed.
5813         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
5814         Don't invoke AC_REPLACE_FUNCS.
5815         * modules/sethostname (Link): Remove empty section.
5816         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
5817         failure problem.
5818
5819 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5820
5821         New module 'sethostname'.
5822         * lib/sethostname.c (sethostname): New file.  Provide sethostname
5823         for systems that lack it.
5824         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
5825         sethostname declaration and function.
5826         * modules/sethostname: New file.  Define the sethostname module.
5827
5828 2011-12-03  Bruno Haible  <bruno@clisp.org>
5829
5830         Tweak last commit.
5831         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
5832
5833 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5834
5835         Split the HOST_NAME_MAX detection into a separate m4 macro.
5836         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
5837         macro so it can be used by the pending sethostname module.
5838
5839 2011-12-03  Bruno Haible  <bruno@clisp.org>
5840
5841         Fix module descriptions syntax.
5842         * modules/argv-iter (License): Fix syntax.
5843         * modules/di-set (License): Likewise.
5844         * modules/ino-map (License): Likewise.
5845         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
5846
5847 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
5848
5849         stdalign: port to Clang 3.0
5850         Problem reported by Simon Josefsson in
5851         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
5852         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
5853         which has <stdalign.h> but which does not define alignof.
5854         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
5855
5856 2011-12-01  Eric Blake  <eblake@redhat.com>
5857
5858         mktempd: silence dd usage
5859         * build-aux/mktempd (rand_bytes): Silence dd.
5860
5861 2011-11-30  Simon Josefsson  <simon@josefsson.org>
5862
5863         manywarnings: Don't mention gcc version in docstring.
5864         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
5865         Jim Meyering <meyering@redhat.com>.
5866
5867 2011-11-30  Jim Meyering  <meyering@redhat.com>
5868
5869         hash: mark a few floating point constants with "f" suffix
5870         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
5871         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
5872         floating point constants with "f", since they're destined to be
5873         saved/used as "float"s.
5874
5875 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
5876
5877         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
5878         * tests/test-float.c (test_long_double): Correct and re-enable the
5879         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
5880
5881 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
5882
5883         Avoid subtracting two pointers that don't point into the same block.
5884         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
5885         only pointers into the same memory block are subtracted. We cannot
5886         assume that sizeof (ptrdiff_t) == sizeof (void *).
5887
5888 2011-11-29  Eric Blake  <eblake@redhat.com>
5889
5890         maint.mk: add syntax check for use of compare from init.sh
5891         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
5892         moved here from coreutils.
5893
5894         manywarnings: drop -Wunsuffixed-float-constants
5895         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
5896         '1.0D', which is the only way to silence this warning for 'double'.
5897
5898 2011-11-29  Jim Meyering  <meyering@redhat.com>
5899
5900         hash: mark compute_bucket_size with the pure attribute
5901         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
5902
5903         quotearg, propername: correct pragma guard expression
5904         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
5905         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
5906
5907 2011-11-28  Jim Meyering  <meyering@redhat.com>
5908
5909         propername: do not mark proper_name with the const attribute
5910         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
5911         since it examines data pointed to by its parameter.
5912         * lib/propername.c (proper_name): Instead, add a pragma to suppress
5913         the suggestion from -Wsuggest-attribute=const.
5914
5915         propername: mark one more function as const
5916         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
5917
5918 2011-11-27  Jim Meyering  <meyering@redhat.com>
5919
5920         mark functions with const and pure attributes
5921
5922         Mark functions per suggestions from gcc-4.6 when using these options:
5923         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
5924         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
5925         Follow these guidelines: when possible, apply the attribute to
5926         an extern declaration, not to its definition.  Apply it to the
5927         definition only when the definition is static.
5928         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
5929         * lib/argv-iter.h (argv_iter_n_args): Likewise.
5930         * lib/base64.h (isbase64): Likewise.
5931         * lib/basename-lgpl.c (last_component, base_len): Likewise.
5932         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
5933         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
5934         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
5935         (c_tolower, c_toupper): Likewise.
5936         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
5937         * lib/chdir-long.c (find_non_slash): Likewise.
5938         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
5939         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
5940         * lib/file-type.h (file_type): Likewise.
5941         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
5942         * lib/filevercmp.c (verrevcmp): Likewise.
5943         * lib/freadahead.h (freadahead): Likewise.
5944         * lib/fts.c (fts_maxarglen): Likewise.
5945         * lib/hash-pjw.h (hash_pjw): Likewise.
5946         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
5947         * lib/hash.c (is_prime, next_prime): Likewise.
5948         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
5949         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
5950         (hash_table_ok, hash_get_first, hash_string): Likewise.
5951         (compute_bucket_size): Likewise.
5952         * lib/i-ring.h (i_ring_empty): Likewise.
5953         * lib/isnan.c (isnanl): Likewise.
5954         * lib/math.h (isnanl, rpl_isnanl): Likewise.
5955         * lib/memcasecmp.h (memcasecmp): Likewise.
5956         * lib/memchr2.h (memchr2): Likewise.
5957         * lib/memcmp2.h (memcmp2): Likewise.
5958         * lib/parse-datetime.y (lookup_zone): Likewise.
5959         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
5960         [!WINDOWS_SOCKETS]: Likewise.
5961         * lib/strnlen1.h (strnlen1): Likewise.
5962         * lib/uniwidth.in.h (uc_width): Likewise.
5963         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
5964         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
5965         (quoting_options_from_style): Add a comment.
5966         * lib/propername.h (proper_name): Add a comment.
5967
5968 2011-11-27  Bruno Haible  <bruno@clisp.org>
5969
5970         Remove unused macros from !_LIBC code in glibc-borrowed files.
5971         * lib/fnmatch.c (STRCOLL): Remove macro.
5972         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
5973         * lib/glob.c (__stat, __readdir64): Remove macros.
5974         * lib/tempname.c (__open64, __xstat64): Remove macros.
5975         Suggested by Paul Eggert.
5976
5977 2011-11-27  Bruno Haible  <bruno@clisp.org>
5978
5979         getcwd: Fix link error on MSVC 9.
5980         * modules/getcwd (Depends-on): Add readdir, rewinddir.
5981
5982 2011-11-27  Bruno Haible  <bruno@clisp.org>
5983
5984         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
5985         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
5986         HAVE_OPENDIR is 0.
5987         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
5988         HAVE_CLOSEDIR is 0.
5989         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
5990         is 0.
5991         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
5992
5993 2011-11-27  Bruno Haible  <bruno@clisp.org>
5994
5995         getcwd: Fix bug from 2011-08-17.
5996         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
5997         platforms that need it.
5998         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
5999         code of 4 to be a failure, not a success. This ensures that
6000         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
6001
6002 2011-11-27  Bruno Haible  <bruno@clisp.org>
6003
6004         binary-io tests: Avoid test failure on mingw when libtool is used.
6005         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
6006         Don't verify the size of t-bin-out1.tmp here.
6007         * tests/test-binary-io.sh: Verify it here.
6008         Reported by Simon Josefsson.
6009
6010 2011-11-26  Bruno Haible  <bruno@clisp.org>
6011
6012         Fix conflict between two instantiations of module 'unistd'.
6013         * gnulib-tool (func_emit_autoconf_snippet): Substitute
6014         ${include_guard_prefix} also in the autoconf snippet.
6015         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
6016         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
6017         GNULIB_UNISTD_H_GETOPT.
6018         * modules/getopt-posix (configure.ac): Set the
6019         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
6020         * modules/getopt-gnu (configure.ac): Likewise.
6021         * modules/unistd (Makefile.am): Change the substitution value of
6022         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
6023         Reported by Simon Josefsson.
6024
6025 2011-11-25  Bruno Haible  <bruno@clisp.org>
6026
6027         pagealign_alloc: Doc and comments.
6028         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
6029         module.
6030         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
6031
6032 2011-11-25  Jim Meyering  <meyering@redhat.com>
6033
6034         test-update-copyright.sh: avoid false-positive failure
6035         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
6036         around false positive failure on Cygwin/Windows.  The latter was
6037         matching erroneously-created files with names like
6038         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
6039
6040 2011-11-25  Simon Josefsson  <simon@josefsson.org>
6041
6042         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
6043         * m4/valgrind-tests.m4: Check that the parameters that will be
6044         used works, not just a subset of them.  Reported by Bruno Haible
6045         <bruno@clisp.org>.
6046
6047 2011-11-24  Jim Meyering  <meyering@redhat.com>
6048
6049         test-stdalign.c: comment out long double tests
6050         * tests/test-stdalign.c: Don't try to reduce alignment of long double
6051         variables.  That provokes errors like this from gcc-4.7.0 20111124:
6052         error: '_Alignas' specifiers cannot reduce alignment of \
6053         'static_longdouble_alignas'.
6054
6055 2011-11-22  Jim Meyering  <meyering@redhat.com>
6056
6057         init.sh: make "compare /dev/null FILE" output more readable
6058         * tests/init.sh (compare_): Document the preferred order of arguments.
6059         (emit_diff_u_header_): New function.
6060         (compare_dev_null_): Emit a simulated diff, rather than just the
6061         contents of the unexpected file.  Suggestion from Bruno Haible.
6062
6063 2011-11-21  Jim Meyering  <meyering@redhat.com>
6064             Eric Blake  <eblake@redhat.com>
6065
6066         init.sh: work around OSF/1 5.1's mishandling of /dev/null
6067         * tests/init.sh: Make our compare function slightly more portable.
6068         Reported by Bruno Haible in
6069         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
6070
6071 2011-11-21  Simon Josefsson  <simon@josefsson.org>
6072
6073         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
6074         before using it, in code that ends up in config.h.
6075
6076 2011-11-20  Bruno Haible  <bruno@clisp.org>
6077
6078         getcwd: Work around getcwd bug on AIX 5..7.
6079         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
6080         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
6081         Use a different value for gl_cv_func_getcwd_path_max. Move the
6082         definition of HAVE_PARTLY_WORKING_GETCWD from here...
6083         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
6084         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
6085         Define HAVE_MINIMALLY_WORKING_GETCWD.
6086         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
6087         where it is not even minimally working, that is, on AIX.
6088         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
6089         m4/getcwd-path-max.m4.
6090         (main): Update exit code computation.
6091         * doc/posix-functions/getcwd.texi: Mention list of platforms where
6092         getcwd does not handle long file names.
6093
6094 2011-11-20  Bruno Haible  <bruno@clisp.org>
6095
6096         getcwd: Fix bug from 2009-09-10.
6097         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
6098         like "no".
6099
6100 2011-11-20  Simon Josefsson  <simon@josefsson.org>
6101
6102         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
6103
6104 2011-11-20  Bruno Haible  <bruno@clisp.org>
6105
6106         fma tests: Avoid shadowing local variables.
6107         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
6108         expected.
6109
6110 2011-11-20  Bruno Haible  <bruno@clisp.org>
6111
6112         copysignf tests: Fix.
6113         * tests/test-copysignf.c: Fix signature check.
6114
6115 2011-11-20  Bruno Haible  <bruno@clisp.org>
6116
6117         fma: Remove unused code.
6118         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
6119         unused macros.
6120
6121 2011-11-20  Bruno Haible  <bruno@clisp.org>
6122
6123         sethostname: Fix doc about AIX.
6124         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
6125         sethostname; it has it.
6126
6127         sethostname: Mention more portability problems.
6128         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
6129         problem.
6130         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
6131
6132 2011-11-19  Bruno Haible  <bruno@clisp.org>
6133
6134         Depend on module fcntl-h when AT_FDCWD is used.
6135         * modules/utimens (Depends-on): Add fcntl-h.
6136         * modules/areadlinkat (Depends-on): Likewise.
6137         * modules/areadlinkat-with-size (Depends-on): Likewise.
6138         * modules/faccessat (Depends-on): Likewise.
6139         * modules/fchmodat (Depends-on): Likewise.
6140         * modules/fchownat (Depends-on): Likewise.
6141         * modules/getcwd (Depends-on): Likewise.
6142         * modules/mkdirat (Depends-on): Likewise.
6143         * modules/mkfifoat (Depends-on): Likewise.
6144         * modules/readlinkat (Depends-on): Likewise.
6145         * modules/symlinkat (Depends-on): Likewise.
6146         * modules/dup2-tests (Depends-on): Likewise.
6147         * modules/fdutimensat-tests (Depends-on): Likewise.
6148         * modules/futimens-tests (Depends-on): Likewise.
6149
6150 2011-11-19  Bruno Haible  <bruno@clisp.org>
6151
6152         euidaccess: Update a comment.
6153         * lib/euidaccess.c: Update comment about platforms with faccessat.
6154
6155 2011-11-19  Bruno Haible  <bruno@clisp.org>
6156
6157         openat: Fix file list.
6158         * modules/openat (Files): Remove lib/at-func.c.
6159
6160 2011-11-19  Bruno Haible  <bruno@clisp.org>
6161
6162         fstatat: Simplify.
6163         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
6164         gnulib should define rpl_fstatat, there is a
6165         "#define fstatat rpl_fstatat" in <sys/stat.h>.
6166
6167 2011-11-19  Bruno Haible  <bruno@clisp.org>
6168
6169         Ensure 'inline' can be used in tests/test-utimens-common.h.
6170         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
6171         * modules/futimens-tests (configure.ac): Likewise.
6172         * modules/utimens-tests (configure.ac): Likewise.
6173         * modules/utimensat-tests (configure.ac): Likewise.
6174
6175 2011-11-19  Simon Josefsson  <simon@josefsson.org>
6176
6177         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
6178         not hash_insert0.
6179         (hash_insert_if_absent): Doc fix.
6180
6181 2011-11-19  Simon Josefsson  <simon@josefsson.org>
6182
6183         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
6184
6185 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
6186
6187         test-getcwd: disambiguate exit status
6188         * tests/test-getcwd.c (test_long_name): Return 0..7.
6189         (main): Exit with an unambiguous exit status.  The old
6190         code yielded a mysterious mixture of two failure codes.
6191
6192         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
6193         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
6194         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
6195         rpl_fstatat or fstatat.  This should fix the other problem
6196         reported by Kai Habel in
6197         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
6198         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
6199         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
6200         and I reproduced it on a Solaris 8 host we still have in production.
6201
6202 2011-11-18  Jim Meyering  <meyering@redhat.com>
6203
6204         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
6205         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
6206         Add a sentence to the comment.
6207         (hash_insert0): New function that simply calls hash_insert_if_absent.
6208         * lib/hash.h (hash_insert_if_absent): Declare it.
6209         (hash_insert0): Add deprecation attribute.
6210         (_GL_ATTRIBUTE_DEPRECATED): Define.
6211         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
6212         not hash_insert0.
6213         * NEWS: Mention it, even though it's not really an incompatible change.
6214
6215 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
6216
6217         openat: avoid compilation failure due to lack of <errno.h> inclusion
6218         * lib/openat.c: Include <errno.h>.
6219
6220 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
6221
6222         * modules/getcwd (Depends-on): Add fdopendir.
6223         This fixes one of the two problems reported by Kai Habel in
6224         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
6225
6226         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
6227         stdalign problem reported by Ian Beckwith in
6228         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
6229         * modules/crypto/gc-arcfour (Depends-on):
6230         Depend conditionally on crypto/arcfour.
6231         * modules/crypto/gc-arctwo (Depends-on):
6232         Depend conditionally on crypto/arctwo.
6233         * modules/crypto/gc-des (Depends-on):
6234         Depend conditionally on crypto/des.
6235         * modules/crypto/gc-hmac-md5 (Depends-on):
6236         Depend conditionally on crypto/hmac-md5.
6237         * modules/crypto/gc-hmac-sha1 (Depends-on):
6238         Depend conditionally on crypto/hmac-sha1.
6239         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
6240         * modules/crypto/gc-md4 (Depends-on):
6241         Depend conditionally on crypto/md4.
6242         * modules/crypto/gc-md5 (Depends-on):
6243         Depend conditionally on crypto/md5.
6244         * modules/crypto/gc-rijndael (Depends-on):
6245         Depend conditionally on crypto/rijndael.
6246         * modules/crypto/gc-sha1 (Depends-on):
6247         Depend conditionally on crypto/sha1.
6248         * modules/crypto/gc-arcfour:
6249         * modules/crypto/gc-arctwo:
6250         * modules/crypto/gc-des:
6251         * modules/crypto/gc-hmac-md5:
6252         * modules/crypto/gc-hmac-sha1:
6253         * modules/crypto/gc-md2:
6254         * modules/crypto/gc-md4:
6255         * modules/crypto/gc-md5:
6256         * modules/crypto/gc-rijndael:
6257         * modules/crypto/gc-sha1:
6258         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
6259         now that the conditional dependencies do the work for us.
6260
6261 2011-11-17  Jim Meyering  <meyering@redhat.com>
6262
6263         tests: factor st_ctime-comparison out of two headers
6264         * tests/test-utimens-common.h (ctime_compare): Define.
6265         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
6266         * tests/test-lutimens.h (test_lutimens): Likewise.
6267         * tests/test-utimens.h (test_utimens): Likewise.
6268
6269         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
6270         Invoke the test program via an init.sh-using wrapper.
6271         * tests/test-getcwd.sh: New file.
6272         * modules/getcwd-tests (Files): Add it.
6273         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
6274
6275 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
6276
6277         gitlog-to-changelog: support multi-author commits.
6278         The FSF cares about keeping track of all authors of patches to its
6279         projects, but Git doesn't provide obvious support for multi-author
6280         changesets. Consensus seems to be forming around the use of extra
6281         Signed-off-by inspired lines in the log message formatted as
6282         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
6283         multi-author commits between version control systems.
6284         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
6285         log message and output in standard ChangeLog multi-author format.
6286         Reported by Peter Rosin <peda@lysator.liu.se>
6287
6288 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
6289             Bruno Haible  <bruno@clisp.org>
6290
6291         Fix some modules' file list.
6292         * modules/fstatat (Files): Add m4/lstat.m4.
6293         * modules/openat (Files): Likewise.
6294         * modules/unlinkat (Files): Likewise.
6295
6296 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
6297
6298         maint.mk: fix tight-scope.mk generation in VPATH builds.
6299         * top/maint.mk (tight-scope.mk): Make sure to prefix file
6300         reference with $(srcdir) so that the file is found correctly even
6301         when running `make syntax-check' in a VPATH build.
6302
6303 2011-11-13  Bruno Haible  <bruno@clisp.org>
6304             Jim Meyering  <meyering@redhat.com>
6305
6306         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
6307         * tests/init.sh (compare): Remove "No differences encountered" or
6308         synonymous output from the 'diff' program.
6309
6310 2011-11-13  Bruno Haible  <bruno@clisp.org>
6311
6312         Makefile: Tweak indentation.
6313         * Makefile: Use tab as first character in every line that contains rule
6314         commands.
6315
6316 2011-11-13  Bruno Haible  <bruno@clisp.org>
6317
6318         Syntax check for copyright statements.
6319         * check-copyright: New file.
6320         * Makefile (sc_check_copyright): New rule.
6321
6322 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6323
6324         * build-aux/git-version-gen: Add --prefix to configure the tag
6325         match string.
6326
6327 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6328
6329         * build-aux/git-version-gen: Add --help and --version.
6330
6331 2011-11-12  Jim Meyering  <meyering@redhat.com>
6332
6333         revamp the other test-exclude?.sh scripts to use init.sh, too
6334         * tests/test-exclude1.sh: Use init.sh.
6335         * tests/test-exclude2.sh: Likewise.
6336         * tests/test-exclude3.sh: Likewise.
6337         * tests/test-exclude4.sh: Likewise.
6338         * tests/test-exclude5.sh: Likewise.
6339         * tests/test-exclude6.sh: Likewise.
6340         * tests/test-exclude7.sh: Likewise.
6341         * tests/test-exclude8.sh: Likewise.
6342         * modules/exclude-tests (Files): List init.sh.
6343
6344         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
6345         These shell scripts ignored failure of the binary test-exclude,
6346         so making the latter return 77 didn't cause them to be skipped.
6347         * tests/test-exclude5.sh: Exit with test-exclude's error status
6348         when that program fails.  Revamp to use init.sh.
6349         * tests/test-exclude2.sh: Likewise.
6350
6351         test-exclude: fix a typo
6352         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
6353
6354 2011-11-11  Bruno Haible  <bruno@clisp.org>
6355
6356         obstack: Fix compilation error on MSVC 9.
6357         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
6358
6359 2011-11-11  Jim Meyering  <meyering@redhat.com>
6360
6361         test-exclude: skip tests rather than failing on deficient systems
6362         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
6363         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
6364         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
6365         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
6366
6367 2011-11-10  Bruno Haible  <bruno@clisp.org>
6368
6369         ptsname_r test: Avoid gcc warning on glibc systems.
6370         * tests/test-ptsname_r.c (null_ptr): New function.
6371         (test_errors): Use it.
6372
6373 2011-11-10  Bruno Haible  <bruno@clisp.org>
6374
6375         ptsname_r: Avoid compilation error on OSF/1 5.1.
6376         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
6377         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
6378         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
6379         function is not declared or incompatibly declared.
6380         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
6381         * modules/ptsname_r (Depends-on, configure.ac): Update.
6382         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
6383
6384 2011-11-10  Bruno Haible  <bruno@clisp.org>
6385
6386         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
6387         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
6388         When cross-compiling, guess yes on all platforms except AIX.
6389         Reported by Ludovic Courtès <ludo@gnu.org>.
6390
6391 2011-11-09  Bruno Haible  <bruno@clisp.org>
6392
6393         ptsname_r tests: Fix bugs.
6394         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
6395         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
6396
6397 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
6398
6399         fstatat: work with cross-compilation
6400         Problem reported by Ludovic Courtès in
6401         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
6402         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
6403         "cross-compiling" and assume the bug is present.  Replace
6404         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
6405         an inverted sense, to be more conservative about our assumptions.
6406         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
6407
6408 2011-11-09  Bruno Haible  <bruno@clisp.org>
6409
6410         Improve MODULES.html output.
6411         * modules/mkfifoat (Description): Use the word "function".
6412         * modules/readlinkat (Description): Likewise.
6413         * modules/symlinkat (Description): Likewise.
6414
6415 2011-11-09  Eric Blake  <eblake@redhat.com>
6416
6417         ptsname_r-tests: new test module
6418         * modules/ptsname_r-tests: New module.
6419         * tests/test-ptsname_r.c: New file.
6420
6421         ptsname_r: new module
6422         * modules/ptsname_r: New module.
6423         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
6424         * lib/ptsname.c (__ptsname_r): Split...
6425         * lib/ptsname_r.c: ...into new file.
6426         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6427         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
6428         * modules/stdlib (Makefile.am): Substitute witnesses.
6429         * lib/stdlib.in.h (ptsname_r): Declare it.
6430         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
6431         * MODULES.html.sh (Misc): Likewise.
6432         * modules/ptsname (Depends-on): Alter dependency.
6433         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
6434
6435 2011-11-09  Jim Meyering  <meyering@redhat.com>
6436
6437         announce-gen: be more concise when there's only one URL+tarball
6438         * build-aux/announce-gen (get_tool_versions): When you distribute
6439         only one type of tarball, combine the first two "Here are..."
6440         sections and make the key-checking grammar independent of
6441         how many tarballs there are.
6442
6443 2011-11-09  Eric Blake  <eblake@redhat.com>
6444
6445         openpty: provide a stub on mingw
6446         * lib/pty.in.h (includes): Provide forward declarations.
6447         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
6448
6449         raise: fix mingw handling of SIGPIPE
6450         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
6451
6452 2011-11-08  Bruno Haible  <bruno@clisp.org>
6453
6454         More conditional dependencies.
6455         * modules/faccessat (Depends-on): Add conditions.
6456         * modules/fchmodat (Depends-on): Likewise.
6457         * modules/fchownat (Depends-on): Likewise.
6458         * modules/fstatat (Depends-on): Likewise.
6459         * modules/mkfifoat (Depends-on): Likewise.
6460         * modules/readlinkat (Depends-on): Likewise.
6461         * modules/symlinkat (Depends-on): Likewise.
6462         * modules/unlinkat (Depends-on): Likewise.
6463         * modules/utimensat (Depends-on): Likewise.
6464         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
6465         * modules/linkat (Depends-on): Refine the conditions.
6466         * modules/renameat (Depends-on): Likewise.
6467
6468 2011-11-08  Bruno Haible  <bruno@clisp.org>
6469
6470         faccessat: Move AC_LIBOBJ invocation to module description.
6471         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
6472         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
6473         invocation from here...
6474         * modules/faccessat (configure.ac): ... to here. Invoke
6475         gl_PREREQ_FACCESSAT.
6476
6477 2011-11-08  Bruno Haible  <bruno@clisp.org>
6478
6479         faccessat: Simplify autoconf macro.
6480         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
6481         gl_FUNC_EUIDACCESS.
6482
6483 2011-11-08  Bruno Haible  <bruno@clisp.org>
6484
6485         renameat: Fix dependencies.
6486         * modules/renameat (Depends-on): Add stdbool.
6487
6488 2011-11-08  Bruno Haible  <bruno@clisp.org>
6489
6490         mkfifoat: Fix module description.
6491         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
6492         not gl_UNISTD_MODULE_INDICATOR.
6493
6494 2011-11-08  Bruno Haible  <bruno@clisp.org>
6495
6496         fstatat: Remove unused dependency.
6497         * modules/fstatat (Depends-on): Remove fstat.
6498
6499 2011-11-08  Simon Josefsson  <simon@josefsson.org>
6500
6501         GNUmakefile: behave when Makefile is missing.
6502         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
6503
6504 2011-11-08  Bruno Haible  <bruno@clisp.org>
6505
6506         openat: Conditionalize dependencies.
6507         * lib/openat.c: Reduce the scope of some #includes.
6508         * modules/openat (Depends-on): Add conditions.
6509
6510 2011-11-07  Jim Meyering  <meyering@redhat.com>
6511
6512         maint.mk: extract GPG key ID without using a temporary file
6513         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
6514         without using a temporary file.  Based on a suggestion from Werner Koch
6515         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
6516
6517 2011-11-07  Eric Blake  <eblake@redhat.com>
6518
6519         grantpt: fix typo
6520         * lib/stdlib.in.h (grantpt): Check correct function.
6521
6522         maint.mk: silence new syntax check
6523         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
6524
6525 2011-11-06  Bruno Haible  <bruno@clisp.org>
6526
6527         Doc about floating-point and math API.
6528         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
6529         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
6530
6531 2011-11-06  Bruno Haible  <bruno@clisp.org>
6532
6533         stdalign tests: Skip the test when compiled by Sun C.
6534         * tests/test-stdalign.c (main): Skip the test on Sun C.
6535
6536 2011-11-06  Bruno Haible  <bruno@clisp.org>
6537
6538         ansi-c++-opt: Complete the 2011-06-05 change.
6539         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
6540         does not support namespaces, set the variable to "no", not to ":".
6541
6542 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
6543
6544         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
6545
6546 2011-11-06  Bruno Haible  <bruno@clisp.org>
6547
6548         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
6549         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
6550         (minus_zerol) [HP-UX]: New macro.
6551         (unary_minus) [HP-UX]: New function.
6552         (copysignl) [HP-UX]: Use unary_minus function.
6553
6554 2011-11-06  Bruno Haible  <bruno@clisp.org>
6555
6556         ldexp, ldexpf, ldexpl: Enhance tests.
6557         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
6558         and tests/test-ldexpl.c.
6559         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
6560         LDEXP, MIN_EXP, MAX_EXP): New macros.
6561         Include test-ldexp.h.
6562         (main): Just call test_function.
6563         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
6564         infinity.h, nan.h.
6565         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6566         MAX_EXP): New macros.
6567         Include test-ldexp.h.
6568         (x, y): Remove variables.
6569         (main): Just call test_function.
6570         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
6571         infinity.h, nan.h.
6572         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6573         MAX_EXP): New macros.
6574         Include test-ldexp.h.
6575         (x, y): Remove variables.
6576         (main): Just call test_function.
6577         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
6578         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
6579         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6580         (Depends-on): Add isnand-nolibm, signbit, float.
6581         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
6582         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6583         (Depends-on): Add isnanf-nolibm, signbit, float.
6584
6585 2011-11-06  Bruno Haible  <bruno@clisp.org>
6586
6587         math tests: Cosmetics.
6588         * tests/test-math-c++.cc: Reorder declarations.
6589
6590 2011-11-05  Bruno Haible  <bruno@clisp.org>
6591
6592         fma*: Simplify test.
6593         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
6594         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
6595
6596         Tests for module 'fmal'.
6597         * modules/fmal-tests: New file.
6598         * tests/test-fmal1.c: New file.
6599         * tests/test-fmal2.c: New file.
6600
6601         New module 'fmal'.
6602         * lib/math.in.h (fmal): New declaration.
6603         * lib/fmal.c: New file.
6604         * m4/fmal.m4: New file.
6605         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
6606         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
6607         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
6608         REPLACE_FMAL.
6609         * modules/fmal: New file.
6610         * doc/posix-functions/fmal.texi: Mention the new module and the various
6611         bugs.
6612
6613         Tests for module 'fmaf'.
6614         * modules/fmaf-tests: New file.
6615         * tests/test-fmaf1.c: New file.
6616         * tests/test-fmaf2.c: New file.
6617
6618         New module 'fmaf'.
6619         * lib/math.in.h (fmaf): New declaration.
6620         * lib/fmaf.c: New file.
6621         * m4/fmaf.m4: New file.
6622         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
6623         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
6624         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
6625         REPLACE_FMAF.
6626         * modules/fmaf: New file.
6627         * doc/posix-functions/fmaf.texi: Mention the new module and the various
6628         bugs.
6629
6630         Tests for module 'fma'.
6631         * modules/fma-tests: New file.
6632         * tests/test-fma1.c: New file.
6633         * tests/test-fma1.h: New file.
6634         * tests/test-fma2.c: New file.
6635         * tests/test-fma2.h: New file.
6636
6637         New module 'fma'.
6638         * lib/math.in.h (fma): New declaration.
6639         * lib/fma.c: New file.
6640         * m4/fma.m4: New file.
6641         * m4/fegetround.m4: New file.
6642         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
6643         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
6644         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
6645         REPLACE_FMA.
6646         * modules/fma: New file.
6647         * doc/posix-functions/fma.texi: Mention the new module and the various
6648         bugs.
6649
6650         Extend gl_MATHFUNC.
6651         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
6652         Support 'void' as argument type.
6653         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
6654
6655 2011-11-05  Jim Meyering  <meyering@redhat.com>
6656
6657         maint.mk: also prohibit inclusion of dirent.h without use
6658         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
6659
6660 2011-11-05  Bruno Haible  <bruno@clisp.org>
6661
6662         ldexpl tests: Avoid test failure on MSVC 9.
6663         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
6664         value. Needed in order to enforce the conversion from a value greater
6665         than LDBL_MAX to Infinity.
6666
6667 2011-11-05  Bruno Haible  <bruno@clisp.org>
6668
6669         New modules 'at-internal', 'openat-h', split off from module 'openat'.
6670         * modules/at-internal: New file, extracted from modules/openat.
6671         * modules/openat-h: New file.
6672         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
6673         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
6674         * modules/openat (Description): Add reference to POSIX function.
6675         (Files): Remove lib/openat.h, lib/openat-proc.c.
6676         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
6677         intprops, unistd.
6678         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
6679         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
6680         gl_FCNTL_MODULE_INDICATOR.
6681         (Include): Remove unistd.h, openat.h.
6682         * modules/areadlinkat (Files): Add lib/at-func.c.
6683         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6684         openat-die, openat-h, save-cwd.
6685         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
6686         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6687         openat-die, openat-h, save-cwd, unistd.
6688         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
6689         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6690         openat-h, save-cwd. Remove fcntl-h, openat.
6691         * modules/fchmodat (Files): Remove lib/openat.h.
6692         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6693         openat, stdbool, unistd.
6694         * modules/fchownat (Files): Remove lib/openat.h.
6695         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6696         openat, stdbool, sys_stat.
6697         * modules/fdopendir (Files): Remove lib/openat-priv.h,
6698         lib/openat-proc.c.
6699         (Depends-on): Add at-internal.
6700         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
6701         * modules/fstatat (Files): Remove lib/openat.h.
6702         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6703         stdbool, unistd.
6704         * modules/fts (Depends-on): Add openat-h.
6705         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
6706         openat.
6707         * modules/mkdirat (Files): Remove lib/openat.h.
6708         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6709         openat, stdbool, sys_stat.
6710         * modules/mkfifoat (Files): Add lib/at-func.c.
6711         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6712         openat-h, save-cwd. Remove fcntl-h, openat.
6713         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
6714         * modules/readlinkat (Files): Add lib/at-func.c.
6715         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6716         openat-h, save-cwd. Remove fcntl-h, openat.
6717         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
6718         openat.
6719         * modules/selinux-at (Files): Add lib/at-func.c.
6720         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6721         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
6722         * modules/symlinkat (Files): Add lib/at-func.c.
6723         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6724         openat-h, save-cwd. Remove fcntl-h, openat.
6725         * modules/unlinkat (Files): Remove lib/openat.h.
6726         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6727         stdbool.
6728         * modules/utimensat (Files): Add lib/at-func.c.
6729         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
6730         openat-die, openat-h, save-cwd.
6731         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
6732         * modules/fdutimensat-tests (Depends-on): Add openat.
6733         * modules/fstatat-tests (Depends-on): Add openat-h.
6734         * modules/readlinkat-tests (Depends-on): Add openat.
6735         * modules/symlinkat-tests (Depends-on): Add openat.
6736
6737 2011-11-05  Bruno Haible  <bruno@clisp.org>
6738
6739         openat: Include <stdbool.h>.
6740         * lib/openat.c: Include <stdbool.h>.
6741
6742 2011-11-04  Bruno Haible  <bruno@clisp.org>
6743
6744         fchownat, renameat, unlinkat: Fix dependencies.
6745         * modules/fchownat (Depends-on): Add fstatat.
6746         * modules/renameat (Depends-on): Likewise.
6747         * modules/unlinkat (Depends-on): Likewise.
6748
6749 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
6750
6751         openat: remove direct dependency on dirent
6752         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
6753         and hasn't been needed ever since fdopendir was split into its own
6754         module on 2009-08-31.
6755         * modules/openat (Depends-on): Remove dirent.
6756
6757 2011-11-04  Bruno Haible  <bruno@clisp.org>
6758
6759         renameat: Optimize code size.
6760         * modules/renameat (configure.ac): Don't compile at-func2.c if
6761         REPLACE_RENAMEAT is 1.
6762
6763 2011-11-04  Bruno Haible  <bruno@clisp.org>
6764
6765         openat tests: Fix file list.
6766         * modules/openat-tests (Files): Add tests/test-open.h.
6767
6768 2011-11-04  Bruno Haible  <bruno@clisp.org>
6769
6770         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
6771         * modules/fchmodat (Depends-on): Add openat-die.
6772         * modules/fchownat (Depends-on): Likewise.
6773         * modules/linkat (Depends-on): Likewise.
6774         * modules/renameat (Depends-on): Likewise.
6775         * modules/openat (Depends-on): Add dirent.
6776
6777 2011-11-04  Jim Meyering  <meyering@redhat.com>
6778
6779         at-func*.c: fix comments
6780         * lib/at-func2.c: Correct/improve first-line comment.
6781         * lib/at-func.c: Correct grammar in first-line comment.
6782
6783 2011-11-04  Bruno Haible  <bruno@clisp.org>
6784
6785         New module 'mkdirat', split off from module 'openat'.
6786         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
6787         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
6788         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
6789         * modules/mkdirat: New file, extracted from modules/openat.
6790         * modules/openat (Files): Remove lib/mkdirat.c.
6791         (Depends-on): Remove mkdir.
6792         (configure.ac): Remove AC_LIBOBJ of mkdirat.
6793         (Include): Remove <sys/stat.h>.
6794         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
6795         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
6796         tests/test-mkdir.h.
6797         (Depends-on): Remove ignore-value.
6798         (Makefile.am): Remove rules for test-mkdirat.
6799         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
6800         of module 'openat'.
6801         * NEWS: Mention the change.
6802
6803 2011-11-04  Bruno Haible  <bruno@clisp.org>
6804
6805         closedir: Avoid warning on mingw.
6806         * lib/closedir.c: Include <unistd.h>.
6807
6808 2011-11-04  Bruno Haible  <bruno@clisp.org>
6809
6810         New module 'fstatat', split off from module 'openat'.
6811         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
6812         defined.
6813         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
6814         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
6815         gl_FUNC_FSTATAT.
6816         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
6817         * modules/fstatat: New file, extracted from modules/openat.
6818         * modules/openat (Files): Remove lib/fstatat.c.
6819         (Depends-on): Remove lstat.
6820         (configure.ac): Remove AC_LIBOBJ of fstatat.
6821         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
6822         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
6823         tests/test-lstat.h, tests/test-stat.h.
6824         (Depends-on): Remove getcwd-lgpl.
6825         (Makefile.am): Remove rules for test-fstatat.
6826         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
6827         of module 'openat'.
6828         * NEWS: Mention the change.
6829         * modules/getcwd (Depends-on): Add fstatat.
6830         * modules/linkat (Depends-on): Likewise.
6831         * modules/mkfifoat-tests (Depends-on): Likewise.
6832         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
6833
6834 2011-11-03  Bruno Haible  <bruno@clisp.org>
6835
6836         New module 'unlinkat', split off from module 'openat'.
6837         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
6838         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
6839         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
6840         * modules/unlinkat: New file, extracted from modules/openat. Correct
6841         the dependency conditions.
6842         * modules/openat (Files): Remove lib/unlinkat.c.
6843         (Depends-on): Remove rmdir, unlink.
6844         (configure.ac): Remove AC_LIBOBJ of unlinkat.
6845         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
6846         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
6847         tests/test-rmdir.h, tests/test-unlink.h.
6848         (Depends-on): Remove unlinkdir.
6849         (Makefile.am): Remove rules for test-unlinkat.
6850         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
6851         of module 'openat'.
6852         * NEWS: Mention the change.
6853         * modules/linkat-tests (Depends-on): Add unlinkat.
6854         * modules/mkfifoat-tests (Depends-on): Likewise.
6855         * modules/readlinkat-tests (Depends-on): Likewise.
6856
6857 2011-11-02  Bruno Haible  <bruno@clisp.org>
6858
6859         New module 'fchmodat', split off from module 'openat'.
6860         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
6861         defined.
6862         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
6863         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
6864         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
6865         * modules/fchmodat: New file, extracted from modules/openat.
6866         * modules/openat (Files): Remove lib/fchmodat.c.
6867         (configure.ac): Remove AC_LIBOBJ of fchmodat.
6868         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
6869         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
6870         (Makefile.am): Remove rules for test-fchmodat.
6871         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
6872         of module 'openat'.
6873         * NEWS: Mention the change.
6874
6875 2011-11-02  Jim Meyering  <meyering@redhat.com>
6876
6877         putenv: indent #definition of "environ" to placate cppi
6878         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
6879
6880         gitlog-to-changelog: provide a ChangeLog-repair mechanism
6881         Git logs are often treated as immutable, because editing them
6882         changes the SHA1 checksums of all descendants.  Thus, errors in
6883         git logs tend to stay there forever.  However, when we generate
6884         a ChangeLog file -- typically for distribution -- from that git log,
6885         we can actually make corrections in the generated file.  The key
6886         lies in recording in machine-readable/applicable form the desired
6887         corrections.  See --help for description and an example.
6888         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
6889         (usage): Describe it; alphabetize option descriptions.
6890         (main): Honor the new option, carefully.
6891
6892 2011-11-01  Jim Meyering  <meyering@redhat.com>
6893
6894         gitlog-to-changelog: avoid an infloop
6895         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
6896         that ends up being empty.
6897
6898 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6899
6900         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
6901         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
6902         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
6903         contains (possibly-quoted) backslashes.  This should avoid
6904         all-too-common shell bugs if COMPLICATED contains backslashes in
6905         the "wrong" places.  Reported by David Evans in
6906         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
6907         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
6908         because we want ASCII ranges.  Is there some reason we don't use
6909         the C locale everywhere in this script?
6910         (func_module, top level): Avoid unwanted pathname expansion when
6911         $repo_url_prefix or $repo_url_suffix_repl contain shell
6912         metacharacters like '?' and '*'.
6913
6914 2011-11-01  Bruno Haible  <bruno@clisp.org>
6915
6916         fchownat: Improve description.
6917         * modules/fchownat (Description): Add link to function.
6918
6919 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6920
6921         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
6922         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
6923         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
6924         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
6925
6926 2011-11-01  Bruno Haible  <bruno@clisp.org>
6927
6928         alignof: Avoid collision with stdalign module.
6929         * lib/alignof.h (alignof): Remove macro.
6930         * NEWS: Mention the change.
6931         Reported by Paul Eggert.
6932
6933 2011-11-01  Bruno Haible  <bruno@clisp.org>
6934
6935         New module 'fchownat', split off from module 'openat'.
6936         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
6937         defined.
6938         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
6939         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
6940         invoke gl_FUNC_FCHOWNAT.
6941         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
6942         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
6943         * modules/fchownat: New file, extracted from modules/openat.
6944         * modules/openat (Files): Remove lib/fchownat.c.
6945         (Depends-on): Remove lchown.
6946         (configure.ac): Remove AC_LIBOBJ of fchownat.
6947         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
6948         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
6949         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
6950         (Depends-on): Remove mgetgroups, usleep, stat-time.
6951         (configure.ac): Remove test for getegid.
6952         (Makefile.am): Remove rules for test-fchownat.
6953         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
6954         of module 'openat'.
6955         * NEWS: Mention the change.
6956
6957 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
6958
6959         stdalign: port better to MSVC and to Sun C 5.11
6960         This fixes some of the problems reported by Bruno Haible in
6961         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
6962         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
6963         shortcomings of MSVC and of Sun C 5.11.
6964         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
6965         around __declspec arg.
6966         * modules/stdalign-tests (Files): Add tests/macros.h.
6967         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
6968         Include macros.h, for ASSERT.
6969         (DECLARE_ALIGNED): Remove.
6970         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
6971         to catch bug), and to 1 if not (simplifies the rest of the code).
6972         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
6973         (CHECK_AUTO): Remove.
6974         (CHECK_ALIGNED): Check only the alignment of the static vars,
6975         since auto var alignment isn't supported by Sun C 5.11.
6976         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
6977         ASSERT failures are easier to diagnose.
6978
6979 2011-10-31  Bruno Haible  <bruno@clisp.org>
6980
6981         doc about some IRIX 5.3 problems.
6982         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
6983         on IRIX 5.3.
6984         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
6985         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
6986         5.3.
6987         * doc/posix-functions/grantpt.texi: Likewise.
6988         * doc/posix-functions/unlockpt.texi: Likewise.
6989         * doc/posix-functions/lgamma.texi: Likewise.
6990         * doc/posix-functions/nextafter.texi: Likewise.
6991         * doc/posix-functions/remainder.texi: Likewise.
6992         * doc/posix-functions/select.texi: Mention misplaced declaration on
6993         IRIX 5.3.
6994         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6995
6996 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
6997
6998         gitlog-to-changelog: fix git-log invocation.
6999         git-log mishandles date strings before 1970-01-01 UTC, and there is
7000         no use to specify --since=1970-01-01 by default anyway.
7001         * build-aux/gitlog-to-changelog: By default, when no --since option
7002         was given, do not specify explicit --since option to git-log.
7003
7004 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
7005
7006         gitlog-to-changelog: new option --append-dot.
7007         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
7008         first non-blank line of each commit message terminated with a dot.
7009
7010 2011-10-30  Bruno Haible  <bruno@clisp.org>
7011
7012         ffsl, ffsll: Avoid compilation error due to 'restrict'.
7013         * lib/ffsl.h: Include <config.h>.
7014         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
7015
7016 2011-10-30  Jim Meyering  <meyering@redhat.com>
7017
7018         GNUmakefile: reenable "make syntax-check" for most projects
7019         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
7020         build-aux variable", "syntax-check" would do nothing but succeed with
7021         the "No version control files detected..." diagnostic (unless you
7022         happened to override _build-aux via cfg.mk).
7023         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
7024         to precede inclusion of maint.mk.  Otherwise, these variables would
7025         be used undefined in any project that does not override the default.
7026
7027 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
7028
7029         gitlog-to-changelog: treat a message with only blank lines as empty.
7030         * build-aux/gitlog-to-changelog: Move the code that removes leading and
7031         trailing blank lines before the code that issues a warning about an
7032         empty commit message.
7033
7034 2011-10-30  Jim Meyering  <meyering@redhat.com>
7035
7036         test-parse-datetime.c: avoid new DST-related false positive test failure
7037         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
7038         based on the time/date we'll convert, not the current time.
7039         Otherwise, the moment we cross a DST boundary like today's in
7040         Europe, (CEST to CET), that offset ends up being one hour off.
7041
7042 2011-10-27  Bruno Haible  <bruno@clisp.org>
7043
7044         fstat: Tweak documentation.
7045         * modules/fstat (Description): More precise description.
7046
7047 2011-10-27  Bruno Haible  <bruno@clisp.org>
7048
7049         Update documentation regarding 'largefile' module.
7050         * doc/posix-functions/fstat.texi: Tweak wording.
7051         * doc/posix-functions/opendir.texi: Mention that the module fixes the
7052         problems with huge directories and/or small ino_t types.
7053         * doc/posix-functions/readdir.texi: Likewise.
7054         * doc/posix-functions/rewinddir.texi: Likewise.
7055
7056 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
7057
7058         maint.mk: don't maintain a second build-aux variable.
7059         * maint.mk (build_aux): Removed.  The maintainer-makefile module
7060         depends on GNUmakefile, which already maintains a cfg.mk
7061         overridable $(_build-aux) for projects with a non-standard
7062         build-aux directory location, although without the $(srcdir)
7063         prefix.  Use that variable consistently instead of introducing a
7064         second one.  Adjust all call sites.
7065
7066 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
7067
7068         Add stdalign module and use it in other modules.
7069         This is based on a previous proposal by Bruno Haible
7070         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
7071
7072         stdalign: new module
7073         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
7074         * modules/stdalign: New files.
7075         * MODULES.html.sh (c1x_core_properties): Add stdalign.
7076         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
7077
7078         stdalign-tests: new module
7079         * modules/stdalign-tests, tests/test-stdalign.c: New files.
7080
7081         argp: use stdalign
7082         * lib/argp-parse.c: Include <stdalign.h>.
7083         (alignof): Remove.
7084         * modules/argp (Depends-on): Add stdalign.
7085
7086         crypto libraries: use stdalign
7087         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
7088         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
7089         Do not include <stdlib.h> twice, in md4.c.
7090         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
7091         because we are accessing a pointer's bit-pattern, not a size.
7092         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
7093         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
7094         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
7095         * modules/crypto/sha512: Likewise.
7096
7097         sys_socket: use stdalign, not alignof
7098         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
7099         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
7100
7101 2011-10-27  Bruno Haible  <bruno@clisp.org>
7102
7103         raise test: Avoid a test failure on Linux/MIPS.
7104         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
7105         because 99 is a valid signal on Linux/MIPS.
7106
7107 2011-10-27  Bruno Haible  <bruno@clisp.org>
7108
7109         nonblocking tests: Fix test failure on Linux/MIPS.
7110         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
7111         Set to 270000.
7112
7113 2011-10-27  Bruno Haible  <bruno@clisp.org>
7114
7115         utimensat: Work around problem on Linux/hppa.
7116         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
7117         values.
7118         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
7119
7120 2011-10-25  Jim Meyering  <meyering@redhat.com>
7121
7122         maint.mk: fix a bug in sc_prohibit_stddef_without_use
7123         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
7124         after symbols like NULL, size_t, etc.
7125         Reported by Alfred M. Szmidt.
7126
7127         maint.mk: exempt ENODATA from a syntax-check rule
7128         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
7129         from the sc_prohibit_always-defined_macros syntax-check rule.
7130         Add a comment.  See this for more details:
7131         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
7132
7133 2011-10-23  Jim Meyering  <meyering@redhat.com>
7134
7135         fts: close parent dir FD before returning from post-traversal fts_read
7136         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
7137         unlink A, even though an FD open on A remained.  This is suboptimal
7138         (holding a file descriptor open longer than needed), but otherwise not
7139         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
7140         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
7141         that represents a real problem: it causes the removal of A to fail
7142         with e.g., "rm: cannot remove `A': Device or resource busy"
7143
7144         fts visits each directory twice and keeps a cache (fts_fd_ring) of
7145         directory file descriptors.  After completing the final, FTS_DP,
7146         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
7147         cache, but then proceeded to add a new FD to it via the subsequent
7148         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
7149         final file descriptor would be closed only via fts_close's call to
7150         fd_ring_clear.  Now, it is usually closed earlier, via the final
7151         FTS_DP-returning fts_read call.
7152         * lib/fts.c (restore_initial_cwd): New function, converted from
7153         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
7154         Update callers.
7155         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
7156         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
7157
7158 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
7159             Bruno Haible  <bruno@clisp.org>
7160             Jim Meyering  <jim@meyering.net>
7161
7162         readme-release: improve safety of release prep instructions.
7163         * README-release: Don't git pull all branches when only master
7164         is needed for the release process.
7165         Run make maintainer-clean before changing trees and merging.
7166         Don't try to run ./configure right after git pull in case files
7167         that influence the bootstrap process have changed, move the
7168         ./configure step to after running ./bootstrap.
7169         Don't bootstrap "one last time"... it's the first time!
7170
7171 2011-10-22  Bruno Haible  <bruno@clisp.org>
7172
7173         errno, strerror-override: Support for MSVC 10.
7174         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
7175         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
7176         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
7177         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
7178         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
7179         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
7180         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
7181         Assign values compatible with MSVC 10.
7182         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
7183         New macros.
7184         (GNULIB_defined_EWINSOCK): New macro.
7185         * lib/strerror-override.c (strerror_override): Update accordingly.
7186         * lib/strerror-override.h: Likewise.
7187         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
7188         longer equal to the corresponding errno value.
7189         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7190
7191 2011-10-22  Bruno Haible  <bruno@clisp.org>
7192
7193         perror: Recognize when test program crashes.
7194         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
7195         strerror, set gl_cv_func_perror_works to no.
7196         Reported by Daniel Richard G. <skunk@iskunk.org>.
7197
7198         perror: Fix indentation.
7199         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
7200
7201 2011-10-22  Bruno Haible  <bruno@clisp.org>
7202
7203         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
7204         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
7205         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
7206         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
7207         functions, not as a macro.
7208         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
7209         macros.
7210         (isfinite, isinf, isnan, signbit): Check overloaded functions and
7211         absence of macro.
7212         Suggested by Eric Blake.
7213         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7214
7215 2011-10-21  Bruno Haible  <bruno@clisp.org>
7216
7217         relocatable-prog-wrapper: Don't leave object files behind.
7218         * build-aux/install-reloc: Re-synchronize list of .o files to be
7219         removed with list of compilation units.
7220
7221 2011-10-20  Bruno Haible  <bruno@clisp.org>
7222
7223         openpty, posix_openpt: Remove code duplication.
7224         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
7225         * lib/openpty.c: Include <stdlib.h>.
7226         (openpty): Use posix_openpt on all platforms except IRIX.
7227         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
7228
7229 2011-10-20  Bruno Haible  <bruno@clisp.org>
7230
7231         unlockpt: Detect invalid argument.
7232         * lib/unlockpt.c: Include <fcntl.h>.
7233         (unlockpt): Check whether fd is valid, using fcntl().
7234         * modules/unlockpt (Depends-on): Add fcntl-h.
7235
7236 2011-10-20  Bruno Haible  <bruno@clisp.org>
7237
7238         openpty: Avoid compilation error on AIX 6.1.
7239         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
7240
7241 2011-10-20  Bruno Haible  <bruno@clisp.org>
7242
7243         posix_openpt: Support for OpenBSD.
7244         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
7245         (posix_openpt) [OpenBSD]: New code.
7246         * lib/grantpt.c: Include <fcntl.h>.
7247         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
7248         * modules/grantpt (Depends-on): Add fcntl-h.
7249
7250 2011-10-20  Bruno Haible  <bruno@clisp.org>
7251
7252         posix_openpt test: Coding style.
7253         * tests/test-posix_openpt.c: Use GNU coding style.
7254
7255 2011-10-20  Bruno Haible  <bruno@clisp.org>
7256
7257         grantpt: Support --avoid=pt_chown.
7258         * modules/grantpt (Files): Add lib/pty-private.h.
7259
7260 2011-10-20  Bruno Haible  <bruno@clisp.org>
7261
7262         posix_openpt: Fix autoconf macro.
7263         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
7264         unneeded check for _getpty.
7265
7266 2011-10-20  Bruno Haible  <bruno@clisp.org>
7267
7268         openpty: Update comments.
7269         * lib/openpty.c: Add comments about Minix.
7270
7271 2011-10-19  Eric Blake  <eblake@redhat.com>
7272
7273         openpty: relax license
7274         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
7275
7276         pt_chown: use configmake to simplify build
7277         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
7278
7279         ptsname and others: relax license
7280         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
7281         * modules/unlockpt (License): Likewise.
7282         * modules/pt_chown (License): Likewise.
7283         * modules/ptsname (License): Likewise.
7284         * modules/ttyname_r (License): Likewise.
7285
7286 2011-10-19  Jim Meyering  <meyering@redhat.com>
7287
7288         posix_openpt: remove spurious #endif
7289         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
7290
7291 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
7292
7293         maint.mk: Respect $(build_aux) in web-manual rule.
7294         * top/maint.mk (web-manual): Find gen-announce script in user's
7295         $(build_aux) directory instead of hard-coding 'build-aux'.
7296
7297 2011-10-19  Bruno Haible  <bruno@clisp.org>
7298
7299         posix_openpt: Fix compilation error.
7300         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
7301         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
7302         Mention the openpty module as an alternative.
7303
7304 2011-10-19  Bruno Haible  <bruno@clisp.org>
7305
7306         Support for old NeXTstep 3.3 frexp().
7307         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
7308         execution time of the test to 5 seconds.
7309         Reported by Daniel Richard G. <skunk@iskunk.org>.
7310
7311 2011-10-19  Bruno Haible  <bruno@clisp.org>
7312
7313         Support for old NeXTstep 3.3 sed.
7314         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
7315         part, use /.../, not \|...|. Escape periods in the header file name.
7316         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
7317         Reported by Daniel Richard G. <skunk@iskunk.org>.
7318
7319 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7320
7321         Support for old NeXTstep 3.3 gcc.
7322         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
7323         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
7324         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
7325         * lib/spawn.in.h (_Restrict_arr_): Likewise.
7326         * lib/regex.h (_Restrict_arr_): Likewise.
7327         * lib/regex_internal.h (re_token_t): Likewise.
7328         * lib/regexec.c (check_node_accept_bytes): Likewise.
7329         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
7330
7331 2011-10-18  Eric Blake  <eblake@redhat.com>
7332
7333         posix_openpt: new module
7334         * modules/posix_openpt: New module.
7335         * m4/posix_openpt.m4: New file.
7336         * lib/posix_openpt.c: Likewise.
7337         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
7338         (gl_STDLIB_H_DEFAULTS): Set defaults.
7339         * modules/stdlib (Makefile.am): Substitute macros.
7340         * lib/stdlib.in.h (posix_openpt): Declare.
7341         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
7342         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
7343         * modules/posix_openpt-tests: New test module.
7344         * tests/test-posix_openpt.c: New test.
7345
7346 2011-10-15  Bruno Haible  <bruno@clisp.org>
7347
7348         xstrtoll: Fix compilation failure.
7349         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
7350         from lib/strtol.c.
7351         * doc/posix-headers/limits.texi: Mention missing numerical limits on
7352         some platforms.
7353         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7354
7355 2011-10-15  Bruno Haible  <bruno@clisp.org>
7356
7357         vasnprintf: Optimize bit search operation.
7358         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
7359         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
7360         gl_DOUBLE_EXPONENT_LOCATION.
7361         * modules/vasnprintf (Files): Add m4/exponentd.m4.
7362         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7363         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7364         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7365         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7366         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7367         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7368         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7369         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
7370
7371 2011-10-15  Bruno Haible  <bruno@clisp.org>
7372
7373         vasnprintf: Fix comments.
7374         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
7375
7376 2011-10-14  Bruno Haible  <bruno@clisp.org>
7377
7378         Tests for module 'integer_length_ll'.
7379         * modules/integer_length_ll-tests: New file.
7380         * tests/test-integer_length_ll.c: New file.
7381
7382         New module 'integer_length_ll'.
7383         * lib/integer_length_ll.c: New file.
7384         * modules/integer_length_ll: New file.
7385
7386 2011-10-14  Bruno Haible  <bruno@clisp.org>
7387
7388         Tests for module 'integer_length_l'.
7389         * modules/integer_length_l-tests: New file.
7390         * tests/test-integer_length_l.c: New file.
7391
7392         New module 'integer_length_l'.
7393         * lib/integer_length_l.c: New file.
7394         * modules/integer_length_l: New file.
7395
7396 2011-10-14  Bruno Haible  <bruno@clisp.org>
7397
7398         Tests for module 'integer_length'.
7399         * modules/integer_length-tests: New file.
7400         * tests/test-integer_length.c: New file.
7401
7402         New module 'integer_length'.
7403         * lib/integer_length.h: New file.
7404         * lib/integer_length.c: New file.
7405         * modules/integer_length: New file.
7406
7407 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7408
7409         popen: Fix dependency conditions.
7410         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
7411
7412 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7413
7414         perror: Fix autoconf test.
7415         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
7416         <stdlib.h> and <string.h>.
7417
7418 2011-10-14  Bruno Haible  <bruno@clisp.org>
7419
7420         ffsl: Optimize on 64-bit platforms.
7421         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
7422         unrolling.
7423
7424 2011-10-13  Bruno Haible  <bruno@clisp.org>
7425
7426         ffsl: Optimize on 32-bit platforms.
7427         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
7428         use ffs() without a loop.
7429
7430         ffsl, ffsll: Optimize for GCC.
7431         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
7432         * lib/ffsl.c (GCC_BUILTIN): New macro.
7433         * lib/ffsll.c (GCC_BUILTIN): Likewise.
7434
7435 2011-10-13  Bruno Haible  <bruno@clisp.org>
7436
7437         ffs, bcopy, memset: Support symbol renaming via config.h.
7438         * lib/ffs.c: Include <config.h>.
7439         * lib/bcopy.c: Likewise.
7440         * lib/memset.c: Likewise.
7441
7442 2011-10-10  Bruno Haible  <bruno@clisp.org>
7443
7444         atanl: Simplify for platforms where 'long double' == 'double'.
7445         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7446         alternative implementation.
7447         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7448         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7449         * modules/atanl (Depends-on): Add atan. Update conditions.
7450
7451 2011-10-10  Bruno Haible  <bruno@clisp.org>
7452
7453         acosl: Simplify for platforms where 'long double' == 'double'.
7454         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7455         alternative implementation.
7456         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7457         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7458         * modules/acosl (Depends-on): Add acos. Update conditions.
7459
7460 2011-10-10  Bruno Haible  <bruno@clisp.org>
7461
7462         asinl: Simplify for platforms where 'long double' == 'double'.
7463         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7464         alternative implementation.
7465         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7466         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7467         * modules/asinl (Depends-on): Add asin. Update conditions.
7468
7469 2011-10-10  Bruno Haible  <bruno@clisp.org>
7470
7471         tanl: Simplify for platforms where 'long double' == 'double'.
7472         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7473         implementation.
7474         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7475         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7476         * modules/tanl (Depends-on): Add tan. Update conditions.
7477         (configure.ac): Don't compile trigl.c if
7478         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7479
7480 2011-10-10  Bruno Haible  <bruno@clisp.org>
7481
7482         cosl: Simplify for platforms where 'long double' == 'double'.
7483         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7484         implementation.
7485         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7486         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7487         * modules/cosl (Depends-on): Add cos. Update conditions.
7488         (configure.ac): Don't compile sincosl.c and trigl.c if
7489         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7490
7491 2011-10-10  Bruno Haible  <bruno@clisp.org>
7492
7493         sinl: Simplify for platforms where 'long double' == 'double'.
7494         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7495         implementation.
7496         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7497         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7498         * modules/sinl (Depends-on): Add sin. Update conditions.
7499         (configure.ac): Don't compile sincosl.c and trigl.c if
7500         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7501
7502 2011-10-10  Bruno Haible  <bruno@clisp.org>
7503
7504         logl: Simplify for platforms where 'long double' == 'double'.
7505         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7506         implementation.
7507         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7508         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7509         * modules/logl (Depends-on): Add log. Update conditions.
7510
7511 2011-10-10  Bruno Haible  <bruno@clisp.org>
7512
7513         expl: Simplify for platforms where 'long double' == 'double'.
7514         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7515         implementation.
7516         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7517         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7518         * modules/expl (Depends-on): Add exp. Update conditions.
7519
7520 2011-10-10  Bruno Haible  <bruno@clisp.org>
7521
7522         sqrtl: Simplify for platforms where 'long double' == 'double'.
7523         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7524         alternative implementation.
7525         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7526         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7527         * modules/sqrtl (Depends-on): Update conditions.
7528
7529 2011-10-10  Bruno Haible  <bruno@clisp.org>
7530
7531         ldexpl: Simplify for platforms where 'long double' == 'double'.
7532         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7533         alternative implementation.
7534         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7535         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7536         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
7537
7538 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
7539
7540         ffsll: set correct witness
7541         * modules/ffsll (configure.ac): Fix typo.
7542
7543 2011-10-10  Bruno Haible  <bruno@clisp.org>
7544
7545         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
7546         * lib/printf-frexpl.c: Include <config.h>.
7547         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7548         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
7549         second time.
7550         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
7551         gl_LONG_DOUBLE_VS_DOUBLE.
7552         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
7553         conditions.
7554
7555 2011-10-10  Bruno Haible  <bruno@clisp.org>
7556
7557         frexpl: Simplify for platforms where 'long double' == 'double'.
7558         * lib/frexpl.c: Include <config.h>.
7559         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7560         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7561         time.
7562         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7563         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7564         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
7565         * modules/frexpl (Depends-on): Add frexp. Update conditions.
7566         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
7567         conditions.
7568
7569 2011-10-10  Jim Meyering  <meyering@redhat.com>
7570
7571         test-renameat: don't leave behind a temporary file
7572         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
7573           ERROR: files left in build directory after distclean:
7574           ./gltests/test-renameat.too
7575           make[1]: *** [distcleancheck] Error 1
7576         Reported by Tom G. Christensen.
7577
7578 2011-10-09  Bruno Haible  <bruno@clisp.org>
7579
7580         rint: Determine RINT_LIBM correctly on AIX 7.
7581         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
7582         directly, not only through a function pointer. Also accept an optional
7583         4th argument with extra code.
7584         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
7585         rintf() call by gcc when optimizing.
7586
7587         mathfunc.m4: Refactor.
7588         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
7589         m4 variable.
7590
7591 2011-10-09  Bruno Haible  <bruno@clisp.org>
7592
7593         rintl: Simplify for platforms where 'long double' == 'double'.
7594         * lib/rintl.c: Include <config.h>.
7595         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7596         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7597         time.
7598         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7599         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7600         * modules/rintl (Depends-on): Add rint. Update conditions.
7601
7602 2011-10-09  Bruno Haible  <bruno@clisp.org>
7603
7604         roundl: Simplify for platforms where 'long double' == 'double'.
7605         * lib/roundl.c: Include <config.h>.
7606         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7607         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7608         time.
7609         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7610         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7611         * modules/roundl (Depends-on): Add round. Update conditions.
7612
7613 2011-10-09  Bruno Haible  <bruno@clisp.org>
7614
7615         truncl: Simplify for platforms where 'long double' == 'double'.
7616         * lib/truncl.c: Include <config.h>.
7617         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7618         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7619         time.
7620         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7621         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7622         * modules/truncl (Depends-on): Add trunc. Update conditions.
7623
7624 2011-10-09  Bruno Haible  <bruno@clisp.org>
7625
7626         ceill: Simplify for platforms where 'long double' == 'double'.
7627         * lib/ceill.c: Include <config.h>.
7628         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7629         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7630         time.
7631         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7632         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7633         * modules/ceill (Depends-on): Add ceil. Update conditions.
7634
7635 2011-10-09  Bruno Haible  <bruno@clisp.org>
7636
7637         floorl: Simplify for platforms where 'long double' == 'double'.
7638         * lib/floorl.c: Include <config.h>.
7639         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7640         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7641         time.
7642         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7643         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7644         * modules/floorl (Depends-on): Add floor. Update conditions.
7645
7646 2011-10-09  Bruno Haible  <bruno@clisp.org>
7647
7648         rint: Fix ordering constraints.
7649         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
7650         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
7651         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
7652
7653 2011-10-09  Bruno Haible  <bruno@clisp.org>
7654
7655         copysignl: Simplify for platforms where 'long double' == 'double'.
7656         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7657         alternative.
7658         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7659         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7660         * modules/copysignl (Depends-on): Add copysign. Update conditions.
7661
7662 2011-10-09  Bruno Haible  <bruno@clisp.org>
7663
7664         Tests for module 'rintl'.
7665         * modules/rintl-tests: New file.
7666         * tests/test-rintl.c: New file.
7667
7668         New module 'rintl'.
7669         * lib/math.in.h (rintl): New declaration.
7670         * lib/rintl.c: New file.
7671         * m4/rintl.m4: New file.
7672         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
7673         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
7674         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
7675         * modules/rintl: New file.
7676         * tests/test-math-c++.cc: Check the declaration of rintl.
7677         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7678         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
7679         * doc/posix-functions/rintl.texi: Mention the new module.
7680
7681 2011-10-09  Bruno Haible  <bruno@clisp.org>
7682
7683         Tests for module 'rintf'.
7684         * modules/rintf-tests: New file.
7685         * tests/test-rintf.c: New file.
7686
7687         New module 'rintf'.
7688         * lib/math.in.h (rintf): New declaration.
7689         * lib/rintf.c: New file.
7690         * m4/rintf.m4: New file.
7691         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
7692         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
7693         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
7694         * modules/rintf: New file.
7695         * tests/test-math-c++.cc: Check the declaration of rintf.
7696         * doc/posix-functions/rintf.texi: Mention the new module.
7697
7698 2011-10-09  Bruno Haible  <bruno@clisp.org>
7699
7700         rint: Support for MSVC.
7701         * lib/math.in.h (rint): New declaration.
7702         * lib/rint.c: New file.
7703         * m4/rint.m4: New file.
7704         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
7705         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
7706         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
7707         * modules/rint (Description): Fix.
7708         (Files): Add lib/rint.c, m4/rint.m4.
7709         (Depends-on): Add math.
7710         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
7711         gl_MATH_MODULE_INDICATOR.
7712         * tests/test-math-c++.cc: Check the declaration of rint.
7713         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7714         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
7715         * doc/posix-functions/rint.texi: Mention the replacement provided by
7716         the module.
7717
7718         rint tests: More tests.
7719         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
7720         minus-zero.h, infinity.h, nan.h.
7721         (main): Skip the test if the current rounding mode is not standard. Add
7722         tests for negative numbers, minus zero, infinity, NaN.
7723         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
7724         tests/nan.h.
7725         (Depends-on): Add isnand-nolibm.
7726
7727 2011-10-09  Bruno Haible  <bruno@clisp.org>
7728
7729         Tests for module 'copysignl'.
7730         * modules/copysignl-tests: New file.
7731         * tests/test-copysignl.c: New file.
7732
7733         New module 'copysignl'.
7734         * lib/math.in.h (copysignl): New declaration.
7735         * lib/copysignl.c: New file.
7736         * m4/copysignl.m4: New file.
7737         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
7738         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
7739         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
7740         HAVE_COPYSIGNL.
7741         * modules/copysignl: New file.
7742         * tests/test-math-c++.cc: Check the declaration of copysignl.
7743         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7744         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
7745         * doc/posix-functions/copysignl.texi: Mention the new module.
7746
7747 2011-10-09  Bruno Haible  <bruno@clisp.org>
7748
7749         Tests for module 'copysignf'.
7750         * modules/copysignf-tests: New file.
7751         * tests/test-copysignf.c: New file.
7752
7753         New module 'copysignf'.
7754         * lib/math.in.h (copysignf): New declaration.
7755         * lib/copysignf.c: New file.
7756         * m4/copysignf.m4: New file.
7757         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
7758         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
7759         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
7760         HAVE_COPYSIGNF.
7761         * modules/copysignf: New file.
7762         * tests/test-math-c++.cc: Check the declaration of copysignf.
7763         * doc/posix-functions/copysignf.texi: Mention the new module.
7764
7765 2011-10-09  Bruno Haible  <bruno@clisp.org>
7766
7767         Ensure that HAVE_* variables are set to 1 before they are set to 0.
7768         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
7769         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
7770         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
7771         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
7772         gl_SIGNAL_H_DEFAULTS.
7773
7774 2011-10-09  Bruno Haible  <bruno@clisp.org>
7775
7776         poll: Make macro safer.
7777         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
7778         ac_cv_header_poll_h is not set.
7779
7780 2011-10-09  Bruno Haible  <bruno@clisp.org>
7781
7782         copysign: Provide replacement.
7783         * lib/math.in.h (copysign): New declaration.
7784         * lib/copysign.c: New file.
7785         * m4/copysign.m4: New file.
7786         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
7787         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
7788         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
7789         HAVE_COPYSIGN.
7790         * modules/copysign (Description): Clarify.
7791         (Files): Add lib/copysign.c, m4/copysign.m4.
7792         (Depends-on): Add math, signbit.
7793         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
7794         gl_MATH_MODULE_INDICATOR.
7795         * tests/test-math-c++.cc: Check the declaration of copysign.
7796         * doc/posix-functions/copysign.texi: Mention the effects of the module
7797         on Minix and MSVC.
7798
7799 2011-10-09  Bruno Haible  <bruno@clisp.org>
7800
7801         isinf: Ensure macro on AIX 5.1.
7802         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
7803         macro.
7804         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
7805
7806 2011-10-09  Bruno Haible  <bruno@clisp.org>
7807
7808         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
7809         * modules/snprintf-posix-tests (configure.ac): Require
7810         gl_LONG_DOUBLE_VS_DOUBLE.
7811         * modules/sprintf-posix-tests (configure.ac): Likewise.
7812         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
7813         * modules/vasprintf-posix-tests (configure.ac): Likewise.
7814         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
7815         * modules/vsprintf-posix-tests (configure.ac): Likewise.
7816         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
7817         tests on platforms where 'long double' is the same as 'double'.
7818         * tests/test-sprintf-posix.h (test_function): Likewise.
7819         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7820         * tests/test-vasprintf-posix.c (test_function): Likewise.
7821
7822         *printf: Fix for platforms where 'long double' == 'double'.
7823         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
7824         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
7825         * modules/dprintf-posix (Files): Add m4/math_h.m4.
7826         * modules/fprintf-posix (Files): Likewise.
7827         * modules/obstack-printf-posix (Files): Likewise.
7828         * modules/snprintf-posix (Files): Likewise.
7829         * modules/sprintf-posix (Files): Likewise.
7830         * modules/vasnprintf (Files): Likewise.
7831         * modules/vasnprintf-posix (Files): Likewise.
7832         * modules/vasprintf-posix (Files): Likewise.
7833         * modules/vdprintf-posix (Files): Likewise.
7834         * modules/vfprintf-posix (Files): Likewise.
7835         * modules/vsnprintf-posix (Files): Likewise.
7836         * modules/vsprintf-posix (Files): Likewise.
7837         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7838         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7839         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7840         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7841         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7842         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7843         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7844
7845         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
7846         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
7847         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7848         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
7849         'long double'.
7850         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
7851
7852         isinf: Fix for platforms where 'long double' == 'double'.
7853         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7854         Don't blindly assume 80-bit 'long double'.
7855
7856         isfinite: Fix for platforms where 'long double' == 'double'.
7857         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7858         Don't blindly assume 80-bit 'long double'.
7859
7860         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
7861         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
7862         * modules/isfinite-tests (configure.ac): Require
7863         gl_LONG_DOUBLE_VS_DOUBLE.
7864         * modules/isinf-tests (configure.ac): Likewise.
7865         * modules/isnan-tests (configure.ac): Likewise.
7866         * modules/isnanl-tests (configure.ac): Likewise.
7867         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
7868         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
7869         tests on platforms where 'long double' is the same as 'double'.
7870         * tests/test-isinf.c (test_isinfl): Likewise.
7871         * tests/test-isnan.c (test_long_double): Likewise.
7872         * tests/test-isnanl.h (main): Likewise.
7873
7874 2011-10-08  Bruno Haible  <bruno@clisp.org>
7875
7876         Tests for module 'tanhf'.
7877         * modules/tanhf-tests: New file.
7878         * tests/test-tanhf.c: New file.
7879
7880         New module 'tanhf'.
7881         * lib/math.in.h (tanhf): New declaration.
7882         * lib/tanhf.c: New file.
7883         * m4/tanhf.m4: New file.
7884         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
7885         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
7886         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
7887         * modules/tanhf: New file.
7888         * tests/test-math-c++.cc: Check the declaration of tanhf.
7889         * doc/posix-functions/tanhf.texi: Mention the new module.
7890
7891         tanh: Use a .m4 file.
7892         * m4/tanh.m4: New file.
7893         * modules/tanh (Files): Add it.
7894         (configure.ac): Just invoke gl_FUNC_TANH.
7895
7896 2011-10-08  Bruno Haible  <bruno@clisp.org>
7897
7898         Tests for module 'coshf'.
7899         * modules/coshf-tests: New file.
7900         * tests/test-coshf.c: New file.
7901
7902         New module 'coshf'.
7903         * lib/math.in.h (coshf): New declaration.
7904         * lib/coshf.c: New file.
7905         * m4/coshf.m4: New file.
7906         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
7907         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
7908         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
7909         * modules/coshf: New file.
7910         * tests/test-math-c++.cc: Check the declaration of coshf.
7911         * doc/posix-functions/coshf.texi: Mention the new module.
7912
7913         cosh: Use a .m4 file.
7914         * m4/cosh.m4: New file.
7915         * modules/cosh (Files): Add it.
7916         (configure.ac): Just invoke gl_FUNC_COSH.
7917
7918 2011-10-08  Bruno Haible  <bruno@clisp.org>
7919
7920         Tests for module 'sinhf'.
7921         * modules/sinhf-tests: New file.
7922         * tests/test-sinhf.c: New file.
7923
7924         New module 'sinhf'.
7925         * lib/math.in.h (sinhf): New declaration.
7926         * lib/sinhf.c: New file.
7927         * m4/sinhf.m4: New file.
7928         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
7929         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
7930         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
7931         * modules/sinhf: New file.
7932         * tests/test-math-c++.cc: Check the declaration of sinhf.
7933         * doc/posix-functions/sinhf.texi: Mention the new module.
7934
7935         sinh: Use a .m4 file.
7936         * m4/sinh.m4: New file.
7937         * modules/sinh (Files): Add it.
7938         (configure.ac): Just invoke gl_FUNC_SINH.
7939
7940 2011-10-08  Bruno Haible  <bruno@clisp.org>
7941
7942         Tests for module 'atan2f'.
7943         * modules/atan2f-tests: New file.
7944         * tests/test-atan2f.c: New file.
7945
7946         New module 'atan2f'.
7947         * lib/math.in.h (atan2f): New declaration.
7948         * lib/atan2f.c: New file.
7949         * m4/atan2f.m4: New file.
7950         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
7951         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
7952         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
7953         * modules/atan2f: New file.
7954         * tests/test-math-c++.cc: Check the declaration of atan2f.
7955         * doc/posix-functions/atan2f.texi: Mention the new module.
7956
7957         atan2: Use a .m4 file.
7958         * m4/atan2.m4: New file.
7959         * modules/atan2 (Files): Add it.
7960         (configure.ac): Just invoke gl_FUNC_ATAN2.
7961
7962 2011-10-08  Bruno Haible  <bruno@clisp.org>
7963
7964         Tests for module 'atanf'.
7965         * modules/atanf-tests: New file.
7966         * tests/test-atanf.c: New file.
7967
7968         New module 'atanf'.
7969         * lib/math.in.h (atanf): New declaration.
7970         * lib/atanf.c: New file.
7971         * m4/atanf.m4: New file.
7972         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
7973         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
7974         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
7975         * modules/atanf: New file.
7976         * tests/test-math-c++.cc: Check the declaration of atanf.
7977         * doc/posix-functions/atanf.texi: Mention the new module.
7978
7979         atan: Use a .m4 file.
7980         * m4/atan.m4: New file.
7981         * modules/atan (Files): Add it.
7982         (configure.ac): Just invoke gl_FUNC_ATAN.
7983
7984 2011-10-08  Bruno Haible  <bruno@clisp.org>
7985
7986         Tests for module 'acosf'.
7987         * modules/acosf-tests: New file.
7988         * tests/test-acosf.c: New file.
7989
7990         New module 'acosf'.
7991         * lib/math.in.h (acosf): New declaration.
7992         * lib/acosf.c: New file.
7993         * m4/acosf.m4: New file.
7994         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
7995         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
7996         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
7997         * modules/acosf: New file.
7998         * tests/test-math-c++.cc: Check the declaration of acosf.
7999         * doc/posix-functions/acosf.texi: Mention the new module.
8000
8001         acos: Use a .m4 file.
8002         * m4/acos.m4: New file.
8003         * modules/acos (Files): Add it.
8004         (configure.ac): Just invoke gl_FUNC_ACOS.
8005
8006 2011-10-08  Bruno Haible  <bruno@clisp.org>
8007
8008         Tests for module 'asinf'.
8009         * modules/asinf-tests: New file.
8010         * tests/test-asinf.c: New file.
8011
8012         New module 'asinf'.
8013         * lib/math.in.h (asinf): New declaration.
8014         * lib/asinf.c: New file.
8015         * m4/asinf.m4: New file.
8016         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
8017         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
8018         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
8019         * modules/asinf: New file.
8020         * tests/test-math-c++.cc: Check the declaration of asinf.
8021         * doc/posix-functions/asinf.texi: Mention the new module.
8022
8023         asin: Use a .m4 file.
8024         * m4/asin.m4: New file.
8025         * modules/asin (Files): Add it.
8026         (configure.ac): Just invoke gl_FUNC_ASIN.
8027
8028 2011-10-08  Bruno Haible  <bruno@clisp.org>
8029
8030         Tests for module 'tanf'.
8031         * modules/tanf-tests: New file.
8032         * tests/test-tanf.c: New file.
8033
8034         New module 'tanf'.
8035         * lib/math.in.h (tanf): New declaration.
8036         * lib/tanf.c: New file.
8037         * m4/tanf.m4: New file.
8038         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
8039         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
8040         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
8041         * modules/tanf: New file.
8042         * tests/test-math-c++.cc: Check the declaration of tanf.
8043         * doc/posix-functions/tanf.texi: Mention the new module.
8044
8045         tan: Use a .m4 file.
8046         * m4/tan.m4: New file.
8047         * modules/tan (Files): Add it.
8048         (configure.ac): Just invoke gl_FUNC_TAN.
8049
8050 2011-10-08  Bruno Haible  <bruno@clisp.org>
8051
8052         Tests for module 'cosf'.
8053         * modules/cosf-tests: New file.
8054         * tests/test-cosf.c: New file.
8055
8056         New module 'cosf'.
8057         * lib/math.in.h (cosf): New declaration.
8058         * lib/cosf.c: New file.
8059         * m4/cosf.m4: New file.
8060         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
8061         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
8062         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
8063         * modules/cosf: New file.
8064         * tests/test-math-c++.cc: Check the declaration of cosf.
8065         * doc/posix-functions/cosf.texi: Mention the new module.
8066
8067         cos: Use a .m4 file.
8068         * m4/cos.m4: New file.
8069         * modules/cos (Files): Add it.
8070         (configure.ac): Just invoke gl_FUNC_COS.
8071
8072 2011-10-08  Bruno Haible  <bruno@clisp.org>
8073
8074         Tests for module 'sinf'.
8075         * modules/sinf-tests: New file.
8076         * tests/test-sinf.c: New file.
8077
8078         New module 'sinf'.
8079         * lib/math.in.h (sinf): New declaration.
8080         * lib/sinf.c: New file.
8081         * m4/sinf.m4: New file.
8082         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
8083         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
8084         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
8085         * modules/sinf: New file.
8086         * tests/test-math-c++.cc: Check the declaration of sinf.
8087         * doc/posix-functions/sinf.texi: Mention the new module.
8088
8089         sin: Use a .m4 file.
8090         * m4/sin.m4: New file.
8091         * modules/sin (Files): Add it.
8092         (configure.ac): Just invoke gl_FUNC_SIN.
8093
8094 2011-10-08  Bruno Haible  <bruno@clisp.org>
8095
8096         Tests for module 'powf'.
8097         * modules/powf-tests: New file.
8098         * tests/test-powf.c: New file.
8099
8100         New module 'powf'.
8101         * lib/math.in.h (powf): New declaration.
8102         * lib/powf.c: New file.
8103         * m4/powf.m4: New file.
8104         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
8105         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
8106         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
8107         * modules/powf: New file.
8108         * tests/test-math-c++.cc: Check the declaration of powf.
8109         * doc/posix-functions/powf.texi: Mention the new module.
8110
8111         pow: Use a .m4 file.
8112         * m4/pow.m4: New file.
8113         * modules/pow (Files): Add it.
8114         (configure.ac): Just invoke gl_FUNC_POW.
8115
8116 2011-10-08  Bruno Haible  <bruno@clisp.org>
8117
8118         Tests for module 'log10f'.
8119         * modules/log10f-tests: New file.
8120         * tests/test-log10f.c: New file.
8121
8122         New module 'log10f'.
8123         * lib/math.in.h (log10f): New declaration.
8124         * lib/log10f.c: New file.
8125         * m4/log10f.m4: New file.
8126         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
8127         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
8128         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
8129         * modules/log10f: New file.
8130         * tests/test-math-c++.cc: Check the declaration of log10f.
8131         * doc/posix-functions/log10f.texi: Mention the new module.
8132
8133         log10: Use a .m4 file.
8134         * m4/log10.m4: New file.
8135         * modules/log10 (Files): Add it.
8136         (configure.ac): Just invoke gl_FUNC_LOG10.
8137
8138 2011-10-08  Bruno Haible  <bruno@clisp.org>
8139
8140         Tests for module 'logf'.
8141         * modules/logf-tests: New file.
8142         * tests/test-logf.c: New file.
8143
8144         New module 'logf'.
8145         * lib/math.in.h (logf): New declaration.
8146         * lib/logf.c: New file.
8147         * m4/logf.m4: New file.
8148         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
8149         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
8150         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
8151         * modules/logf: New file.
8152         * tests/test-math-c++.cc: Check the declaration of logf.
8153         * doc/posix-functions/logf.texi: Mention the new module.
8154
8155         log: Use a .m4 file.
8156         * m4/log.m4: New file.
8157         * modules/log (Files): Add it.
8158         (configure.ac): Just invoke gl_FUNC_LOG.
8159
8160 2011-10-08  Bruno Haible  <bruno@clisp.org>
8161
8162         Tests for module 'expf'.
8163         * modules/expf-tests: New file.
8164         * tests/test-expf.c: New file.
8165
8166         New module 'expf'.
8167         * lib/math.in.h (expf): New declaration.
8168         * lib/expf.c: New file.
8169         * m4/expf.m4: New file.
8170         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
8171         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
8172         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
8173         * modules/expf: New file.
8174         * tests/test-math-c++.cc: Check the declaration of expf.
8175         * doc/posix-functions/expf.texi: Mention the new module.
8176
8177         exp: Use a .m4 file.
8178         * m4/exp.m4: New file.
8179         * modules/exp (Files): Add it.
8180         (configure.ac): Just invoke gl_FUNC_EXP.
8181
8182 2011-10-08  Bruno Haible  <bruno@clisp.org>
8183
8184         Tests for module 'sqrtf'.
8185         * modules/sqrtf-tests: New file.
8186         * tests/test-sqrtf.c: New file.
8187
8188         New module 'sqrtf'.
8189         * lib/math.in.h (sqrtf): New declaration.
8190         * lib/sqrtf.c: New file.
8191         * m4/sqrtf.m4: New file.
8192         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
8193         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
8194         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
8195         * modules/sqrtf: New file.
8196         * tests/test-math-c++.cc: Check the declaration of sqrtf.
8197         * doc/posix-functions/sqrtf.texi: Mention the new module.
8198
8199 2011-10-08  Bruno Haible  <bruno@clisp.org>
8200
8201         Tests: Avoid link failures w.r.t. libintl.
8202         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
8203         $(LIBINTL).
8204         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
8205         $(LIBINTL).
8206         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
8207         against $(LIBINTL).
8208         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
8209         $(LIBINTL).
8210         * modules/openat-tests (Makefile.am): Link test-fchmodat against
8211         $(LIBINTL).
8212         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
8213
8214 2011-10-08  Bruno Haible  <bruno@clisp.org>
8215
8216         pow tests: Defeat compiler optimizations.
8217         * tests/test-pow.c (main): Assign arguments to x and y before use.
8218
8219 2011-10-08  Bruno Haible  <bruno@clisp.org>
8220
8221         gnulib-tool: Improve last commit.
8222         * gnulib-tool (func_modules_transitive_closure): Simplify code.
8223         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
8224         ignore dependencies that are not among the modules list.
8225
8226 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
8227
8228         gnulib-tool: don't follow dependencies to avoided modules
8229         This fixes a bug that is related to the previous one.
8230         * gnulib-tool (func_modules_transitive_closure)
8231         (func_emit_autoconf_snippets):
8232         Check whether a dependency is acceptable before using it.
8233         (--extract-dependencies): Report an error if --avoid is also used,
8234         since this combination of options is not yet supported.
8235
8236         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
8237         Problem reported by Peter Dyballa in
8238         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
8239         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
8240         when echoing "$condition".
8241
8242 2011-10-07  Bruno Haible  <bruno@clisp.org>
8243
8244         Fix documentation about math functions on MacOS X.
8245         * doc/posix-functions/exp2.texi: Don't say the function is missing on
8246         MacOS X 10.5.
8247         * doc/posix-functions/fdim.texi: Likewise.
8248         * doc/posix-functions/feclearexcept.texi: Likewise.
8249         * doc/posix-functions/fegetenv.texi: Likewise.
8250         * doc/posix-functions/fegetround.texi: Likewise.
8251         * doc/posix-functions/feholdexcept.texi: Likewise.
8252         * doc/posix-functions/feraiseexcept.texi: Likewise.
8253         * doc/posix-functions/fesetenv.texi: Likewise.
8254         * doc/posix-functions/fesetround.texi: Likewise.
8255         * doc/posix-functions/fetestexcept.texi: Likewise.
8256         * doc/posix-functions/feupdateenv.texi: Likewise.
8257         * doc/posix-functions/fmax.texi: Likewise.
8258         * doc/posix-functions/fmin.texi: Likewise.
8259         * doc/posix-functions/log2.texi: Likewise.
8260         * doc/posix-functions/modff.texi: Likewise.
8261         * doc/posix-functions/nan.texi: Likewise.
8262         * doc/posix-functions/nanf.texi: Likewise.
8263         * doc/posix-functions/nextafterf.texi: Likewise.
8264         * doc/posix-functions/remquo.texi: Likewise.
8265
8266 2011-10-07  Bruno Haible  <bruno@clisp.org>
8267
8268         modff: Drop assumption about library that defines modff.
8269         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
8270         AC_CHECK_FUNCS.
8271         * modules/modff (Files): Add m4/mathfunc.m4.
8272
8273 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
8274
8275         raise tests: Avoid a GCC warning.
8276         * tests/test-raise.c (handler): Use _Noreturn.
8277
8278 2011-10-07  Bruno Haible  <bruno@clisp.org>
8279
8280         Tests for module 'ldexpf'.
8281         * modules/ldexpf-tests: New file.
8282         * tests/test-ldexpf.c: New file.
8283
8284         New module 'ldexpf'.
8285         * lib/math.in.h (ldexpf): New declaration.
8286         * lib/ldexpf.c: New file.
8287         * m4/ldexpf.m4: New file.
8288         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
8289         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
8290         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
8291         * modules/ldexpf: New file.
8292         * tests/test-math-c++.cc: Check the declaration of ldexpf.
8293         * doc/posix-functions/ldexpf.texi: Mention the new module.
8294
8295 2011-10-06  Bruno Haible  <bruno@clisp.org>
8296
8297         frexpf: Work around problems on IRIX and mingw.
8298         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
8299         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
8300         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
8301         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
8302         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
8303         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
8304         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
8305
8306 2011-10-06  Bruno Haible  <bruno@clisp.org>
8307
8308         fabsf: Drop assumption about library that defines fabsf.
8309         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
8310         AC_CHECK_FUNCS.
8311         * modules/fabsf (Files): Add m4/mathfunc.m4.
8312
8313 2011-10-06  Bruno Haible  <bruno@clisp.org>
8314
8315         frexpf: Drop assumption about library that defines frexpf.
8316         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
8317         'int *', 'float *', 'long double *', 'float', 'long double'.
8318         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
8319         AC_CHECK_FUNCS.
8320         * modules/frexpf (Files): Add m4/mathfunc.m4.
8321
8322         Tests for module 'frexpf'.
8323         * modules/frexpf-tests: New file.
8324         * tests/test-frexpf.c: New file.
8325
8326         New module 'frexpf'.
8327         * lib/math.in.h (frexpf): New declaration.
8328         * lib/frexpf.c: New file.
8329         * m4/frexpf.m4: New file.
8330         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
8331         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
8332         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
8333         * modules/frexpf: New file.
8334         * tests/test-math-c++.cc: Check the declaration of frexpf.
8335         * doc/posix-functions/frexpf.texi: Mention the new module.
8336
8337 2011-10-06  Bruno Haible  <bruno@clisp.org>
8338
8339         math: Sort function declarations of math.in.h.
8340         * lib/math.in.h (frexp, logb): Move declarations.
8341
8342 2011-10-05  Bruno Haible  <bruno@clisp.org>
8343
8344         Tests for module 'modff'.
8345         * modules/modff-tests: New file.
8346         * tests/test-modff.c: New file.
8347
8348         New module 'modff'.
8349         * lib/math.in.h (modff): New declaration.
8350         * lib/modff.c: New file.
8351         * m4/modff.m4: New file.
8352         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
8353         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
8354         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
8355         * modules/modff: New file.
8356         * tests/test-math-c++.cc: Check the declaration of modff.
8357         * doc/posix-functions/modff.texi: Mention the new module.
8358
8359         modf tests: Make test sharper.
8360         * tests/test-modf.c (main): Strengthen upper bound.
8361
8362         modf: Use a .m4 file.
8363         * m4/modf.m4: New file.
8364         * modules/modf (Files): Add it.
8365         (configure.ac): Just invoke gl_FUNC_MODF.
8366
8367 2011-10-05  Bruno Haible  <bruno@clisp.org>
8368
8369         Tests for module 'fmodf'.
8370         * modules/fmodf-tests: New file.
8371         * tests/test-fmodf.c: New file.
8372
8373         New module 'fmodf'.
8374         * lib/math.in.h (fmodf): New declaration.
8375         * lib/fmodf.c: New file.
8376         * m4/fmodf.m4: New file.
8377         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
8378         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
8379         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
8380         * modules/fmodf: New file.
8381         * tests/test-math-c++.cc: Check the declaration of fmodf.
8382         * doc/posix-functions/fmodf.texi: Mention the new module.
8383
8384         fmod: Use a .m4 file.
8385         * m4/fmod.m4: New file.
8386         * modules/fmod (Files): Add it.
8387         (configure.ac): Just invoke gl_FUNC_FMOD.
8388
8389 2011-10-05  Bruno Haible  <bruno@clisp.org>
8390
8391         Tests for module 'fabsf'.
8392         * modules/fabsf-tests: New file.
8393         * tests/test-fabsf.c: New file.
8394
8395         New module 'fabsf'.
8396         * lib/math.in.h (fabsf): New declaration.
8397         * lib/fabsf.c: New file.
8398         * m4/fabsf.m4: New file.
8399         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
8400         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
8401         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
8402         * modules/fabsf: New file.
8403         * tests/test-math-c++.cc: Check the declaration of fabsf.
8404         * doc/posix-functions/fabsf.texi: Mention the new module.
8405
8406         fabs: Use a .m4 file.
8407         * m4/fabs.m4: New file.
8408         * modules/fabs (Files): Add it.
8409         (configure.ac): Just invoke gl_FUNC_FABS.
8410
8411 2011-10-05  Jim Meyering  <meyering@redhat.com>
8412
8413         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
8414         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
8415         ls -lL regression introduced in coreutils-8.12, it does so at the
8416         cost of an additional stat call in the common case.  Besides, now
8417         that the kernel change that prompted commit 95f7c57f has been reverted
8418         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
8419         we have no use for commit 95f7c57f, "file-has-acl: use
8420         acl_extended_file_nofollow if available".
8421
8422 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
8423
8424         file-has-acl: revert unintended change in behavior of ls -L
8425         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
8426         derived from...
8427         (file_has_acl): ...code here.  Call it.
8428         This problem was introduced with 2011-07-22 commit 95f7c57f,
8429         "file-has-acl: use acl_extended_file_nofollow if available".
8430         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
8431
8432 2011-10-03  Bruno Haible  <bruno@clisp.org>
8433
8434         poll: Avoid link errors on MSVC.
8435         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
8436         * modules/poll (Depends-on): Add sockets.
8437         (Link): New section.
8438         * NEWS: Mention the change.
8439         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
8440         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
8441         $(LIB_POLL) instead of $(LIBSOCKET).
8442
8443 2011-10-03  Bruno Haible  <bruno@clisp.org>
8444
8445         sys_select tests: Fix link error on MSVC 9.
8446         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
8447         with $(LIB_SELECT) instead of $(LIBSOCKET).
8448
8449 2011-10-03  Bruno Haible  <bruno@clisp.org>
8450
8451         sys_select: Fix compilation error on mingw.
8452         * lib/sys_select.in.h: On native Windows, include <io.h>.
8453
8454 2011-10-03  Bruno Haible  <bruno@clisp.org>
8455
8456         wmemset: Support for MSVC.
8457         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
8458         whether wmemset() exists.
8459
8460 2011-10-03  Bruno Haible  <bruno@clisp.org>
8461
8462         wmemmove: Support for MSVC.
8463         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
8464         whether wmemmove() exists.
8465
8466 2011-10-03  Bruno Haible  <bruno@clisp.org>
8467
8468         wmemcpy: Support for MSVC.
8469         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
8470         whether wmemcpy() exists.
8471
8472 2011-10-03  Bruno Haible  <bruno@clisp.org>
8473
8474         wmemcmp: Support for MSVC.
8475         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
8476         whether wmemcmp() exists.
8477
8478 2011-10-03  Bruno Haible  <bruno@clisp.org>
8479
8480         wmemchr: Support for MSVC.
8481         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
8482         whether wmemchr() exists.
8483
8484 2011-10-03  Bruno Haible  <bruno@clisp.org>
8485
8486         glthread/*, strsignal: Support for MSVC.
8487         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
8488         including <winsock.h> on MSVC 9.
8489         * lib/glthread/lock.h: Likewise.
8490         * lib/glthread/thread.h: Likewise.
8491         * lib/glthread/tls.h: Likewise.
8492         * lib/glthread/yield.h: Likewise.
8493         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
8494         if HAVE_UNISTD_H is false.
8495         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
8496
8497 2011-10-03  Bruno Haible  <bruno@clisp.org>
8498
8499         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
8500         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
8501         Set to 100000.
8502
8503 2011-10-03  Bruno Haible  <bruno@clisp.org>
8504
8505         acl: Fix specification.
8506         * lib/file-has-acl.c (file_has_acl): Fix specification.
8507
8508 2011-10-03  Bruno Haible  <bruno@clisp.org>
8509
8510         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
8511         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
8512         (compute_curr_prefix, shared_library_fullname,
8513         find_shared_library_fullname, get_shared_library_fullname, relocate):
8514         Use it together with PIC && INSTALLDIR.
8515         Reported by <jojelino@gmail.com>
8516         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
8517
8518 2011-10-01  Jim Meyering  <meyering@redhat.com>
8519
8520         maint.mk: adjust a release-related rule not to require use of gzip
8521         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
8522         Instead, check each file in $(DIST_ARCHIVES).  This is better for
8523         projects that build only .tar.xz files.  Also fix an erroneous test.
8524
8525         test-linkat: don't leave behind a temporary file
8526         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
8527         Otherwise, coreutils' "make distcheck" would fail with this:
8528           Only in /c/cu/tests/torture/coreutils/test/\
8529             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
8530           make[2]: *** [my-distcheck] Error 1
8531
8532         float, math: add omitted file
8533         * lib/itold.c: Add file, required for yesterday's float change.
8534
8535 2011-10-01  Bruno Haible  <bruno@clisp.org>
8536
8537         isinf: Fix for OpenBSD/x86.
8538         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
8539         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
8540         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
8541
8542 2011-10-01  Bruno Haible  <bruno@clisp.org>
8543
8544         isfinite: Fix syntax error in configure test.
8545         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
8546
8547         isfinite: Fix typo.
8548         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
8549         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
8550
8551 2011-10-01  Bruno Haible  <bruno@clisp.org>
8552
8553         nonblocking tests: Fix test failure on Linux/IA-64.
8554         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
8555         Set to 270000.
8556
8557 2011-10-01  Bruno Haible  <bruno@clisp.org>
8558
8559         mkfifoat tests: Fix a test failure on mingw.
8560         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
8561         with error ENOSYS.
8562
8563 2011-09-30  Bruno Haible  <bruno@clisp.org>
8564
8565         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
8566         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
8567         'long double'. Set REPLACE_ITOLD.
8568         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
8569         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
8570         * lib/itold.c: New file.
8571         * modules/float (Files): Add lib/itold.c.
8572         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
8573         (Makefile.am): Substitute REPLACE_ITOLD.
8574         * modules/math (Depends-on): Add float.
8575         (Makefile.am): Substitute REPLACE_ITOLD.
8576         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
8577         * doc/posix-headers/math.texi: Likewise.
8578         * doc/posix-functions/logl.texi: Likewise.
8579
8580 2011-09-30  Bruno Haible  <bruno@clisp.org>
8581
8582         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
8583         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
8584         Set to 140000.
8585
8586 2011-09-30  Bruno Haible  <bruno@clisp.org>
8587
8588         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
8589         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
8590         invocation, say "right after AC_PROG_CC_STDC", not "right after
8591         AC_PROG_CC".
8592         Reported by Gary V. Vaughan <gary@gnu.org>.
8593
8594 2011-09-30  Bruno Haible  <bruno@clisp.org>
8595
8596         Centralize C99 requirement.
8597         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
8598         * modules/stdarg (configure.ac-early): Invoke it instead of
8599         AC_PROG_CC_STDC.
8600         Reported by Gary V. Vaughan and Paul Eggert.
8601
8602 2011-09-29  Bruno Haible  <bruno@clisp.org>
8603
8604         float: Fix LDBL_MAX value on Linux/PowerPC.
8605         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
8606         on Linux/PowerPC.
8607         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
8608         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
8609         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
8610         platform.
8611         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
8612
8613 2011-09-29  Bruno Haible  <bruno@clisp.org>
8614
8615         doc: Improve doc about gl_EARLY.
8616         * doc/gnulib-tool.texi (Initial import): Mention where to place an
8617         AC_PROG_CC_STDC invocation.
8618         Reported by Gary V. Vaughan <gary@gnu.org>.
8619
8620 2011-09-28  Bruno Haible  <bruno@clisp.org>
8621
8622         fgetc, fputc, fread, fwrite tests: Fix link error.
8623         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
8624         on non-MSVC platforms.
8625         * tests/test-fputc.c (main): Likewise.
8626         * tests/test-fread.c (main): Likewise.
8627         * tests/test-fwrite.c (main): Likewise.
8628         Reported by Jim Meyering.
8629
8630 2011-09-27  Bruno Haible  <bruno@clisp.org>
8631
8632         fputc, fwrite tests: Avoid test failure on MSVC.
8633         * tests/test-fgetc.c: Include msvc-inval.h.
8634         (main): Invoke gl_msvc_inval_ensure_handler.
8635         * tests/test-fputc.c: Include msvc-inval.h.
8636         (main): Invoke gl_msvc_inval_ensure_handler.
8637         * tests/test-fread.c: Include msvc-inval.h.
8638         (main): Invoke gl_msvc_inval_ensure_handler.
8639         * tests/test-fwrite.c: Include msvc-inval.h.
8640         (main): Invoke gl_msvc_inval_ensure_handler.
8641         * modules/fgetc-tests (Depends-on): Add msvc-inval.
8642         * modules/fputc-tests (Depends-on): Likewise.
8643         * modules/fread-tests (Depends-on): Likewise.
8644         * modules/fwrite-tests (Depends-on): Likewise.
8645
8646 2011-09-27  Bruno Haible  <bruno@clisp.org>
8647
8648         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
8649         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
8650         (raise): Remove older, duplicated declaration.
8651         (_gl_raise_SIGPIPE): New declaration.
8652         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
8653         (rpl_raise): Remove function.
8654         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
8655         a gnulib-defined SIGPIPE here.
8656         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
8657         'sigprocmask' has detected missing signal-blocking and the module
8658         'sigpipe' is enabled.
8659         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8660
8661 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
8662
8663         base64-tests: avoid memory leak
8664         * tests/test-base64.c (main): Plug memory leak.
8665
8666         base32: new module
8667         * modules/base32: New module.
8668         * lib/base32.c: New file.
8669         * lib/base32.h: Likewise.
8670         * m4/base32.m4: Likewise.
8671         * modules/base32-tests: New test.
8672         * tests/test-base32.c: Likewise.
8673         * MODULES.html.sh (Misc): Mention it.
8674
8675 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
8676
8677         gnulib: use more-standard license notice wording
8678         * gnulib-tool (func_emit_copyright_notice): When emitting a
8679         license notice into a file, use the standard wording as suggested
8680         by the current information for GNU maintainers, except say "file"
8681         rather than "program".  The new wording gives a license version
8682         number, which addresses an issue raised by Glenn Morris in
8683         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
8684         * m4/onceonly.m4: Use that same wording here, too.
8685
8686         dup2: minor simplification
8687         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
8688         as lib/dup2.c no longer uses 'inline'.
8689
8690 2011-09-25  Bruno Haible  <bruno@clisp.org>
8691
8692         strings: Fix compilation error on MSVC.
8693         * lib/strings.in.h: Include <stddef.h> for size_t.
8694
8695 2011-09-25  Bruno Haible  <bruno@clisp.org>
8696
8697         fflush et al.: Document limitation on MSVC.
8698         * doc/posix-functions/fflush.texi: Document possible crash in handling
8699         mode other than DEFAULT_HANDLING.
8700         * doc/posix-functions/fgetc.texi: Likewise.
8701         * doc/posix-functions/fputc.texi: Likewise.
8702         * doc/posix-functions/fread.texi: Likewise.
8703         * doc/posix-functions/fwrite.texi: Likewise.
8704
8705 2011-09-25  Bruno Haible  <bruno@clisp.org>
8706
8707         msvc-inval: Allow three invalid parameter handling modes.
8708         * lib/msvc-inval.h: Don't include <stdlib.h> here.
8709         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
8710         macros.
8711         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
8712         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
8713         SANE_LIBRARY_HANDLING as a no-op.
8714         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
8715         <stdlib.h>.
8716         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
8717
8718 2011-09-25  Bruno Haible  <bruno@clisp.org>
8719
8720         msvc-inval: Make handler multithread-safe.
8721         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
8722         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
8723         declarations.
8724         (gl_msvc_inval_current): New declaration.
8725         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8726         Operate on the structure returned by gl_msvc_inval_current().
8727         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
8728         Remove varaiables.
8729         (tls_index, tls_initialized): New variables.
8730         (not_per_thread): New variable.
8731         (gl_msvc_inval_current): New function.
8732         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
8733         returned by gl_msvc_inval_current().
8734
8735 2011-09-25  Bruno Haible  <bruno@clisp.org>
8736
8737         msvc-inval: Install handler globally.
8738         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
8739         !_MSC_VER.
8740         (gl_msvc_invalid_parameter_handler): Remove declaration.
8741         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
8742         declarations.
8743         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8744         Install the handler globally, don't uninstall it.
8745         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
8746         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
8747         currently valid, call RaiseException instead.
8748         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
8749         for !_MSC_VER.
8750
8751 2011-09-25  Bruno Haible  <bruno@clisp.org>
8752
8753         strerror_r-posix: Fix for MSVC 9.
8754         * lib/strerror_r.c (local_snprintf): New function.
8755         (snprintf): Define to local_snprintf, not to _snprintf.
8756
8757 2011-09-25  Bruno Haible  <bruno@clisp.org>
8758
8759         ftruncate: Support for MSVC 9.
8760         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
8761         (chsize_nothrow): New function.
8762         (chsize): Redefine as a macro.
8763         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
8764         * modules/ftruncate (Depends-on): Add msvc-inval.
8765
8766 2011-09-25  Bruno Haible  <bruno@clisp.org>
8767
8768         New module 'fstat'.
8769         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
8770         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
8771         * lib/fchdir.c (rpl_fstat): Remove function.
8772         * m4/fstat.m4: New file.
8773         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
8774         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
8775         declared.
8776         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
8777         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
8778         * modules/fstat: New file.
8779         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
8780         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
8781         is set.
8782         * doc/posix-functions/fstat.texi: Mention the new module and the
8783         problem on MSVC.
8784         * NEWS: Mention the change.
8785         * modules/acl (Depends-on): Add fstat.
8786         * modules/chdir-safer (Depends-on): Likewise.
8787         * modules/chown (Depends-on): Likewise.
8788         * modules/copy-file (Depends-on): Likewise.
8789         * modules/fchdir (Depends-on): Likewise.
8790         * modules/fdopendir (Depends-on): Likewise.
8791         * modules/fopen (Depends-on): Likewise.
8792         * modules/fts (Depends-on): Likewise.
8793         * modules/getcwd (Depends-on): Likewise.
8794         * modules/isapipe (Depends-on): Likewise.
8795         * modules/linkat (Depends-on): Likewise.
8796         * modules/lseek (Depends-on): Likewise.
8797         * modules/mkdir-p (Depends-on): Likewise.
8798         * modules/open (Depends-on): Likewise.
8799         * modules/openat (Depends-on): Likewise.
8800         * modules/read-file (Depends-on): Likewise.
8801         * modules/renameat (Depends-on): Likewise.
8802         * modules/utimens (Depends-on): Likewise.
8803
8804 2011-09-25  Bruno Haible  <bruno@clisp.org>
8805
8806         linkat: Fix compilation on MSVC 9.
8807         * lib/linkat.c: Don't include <stdint.h>.
8808
8809 2011-09-25  Bruno Haible  <bruno@clisp.org>
8810
8811         fclose: Support for MSVC 9.
8812         * lib/fclose.c: Include msvc-inval.h.
8813         (fclose_nothrow): New function.
8814         (rpl_fclose): Use it.
8815         * modules/fclose (Depends-on): Add msvc-inval.
8816         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
8817
8818 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
8819
8820         dup2: minor simplifications
8821         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
8822         that it's a performance win.
8823         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
8824         ! defined __CYGWIN__)" to "ifdef F_GETFL".
8825
8826 2011-09-24  Jim Meyering  <meyering@redhat.com>
8827
8828         test-futimens: avoid a warning from gcc -Wshadow
8829         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
8830         to avoid a shadowing warning.
8831
8832 2011-09-24  Bruno Haible  <bruno@clisp.org>
8833
8834         fdopen: Support for MSVC 9.
8835         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
8836         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
8837         * lib/fdopen.c: Include msvc-inval.h.
8838         (fdopen_nothrow): New function.
8839         (rpl_fdopen): Use it.
8840         * modules/fdopen (Depends-on): Add msvc-inval.
8841         * modules/fclose-tests (Depends-on): Add fdopen.
8842         * modules/fflush-tests (Depends-on): Likewise.
8843         * modules/fgetc-tests (Depends-on): Likewise.
8844         * modules/fputc-tests (Depends-on): Likewise.
8845         * modules/fread-tests (Depends-on): Likewise.
8846         * modules/freopen-tests (Depends-on): Likewise.
8847         * modules/fseeko-tests (Depends-on): Likewise.
8848         * modules/ftello-tests (Depends-on): Likewise.
8849         * modules/fwrite-tests  (Depends-on): Likewise.
8850         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
8851
8852 2011-09-24  Bruno Haible  <bruno@clisp.org>
8853
8854         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
8855         * modules/fgetc-tests (Depends-on): Add unistd.
8856         * modules/fputc-tests (Depends-on): Likewise.
8857         * modules/fread-tests (Depends-on): Likewise.
8858         * modules/fwrite-tests (Depends-on): Likewise.
8859
8860 2011-09-24  Bruno Haible  <bruno@clisp.org>
8861
8862         dup: Simplify autoconf test.
8863         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
8864         on gl_MSVC_INVAL's result.
8865
8866 2011-09-24  Bruno Haible  <bruno@clisp.org>
8867
8868         Tests for function fwrite().
8869         * modules/fwrite-tests: New file.
8870         * tests/test-fwrite.c: New file.
8871         * modules/stdio-tests (Depends-on): Add fwrite-tests.
8872
8873         Tests for function fread().
8874         * modules/fread-tests: New file.
8875         * tests/test-fread.c: New file.
8876         * modules/stdio-tests (Depends-on): Add fread-tests.
8877
8878         Activate fputc tests.
8879         * modules/stdio-tests (Depends-on): Add fputc-tests.
8880
8881         Enhance fgetc, fputc tests.
8882         * tests/test-fgetc.c (main): Also test the stream's error indicator.
8883         * tests/test-fputc.c (main): Likewise.
8884
8885 2011-09-24  Bruno Haible  <bruno@clisp.org>
8886
8887         write: Support for MSVC 9.
8888         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8889         is not 1.
8890         * lib/write.c (write_nothrow): New function.
8891         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
8892         not 1. Use write_nothrow.
8893         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
8894         invalid parameter handler.
8895         (gl_PREREQ_WRITE): New macro.
8896         * modules/write (Depends-on): Add msvc-inval.
8897         (configure.ac): Invoke gl_PREREQ_WRITE.
8898         * doc/posix-functions/write.texi: Mention the problem on MSVC.
8899
8900 2011-09-24  Bruno Haible  <bruno@clisp.org>
8901
8902         read: Fix last commit.
8903         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
8904
8905 2011-09-24  Bruno Haible  <bruno@clisp.org>
8906
8907         dup2: Fix last commit.
8908         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
8909         (rpl_dup2): Disable fcntl workaround on native Windows.
8910
8911         sigprocmask: Make code safer.
8912         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
8913         section that changes macro definitions for this compilation unit.
8914
8915 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8916
8917         dup2: clarify by coalescing Windows-specific material
8918         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
8919         "msvc-nothrow.h"' to the Windows-specific section, so that the
8920         Emacs source need not contain these include files.
8921         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
8922         Windows-specific fixes into this function rather than just the
8923         nothrow fix, as this shortens and clarifies the code.  Always
8924         define as a function, as that's a bit cleaner than having it be
8925         sometimes a function and sometimes a macro.
8926         (rpl_dup2): Move the Windows-specific stuff out of here and into
8927         ms_windows_dup2.  Don't protect the Haiku-related fix with
8928         "#if !defined __linux__", as the same code also works around
8929         a Linux kernel bug, and it doesn't add any system calls on any
8930         platform.  Add comment about FreeBSD 6.1.
8931
8932         sigprocmask: move #include directive
8933         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
8934         Windows-specific section, so that the Emacs source need not
8935         contain msvc-inval.h.
8936
8937 2011-09-23  Bruno Haible  <bruno@clisp.org>
8938
8939         read: Support for MSVC 9.
8940         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8941         is not 1.
8942         * lib/read.c (read_nothrow): New function.
8943         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
8944         read_nothrow.
8945         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
8946         invalid parameter handler.
8947         (gl_PREREQ_READ): New macro.
8948         * modules/read (Depends-on): Add msvc-inval.
8949         (configure.ac): Invoke gl_PREREQ_READ.
8950         * doc/posix-functions/read.texi: Mention the problem on MSVC.
8951
8952 2011-09-23  Bruno Haible  <bruno@clisp.org>
8953
8954         close: Support for MSVC 9.
8955         * lib/close.c: Include <errno.h>, msvc-inval.h.
8956         (close_nothrow): New function.
8957         (rpl_close): Use it.
8958         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
8959         invalid parameter handler.
8960         * modules/close (Depends-on): Add msvc-inval.
8961         * modules/dup2-tests (Depends-on): Add close.
8962         * modules/dup3-tests (Depends-on): Likewise.
8963         * modules/fcntl-tests (Depends-on): Likewise.
8964         * modules/spawn-pipe-tests (Depends-on): Likewise.
8965         * modules/unistd-safer-tests (Depends-on): Likewise.
8966         * doc/posix-functions/close.texi: Mention the problem on MSVC.
8967
8968 2011-09-23  Bruno Haible  <bruno@clisp.org>
8969
8970         New module 'dup'.
8971         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
8972         Allow replacement.
8973         * lib/dup.c: New file.
8974         * lib/fchdir.c (rpl_dup): Remove function.
8975         * m4/dup.m4: New file.
8976         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
8977         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
8978         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
8979         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
8980         * modules/dup: New file.
8981         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
8982         'dup' module is in use.
8983         * modules/fdopendir (Depends-on): Add dup.
8984         * modules/fdutimensat-tests (Depends-on): Likewise.
8985         * modules/fts (Depends-on): Likewise.
8986         * modules/futimens-tests (Depends-on): Likewise.
8987         * modules/posix_spawnp-tests (Depends-on): Likewise.
8988         * modules/unistd-safer-tests (Depends-on): Likewise.
8989         * modules/utimens-tests (Depends-on): Likewise.
8990         * doc/posix-functions/dup.texi: Mention the new module and the problem
8991         on MSVC.
8992
8993 2011-09-23  Bruno Haible  <bruno@clisp.org>
8994
8995         getdtablesize: Support for MSVC 9.
8996         * lib/getdtablesize.c: Include msvc-inval.h.
8997         (_setmaxstdio_nothrow): New function.
8998         (_setmaxstdio): Redefine it.
8999         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
9000         * modules/getdtablesize (Depends-on): Add msvc-inval.
9001         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
9002
9003 2011-09-23  Bruno Haible  <bruno@clisp.org>
9004
9005         signal-h: Rename from signal.
9006         * modules/signal-h: Renamed from modules/signal.
9007         * modules/pthread_sigmask (Depends-on): Update.
9008         * modules/raise (Depends-on): Likewise.
9009         * modules/sigaction (Depends-on): Likewise.
9010         * modules/sigpipe (Depends-on): Likewise.
9011         * modules/sigprocmask (Depends-on): Likewise.
9012         * modules/sys_select (Depends-on): Likewise.
9013         * modules/signal-h-tests: Renamed from modules/signal-tests.
9014         (Files, Depends-on, Makefile.am): Update.
9015         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
9016         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
9017         (Files, Makefile.am): Update.
9018         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
9019         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
9020         * modules/signal: New placeholder file.
9021         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
9022         * doc/posix-headers/signal.texi: Update.
9023         * NEWS: Mention the change.
9024
9025 2011-09-23  Bruno Haible  <bruno@clisp.org>
9026
9027         sigprocmask: Avoid crashes through signal() on MSVC 9.
9028         * lib/sigprocmask.c: Include msvc-inval.h.
9029         (signal_nothrow): New function.
9030         (signal): Redefine it.
9031         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
9032         * modules/sigprocmask (Depends-on): Add msvc-inval.
9033         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
9034
9035 2011-09-23  Bruno Haible  <bruno@clisp.org>
9036
9037         Tests for module 'raise'.
9038         * modules/raise-tests: New file.
9039         * tests/test-raise.c: New file.
9040
9041         raise: Support for MSVC.
9042         * lib/signal.in.h (raise): New declaration.
9043         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
9044         for native Windows platforms.
9045         * m4/raise.m4: New file.
9046         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
9047         HAVE_RAISE, REPLACE_RAISE.
9048         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
9049         REPLACE_RAISE.
9050         * modules/raise (Status, Notice): Remove fields.
9051         (Files): Add m4/raise.m4.
9052         (Depends-on): Add signal, msvc-inval.
9053         (configure.ac): Use the common idioms.
9054         (Maintainer): Add me.
9055         * tests/test-signal-c++.cc: Check the signature of raise.
9056         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
9057
9058 2011-09-23  Bruno Haible  <bruno@clisp.org>
9059
9060         pipe2: Fix compilation on pre-C99 compilers.
9061         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
9062
9063 2011-09-23  Bruno Haible  <bruno@clisp.org>
9064
9065         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
9066         * lib/msvc-nothrow.h: New file.
9067         * lib/msvc-nothrow.c: New file.
9068         * m4/msvc-nothrow.m4: New file.
9069         * modules/msvc-nothrow: New file.
9070         * lib/dup2.c: Include msvc-nothrow.h.
9071         (rpl_dup2): No need to protect _get_osfhandle call here.
9072         * lib/accept4.c: Include msvc-nothrow.h.
9073         * lib/error.c: Likewise.
9074         * lib/fcntl.c: Likewise.
9075         * lib/lseek.c: Likewise.
9076         * lib/nonblocking.c: Likewise.
9077         * lib/poll.c: Likewise.
9078         * lib/read.c: Likewise.
9079         * lib/select.c: Likewise.
9080         * lib/sockets.h: Likewise.
9081         * lib/sockets.c: Likewise.
9082         * lib/stdio-read.c: Likewise.
9083         * lib/stdio-write.c: Likewise.
9084         * lib/write.c: Likewise.
9085         * lib/w32sock.h: Likewise.
9086         * lib/w32spawn.h: Likewise.
9087         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
9088         * lib/fsync.c: Likewise.
9089         * lib/isapipe.c: Likewise.
9090         * modules/dup2 (Depends-on): Add msvc-nothrow.
9091         * modules/accept4 (Depends-on): Likewise.
9092         * modules/error (Depends-on): Likewise.
9093         * modules/fcntl (Depends-on): Likewise.
9094         * modules/lseek (Depends-on): Likewise.
9095         * modules/nonblocking (Depends-on): Likewise.
9096         * modules/poll (Depends-on): Likewise.
9097         * modules/read (Depends-on): Likewise.
9098         * modules/select (Depends-on): Likewise.
9099         * modules/sockets (Depends-on): Likewise.
9100         * modules/sigpipe (Depends-on): Likewise.
9101         * modules/write (Depends-on): Likewise.
9102         * modules/accept (Depends-on): Likewise.
9103         * modules/bind (Depends-on): Likewise.
9104         * modules/connect (Depends-on): Likewise.
9105         * modules/gethostname (Depends-on): Likewise.
9106         * modules/getpeername (Depends-on): Likewise.
9107         * modules/getsockname (Depends-on): Likewise.
9108         * modules/getsockopt (Depends-on): Likewise.
9109         * modules/ioctl (Depends-on): Likewise.
9110         * modules/listen (Depends-on): Likewise.
9111         * modules/recv (Depends-on): Likewise.
9112         * modules/recvfrom (Depends-on): Likewise.
9113         * modules/send (Depends-on): Likewise.
9114         * modules/sendto (Depends-on): Likewise.
9115         * modules/setsockopt (Depends-on): Likewise.
9116         * modules/shutdown (Depends-on): Likewise.
9117         * modules/socket (Depends-on): Likewise.
9118         * modules/execute (Depends-on): Likewise.
9119         * modules/spawn-pipe (Depends-on): Likewise.
9120         * modules/flock (Depends-on): Likewise.
9121         * modules/fsync (Depends-on): Likewise.
9122         * modules/isapipe (Depends-on): Likewise.
9123         * tests/test-cloexec.c: Include msvc-nothrow.h.
9124         * tests/test-dup-safer.c: Likewise.
9125         * tests/test-dup2.c: Likewise.
9126         * tests/test-dup3.c: Likewise.
9127         * tests/test-fcntl.c: Likewise.
9128         * tests/test-pipe.c: Likewise.
9129         * tests/test-pipe2.c: Likewise.
9130         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
9131         * modules/unistd-safer-tests (Depends-on): Likewise.
9132         * modules/dup2-tests (Depends-on): Likewise.
9133         * modules/dup3-tests (Depends-on): Likewise.
9134         * modules/fcntl-tests (Depends-on): Likewise.
9135         * modules/pipe-posix-tests (Depends-on): Likewise.
9136         * modules/pipe2-tests (Depends-on): Likewise.
9137
9138 2011-09-23  Bruno Haible  <bruno@clisp.org>
9139
9140         dup2: Make code more maintainable.
9141         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
9142         (rpl_dup2): Use it.
9143         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
9144         * modules/dup2 (configure.ac): Invoke it.
9145         Reported by Paul Eggert.
9146
9147 2011-09-23  Bruno Haible  <bruno@clisp.org>
9148
9149         msvc-inval: Fix compilation error.
9150         * lib/msvc-inval.h: Include <excpt.h>.
9151
9152 2011-09-23  Bruno Haible  <bruno@clisp.org>
9153
9154         mkdir: Tweak for MSVC 9.
9155         * lib/sys_stat.in.h: Update comments.
9156         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
9157
9158         Tests for module 'chdir'.
9159         * modules/chdir-tests: New file.
9160         * tests/test-chdir.c: New file.
9161
9162         New module 'chdir'.
9163         * modules/chdir: New file.
9164         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
9165         (chdir): New declaration.
9166         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
9167         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
9168         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
9169         * tests/test-unistd-c++.cc: Check signature of chdir.
9170         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
9171         * modules/chdir-long (Depends-on): Add chdir.
9172         * modules/fchdir (Depends-on): Likewise.
9173         * modules/rename (Depends-on): Likewise.
9174         * modules/savewd (Depends-on): Likewise.
9175
9176         rmdir: Support for mingw, MSVC 9.
9177         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
9178         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
9179
9180         getcwd: Tweak for MSVC 9.
9181         * lib/unistd.in.h: Update comments.
9182         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
9183
9184 2011-09-22  Bruno Haible  <bruno@clisp.org>
9185
9186         strerror_r-posix: Avoid a link error on MSVC.
9187         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
9188         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
9189
9190 2011-09-22  Bruno Haible  <bruno@clisp.org>
9191
9192         select: Avoid link errors on MSVC.
9193         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
9194         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
9195         * modules/pselect (Link): Likewise.
9196         * NEWS: Mention the change.
9197         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
9198         test-select-stdin against $(LIB_SELECT).
9199         * modules/pselect-tests (Makefile.am): Link test-pselect against
9200         $(LIB_SELECT).
9201
9202 2011-09-22  Bruno Haible  <bruno@clisp.org>
9203
9204         select: Avoid compilation error on MSVC.
9205         * lib/select.c: Don't include <stdbool.h>.
9206
9207 2011-09-21  Bruno Haible  <bruno@clisp.org>
9208
9209         Consolidate all uses of PATH_MAX in *.m4 files.
9210         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
9211         macros.
9212         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
9213         and gl_PATHMAX_SNIPPET.
9214         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9215         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9216         * modules/chdir-long (Files): Add m4/pathmax.m4.
9217         * modules/getcwd (Files): Likewise.
9218
9219 2011-09-21  Bruno Haible  <bruno@clisp.org>
9220
9221         ftruncate: Un-deprecate, concentrate on Win32 support.
9222         * modules/ftruncate (Status, Notice): Remove sections.
9223         (Depends-on): Add largefile.
9224         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
9225         non-mingw platforms.
9226         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
9227         include <io.h>.
9228         * modules/perror-tests (Depends-on): Add ftruncate.
9229         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
9230         'ftruncate' module.
9231
9232 2011-09-21  Bruno Haible  <bruno@clisp.org>
9233
9234         Add dependencies to new dirent related modules.
9235         * modules/opendir (Depends-on): Add closedir.
9236         * modules/getcwd (Depends-on): Add opendir, closedir.
9237         * modules/dirent-safer-tests (Depends-on): Likewise.
9238         * modules/fdopendir-tests (Depends-on): Likewise.
9239         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
9240         * modules/renameat-tests (Depends-on): Likewise.
9241
9242 2011-09-21  Bruno Haible  <bruno@clisp.org>
9243
9244         opendir: Avoid compilation error on mingw.
9245         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
9246         * modules/opendir (Depends-on): Add unistd.
9247
9248 2011-09-21  Bruno Haible  <bruno@clisp.org>
9249
9250         ftruncate tests: Avoid a test failure on mingw.
9251         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
9252
9253 2011-09-21  Bruno Haible  <bruno@clisp.org>
9254
9255         select tests: Avoid test failures on OSF/1 5.1 and mingw.
9256         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
9257         native Windows.
9258
9259 2011-09-21  Bruno Haible  <bruno@clisp.org>
9260
9261         New module 'fdopen'.
9262         * lib/stdio.in.h (fdopen): New declaration.
9263         * lib/fdopen.c: New file.
9264         * m4/fdopen.m4: New file.
9265         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
9266         REPLACE_FDOPEN.
9267         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
9268         REPLACE_FDOPEN.
9269         * modules/fdopen: New file.
9270         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
9271         * tests/test-stdio-c++.cc: Check signature of fdopen.
9272         * doc/posix-functions/fdopen.texi: Mention the new module.
9273
9274 2011-09-21  Bruno Haible  <bruno@clisp.org>
9275
9276         unlockpt tests: Avoid test failure on NetBSD 5.1.
9277         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
9278         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
9279
9280 2011-09-21  Bruno Haible  <bruno@clisp.org>
9281
9282         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
9283         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
9284         * tests/test-getlogin_r.c (main): Likewise.
9285
9286 2011-09-20  Bruno Haible  <bruno@clisp.org>
9287
9288         time tests: Don't require pid_t.
9289         * doc/posix-headers/time.texi: Revert last change.
9290         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
9291         * tests/test-time.c: Comment out the check for pid_t.
9292
9293 2011-09-20  Bruno Haible  <bruno@clisp.org>
9294
9295         fsync tests: Avoid a test failure on mingw.
9296         * tests/test-fsync.c (main): Allow a failure with EIO.
9297
9298 2011-09-20  Bruno Haible  <bruno@clisp.org>
9299
9300         euidaccess: Update comments.
9301         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
9302
9303 2011-09-20  Bruno Haible  <bruno@clisp.org>
9304
9305         Ensure EBADF returns for socket functions on mingw.
9306         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
9307         descriptor is invalid.
9308         * lib/bind.c (rpl_bind): Likewise.
9309         * lib/connect.c (rpl_connect): Likewise.
9310         * lib/getpeername.c (rpl_getpeername): Likewise.
9311         * lib/getsockname.c (rpl_getsockname): Likewise.
9312         * lib/getsockopt.c (rpl_getsockopt): Likewise.
9313         * lib/listen.c (rpl_listen): Likewise.
9314         * lib/recv.c (rpl_recv): Likewise.
9315         * lib/recvfrom.c (rpl_recvfrom): Likewise.
9316         * lib/send.c (rpl_send): Likewise.
9317         * lib/sendto.c (rpl_sendto): Likewise.
9318         * lib/setsockopt.c (rpl_setsockopt): Likewise.
9319         * lib/shutdown.c (rpl_shutdown): Likewise.
9320
9321 2011-09-20  Bruno Haible  <bruno@clisp.org>
9322
9323         select tests: EBADF tests.
9324         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
9325         test_bad_fd): New functions.
9326         (test_function): Invoke also test_bad_fd.
9327
9328 2011-09-20  Bruno Haible  <bruno@clisp.org>
9329
9330         Tests for module 'posix_spawn_file_actions_addopen.
9331         * modules/posix_spawn_file_actions_addopen-tests: New file.
9332         * tests/test-posix_spawn_file_actions_addopen.c: New file.
9333
9334         Tests for module 'posix_spawn_file_actions_adddup2'.
9335         * modules/posix_spawn_file_actions_adddup2-tests: New file.
9336         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
9337
9338         Tests for module 'posix_spawn_file_actions_addclose'.
9339         * modules/posix_spawn_file_actions_addclose-tests: New file.
9340         * tests/test-posix_spawn_file_actions_addclose.c: New file.
9341
9342 2011-09-20  Bruno Haible  <bruno@clisp.org>
9343
9344         Tests for module 'unlockpt'.
9345         * modules/unlockpt-tests: New file.
9346         * tests/test-unlockpt.c: New file.
9347         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
9348
9349         Tests for module 'grantpt'.
9350         * modules/grantpt-tests: New file.
9351         * tests/test-grantpt.c: New file.
9352         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
9353
9354 2011-09-20  Bruno Haible  <bruno@clisp.org>
9355
9356         freopen tests: EBADF tests.
9357         * tests/test-freopen.c: Include errno.h, unistd.h.
9358         (main): Add tests for EBADF, commented out for the moment.
9359
9360         fclose tests: EBADF tests.
9361         * tests/test-fclose.c (main): Add tests for EBADF.
9362
9363         fflush tests: EBADF tests.
9364         * tests/test-fflush.c: Include errno.h, macros.h.
9365         (main): Add tests for EBADF.
9366
9367         ftello tests: EBADF tests.
9368         * tests/test-ftello4.sh: New file.
9369         * tests/test-ftello4.c: New file.
9370         * modules/ftello-tests (Files): Add them.
9371         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
9372
9373         fseeko tests: EBADF tests.
9374         * tests/test-fseeko4.sh: New file.
9375         * tests/test-fseeko4.c: New file.
9376         * modules/fseeko-tests (Files): Add them.
9377         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
9378
9379         Tests for function fputc().
9380         * modules/fputc-tests: New file.
9381         * tests/test-fputc.c: New file.
9382         * modules/stdio-tests (Depends-on): Add fputc-tests.
9383
9384         Tests for function fgetc().
9385         * modules/fgetc-tests: New file.
9386         * tests/test-fgetc.c: New file.
9387         * modules/stdio-tests (Depends-on): Add fgetc-tests.
9388
9389         Tests for function fdopen().
9390         * modules/fdopen-tests: New file.
9391         * tests/test-fdopen.c: New file.
9392         * modules/stdio-tests (Depends-on): Add fdopen-tests.
9393
9394         Tests for module 'vdprintf'.
9395         * modules/vdprintf-tests: New file.
9396         * tests/test-vdprintf.c: New file.
9397
9398         Tests for module 'dprintf'.
9399         * modules/dprintf-tests: New file.
9400         * tests/test-dprintf.c: New file.
9401
9402 2011-09-20  Bruno Haible  <bruno@clisp.org>
9403
9404         Tests for module 'ioctl'.
9405         * modules/ioctl-tests: New file.
9406         * tests/test-ioctl.c: New file.
9407
9408 2011-09-20  Bruno Haible  <bruno@clisp.org>
9409
9410         fcntl tests: EBADF tests.
9411         * tests/test-fcntl.c (main): Add more tests for EBADF.
9412
9413 2011-09-20  Bruno Haible  <bruno@clisp.org>
9414
9415         utimensat tests: EBADF tests.
9416         * tests/test-utimensat.c (main): Add tests for EBADF.
9417
9418         renameat tests: EBADF tests.
9419         * tests/test-renameat.c (main): Add tests for EBADF.
9420
9421         mkfifoat tests: EBADF tests.
9422         * tests/test-mkfifoat.c (main): Add tests for EBADF.
9423
9424         readlinkat tests: EBADF tests.
9425         * tests/test-readlinkat.c (main): Add tests for EBADF.
9426
9427         symlinkat tests: EBADF tests.
9428         * tests/test-symlinkat.c (main): Add tests for EBADF.
9429
9430         linkat tests: EBADF tests.
9431         * tests/test-linkat.c (main): Add tests for EBADF.
9432
9433         Tests for module 'faccessat'.
9434         * modules/faccessat-tests: New file.
9435         * tests/test-faccessat.c: New file.
9436
9437         fdopendir tests: EBADF tests.
9438         * tests/test-fdopendir.c (main): Add more tests for EBADF.
9439
9440         openat tests: EBADF tests.
9441         * tests/test-fchownat.c (main): Add tests for EBADF.
9442         * tests/test-fstatat.c (main): Likewise.
9443         * tests/test-mkdirat.c (main): Likewise.
9444         * tests/test-openat.c (main): Likewise.
9445         * tests/test-unlinkat.c (main): Likewise.
9446         * tests/test-fchmodat.c: New file.
9447         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
9448         (Makefile.am): Also run 'test-fchmodat'.
9449
9450 2011-09-20  Bruno Haible  <bruno@clisp.org>
9451
9452         utimens, futimens, fdutimensat tests: EBADF tests.
9453         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
9454
9455         Tests for function fstat().
9456         * modules/fstat-tests: New file.
9457         * tests/test-fstat.c: New file.
9458         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
9459
9460 2011-09-20  Bruno Haible  <bruno@clisp.org>
9461
9462         test-ttyname_r tests: EBADF tests.
9463         * tests/test-ttyname_r.c (main): Add tests for EBADF.
9464
9465         Tests for module 'isatty'.
9466         * modules/isatty-tests: New file.
9467         * tests/test-isatty.c: New file.
9468
9469         Tests for module 'write'.
9470         * modules/write-tests: New file.
9471         * tests/test-write.c: New file.
9472
9473         Tests for module 'read'.
9474         * modules/read-tests: New file.
9475         * tests/test-read.c: New file.
9476
9477         pwrite tests: EBADF tests.
9478         * tests/test-pwrite.c (main): Add tests for EBADF.
9479
9480         pread tests: EBADF tests.
9481         * tests/test-pread.c (main): Add tests for EBADF.
9482
9483         lseek tests: EBADF tests.
9484         * tests/test-lseek.c (main): Add more tests for EBADF.
9485
9486         Tests for module 'ftruncate'.
9487         * modules/ftruncate-tests: New file.
9488         * tests/test-ftruncate.sh: New file.
9489         * tests/test-ftruncate.c: New file.
9490
9491         fsync tests: EBADF tests.
9492         * tests/test-fsync.c (main): Add more tests for EBADF.
9493
9494         fdatasync tests: EBADF tests.
9495         * tests/test-fdatasync.c (main): Add more tests for EBADF.
9496
9497         Tests for module 'fchown'.
9498         * modules/fchown-tests: New file.
9499         * tests/test-fchown.c: New file.
9500
9501         Tests for module 'fchmod'.
9502         * modules/fchmod-tests: New file.
9503         * tests/test-fchmod.c: New file.
9504
9505         fchdir tests: EBADF tests.
9506         * tests/test-fchdir.c (main): Add more tests for EBADF.
9507
9508         dup2 tests: EBADF tests.
9509         * tests/test-dup2.c (main): Add more tests for EBADF.
9510
9511         Tests for module 'dup'.
9512         * modules/dup-tests: New file.
9513         * tests/test-dup.c: New file.
9514
9515         Tests for module 'close'.
9516         * modules/close-tests: New file.
9517         * tests/test-close.c: New file.
9518
9519 2011-09-20  Bruno Haible  <bruno@clisp.org>
9520
9521         Tests for module 'shutdown'.
9522         * modules/shutdown-tests: New file.
9523         * tests/test-shutdown.c: New file.
9524
9525         Tests for module 'setsockopt'.
9526         * modules/setsockopt-tests: New file.
9527         * tests/test-setsockopt.c: New file.
9528
9529         Tests for module 'sendto'.
9530         * modules/sendto-tests: New file.
9531         * tests/test-sendto.c: New file.
9532
9533         Tests for module 'send'.
9534         * modules/send-tests: New file.
9535         * tests/test-send.c: New file.
9536
9537         Tests for module 'recvfrom'.
9538         * modules/recvfrom-tests: New file.
9539         * tests/test-recvfrom.c: New file.
9540
9541         Tests for module 'recv'.
9542         * modules/recv-tests: New file.
9543         * tests/test-recv.c: New file.
9544
9545         Tests for module 'listen'.
9546         * modules/listen-tests: New file.
9547         * tests/test-listen.c: New file.
9548
9549         Tests for module 'getsockopt'.
9550         * modules/getsockopt-tests: New file.
9551         * tests/test-getsockopt.c: New file.
9552
9553         Tests for module 'getsockname'.
9554         * modules/getsockname-tests: New file.
9555         * tests/test-getsockname.c: New file.
9556
9557         Tests for module 'getpeername'.
9558         * modules/getpeername-tests: New file.
9559         * tests/test-getpeername.c: New file.
9560
9561         Tests for module 'connect'.
9562         * modules/connect-tests: New file.
9563         * tests/test-connect.c: New file.
9564
9565         Tests for module 'bind'.
9566         * modules/bind-tests: New file.
9567         * tests/test-bind.c: New file.
9568
9569         accept4 tests: Fix for native Windows.
9570         * tests/test-accept4.c: Include sockets.h.
9571         (main): Invoke gl_sockets_startup.
9572         * modules/accept4-tests (Depends-on): Add sockets.
9573
9574         accept tests: Fix for native Windows.
9575         * tests/test-accept.c: Include sockets.h.
9576         (main): Invoke gl_sockets_startup.
9577         * modules/accept-tests (Depends-on): Add sockets.
9578
9579 2011-09-19  Bruno Haible  <bruno@clisp.org>
9580
9581         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
9582         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
9583         do...while(0).
9584         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
9585         Suggested by Paul Eggert.
9586
9587 2011-09-19  Bruno Haible  <bruno@clisp.org>
9588
9589         sched: Ensure pid_t is defined.
9590         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
9591         not define pid_t.
9592         * lib/sched.in.h: Include <sys/types.h>.
9593         * doc/posix-headers/sched.texi: Mention the pid_t problem.
9594         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9595
9596 2011-09-19  Bruno Haible  <bruno@clisp.org>
9597
9598         msvc-inval: Ensure the entire expansion is a single statement.
9599         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
9600         of braces.
9601
9602 2011-09-19  Jim Meyering  <meyering@redhat.com>
9603
9604         tests: use printf, not echo in init.sh's warn_ function
9605         * tests/init.sh (warn_): Use printf, not echo.  The latter would
9606         misbehave when given strings containing a backslash or starting
9607         with e.g., -n.  James Youngman suggested setting IFS.
9608
9609 2011-09-19  Eric Blake  <eblake@redhat.com>
9610
9611         futimens: enhance test
9612         * tests/test-futimens.h (test_futimens): Also check for EBADF on
9613         closed non-negative fd.
9614
9615         date: accept 'hence' as opposite of 'ago'
9616         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
9617         * tests/test-parse-datetime.c (main): Enhance test.
9618         Suggested by Jesse Wilson.
9619
9620 2011-09-19  Jim Meyering  <meyering@redhat.com>
9621
9622         getcwd: don't fail in a deep directory on a system without openat
9623         Before this change, getcwd would fail when called from a directory
9624         of depth PATH_MAX / 3 or greater.  That was due to the fact that
9625         the non-openat implementation used "..", "../..", "../../..", etc.
9626         to access ancestor directories.  With too many, that string would
9627         be longer than PATH_MAX.
9628         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
9629         using gnulib's openat replacement.
9630         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
9631         we're using the replacement function.
9632
9633 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
9634
9635         maint.mk: avoid warnings from perl about missing files
9636         * top/maint.mk (def_sym_regex): Ignore files listed in
9637         $(gl_other_headers_) that do not exist, say because a project
9638         does not use a corresponding module.
9639
9640 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
9641
9642         stat: use pathmax.h only if needed
9643         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
9644         This is better for Emacs, which does not have a mingw port and
9645         therefore can avoid the pathmax module.
9646
9647         utimens: remove dependency on dup2
9648         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
9649         to work around the Linux kernel bug.
9650         * modules/utimens (Depends-on): Remove dup2.
9651
9652 2011-09-18  Bruno Haible  <bruno@clisp.org>
9653
9654         inet_ntop, inet_pton: Look for it also in libresolv.
9655         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
9656         libnsl, search for it in libresolv.
9657         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9658         Needed on Solaris 7.
9659
9660 2011-09-18  Bruno Haible  <bruno@clisp.org>
9661
9662         accept, accept4 tests: Avoid link error on Solaris.
9663         * modules/accept-tests (Makefile.am): Link test-accept against
9664         $(LIBSOCKET).
9665         * modules/accept4-tests (Makefile.am): Link test-accept4 against
9666         $(LIBSOCKET).
9667
9668         accept4: Avoid link error on Solaris.
9669         * modules/accept4 (Link): New section.
9670
9671         socket functions: Avoid link errors on Solaris.
9672         * modules/accept (Depends-on): Add socketlib.
9673         (Link): New section.
9674         * modules/bind (Depends-on): Add socketlib.
9675         (Link): New section.
9676         * modules/connect (Depends-on): Add socketlib.
9677         (Link): New section.
9678         * modules/getpeername (Depends-on): Add socketlib.
9679         (Link): New section.
9680         * modules/getsockname (Depends-on): Add socketlib.
9681         (Link): New section.
9682         * modules/getsockopt (Depends-on): Add socketlib.
9683         (Link): New section.
9684         * modules/listen (Depends-on): Add socketlib.
9685         (Link): New section.
9686         * modules/recv (Depends-on): Add socketlib.
9687         (Link): New section.
9688         * modules/recvfrom (Depends-on): Add socketlib.
9689         (Link): New section.
9690         * modules/send (Depends-on): Add socketlib.
9691         (Link): New section.
9692         * modules/sendto (Depends-on): Add socketlib.
9693         (Link): New section.
9694         * modules/setsockopt (Depends-on): Add socketlib.
9695         (Link): New section.
9696         * modules/shutdown (Depends-on): Add socketlib.
9697         (Link): New section.
9698         * modules/socket (Depends-on): Add socketlib.
9699         (Link): New section.
9700
9701 2011-09-18  Bruno Haible  <bruno@clisp.org>
9702
9703         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
9704         * tests/test-ptsname.c (main): Terminate the test if it takes longer
9705         than 5 seconds.
9706         * modules/ptsname-tests (configure.ac): Test for alarm.
9707
9708 2011-09-18  Bruno Haible  <bruno@clisp.org>
9709
9710         posix_spawn_file_actions_add*: Fix module dependencies.
9711         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
9712         posix_spawn_file_actions_init.
9713         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
9714         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
9715
9716 2011-09-18  Bruno Haible  <bruno@clisp.org>
9717
9718         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
9719         * tests/test-rename.h (test_rename): Allow error code EEXIST.
9720         * tests/test-renameat.c (main): Likewise.
9721
9722 2011-09-18  Bruno Haible  <bruno@clisp.org>
9723
9724         Tests for module 'accept4'.
9725         * modules/accept4-tests: New file.
9726         * tests/test-accept4.c: New file.
9727
9728 2011-09-18  Bruno Haible  <bruno@clisp.org>
9729
9730         Tests for module 'accept'.
9731         * modules/accept-tests: New file.
9732         * tests/test-accept.c: New file.
9733
9734 2011-09-18  Bruno Haible  <bruno@clisp.org>
9735
9736         dup2: Support for MSVC.
9737         * lib/dup2.c: Include msvc-inval.h.
9738         (rpl_dup2): Handle invalid parameter notifications during dup2 and
9739         _get_osfhandle calls.
9740         * modules/dup2 (Depends-on): Add msvc-inval.
9741         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
9742
9743         New module 'msvc-inval'.
9744         * lib/msvc-inval.h: New file.
9745         * lib/msvc-inval.c: New file.
9746         * m4/msvc-inval.m4: New file.
9747         * modules/msvc-inval: New file.
9748
9749 2011-09-17  Bruno Haible  <bruno@clisp.org>
9750
9751         Tests for module 'pclose'.
9752         * modules/pclose-tests: New file.
9753
9754         New module 'pclose'.
9755         * lib/stdio.in.h (pclose): New declaration.
9756         * lib/pclose.c: New file.
9757         * m4/pclose.m4: New file.
9758         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
9759         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
9760         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
9761         * modules/pclose: New file.
9762         * modules/popen-tests (Depends-on): Add pclose.
9763         * modules/popen-safer-tests (Depends-on): Likewise.
9764         * doc/posix-functions/pclose.texi: Mention the new module.
9765
9766 2011-09-17  Bruno Haible  <bruno@clisp.org>
9767
9768         popen: Support for MSVC.
9769         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
9770         * lib/popen.c (popen): Provide alternate definition for native Windows.
9771         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
9772         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
9773         * modules/popen (Depends-on, configure.ac): Update condition.
9774         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
9775         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
9776         fixed.
9777
9778 2011-09-17  Bruno Haible  <bruno@clisp.org>
9779
9780         isnanl, isnand, isnanf: Work around MSVC bug.
9781         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
9782
9783 2011-09-17  Bruno Haible  <bruno@clisp.org>
9784
9785         sys_socket tests: Fix recent mistake.
9786         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
9787
9788 2011-09-17  Bruno Haible  <bruno@clisp.org>
9789
9790         putenv: Support for MSVC.
9791         * modules/putenv (Depends-on): Add environ.
9792         * lib/putenv.c (environ): Disable declaration.
9793         * lib/unistd.in.h: Update comment.
9794
9795 2011-09-17  Bruno Haible  <bruno@clisp.org>
9796
9797         math: Avoid macro redefinition warnings on MSVC.
9798         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
9799         Undefine before redefining.
9800
9801 2011-09-17  Bruno Haible  <bruno@clisp.org>
9802
9803         doc: Mention functions which are declared as macros.
9804         * doc/posix-functions/*[fl].texi: Mention that some functions are
9805         defined as macros with arguments only.
9806
9807 2011-09-17  Bruno Haible  <bruno@clisp.org>
9808
9809         Add dependencies to new dirent related modules.
9810         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
9811         * modules/fts (Depends-on): Likewise.
9812         * modules/glob (Depends-on): Likewise.
9813         * modules/savedir (Depends-on): Likewise.
9814         * modules/scandir (Depends-on): Likewise.
9815         * modules/dirent-safer (Depends-on): Add opendir, closedir.
9816         * modules/fdopendir (Depends-on): Add opendir.
9817
9818 2011-09-17  Bruno Haible  <bruno@clisp.org>
9819
9820         inet_pton: Support for MSVC on Windows Vista or newer.
9821         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
9822         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
9823         HAVE_DECL_INET_PTON is defined.
9824         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9825         On platforms with <winsock2.h>, test whether inet_pton is declared in
9826         <ws2tcpip.h>. If so, arrange to replace it.
9827         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9828         REPLACE_INET_PTON.
9829         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
9830         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
9831         (Depends-on, configure.ac): Update condition.
9832         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
9833
9834 2011-09-17  Bruno Haible  <bruno@clisp.org>
9835
9836         inet_ntop: Support for MSVC on Windows Vista or newer.
9837         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
9838         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
9839         HAVE_DECL_INET_NTOP is defined.
9840         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9841         On platforms with <winsock2.h>, test whether inet_ntop is declared in
9842         <ws2tcpip.h>. If so, arrange to replace it.
9843         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9844         REPLACE_INET_NTOP.
9845         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
9846         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
9847         (Depends-on, configure.ac): Update condition.
9848         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
9849
9850 2011-09-16  Eric Blake  <eblake@redhat.com>
9851
9852         test-fsync: yet another enhancement
9853         * tests/test-fsync.c (main): Also test behavior on read-only text
9854         file.
9855
9856 2011-09-16  Bruno Haible  <bruno@clisp.org>
9857
9858         Enhance fsync, fdatasync tests.
9859         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
9860         * tests/test-fdatasync.c (main): Likewise.
9861
9862 2011-09-16  Bruno Haible  <bruno@clisp.org>
9863
9864         Support for MSVC compiler: Ensure mode_t gets defined.
9865         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
9866         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9867         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9868         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
9869         * tests/test-fcntl-h.c: Check that mode_t is defined.
9870         * tests/test-sys_stat.c: Likewise.
9871         * tests/test-sys_types.c: Likewise.
9872         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
9873         * doc/posix-headers/sys_stat.texi: Likewise.
9874         * doc/posix-headers/sys_types.texi: Likewise.
9875
9876 2011-09-16  Bruno Haible  <bruno@clisp.org>
9877
9878         sys_stat: Support for MSVC.
9879         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
9880         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
9881         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
9882         MSVC.
9883
9884 2011-09-16  Bruno Haible  <bruno@clisp.org>
9885
9886         Support for MSVC compiler: Ensure off_t gets defined.
9887         * lib/unistd.in.h: Include <sys/types.h>.
9888         * tests/test-fcntl-h.c: Check that off_t is defined.
9889         * tests/test-sys_stat.c: Likewise.
9890         * tests/test-sys_types.c: Likewise.
9891
9892 2011-09-16  Eric Blake  <eblake@redhat.com>
9893
9894         fdatasync: port to Solaris
9895         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
9896         * modules/fdatasync (Link): Document it.
9897         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
9898
9899         fdatasync: port to MacOS X 10.7
9900         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
9901         declared.
9902         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
9903         * modules/unistd (Makefile.am): Substitute it.
9904         * lib/unistd.in.h (fdatasync): Declare on MacOS.
9905         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
9906
9907         fdatasync: minor improvements
9908         * modules/fdatasync (Depends-on): Add condition for fsync.
9909         * lib/fdatasync.c (fdatasync): Add comment.
9910         * tests/test-unistd-c++.cc: Test fdatasync.
9911
9912         unistd: update refs to newer POSIX
9913         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
9914         Suggested by Bruno Haible.
9915
9916         fdatasync: new module
9917         * modules/fsync (Description): Document difference to fdatasync.
9918         * modules/fdatasync: New module.
9919         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
9920         * lib/fdatasync.c (fdatasync): Likewise.
9921         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
9922         defaults.
9923         * modules/unistd (Makefile.am): Set witnesses.
9924         * lib/unistd.in.h (fdatasync): Declare.
9925         * MODULES.html.sh: Document it.
9926         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
9927         * modules/fdatasync-tests: New test.
9928         * tests/test-fdatasync.c: Likewise.
9929
9930 2011-09-16  Eric Blake  <eblake@redhat.com>
9931
9932         test-fsync: enhance tests
9933         * modules/fsync-tests (Depends-on): Add errno, for mingw.
9934         * tests/test-fsync.c (main): Enhance test.
9935
9936 2011-09-15  Bruno Haible  <bruno@clisp.org>
9937
9938         Support for MSVC compiler: Ensure ssize_t gets defined.
9939         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
9940         * doc/posix-headers/stdio.texi: Likewise.
9941         * modules/stdio (Depends-on): Add ssize_t.
9942         * modules/sys_socket (Depends-on): Likewise.
9943         * modules/sys_types (Depends-on): Likewise.
9944         * modules/sys_uio (Depends-on): Likewise.
9945         * modules/unistd (Depends-on): Likewise.
9946         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
9947         * tests/test-sys_types.c: Check that ssize_t is defined.
9948
9949 2011-09-14  Bruno Haible  <bruno@clisp.org>
9950
9951         Avoid using #, the m4 comment starter character, near brackets.
9952         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
9953         delimiter character in sed expressions.
9954         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
9955         Suggested by Eric Blake.
9956
9957         Properly quote AC_CHECK_DECLS' 4th argument.
9958         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
9959         argument.
9960         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9961         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9962         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9963         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
9964         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9965         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
9966         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
9967         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
9968         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
9969         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
9970         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
9971         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9972         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9973         * m4/isinf.m4 (gl_ISINF): Likewise.
9974         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9975         * m4/readutmp.m4 (gl_READUTMP): Likewise.
9976         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9977         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9978         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9979         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9980         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9981         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9982         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
9983         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9984         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9985         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9986         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
9987         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9988         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9989         Reported by Eric Blake.
9990
9991         Properly quote AC_CHECK_DECL's 4th argument.
9992         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
9993         argument.
9994         * m4/argp.m4 (gl_ARGP): Likewise.
9995         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9996         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9997         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9998         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9999         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
10000         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
10001         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
10002         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
10003         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10004         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
10005         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
10006         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
10007         Reported by Eric Blake.
10008
10009 2011-09-14  Eric Blake  <eblake@redhat.com>
10010
10011         opendir: avoid compile warning
10012         * lib/opendir.c (includes): Always include errno.h.
10013         Reported by Tatsuro MATSUOKA.
10014
10015 2011-09-14  Jim Meyering  <meyering@redhat.com>
10016
10017         maint.mk: sc_tight_scope: propagate failure from sub-make
10018         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
10019         Reported by Martin von Gagern.
10020
10021 2011-09-13  Bruno Haible  <bruno@clisp.org>
10022
10023         tempname: Support for MSVC.
10024         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
10025         MSVC.
10026         * modules/tempname (Depends-on): Add fcntl-h.
10027
10028 2011-09-13  Bruno Haible  <bruno@clisp.org>
10029
10030         sys_time: Support for MSVC.
10031         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
10032         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
10033         include <winsock2.h>.
10034         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
10035         function declarations that collide with POSIX.
10036         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
10037         (Makefile.am): Substitute HAVE_WINSOCK2_H.
10038
10039 2011-09-13  Bruno Haible  <bruno@clisp.org>
10040
10041         stat: Support for MSVC.
10042         * lib/stat.c: Include pathmax.h.
10043         * modules/stat (Depends-on): Add pathmax.
10044
10045         pathmax: Support for native Windows.
10046         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
10047
10048 2011-09-12  Bruno Haible  <bruno@clisp.org>
10049
10050         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
10051         * lib/dirent.in.h (struct dirent): New type.
10052         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
10053         DT_WHT): New macros.
10054         (DIR): New type.
10055         (opendir, closedir): Declare only if the module 'opendir' is enabled.
10056         (readdir, rewinddir): New declarations.
10057         * lib/dirent-private.h: New file.
10058         * lib/opendir.c: New file.
10059         * lib/readdir.c: New file.
10060         * lib/rewinddir.c: New file.
10061         * lib/closedir.c: New file.
10062         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
10063         * m4/opendir.m4: New file.
10064         * m4/readdir.m4: New file.
10065         * m4/rewinddir.m4: New file.
10066         * m4/closedir.m4: New file.
10067         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
10068         REPLACE_CLOSEDIR here.
10069         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
10070         readdir, rewinddir are declared.
10071         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
10072         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
10073         HAVE_REWINDDIR, HAVE_CLOSEDIR.
10074         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
10075         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
10076         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
10077         * modules/opendir: New file.
10078         * modules/readdir: New file.
10079         * modules/rewinddir: New file.
10080         * modules/closedir: New file.
10081         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
10082         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
10083         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
10084         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
10085         * NEWS: Mention the 'fchdir' change.
10086
10087 2011-09-11  Bruno Haible  <bruno@clisp.org>
10088
10089         asm-underscore.m4: Support for MSVC.
10090         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
10091         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
10092
10093 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
10094
10095         Doc about crypt functions.
10096         * doc/posix-functions/crypt.texi: Expand range of glibc versions
10097         needing for _GNU_SOURCE to get crypt.
10098         * doc/posix-functions/encrypt.texi: Likewise.
10099         * doc/posix-functions/setkey.texi: Likewise.
10100
10101 2011-09-11  Bruno Haible  <bruno@clisp.org>
10102
10103         doc: Update regarding MSVC 9.
10104         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
10105         tested".
10106         * doc/posix-functions/*.texi: Update with info about MSVC 9.
10107         * doc/posix-headers/*.texi: Likewise.
10108         * doc/pastposix-functions/*.texi: Likewise.
10109         * doc/glibc-functions/*.texi: Likewise.
10110         * doc/glibc-headers/*.texi: Likewise.
10111
10112 2011-09-11  Bruno Haible  <bruno@clisp.org>
10113
10114         unistd et al.: Don't assume <unistd.h> exists.
10115         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
10116         does not exist.
10117         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
10118         exist. But include <stdlib.h>.
10119         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
10120         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
10121         symlink() does not exist.
10122         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
10123         include <io.h> instead.
10124         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
10125         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
10126         include <direct.h> instead.
10127         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
10128         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10129         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
10130         <io.h> instead.
10131         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
10132         correctly if the system does not have hard links.
10133         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
10134         <direct.h> instead.
10135         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
10136         it when looking for function declarations.
10137         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
10138         <direct.h> and <io.h> instead.
10139         * doc/posix-headers/unistd.texi: More details about MSVC problem.
10140
10141 2011-09-11  Bruno Haible  <bruno@clisp.org>
10142
10143         strcase: Support for MSVC.
10144         * modules/strcase (Status, Notice): Remove obsoletion mark.
10145         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
10146         * doc/posix-functions/strncasecmp.texi: Likewise.
10147
10148         strings: Don't assume <strings.h> exists.
10149         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
10150         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
10151         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
10152         * doc/posix-headers/strings.texi: Mention the MSVC problem.
10153
10154 2011-09-11  Bruno Haible  <bruno@clisp.org>
10155
10156         dirent: Don't assume <dirent.h> exists.
10157         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
10158         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
10159         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
10160         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
10161
10162 2011-09-11  Bruno Haible  <bruno@clisp.org>
10163
10164         Fix wint_t on MSVC.
10165         * lib/wchar.in.h (wint_t): On MSVC, override it.
10166         * lib/wctype.in.h (wint_t): Likewise.
10167         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
10168         MSVC.
10169         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
10170         * doc/posix-headers/wctype.texi: Likewise.
10171
10172 2011-09-11  Bruno Haible  <bruno@clisp.org>
10173
10174         sys_types: Fix typo.
10175         * lib/sys_types.in.h: Fix typo in comment.
10176         Reported by Paul Eggert.
10177
10178         Support for MSVC compiler: Ensure size_t gets defined.
10179         * modules/strings (Depends-on): Add 'sys_types'.
10180         * modules/sys_uio (Depends-on): Likewise.
10181         * lib/sys_uio.in.h: Update comment.
10182
10183         C++ tests for module 'sys_types'.
10184         * modules/sys_types-c++-tests: New file.
10185         * tests/test-sys_types-c++.cc: New file.
10186
10187         Tests for module 'sys_types'.
10188         * modules/sys_types-tests: New file.
10189         * tests/test-sys_types.c: New file.
10190
10191         New module 'sys_types'.
10192         * lib/sys_types.in.h: New file.
10193         * m4/sys_types_h.m4: New file.
10194         * modules/sys_types: New file.
10195         * doc/posix-headers/sys_types.texi: Mention the new module and the
10196         size_t problem on MSVC 9.
10197
10198 2011-09-11  Bruno Haible  <bruno@clisp.org>
10199
10200         Support for MSVC compiler: Avoid division by a literal 0.
10201         * lib/math.in.h (NAN): Define through a function call also on MSVC.
10202         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
10203         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
10204         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
10205         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
10206         * tests/infinity.h: New file.
10207         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
10208         on MSVC.
10209         * tests/test-ceilf1.c: Include infinity.h.
10210         (main): Use Infinityf.
10211         * tests/test-ceil1.c: Include infinity.h.
10212         (main): Use Infinityd.
10213         * tests/test-ceill.c: Include infinity.h.
10214         (main): Use Infinityl.
10215         * tests/test-dprintf-posix.c: Include infinity.h.
10216         (test_function): Use Infinityd.
10217         * tests/test-floorf1.c: Include infinity.h.
10218         (main): Use Infinityf.
10219         * tests/test-floor1.c: Include infinity.h.
10220         (main): Use Infinityd.
10221         * tests/test-floorl.c: Include infinity.h.
10222         (main): Use Infinityl.
10223         * tests/test-fprintf-posix.c: Include infinity.h.
10224         (test_function): Use Infinityd.
10225         * tests/test-frexp.c: Include infinity.h.
10226         (main): Use Infinityd.
10227         * tests/test-frexpl.c: Include infinity.h.
10228         (main): Use Infinityl.
10229         * tests/test-isfinite.c: Include infinity.h.
10230         (test_isfinitef): Use Infinityf.
10231         (test_isfinited): Use Infinityd.
10232         (test_isfinitel): Use Infinityl.
10233         * tests/test-isinf.c: Include infinity.h.
10234         (test_isinff): Use Infinityf.
10235         (test_isinfd): Use Infinityd.
10236         (test_isinfl): Use Infinityl.
10237         * tests/test-isnan.c: Include infinity.h.
10238         (test_float): Use Infinityf.
10239         (test_double): Use Infinityd.
10240         (test_long_double): Use Infinityl.
10241         * tests/test-isnanf.h: Include infinity.h.
10242         (main): Use Infinityf.
10243         * tests/test-isnand.h: Include infinity.h.
10244         (main): Use Infinityd.
10245         * tests/test-isnanl.h: Include infinity.h.
10246         (main): Use Infinityl.
10247         * tests/test-ldexpl.c: Include infinity.h.
10248         (main): Use Infinityl.
10249         * tests/test-printf-posix.h: Include infinity.h.
10250         (test_function): Use Infinityd.
10251         * tests/test-roundf1.c: Include infinity.h.
10252         (main): Use Infinityf.
10253         * tests/test-round1.c: Include infinity.h.
10254         (main): Use Infinityd.
10255         * tests/test-roundl.c: Include infinity.h.
10256         (main): Use Infinityl.
10257         * tests/test-signbit.c: Include infinity.h.
10258         (test_signbitf): Use Infinityf.
10259         (test_signbitd): Use Infinityd.
10260         (test_signbitl): Use Infinityl.
10261         * tests/test-snprintf-posix.h: Include infinity.h.
10262         (test_function): Use Infinityd, Infinityl.
10263         * tests/test-sprintf-posix.h: Include infinity.h.
10264         (test_function): Use Infinityd, Infinityl.
10265         * tests/test-truncf1.c: Include infinity.h.
10266         (main): Use Infinityf.
10267         * tests/test-trunc1.c: Include infinity.h.
10268         (main): Use Infinityd.
10269         * tests/test-truncl.c: Include infinity.h.
10270         (main): Use Infinityl.
10271         * tests/test-vasnprintf-posix.c: Include infinity.h.
10272         (test_function): Use Infinityd, Infinityl.
10273         * tests/test-vasprintf-posix.c: Include infinity.h.
10274         (test_function): Use Infinityd, Infinityl.
10275         * modules/ceilf-tests (Files): Add tests/infinity.h.
10276         * modules/ceil-tests (Files): Likewise.
10277         * modules/ceill-tests (Files): Likewise.
10278         * modules/dprintf-posix-tests (Files): Likewise.
10279         * modules/floorf-tests (Files): Likewise.
10280         * modules/floor-tests (Files): Likewise.
10281         * modules/floorl-tests (Files): Likewise.
10282         * modules/fprintf-posix-tests (Files): Likewise.
10283         * modules/frexp-tests (Files): Likewise.
10284         * modules/frexp-nolibm-tests (Files): Likewise.
10285         * modules/frexpl-tests (Files): Likewise.
10286         * modules/frexpl-nolibm-tests (Files): Likewise.
10287         * modules/isfinite-tests (Files): Likewise.
10288         * modules/isinf-tests (Files): Likewise.
10289         * modules/isnan-tests (Files): Likewise.
10290         * modules/isnanf-tests (Files): Likewise.
10291         * modules/isnanf-nolibm-tests (Files): Likewise.
10292         * modules/isnand-tests (Files): Likewise.
10293         * modules/isnand-nolibm-tests (Files): Likewise.
10294         * modules/isnanl-tests (Files): Likewise.
10295         * modules/isnanl-nolibm-tests (Files): Likewise.
10296         * modules/ldexpl-tests (Files): Likewise.
10297         * modules/printf-posix-tests (Files): Likewise.
10298         * modules/roundf-tests (Files): Likewise.
10299         * modules/round-tests (Files): Likewise.
10300         * modules/roundl-tests (Files): Likewise.
10301         * modules/signbit-tests (Files): Likewise.
10302         * modules/snprintf-posix-tests (Files): Likewise.
10303         * modules/sprintf-posix-tests (Files): Likewise.
10304         * modules/truncf-tests (Files): Likewise.
10305         * modules/trunc-tests (Files): Likewise.
10306         * modules/truncl-tests (Files): Likewise.
10307         * modules/vasnprintf-posix-tests (Files): Likewise.
10308         * modules/vasprintf-posix-tests (Files): Likewise.
10309         * modules/vdprintf-posix-tests (Files): Likewise.
10310         * modules/vfprintf-posix-tests (Files): Likewise.
10311         * modules/vprintf-posix-tests (Files): Likewise.
10312         * modules/vsnprintf-posix-tests (Files): Likewise.
10313         * modules/vsprintf-posix-tests (Files): Likewise.
10314         * modules/xprintf-posix-tests (Files): Likewise.
10315
10316 2011-09-11  Bruno Haible  <bruno@clisp.org>
10317
10318         Ensure pid_t gets defined.
10319         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
10320         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
10321         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
10322         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10323         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
10324         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
10325         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
10326         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10327         * tests/test-fcntl-h.c: Check that pid_t is defined.
10328         * tests/test-sched.c: Likewise.
10329         * tests/test-termios.c: Likewise.
10330         * tests/test-time.c: Likewise.
10331         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
10332         * doc/posix-headers/signal.texi: Likewise.
10333         * doc/posix-headers/sys_types.texi: Likewise.
10334         * doc/posix-headers/time.texi: Likewise.
10335
10336 2011-09-11  Bruno Haible  <bruno@clisp.org>
10337
10338         acl: Fix compilation on Solaris 10 (older version).
10339         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
10340         of ACE_EVERYONE.
10341         * lib/set-mode-acl.c (qset_acl): Likewise.
10342         Reported by Christian Jullien <eligis@orange.fr>.
10343
10344 2011-09-10  Bruno Haible  <bruno@clisp.org>
10345
10346         iconv, unsetenv: Add support for MSVC compiler.
10347         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
10348         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
10349
10350 2011-09-10  Bruno Haible  <bruno@clisp.org>
10351
10352         *printf: Add support for MSVC compiler.
10353         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
10354         handles the exception caused by the %n directive. When cross-compiling,
10355         guess no on native Windows.
10356         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
10357         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
10358         emulate it through vsnprintf.
10359         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
10360         * doc/posix-functions/dprintf.texi: Update documentation regarding
10361         MSVC 9.
10362         * doc/posix-functions/fprintf.texi: Likewise.
10363         * doc/posix-functions/printf.texi: Likewise.
10364         * doc/posix-functions/snprintf.texi: Likewise.
10365         * doc/posix-functions/sprintf.texi: Likewise.
10366         * doc/posix-functions/swprintf.texi: Likewise.
10367         * doc/posix-functions/vdprintf.texi: Likewise.
10368         * doc/posix-functions/vfprintf.texi: Likewise.
10369         * doc/posix-functions/vprintf.texi: Likewise.
10370         * doc/posix-functions/vsnprintf.texi: Likewise.
10371         * doc/posix-functions/vsprintf.texi: Likewise.
10372         * doc/glibc-functions/asprintf.texi: Likewise.
10373         * doc/glibc-functions/obstack_printf.texi: Likewise.
10374         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
10375         * doc/glibc-functions/vasprintf.texi: Likewise.
10376
10377 2011-09-10  Bruno Haible  <bruno@clisp.org>
10378
10379         nocrash: Add support for native Windows.
10380         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
10381
10382 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
10383             Bruno Haible  <bruno@clisp.org>
10384
10385         absolute-header, include-next: Add support for MSVC compiler.
10386         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
10387         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
10388         directory separator in #line directives.
10389         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
10390         recognize also backslash as directory separator in #line directives.
10391
10392 2011-09-08  Jim Meyering  <meyering@redhat.com>
10393
10394         maint.mk: mark the post-release commit log with "maint: " prefix
10395         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
10396         one-line commit-log summary.
10397
10398 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
10399             Bruno Haible  <bruno@clisp.org>
10400
10401         Doc about crypt functions.
10402         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
10403         systems.
10404         * doc/posix-functions/encrypt.texi: Likewise.
10405         * doc/posix-functions/setkey.texi: Likewise.
10406
10407 2011-09-08  Simon Josefsson  <simon@josefsson.org>
10408
10409         * lib/gc.h: Fix copyright header.
10410
10411 2011-09-07  Bruno Haible  <bruno@clisp.org>
10412
10413         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
10414         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
10415         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
10416
10417 2011-09-07  Bruno Haible  <bruno@clisp.org>
10418
10419         openat: Work around compilation error with OSF/1 5.1 DTK cc.
10420         * lib/fopen.c: Use different syntax for include of <stdio.h>.
10421         * lib/freopen.c: Likewise.
10422         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
10423         * lib/lstat.c: Likewise.
10424         * lib/stat.c: Likewise.
10425         * lib/open.c: Use different syntax for include of <fcntl.h>.
10426         * lib/openat.c: Include fcntl.h again, explicitly.
10427
10428 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
10429
10430         parse-datetime: document the newly accepted format
10431         * doc/parse-datetime.texi (Combined date and time of day items):
10432         New section.
10433
10434 2011-09-06  Bruno Haible  <bruno@clisp.org>
10435
10436         acl: Fix a test failure on newer Solaris 10 with ZFS.
10437         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
10438         ENOSYS as no ACL.
10439         Reported by Jim Meyering.
10440
10441 2011-09-06  Bruno Haible  <bruno@clisp.org>
10442
10443         acl: Update for AIX >= 5.3 with NFS.
10444         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
10445         ENOSYS as no ACL.
10446
10447         acl: Fix a test failure on AIX >= 5.3 with NFS.
10448         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
10449         as no ACL.
10450
10451 2011-09-06  Bruno Haible  <bruno@clisp.org>
10452
10453         acl: Fix a test failure on IRIX 6.5 with NFS.
10454         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
10455         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
10456         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
10457         * lib/copy-acl.c (qcopy_acl): Likewise.
10458
10459 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
10460
10461         openat: port to AIX 7.1 with large files
10462         AIX 7.1 does a "#define openat open64at" if large files are in use,
10463         so we can't simply #undef openat.  Use the orig_openat trick (similar
10464         to orig_open in lib/open.c) to work around the problem.  Problem
10465         reported by Kevin Brott for GNU tar, in the thread containing
10466         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
10467         * lib/openat.c (__need_system_fcntl_h): Define first.
10468         Include <fcntl.h> and <sys/types.h> before undefining.
10469         (orig_openat) [HAVE_OPENAT]: New inline function.
10470         (openat) [HAVE_OPENAT]: Do not undef.
10471         (rpl_openat): Use orig_openat, not openat.
10472
10473 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
10474             Bruno Haible  <bruno@clisp.org>
10475
10476         acl: Avoid errors on NonStop Kernel.
10477         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
10478         ENOTSUP errors.
10479
10480 2011-09-05  Bruno Haible  <bruno@clisp.org>
10481
10482         acl: Clean up Solaris code.
10483         * lib/acl-internal.h: Remove no-op #if.
10484         * lib/file-has-acl.c: Likewise.
10485         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
10486         * lib/copy-acl.c (qcopy_acl): Likewise.
10487
10488 2011-09-05  Bruno Haible  <bruno@clisp.org>
10489
10490         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
10491         binaries built on the original Solaris 10.
10492         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
10493         trivial.
10494
10495 2011-09-05  Bruno Haible  <bruno@clisp.org>
10496
10497         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10498         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
10499         10.
10500         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
10501         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
10502         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
10503         instead of acl_get, facl_get, acl_set, facl_set.
10504
10505 2011-09-05  Bruno Haible  <bruno@clisp.org>
10506
10507         copy-file: Try unit tests on more file systems.
10508         * tests/test-copy-file-1.sh: New file.
10509         * tests/test-copy-file-2.sh: New file.
10510         * modules/copy-file-tests (Files): Add them.
10511         (Makefile.am): Add them to TESTS.
10512
10513         acl: Try unit tests on more file systems.
10514         * tests/test-file-has-acl-1.sh: New file.
10515         * tests/test-file-has-acl-2.sh: New file.
10516         * tests/test-set-mode-acl-1.sh: New file.
10517         * tests/test-set-mode-acl-2.sh: New file.
10518         * tests/test-copy-acl-1.sh: New file.
10519         * tests/test-copy-acl-2.sh: New file.
10520         * modules/acl-tests (Files): Add them.
10521         (Makefile.am): Add them to TESTS.
10522
10523 2011-09-04  Bruno Haible  <bruno@clisp.org>
10524
10525         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10526         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
10527         10.
10528         (OLD_ALLOW, OLD_DENY): New macros.
10529         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
10530         ACE_ACCESS_ALLOWED_ACE_TYPE.
10531         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
10532         ACE_ACCESS_DENIED_ACE_TYPE.
10533         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
10534         (NEW_ACE_EXECUTE): Fix value.
10535         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
10536         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
10537         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
10538         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
10539         NEW_ACE_SYNCHRONIZE): New macros.
10540         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
10541         instead of acl_fromtext, acl_set, facl_set.
10542         Fixes a coreutils/tests/cp/perm failure.
10543
10544 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
10545
10546         openat: test for fstatat (..., 0) bug
10547         Further testing with tar suggests that fstatat (..., 0)
10548         does not work in general, on AIX 7.1; see
10549         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
10550         So, give up entirely on AIX 7.1's fstatat, and fall back on our
10551         replacement fstatat (which is what older AIX releases were using
10552         anyway).
10553         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
10554         use is now changed to orig_fstatat.  This was probably the right
10555         thing to do anyway.
10556         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
10557         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
10558         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
10559         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
10560         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
10561         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
10562         if the bug is found.
10563
10564         openat: test for fstatat (AT_FDCWD, ..., 0) bug
10565         This tests for another fstatat bug on AIX 7.1:
10566         fstatat (AT_FDCWD, ..., 0) does not work.  See
10567         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
10568         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
10569         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
10570         (rpl_fstatat): Adjust so that it works around either (or both)
10571         bugs if present.
10572         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
10573
10574 2011-09-03  Karl Berry  <karl@gnu.org>
10575
10576         * doc/regex.texi (Character Class Operators): Avoid literal ":"
10577         in index entries.
10578
10579 2011-09-02  Bruno Haible  <bruno@clisp.org>
10580
10581         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
10582         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
10583         values of AR, ARFLAGS, RANLIB.
10584         Reported by John W. Eaton <jwe@gnu.org> for Octave.
10585
10586 2011-09-02  Bruno Haible  <bruno@clisp.org>
10587
10588         Find 'ar' program that fits with --host argument.
10589         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
10590
10591 2011-09-02  Bruno Haible  <bruno@clisp.org>
10592
10593         tests: init.sh: Support any non-GNU diff.
10594         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
10595         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
10596         Solaris 8.
10597
10598 2011-09-02  Bruno Haible  <bruno@clisp.org>
10599
10600         tests: init.sh: work also with any non-GNU diff that supports -u
10601         * tests/init.sh: Relax check for diff -u support.
10602         Rather than checking for GNU diff via --version, simply check
10603         for support for -u itself.  Useful at least on OpenBSD 4.9,
10604         AIX 7.1, IRIX 6.5, and Solaris 10.
10605
10606 2011-09-01  Bruno Haible  <bruno@clisp.org>
10607
10608         strtoimax, strtoumax: Document problem on HP-UX 11.
10609         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
10610         * doc/posix-functions/strtoumax.texi: Likewise.
10611
10612 2011-09-01  Bruno Haible  <bruno@clisp.org>
10613
10614         strtoumax: Avoid link error on OSF/1 with DTK cc.
10615         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
10616         defined as a function.
10617         * modules/strtoumax (Depends-on, configure.ac): Test only whether
10618         strtoumax is defined, not whether it is declared.
10619
10620 2011-09-01  Bruno Haible  <bruno@clisp.org>
10621
10622         strtoimax: Avoid link error on OSF/1 with DTK cc.
10623         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
10624         defined as a function.
10625         * modules/strtoimax (Depends-on, configure.ac): Test only whether
10626         strtoimax is defined, not whether it is declared.
10627
10628 2011-09-01  Bruno Haible  <bruno@clisp.org>
10629
10630         imaxdiv: Avoid link error on OSF/1 with DTK cc.
10631         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
10632         as a function.
10633         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
10634         whether it is declared.
10635
10636 2011-09-01  Bruno Haible  <bruno@clisp.org>
10637
10638         imaxabs: Avoid link error on OSF/1 with DTK cc.
10639         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
10640         as a function.
10641         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
10642         whether it is declared.
10643
10644 2011-09-01  Bruno Haible  <bruno@clisp.org>
10645
10646         Tests for module 'strtoumax'.
10647         * modules/strtoumax-tests: New file.
10648         * tests/test-strtoumax.c: New file.
10649
10650         Tests for module 'strtoimax'.
10651         * modules/strtoimax-tests: New file.
10652         * tests/test-strtoimax.c: New file.
10653
10654         Tests for module 'imaxdiv'.
10655         * modules/imaxdiv-tests: New file.
10656         * tests/test-imaxdiv.c: New file.
10657
10658         Tests for module 'imaxabs'.
10659         * modules/imaxabs-tests: New file.
10660         * tests/test-imaxabs.c: New file.
10661
10662 2011-09-01  Bruno Haible  <bruno@clisp.org>
10663
10664         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
10665         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
10666         pthread_create.
10667
10668 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10669
10670         openat: work around AIX 7.1 fstatat issue
10671         This should fix the problem that was not properly fixed
10672         in the previous change, dated 2011-08-30.
10673         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
10674         __need_system_stat_h defined.
10675         (orig_fstatat) [HAVE_FSTATAT]: New function.
10676         (rpl_fstatat): Go back to the old way of doing things,
10677         except call orig_fstatat instead of fstatat.
10678         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
10679         Remove unnecessary check whether fstatat fills in st_size etc.
10680
10681 2011-09-01  Bruno Haible  <bruno@clisp.org>
10682
10683         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
10684         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
10685         just include the system's header.
10686
10687 2011-08-31  Jim Meyering  <meyering@redhat.com>
10688
10689         tests: avoid spurious assertion failure in test-float.c on ppc64
10690         * tests/test-float.c (test_long_double): Comment out an assertion,
10691         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
10692         with gcc-4.4.4.
10693
10694         maint: indent with spaces, not TABs
10695         I need to get in the habit of running gnulib's "make check".
10696         Both of these would have been caught.
10697         * m4/largefile.m4: Indent with spaces, not TABs.
10698         * lib/parse-datetime.y (iso_8601_time): Likewise.
10699         Spotted by Pádraig Brady.
10700
10701         test-parse-datetime.c: accommodate a relatively strict gcc warning
10702         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
10703         to avoid a warning from gcc's -Werror=missing-declarations.
10704         Insert a few spaces-before-funcall-parenthesis.
10705
10706 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
10707
10708         parse-datetime: accept ISO 8601 date and time rep with "T" separator
10709         The parser now accepts ISO 8601 date-time strings with "T" as the
10710         separator.  It has long parsed dates like "2004-02-29 16:21:42"
10711         with a space between the date and time strings.  Now it also parses
10712         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
10713         variants like "2004-02-29T16:21:42.333-07:00"
10714         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
10715         of day representation using the 'T' separator character.
10716         * doc/parse-datetime.texi (General date syntax): replace use of
10717         deprecated --iso-8601 option with --rfc-3339 in example of date
10718         command output formats that can be parsed.
10719         * tests/test-parse-datetime.c (tm_diff): New function, taken from
10720         lib/parse-datetime.y.
10721         (gmt_offset): New function.
10722         (main): Add additional test cases to validate ISO8601 extended
10723         date and time of day parsing.
10724
10725 2011-08-31  Bruno Haible  <bruno@clisp.org>
10726
10727         freopen: Documentation.
10728         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
10729         name.
10730         Reported by Claudio Bley <claudio.bley@gmail.com>.
10731
10732 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
10733
10734         freopen: Don't crash if the filename argument is NULL.
10735         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
10736         NULL.
10737
10738 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
10739
10740         openat: work around AIX 7.1 fstatat bug
10741         Problem reported by Kevin Brott for GNU tar, in the thread containing
10742         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
10743         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
10744         FSTATAT_ST_SIZE_ETC_BROKEN.
10745         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
10746         rpl_fstatat.
10747         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
10748         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
10749         AC_CHECK_FUNCS_ONCE for fstatat.
10750         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
10751         fchmodat, mkdirat, openat and unlinkat.
10752
10753 2011-08-30  Bruno Haible  <bruno@clisp.org>
10754
10755         Avoid endless recursions if config.h includes some header files.
10756         * lib/fopen.c (__need_FILE): Define already before including config.h.
10757         * lib/freopen.c (__need_FILE): Likewise.
10758         * lib/open.c (__need_system_fcntl_h): Likewise.
10759         * lib/stat.c (__need_system_sys_stat_h): Likewise.
10760         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
10761         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10762
10763 2011-08-25  Karl Berry  <karl@gnu.org>
10764
10765         * config/srclist.txt (ylwrap): new try.
10766         * build-aux/ylwrap: new file.
10767
10768 2011-08-23  Bruno Haible  <bruno@clisp.org>
10769
10770         tmpdir: Use a good default directory on native Windows.
10771         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
10772         (P_tmpdir): Default to _P_tmpdir on native Windows.
10773         (path_search): On native Windows, try the value returned by GetTempPath
10774         before trying P_tmpdir.
10775         * modules/tmpdir (Depends-on): Add pathmax.
10776         Suggested by John Darrington <john@darrington.wattle.id.au>.
10777
10778 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
10779
10780         doc: fix typo in README-release
10781         * top/README-release: Capitalize first word of a sentence.
10782
10783 2011-08-19  Jim Meyering  <meyering@redhat.com>
10784
10785         fts: do not exhaust memory when processing million-entry directories
10786         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
10787         directory would require about 256*N bytes of memory.  Thus, it was
10788         easy to construct a directory too large to be processed by any of
10789         those tools.  With this change, fts' maximum memory utilization is
10790         now limited to around 30MB.
10791         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
10792         (fts_read): When we've processed the final entry (i.e., when
10793         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
10794         using the parent entry to read any remaining entries.  Dispatch
10795         depending on what fts_build returns:
10796         - NULL+stop, aka failure: stop
10797         - NULL otherwise: move up in the dir hierarchy
10798         - non-NULL: handle this new entry
10799         (fts_build): Declare and use new local, continue_readdir.
10800         Prepare to be called from fts_read, when the entries
10801         from a partially-read directory have just been exhausted.
10802         In that case, we'll skip the opendir and instead use the parent's
10803         fts_dirp and derive dir_fd from that.
10804         Finally, in the readdir loop, if we read max_entries entries,
10805         exit the loop ensuring *not* to call closedir.  This is required
10806         so that fts_dirp can be reused on a subsequent call.
10807         Prompted by Ben England's report of memory exhaustion in find
10808         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
10809
10810         maint: fts: move decl of `dp' down into while loop; split a long line
10811         * lib/fts.c (fts_build): No semantic change.
10812
10813         fts: add/use new struct member, fts_dirp
10814         We are about to use this to manage any directory with
10815         too many entries to read all of them into memory at once.
10816         To do that, we'll need to save the DIR* pointer in each
10817         affected FTSENT struct.
10818         * lib/fts_.h: Include <dirent.h>.
10819         (struct FTSENT) [fts_dirp]: New member.
10820         * lib/fts.c (closedir_and_clear): Define.
10821         Use it in place of closedir so that we are sure to
10822         clear the new fts_dirp member when done with it.
10823         (fts_alloc): Initialize the new member.
10824         (fts_lfree): Free, if needed.
10825
10826         maint: fts: give __opendir2 a new parameter and rename
10827         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
10828         than surreptitiously using sole caller's "dir_fd".
10829         (fts_opendir): Rename from __opendir2.
10830
10831         maint: fts.c: remove __opendir2's now-unused parameter, oflag
10832         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
10833
10834         maint: fts.c: correct off-by-one indentation
10835         * lib/fts.c (fts_build): Correct indentation, change style
10836         of a couple of block comments, and bracing style.
10837
10838         maint: fts.c: move __opendir2 #define "up" out of function body
10839         * lib/fts.c (__opendir2): Move "up".  No semantic change.
10840
10841         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
10842         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
10843         out for a long time and besides was useful only on BSD systems.
10844
10845 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
10846
10847         regex: port to Stratus OpenVOS
10848         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
10849         define to empty, rather than attempting nonportable optimizations.
10850         Problem reported by Paul Green in:
10851         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
10852         and fix suggested by Eric Blake in:
10853         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
10854
10855 2011-08-17  Eric Blake  <eblake@redhat.com>
10856
10857         getcwd: fix test failures on mingw
10858         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
10859         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
10860         test if long directory cannot be created, and allow mingw errno.
10861
10862         getcwd-lgpl: fix m4 to match relaxed test for BSD
10863         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
10864         (gl_FUNC_GETCWD_SIGNATURE): New macro.
10865         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
10866         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
10867         signature problem.
10868
10869         getcwd: fix compilation on mingw64
10870         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
10871         getcwd.
10872         Reported by Marc-André Lureau.
10873
10874         pipe2: silence compiler warning
10875         * lib/pipe2.c (pipe2): Hide label if it is not used.
10876
10877 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
10878
10879         relocatable-prog: fix link error
10880         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
10881         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
10882         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
10883         into modules/relocatable-lib without noticing that
10884         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
10885         also needs to build relocatable.c.
10886
10887 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
10888
10889         getaddrinfo: fix sh typo in gai_strerrorA decl checking
10890         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
10891         shell code: it contained a 'break' that was not in a loop.
10892         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
10893         via a shell-language loop; this may have been true in old Autoconf
10894         versions, but it's not true in Autoconf 2.68.  I found this bug
10895         when testing coreutils git on Solaris 8, whose shell complains
10896         about the syntax error.
10897
10898 2011-08-12  Simon Josefsson  <simon@josefsson.org>
10899
10900         * lib/base64.c: Fix comment to reference RFC 4648.
10901         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
10902         <gvtulder@gmail.com>.
10903
10904 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
10905
10906         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
10907
10908         po/Makefile.in.in: fix make -q problem
10909         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
10910         rule, since there's no file named 'check-macro-version' and its
10911         use as a file breaks make -q.
10912         (all): Don't depend on check-macro-version.
10913         (CHECK_MACRO_VERSION): New macro.
10914         (stamp-po): Use it.
10915
10916         configmake: fix make -q problem
10917         * modules/configmake (configmake.h): Update configmake.h's time stamp
10918         even if the file does not change.  Otherwise, 'make -q' fails.
10919         Problem reported by Simon Josefsson in
10920         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
10921
10922 2011-08-11  Jim Meyering  <meyering@redhat.com>
10923
10924         git-version-gen: correct the advice in a comment
10925         * build-aux/git-version-gen: Correct comment.
10926         Don't recommend to list .tarball-version in .gitignore.
10927
10928 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10929
10930         base64: fix off-by-one buffer size bug
10931         Problem and (trivial) fix reported by Gijs van Tulder in
10932         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
10933         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
10934         * tests/test-base64.c (main): Catch the bug.
10935
10936 2011-08-10  Eric Blake  <eblake@redhat.com>
10937
10938         closein: correct comments
10939         * lib/closein.c (close_stdin): Improve comments.
10940
10941 2011-08-09  Bruno Haible  <bruno@clisp.org>
10942
10943         More tests for 'fseeko'.
10944         * tests/test-fseeko3.c: New file, from Eric Blake.
10945         * tests/test-fseeko3.sh: New file.
10946         * modules/fseeko-tests (Files): Add them.
10947         (TESTS): Add test-fseeko3.sh.
10948         (check_PROGRAMS): Add test-fseeko3.
10949
10950 2011-08-09  Eric Blake  <eblake@redhat.com>
10951
10952         fseeko: remove unneeded hack
10953         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
10954
10955         fseeko: fix bug on glibc
10956         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
10957         Reported by John W. Eaton.
10958
10959 2011-08-08  Bruno Haible  <bruno@clisp.org>
10960
10961         unictype/base: Fix interoperability with preinstalled libunistring.
10962         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
10963         Reported by Simon Josefsson.
10964
10965 2011-08-08  Bruno Haible  <bruno@clisp.org>
10966
10967         iswblank: Detect declaration correctly.
10968         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
10969         AC_CHECK_DECLS invocation.
10970
10971 2011-08-08  Bruno Haible  <bruno@clisp.org>
10972
10973         tcgetsid: Detect declaration correctly.
10974         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
10975         AC_CHECK_DECLS invocation.
10976         Reported by Simon Josefsson.
10977
10978 2011-08-08  Eric Blake  <eblake@redhat.com>
10979
10980         largefile: fix typo that regressed large file support
10981         * modules/largefile (configure.ac-early): Fix section name.
10982
10983 2011-08-06  Karl Berry  <karl@gnu.org>
10984
10985         * MODULES.html.sh (func_all_files): _Noreturn is no longer
10986         a separate module.
10987
10988 2011-08-05  Simon Josefsson  <simon@josefsson.org>
10989
10990         openat: Fix warnings and commens when building unlinkat.c on Hurd.
10991         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
10992         get prototype for free.
10993
10994 2011-08-04  Bruno Haible  <bruno@clisp.org>
10995
10996         Tests for module 'pathmax'.
10997         * modules/pathmax-tests: New file.
10998         * tests/test-pathmax.c: New file.
10999
11000         canonicalize-lgpl: Support larger filenames on the Hurd.
11001         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
11002         Reported by Paul Eggert.
11003
11004         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
11005         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
11006         * lib/chdir-long.h: Include pathmax.h.
11007         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
11008         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
11009         (PATH_MAX): Remove code that is done by pathmax.h.
11010         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
11011         * lib/tmpfile.c: Add a comment.
11012         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
11013         * modules/chdir-long (Depends-on): Add pathmax.
11014         * modules/getcwd (Depends-on): Add pathmax.
11015         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
11016         is not defined.
11017         * doc/posix-headers/limits.texi: Mention the pathmax module.
11018         * NEWS: Mention the change.
11019
11020 2011-08-02  Bruno Haible  <bruno@clisp.org>
11021
11022         pthread_sigmask: Actually use results of gl_THREADLIB.
11023         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
11024         gl_THREADLIB, not gl_[]THREADLIB.
11025         Reported by Eric Blake.
11026
11027 2011-08-02  Jim Meyering  <meyering@redhat.com>
11028
11029         maint.mk: relax the default _gl_TS_function_match regexp
11030         * top/maint.mk (_gl_TS_function_match): Don't require at least one
11031         space between function name and "(" in an "extern" declaration.
11032         That would fail to match a decl with no space there: extern void foo();
11033
11034 2011-07-31  Iain Nicol  <iain@thenicols.net>
11035
11036         git-version-gen: document that EXTRA_DIST must include .version
11037         * build-aux/git-version-gen: In the how-to-use comment, document
11038         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
11039         will fail when run from an unpacked distribution tarball.
11040
11041 2011-08-01  Bruno Haible  <bruno@clisp.org>
11042
11043         wctype-h: Fix last change.
11044         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
11045         REPLACE_TOWLOWER to 0.
11046         Reported by Sam Steingold <sds@gnu.org>.
11047
11048 2011-07-31  Bruno Haible  <bruno@clisp.org>
11049
11050         frexpl: Update autoconf test.
11051         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
11052         according to changes of 2011-06-20.
11053
11054 2011-07-31  Bruno Haible  <bruno@clisp.org>
11055
11056         sys_utsname: Add support for Minix.
11057         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
11058         <sys/utsname.h>.
11059         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11060         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
11061
11062 2011-07-31  Bruno Haible  <bruno@clisp.org>
11063
11064         strings: Add support for Minix.
11065         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
11066         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
11067         * doc/posix-headers/strings.texi: Document the Minix problem.
11068
11069 2011-07-31  Bruno Haible  <bruno@clisp.org>
11070
11071         wctype-h: Add support for Minix.
11072         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
11073         REPLACE_TOWLOWER.
11074         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
11075         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
11076         REPLACE_ISWCNTRL.
11077
11078 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
11079
11080         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
11081         This is a performance improvement for 64-bit hosts: it causes the
11082         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
11083
11084 2011-07-31  Bruno Haible  <bruno@clisp.org>
11085
11086         stdioext: Add support for Minix.
11087         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
11088         * lib/fpurge.c (fpurge): Likewise.
11089         * lib/freadahead.c (freadahead): Likewise.
11090         * lib/freadable.c (freadable): Likewise.
11091         * lib/freading.c (freading): Likewise.
11092         * lib/freadptr.c (freadptr): Likewise.
11093         * lib/freadseek.c (freadptrinc): Likewise.
11094         * lib/fseeko.c (rpl_fseeko): Likewise.
11095         * lib/fseterr.c (fseterr): Likewise.
11096         * lib/fwritable.c (fwritable): Likewise.
11097         * lib/fwriting.c (fwriting): Likewise.
11098         * lib/fflush.c (clear_ungetc_buffer): Update comment.
11099         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
11100
11101 2011-07-31  Bruno Haible  <bruno@clisp.org>
11102
11103         errno: Port to Minix.
11104         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
11105         ECONNABORTED are defined.
11106         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
11107         GNULIB_defined_ECONNABORTED): New macros.
11108         * lib/strerror-override.h (strerror_override): Test also
11109         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
11110         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
11111         ECONNABORTED.
11112         * doc/posix-headers/errno.texi: Mention the Minix problem.
11113
11114 2011-07-31  Bruno Haible  <bruno@clisp.org>
11115
11116         Work around declaration collisions on Minix.
11117         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
11118         defined, set REPLACE_MBSINIT.
11119         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
11120         defined, set REPLACE_MBRTOWC.
11121         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
11122         set REPLACE_MBRLEN.
11123         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
11124         defined, set REPLACE_MBSRTOWCS.
11125         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
11126         defined, set REPLACE_WCRTOMB.
11127         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
11128         defined, set REPLACE_WCSRTOMBS.
11129
11130 2011-07-31  Bruno Haible  <bruno@clisp.org>
11131
11132         Add support for Minix with ACK compiler.
11133         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
11134         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
11135         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
11136
11137 2011-07-31  Bruno Haible  <bruno@clisp.org>
11138
11139         Documentation about Minix.
11140         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
11141         * doc/glibc-headers/*.texi: Likewise.
11142         * doc/posix-functions/*.texi: Likewise.
11143         * doc/glibc-functions/*.texi: Likewise.
11144
11145 2011-07-31  Bruno Haible  <bruno@clisp.org>
11146
11147         snippet/warn-on-use: Fix indentation.
11148         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
11149
11150 2011-07-25  Jim Meyering  <meyering@redhat.com>
11151
11152         tests: test-update-copyright.sh: remove unnecessary "rm" commands
11153         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
11154         commands.
11155
11156 2011-07-27  Jim Meyering  <meyering@redhat.com>
11157
11158         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
11159         * top/maint.mk (gl_extract_significant_defines_): Now that
11160         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
11161         gnulib/lib/signal.in.h, and now that we recommend to
11162         define-if-undefined those two symbols in application code,
11163         we must filter them out of the "significant" list.
11164         This avoids a "make syntax-check" failure in coreutils.
11165
11166 2011-07-26  Eric Blake  <eblake@redhat.com>
11167
11168         warnings: add comments about previous patch
11169         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
11170         * m4/include_next.m4: Likewise.
11171         * m4/warn-on-use.m4: Likewise.
11172         * m4/warnings.m4: Likewise, and simplify use.
11173         Suggested by Stefano Lattarini.
11174
11175         include-next, warnings: support older autoconf
11176         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
11177         AS_VAR_PUSHDEF in a way that works with older autoconf.
11178         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
11179         Reported by Daniel P. Berrange.
11180
11181 2011-07-25  Bruno Haible  <bruno@clisp.org>
11182
11183         fseek, ftell: Fix doc.
11184         * doc/posix-functions/fseek.texi: Reword statement about
11185         AC_SYS_LARGEFILE.
11186         * doc/posix-functions/ftell.texi: Likewise.
11187
11188 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11189             Bruno Haible  <bruno@clisp.org>
11190
11191         Add dependencies to the 'largefile' module.
11192         * modules/fopen (Depends-on): Add 'largefile'.
11193         * modules/freopen (Depends-on): Likewise.
11194         * modules/fseeko (Depends-on): Likewise.
11195         * modules/ftello (Depends-on): Likewise.
11196         * modules/glob (Depends-on): Likewise.
11197         * modules/lseek (Depends-on): Likewise.
11198         * modules/lstat (Depends-on): Likewise.
11199         * modules/mkostemp (Depends-on): Likewise.
11200         * modules/mkostemps (Depends-on): Likewise.
11201         * modules/mkstemp (Depends-on): Likewise.
11202         * modules/mkstemps (Depends-on): Likewise.
11203         * modules/open (Depends-on): Likewise.
11204         * modules/openat (Depends-on): Likewise.
11205         * modules/pread (Depends-on): Likewise.
11206         * modules/pwrite (Depends-on): Likewise.
11207         * modules/scandir (Depends-on): Likewise.
11208         * modules/stat (Depends-on): Likewise.
11209         * modules/tmpfile (Depends-on): Likewise.
11210         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
11211         since the containing module now depends on the largefile module.
11212         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
11213         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
11214         off_t is fixed by gnulib.
11215         * doc/posix-functions/freopen.texi: Likewise.
11216         * doc/posix-functions/fseeko.texi: Likewise.
11217         * doc/posix-functions/fstatat.texi: Likewise.
11218         * doc/posix-functions/ftello.texi: Likewise.
11219         * doc/posix-functions/glob.texi: Likewise.
11220         * doc/posix-functions/lseek.texi: Likewise.
11221         * doc/posix-functions/lstat.texi: Likewise.
11222         * doc/posix-functions/mkstemp.texi: Likewise.
11223         * doc/posix-functions/open.texi: Likewise.
11224         * doc/posix-functions/openat.texi: Likewise.
11225         * doc/posix-functions/pread.texi: Likewise.
11226         * doc/posix-functions/pwrite.texi: Likewise.
11227         * doc/posix-functions/scandir.texi: Likewise.
11228         * doc/posix-functions/stat.texi: Likewise.
11229         * doc/posix-functions/tmpfile.texi: Likewise.
11230         * doc/glibc-functions/mkostemp.texi: Likewise.
11231         * doc/glibc-functions/mkostemps.texi: Likewise.
11232         * doc/glibc-functions/mkstemps.texi: Likewise.
11233
11234 2011-07-25  Bruno Haible  <bruno@clisp.org>
11235
11236         fcntl: Move AC_LIBOBJ invocation to module description.
11237         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
11238         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
11239
11240         fcntl: Remove call-in from fchdir.m4.
11241         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
11242         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
11243
11244         dup3: Remove potential call-in from fchdir.m4.
11245         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
11246         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
11247
11248         dup2: Move AC_LIBOBJ invocation to module description.
11249         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
11250         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
11251         Don't invoke AC_LIBOBJ.
11252         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
11253
11254         dup2: Remove call-in from fchdir.m4.
11255         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
11256         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
11257
11258         fclose: Move AC_LIBOBJ invocation to module description.
11259         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
11260         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
11261         to 1.
11262         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
11263
11264         fclose: Remove call-in from close.m4.
11265         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
11266         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
11267
11268         close: Move AC_LIBOBJ invocation to module description.
11269         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
11270         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
11271         1.
11272         * modules/close (configure.ac): Invoke AC_LIBOBJ.
11273
11274         close: Remove call-in from fchdir.m4.
11275         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
11276         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
11277
11278         open: Move AC_LIBOBJ invocation to module description.
11279         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
11280         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
11281         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
11282
11283         open: Remove call-in from fchdir.m4.
11284         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
11285         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
11286
11287         fchdir: Start to remove gl_REPLACE_* idiom.
11288         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
11289         (gl_FUNC_FCHDIR): Invoke it.
11290
11291 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11292
11293         * lib/ftell.c (ftell): Comment out cast.
11294
11295         close: use gl_REPLACE_FCLOSE only if defined
11296         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
11297         is defined.  The close module doesn't depend on the fclose module
11298         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
11299         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
11300         I reproduced the problem with "./gnulib-tool --test close sys_socket".
11301
11302 2011-07-24  Jim Meyering  <meyering@redhat.com>
11303
11304         test-select.h: avoid warning when using gcc's -Wmissing-declarations
11305         * tests/test-select.h (test_function): Declare as "static".
11306
11307 2011-07-24  Bruno Haible  <bruno@clisp.org>
11308
11309         doc: Mention the effects of AC_SYS_LARGEFILE.
11310         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
11311         on this function.
11312         * doc/posix-functions/aio_error.texi: Likewise.
11313         * doc/posix-functions/aio_fsync.texi: Likewise.
11314         * doc/posix-functions/aio_read.texi: Likewise.
11315         * doc/posix-functions/aio_return.texi: Likewise.
11316         * doc/posix-functions/aio_suspend.texi: Likewise.
11317         * doc/posix-functions/aio_write.texi: Likewise.
11318         * doc/posix-functions/fgetpos.texi: Likewise.
11319         * doc/posix-functions/fopen.texi: Likewise.
11320         * doc/posix-functions/freopen.texi: Likewise.
11321         * doc/posix-functions/fsetpos.texi: Likewise.
11322         * doc/posix-functions/fstatvfs.texi: Likewise.
11323         * doc/posix-functions/ftruncate.texi: Likewise.
11324         * doc/posix-functions/ftw.texi: Likewise.
11325         * doc/posix-functions/getrlimit.texi: Likewise.
11326         * doc/posix-functions/glob.texi: Likewise.
11327         * doc/posix-functions/lio_listio.texi: Likewise.
11328         * doc/posix-functions/lockf.texi: Likewise.
11329         * doc/posix-functions/mkstemp.texi: Likewise.
11330         * doc/posix-functions/mmap.texi: Likewise.
11331         * doc/posix-functions/nftw.texi: Likewise.
11332         * doc/posix-functions/openat.texi: Likewise.
11333         * doc/posix-functions/opendir.texi: Likewise.
11334         * doc/posix-functions/posix_fadvise.texi: Likewise.
11335         * doc/posix-functions/posix_fallocate.texi: Likewise.
11336         * doc/posix-functions/pread.texi: Likewise.
11337         * doc/posix-functions/pwrite.texi: Likewise.
11338         * doc/posix-functions/readdir.texi: Likewise.
11339         * doc/posix-functions/readdir_r.texi: Likewise.
11340         * doc/posix-functions/rewinddir.texi: Likewise.
11341         * doc/posix-functions/scandir.texi: Likewise.
11342         * doc/posix-functions/seekdir.texi: Likewise.
11343         * doc/posix-functions/setrlimit.texi: Likewise.
11344         * doc/posix-functions/statvfs.texi: Likewise.
11345         * doc/posix-functions/telldir.texi: Likewise.
11346         * doc/posix-functions/tmpfile.texi: Likewise.
11347         * doc/posix-functions/truncate.texi: Likewise.
11348         * doc/glibc-functions/fallocate.texi: Likewise.
11349         * doc/glibc-functions/fstatfs.texi: Likewise.
11350         * doc/glibc-functions/fts_children.texi: Likewise.
11351         * doc/glibc-functions/fts_read.texi: Likewise.
11352         * doc/glibc-functions/getdirentries.texi: Likewise.
11353         * doc/glibc-functions/mkostemp.texi: Likewise.
11354         * doc/glibc-functions/mkostemps.texi: Likewise.
11355         * doc/glibc-functions/mkstemps.texi: Likewise.
11356         * doc/glibc-functions/preadv.texi: Likewise.
11357         * doc/glibc-functions/pwritev.texi: Likewise.
11358         * doc/glibc-functions/sendfile.texi: Likewise.
11359         * doc/glibc-functions/statfs.texi: Likewise.
11360
11361 2011-07-24  Bruno Haible  <bruno@clisp.org>
11362
11363         doc: Fix typo.
11364         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
11365
11366 2011-07-24  Bruno Haible  <bruno@clisp.org>
11367
11368         doc: Mention fsusage.
11369         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
11370
11371 2011-07-24  Bruno Haible  <bruno@clisp.org>
11372
11373         doc: Mention new glibc headers and functions.
11374         * doc/glibc-headers/gshadow.texi: New file.
11375         * doc/glibc-functions/endsgent.texi: New file.
11376         * doc/glibc-functions/fgetsgent.texi: New file.
11377         * doc/glibc-functions/fgetsgent_r.texi: New file.
11378         * doc/glibc-functions/getsgent.texi: New file.
11379         * doc/glibc-functions/getsgent_r.texi: New file.
11380         * doc/glibc-functions/getsgnam.texi: New file.
11381         * doc/glibc-functions/getsgnam_r.texi: New file.
11382         * doc/glibc-functions/putsgent.texi: New file.
11383         * doc/glibc-functions/setsgent.texi: New file.
11384         * doc/glibc-functions/sgetsgent.texi: New file.
11385         * doc/glibc-functions/sgetsgent_r.texi: New file.
11386         * doc/glibc-functions/malloc_info.texi: New file.
11387         * doc/glibc-functions/preadv.texi: New file.
11388         * doc/glibc-functions/pwritev.texi: New file.
11389         * doc/glibc-functions/register_printf_modifier.texi: New file.
11390         * doc/glibc-functions/register_printf_specifier.texi: New file.
11391         * doc/glibc-functions/register_printf_type.texi: New file.
11392         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
11393         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
11394         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
11395         * doc/glibc-functions/pthread_getname_np.texi: New file.
11396         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
11397         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
11398         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
11399         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
11400         * doc/glibc-functions/pthread_setname_np.texi: New file.
11401         * doc/glibc-functions/pthread_sigqueue.texi: New file.
11402         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
11403         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
11404         * doc/glibc-functions/qsort_r.texi: New file.
11405         * doc/glibc-functions/quick_exit.texi: New file.
11406         * doc/glibc-functions/syncfs.texi: New file.
11407         * doc/gnulib.texi: Include them.
11408         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
11409         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
11410         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
11411         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
11412         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
11413         * doc/glibc-functions/execvpe.texi: Likewise.
11414
11415 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11416
11417         ftell: don't include <unistd.h>
11418         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
11419         guaranteed to define off_t, and the ftell module depends on the
11420         stdio module.
11421
11422         ftell: do not assume wraparound signed arithmetic
11423         * lib/ftell.c: Include <limits.h>.
11424         (ftell): Don't assume wraparound signed arithmetic.
11425
11426 2011-07-24  Bruno Haible  <bruno@clisp.org>
11427
11428         close: No longer depend on module 'fclose'.
11429         * modules/close (Depends-on): Remove fclose.
11430         * NEWS: Mention the change.
11431         Suggested by Sam Steingold <sds@gnu.org>.
11432
11433 2011-07-24  Bruno Haible  <bruno@clisp.org>
11434
11435         fsusage: Enable large volume support on AIX >= 5.2.
11436         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
11437         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
11438         instead of STAT_STATVFS.
11439         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
11440
11441         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
11442         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
11443         f_blocks field only on MacOS X.
11444
11445         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
11446         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
11447         * modules/fsusage (Depends-on): Add largefile.
11448
11449 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11450
11451         * README: Modernize discussion of signed integers.
11452         Assuming overflow wraparound is no longer safe.
11453         Mention ones' complement and signed magnitude.
11454
11455 2011-07-22  Bruno Haible  <bruno@clisp.org>
11456
11457         select tests, pselect tests: Refactor.
11458         * tests/test-select.h: New file, extracted from tests/test-select.c.
11459         (select_fn): New type.
11460         (test, do_select, do_select_nowait, do_select_wait, test_tty,
11461         test_connect_first, test_accept_first, test_pair, test_socket_pair,
11462         test_pipe): Add my_select argument.
11463         (test_function): Renamed from main. Add my_select argument.
11464         * tests/test-select.c: Move most code to tests/test-select.h. Include
11465         test-select.h.
11466         * modules/select-tests (Files): Add tests/test-select.h.
11467         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
11468         (my_select, main): New functions.
11469         * modules/pselect-tests (Files): Add tests/test-select.h,
11470         tests/macros.h, tests/signature.h.
11471         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
11472         (configure.ac): Check for <sys/wait.h>.
11473
11474 2011-07-22  Bruno Haible  <bruno@clisp.org>
11475
11476         sys_select tests: Check the signature of FD_*.
11477         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
11478         signature tests from here...
11479         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
11480         here.
11481         * modules/sys_select-tests (Files): Add tests/signature.h.
11482
11483 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
11484
11485         largefile: new module, replacing large-inode
11486         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
11487         * MODULES.html.sh: Add largefile, remove large-inode.
11488         * modules/largefile, m4/largefile.m4: New files.
11489         * modules/large-inode, m4/large-inode.m4: Remove.
11490
11491         fsusage: port to MacOS X 10.7 with 4 TiB file systems
11492         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
11493         implementations that use only 32 bits to count blocks.
11494         On typical hosts with 1024-byte blocks, this fails with file
11495         systems as small as 4 TiB.  Problem reported by Herb Wartens
11496         <http://debbugs.gnu.org/9140> and this should also fix a similar
11497         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
11498
11499         large-inode: New module
11500         * MODULES.html.sh: Add it.
11501         * modules/large-inode, m4/large-inode.m4: New files.
11502
11503         extensions: Enable extensions on MacOS X 10.5 and later.
11504         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
11505
11506 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
11507
11508         file-has-acl: use acl_extended_file_nofollow if available
11509         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
11510         (acl_extended_file): New macro.
11511         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
11512         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
11513
11514 2011-07-21  Bruno Haible  <bruno@clisp.org>
11515
11516         Declare system functions in a way that works with C++.
11517         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
11518         declare fdopendir as extern "C".
11519         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
11520         declare frexpl as extern "C".
11521         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
11522         declare gai_strerror as extern "C".
11523         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
11524         programs, declare gai_strerror as extern "C".
11525         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
11526         declare getlogin_r as extern "C".
11527         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
11528         as extern "C".
11529         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
11530         declare ldexpl as extern "C".
11531         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
11532         as extern "C".
11533         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
11534         program, declare getmntinfo as extern "C".
11535         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
11536         stpncpy as extern "C".
11537         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
11538         program, declare __xpg_strerror_r as extern "C".
11539         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
11540         strndup as extern "C".
11541         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
11542         declare memset and bzero as extern "C".
11543         Reported by Sam Steingold <sds@gnu.org>.
11544
11545 2011-07-12  Jim Meyering  <meyering@redhat.com>
11546
11547         maint.mk: prohibit inclusion of "verify.h" without use
11548         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
11549
11550 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11551
11552         timer-time: A new module to check for timer_settime()
11553         * m4/timer_time.m4: Check for the posix function.
11554         * modules/timer-time: Add the new module.
11555         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
11556         Mention it.
11557
11558 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
11559             Bruno Haible  <bruno@clisp.org>
11560
11561         pthread_sigmask: assume POSIX threads if --avoid=threadlib
11562         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
11563         not defined, assume POSIX threads and look for pthread_sigmask in
11564         $LIBS, without changing $CPPFLAGS.
11565
11566 2011-07-19  Bruno Haible  <bruno@clisp.org>
11567
11568         strstr: Update cross-compilation guess.
11569         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
11570         CPUs, guess no, in view of glibc
11571         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
11572         Suggested by Eric Blake. Reported by Reuben Thomas.
11573
11574 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11575
11576         getopt-gnu: suppress core dumps from detection code
11577         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
11578         to suppress core dumps that may well occur on glibc systems.
11579         * modules/getopt-gnu: Depend on nocrash.
11580
11581 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
11582
11583         pthread_sigmask: ensure usleep is declared
11584         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
11585         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
11586
11587 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
11588
11589         doc: Document NonStop portability issues.
11590         * doc/posix-functions/sigaction.texi (sigaction):
11591         * doc/posix-headers/signal.texi (signal.h):
11592         Document NonStop.  See Joachim Schmitz in
11593         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
11594
11595 2011-07-15  Bruno Haible  <bruno@clisp.org>
11596
11597         ffsl, ffsll: Avoid unportable behaviour.
11598         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
11599
11600 2011-07-15  Bruno Haible  <bruno@clisp.org>
11601
11602         ffs: More tests.
11603         * tests/test-ffs.c (NBITS): New macro.
11604         (main): Add more tests.
11605         * tests/test-ffsl.c (NBITS): New macro.
11606         (main): Add more tests.
11607         * tests/test-ffsll.c (NBITS): New macro.
11608         (main): Add more tests.
11609
11610 2011-07-15  Eric Blake  <eblake@redhat.com>
11611
11612         ffsl, ffsll: new modules
11613         * modules/ffsl: New file.
11614         * modules/ffsll: Likewise.
11615         * m4/ffsl.m4: Likewise.
11616         * m4/ffsll.m4: Likewise.
11617         * lib/ffsl.c: Likewise.
11618         * lib/ffsl.h: Likewise.
11619         * lib/ffsll.c: Likewise.
11620         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
11621         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
11622         * modules/string (Makefile.am): Substitute witnesses.
11623         * lib/strings.in.h (ffsl, ffsll): Declare.
11624         * modules/ffsl-tests: New test file.
11625         * modules/ffsll-tests: Likewise.
11626         * tests/test-ffsl.c: Likewise.
11627         * tests/test-ffsll.c: Likewise.
11628         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11629         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
11630         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
11631
11632         ffs: fix m4 prerequisite
11633         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
11634
11635         ffs: avoid undefined behavior
11636         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
11637         * tests/test-ffs.c (naive, main): Avoid signed shifts.
11638         Reported by Bruno Haible.
11639
11640 2011-07-12  Bruno Haible  <bruno@clisp.org>
11641
11642         pthread_sigmask: Rely on module 'threadlib'.
11643         * modules/pthread_sigmask (Depends-on): Add threadlib.
11644         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
11645         is defined.
11646
11647 2011-07-12  Bruno Haible  <bruno@clisp.org>
11648
11649         regex: Depend on module 'strcase'.
11650         * modules/regex (Depends-on): Add strcase, for strcasecmp().
11651
11652 2011-07-12  Jim Meyering  <meyering@redhat.com>
11653
11654         warn-on-use: fix typo in file name
11655         * modules/snippet/warn-on-use (Files): Correct file name:
11656         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
11657
11658 2011-07-12  Bruno Haible  <bruno@clisp.org>
11659
11660         strings: Document module.
11661         * doc/posix-headers/strings.texi: Mention module 'strings'.
11662
11663 2011-07-12  Bruno Haible  <bruno@clisp.org>
11664
11665         Rename module '_Noreturn' to 'snippet/_Noreturn'.
11666         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
11667         (Files, Makefile.am): Update.
11668         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
11669         * modules/stdlib (Depends-on): Update.
11670
11671 2011-07-12  Bruno Haible  <bruno@clisp.org>
11672
11673         * NEWS: Mention the changes.
11674
11675         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
11676         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
11677         (Files, Makefile.am): Update.
11678         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
11679         * modules/arpa_inet (Depends-on): Update.
11680         * modules/ctype (Depends-on): Update.
11681         * modules/dirent (Depends-on): Update.
11682         * modules/fcntl-h (Depends-on): Update.
11683         * modules/glob (Depends-on): Update.
11684         * modules/iconv-h (Depends-on): Update.
11685         * modules/inttypes-incomplete (Depends-on): Update.
11686         * modules/langinfo (Depends-on): Update.
11687         * modules/locale (Depends-on): Update.
11688         * modules/math (Depends-on): Update.
11689         * modules/netdb (Depends-on): Update.
11690         * modules/poll-h (Depends-on): Update.
11691         * modules/pty (Depends-on): Update.
11692         * modules/search (Depends-on): Update.
11693         * modules/signal (Depends-on): Update.
11694         * modules/spawn (Depends-on): Update.
11695         * modules/stdio (Depends-on): Update.
11696         * modules/stdlib (Depends-on): Update.
11697         * modules/string (Depends-on): Update.
11698         * modules/strings (Depends-on): Update.
11699         * modules/sys_file (Depends-on): Update.
11700         * modules/sys_ioctl (Depends-on): Update.
11701         * modules/sys_select (Depends-on): Update.
11702         * modules/sys_socket (Depends-on): Update.
11703         * modules/sys_stat (Depends-on): Update.
11704         * modules/sys_time (Depends-on): Update.
11705         * modules/sys_times (Depends-on): Update.
11706         * modules/sys_utsname (Depends-on): Update.
11707         * modules/sys_wait (Depends-on): Update.
11708         * modules/termios (Depends-on): Update.
11709         * modules/time (Depends-on): Update.
11710         * modules/unistd (Depends-on): Update.
11711         * modules/wchar (Depends-on): Update.
11712         * modules/wctype-h (Depends-on): Update.
11713         * MODULES.html.sh (Support for building libraries and executables):
11714         Update.
11715
11716         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
11717         * modules/snippet/unused-parameter: Renamed from
11718         modules/unused-parameter.
11719         (Files, Makefile.am): Update.
11720         * build-aux/snippet/unused-parameter.h: Renamed from
11721         build-aux/unused-parameter.h.
11722         * modules/selinux-h (Depends-on): Update.
11723         * modules/unistr/base (Depends-on): Update.
11724         * MODULES.html.sh (Core language properties): Update.
11725
11726         Rename module 'link-warning' to 'snippet/link-warning'.
11727         * modules/snippet/link-warning: Renamed from modules/link-warning.
11728         (Files, Makefile.am): Update.
11729         * build-aux/snippet/link-warning.h: Renamed from
11730         build-aux/link-warning.h.
11731         * MODULES.html.sh (Support for building libraries and executables):
11732         Update.
11733
11734         Rename module 'c++defs' to 'snippet/c++defs'.
11735         * modules/snippet/c++defs: Renamed from modules/c++defs.
11736         (Files, Makefile.am): Update.
11737         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
11738         * modules/arpa_inet (Depends-on): Update.
11739         * modules/ctype (Depends-on): Update.
11740         * modules/dirent (Depends-on): Update.
11741         * modules/fcntl-h (Depends-on): Update.
11742         * modules/glob (Depends-on): Update.
11743         * modules/iconv-h (Depends-on): Update.
11744         * modules/langinfo (Depends-on): Update.
11745         * modules/locale (Depends-on): Update.
11746         * modules/math (Depends-on): Update.
11747         * modules/netdb (Depends-on): Update.
11748         * modules/poll-h (Depends-on): Update.
11749         * modules/pty (Depends-on): Update.
11750         * modules/search (Depends-on): Update.
11751         * modules/signal (Depends-on): Update.
11752         * modules/spawn (Depends-on): Update.
11753         * modules/stdio (Depends-on): Update.
11754         * modules/stdlib (Depends-on): Update.
11755         * modules/string (Depends-on): Update.
11756         * modules/strings (Depends-on): Update.
11757         * modules/sys_ioctl (Depends-on): Update.
11758         * modules/sys_select (Depends-on): Update.
11759         * modules/sys_socket (Depends-on): Update.
11760         * modules/sys_stat (Depends-on): Update.
11761         * modules/sys_time (Depends-on): Update.
11762         * modules/sys_wait (Depends-on): Update.
11763         * modules/termios (Depends-on): Update.
11764         * modules/time (Depends-on): Update.
11765         * modules/unistd (Depends-on): Update.
11766         * modules/wchar (Depends-on): Update.
11767         * modules/wctype-h (Depends-on): Update.
11768
11769         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
11770         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
11771         (Files, Makefile.am): Update.
11772         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
11773         * modules/argv-iter (Depends-on): Update.
11774         * modules/arpa_inet (Depends-on): Update.
11775         * modules/dirent (Depends-on): Update.
11776         * modules/fcntl-h (Depends-on): Update.
11777         * modules/fnmatch (Depends-on): Update.
11778         * modules/getopt-posix (Depends-on): Update.
11779         * modules/glob (Depends-on): Update.
11780         * modules/iconv-h (Depends-on): Update.
11781         * modules/inttypes-incomplete (Depends-on): Update.
11782         * modules/locale (Depends-on): Update.
11783         * modules/math (Depends-on): Update.
11784         * modules/netdb (Depends-on): Update.
11785         * modules/search (Depends-on): Update.
11786         * modules/signal (Depends-on): Update.
11787         * modules/spawn (Depends-on): Update.
11788         * modules/stdio (Depends-on): Update.
11789         * modules/stdlib (Depends-on): Update.
11790         * modules/string (Depends-on): Update.
11791         * modules/strings (Depends-on): Update.
11792         * modules/sys_socket (Depends-on): Update.
11793         * modules/sys_stat (Depends-on): Update.
11794         * modules/sys_time (Depends-on): Update.
11795         * modules/sys_times (Depends-on): Update.
11796         * modules/sys_utsname (Depends-on): Update.
11797         * modules/time (Depends-on): Update.
11798         * modules/unistd (Depends-on): Update.
11799         * modules/wchar (Depends-on): Update.
11800         * MODULES.html.sh (Support for building libraries and executables):
11801         Update.
11802
11803 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11804
11805         Improvements on _Noreturn and related modules.
11806
11807         modules/_Exit-tests: test _Noreturn too
11808         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
11809         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
11810         (main): Use them.
11811
11812         stdnoreturn, stdnoreturn-tests: remove modules
11813         They're not needed here and a bit premature for use elsewhere.  See
11814         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
11815         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
11816         * tests/test-stdnoreturn.c: Remove files.
11817         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
11818         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
11819         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
11820         and using noreturn.
11821         * modules/openat, modules/sigpipe-die, modules/xalloc:
11822         * modules/xmemdup0, modules/xstrtol:
11823         Remove dependency on stdnoreturn.
11824
11825         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
11826         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
11827         Reparenthesize to avoid GCC warning.
11828         Support Microsoft's syntax.
11829         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
11830
11831         _Noreturn-tests: remove module
11832         * modules/_Noreturn-tests: Remove.
11833         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
11834         * tests/test-_Noreturn.c: Remove.
11835         * tests/test-stdnoreturn.c: Merge from the old
11836         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
11837
11838 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11839
11840         _Noreturn, stdnoreturn, and related modules.
11841
11842         * top/maint.mk: Adjust to new noreturn support.
11843         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
11844         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
11845
11846         xalloc: use stdnoreturn.h
11847         * lib/xalloc.h: Include <stdnoreturn.h>.
11848         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11849         * modules/xalloc (Depends-on): Add stdnoreturn.
11850
11851         xstrtol: use stdnoreturn.h
11852         * lib/xstrtol.h: Include <stdnoreturn.h>.
11853         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11854         * modules/xstrtol (Depends-on): Add stdnoreturn.
11855
11856         xmemdup0: use stdnoreturn.h
11857         * lib/xmemdup0.h: Include <stdnoreturn.h>.
11858         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11859         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
11860
11861         sigpipe-die: use stdnoreturn.h
11862         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
11863         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11864         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
11865
11866         openat: use stdnoreturn.h
11867         * lib/openat.h: Include <stdnoreturn.h>.
11868         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11869         * modules/openat (Depends-on): Add stdnoreturn.
11870
11871         * lib/openat-die.c (openat_save_fail): Modernize comment.
11872
11873         * lib/xalloc-die.c (xalloc_die): Modernize comment.
11874
11875         * lib/glthread/thread.h: Modernize comment.
11876
11877         obstack: use _Noreturn
11878         * lib/obstack.c (__attribute__): Remove macro.
11879         (print_and_abort): Use _Noreturn.
11880
11881         c-stack: use _Noreturn
11882         * lib/c-stack.c (die, overflow_handler, segv_handler):
11883         Use _Noreturn rather than __attribute__((noreturn)).
11884
11885         argmatch-tests, exclude_tests: use _Noreturn
11886         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
11887         Remove.
11888         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
11889
11890         stdlib: use _Noreturn
11891         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
11892         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
11893         * modules/stdlib (Depends-on): Add _Noreturn.
11894         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
11895
11896         stdnoreturn-tests: new module
11897         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
11898
11899         stdnoreturn: new module
11900         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
11901         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
11902
11903         _Noreturn-tests: new module
11904         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
11905
11906         _Noreturn: new module
11907         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
11908         New section, mentioning it.
11909         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
11910
11911         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
11912
11913 2011-07-11  Eric Blake  <eblake@redhat.com>
11914
11915         ffs: new module
11916         * modules/ffs: New file.
11917         * m4/ffs.m4: Likewise.
11918         * lib/ffs.c: Likewise.
11919         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
11920         * modules/strings (Makefile.am): Substitute witness.
11921         (Depends-on): Add c++defs.
11922         * lib/strings.in.h (ffs): Declare.
11923         * modules/ffs-tests: New test file.
11924         * tests/test-ffs.c: Test new module.
11925         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11926         * doc/posix-functions/ffs.texi (ffs): Likewise.
11927
11928         regex: avoid compiler warning
11929         * lib/regex.c (includes): Include <strings.h>, for use of
11930         strcasecmp in regcomp.c.
11931         Reported by Joachim Schmitz.
11932
11933 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
11934
11935         stdint: respect system's intmax_t if INTMAX_MAX
11936         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
11937         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
11938         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
11939         long but int64_t is long long, and where we will clash with the
11940         system intmax_t if we override it.  See
11941         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
11942         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
11943         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
11944         similarly for UINTMAX_C.
11945
11946 2011-07-08  Bruno Haible  <bruno@clisp.org>
11947
11948         pthread_sigmask tests: Avoid a compiler warning.
11949         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
11950         non-zero.
11951
11952         sigprocmask tests: A better way to avoid a compiler warning.
11953         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
11954         (main): Complain if system() returns non-zero.
11955         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
11956
11957 2011-07-08  Bruno Haible  <bruno@clisp.org>
11958
11959         pthread_sigmask: Work around IRIX bug.
11960         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
11961         bug.
11962         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
11963         there may be unblocked pending signals.
11964         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
11965
11966 2011-07-08  Bruno Haible  <bruno@clisp.org>
11967
11968         pthread_sigmask: Work around Cygwin bug.
11969         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
11970         bug.
11971         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
11972         the system's pthread_sigmask function.
11973         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
11974
11975 2011-07-08  Bruno Haible  <bruno@clisp.org>
11976
11977         pthread_sigmask: Work around bug in single-threaded implementation.
11978         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
11979         FreeBSD, HP-UX, Solaris bug.
11980         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
11981         * lib/pthread_sigmask.c: Include <stddef.h>.
11982         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
11983         the system's pthread_sigmask function.
11984         * modules/pthread_sigmask (configure.ac): Invoke
11985         gl_PREREQ_PTHREAD_SIGMASK.
11986         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
11987         HP-UX, Solaris.
11988
11989 2011-07-08  Eric Blake  <eblake@redhat.com>
11990
11991         test-sigprocmask: avoid compiler warning
11992         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
11993         * tests/test-sigprocmask.c (main): Use it to silence warning.
11994         Reported by Jim Meyering.
11995
11996         test-snprintf: avoid compiler warning
11997         * tests/test-snprintf.c (main): Avoid shadowed declaration.
11998         * tests/test-vsnprintf.c (main): Likewise.
11999         Reported by Jim Meyering.
12000
12001 2011-07-08  Bruno Haible  <bruno@clisp.org>
12002
12003         Tests for module 'pthread_sigmask'.
12004         * modules/pthread_sigmask-tests: New file.
12005         * tests/test-pthread_sigmask1.c: New file, based on
12006         tests/test-sigprocmask.c.
12007         * tests/test-pthread_sigmask2.c: New file.
12008
12009 2011-07-08  Jim Meyering  <meyering@redhat.com>
12010
12011         test-getopt.h: avoid warning about an unused variable
12012         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
12013
12014 2011-07-07  Jim Meyering  <meyering@redhat.com>
12015
12016         maint: reduce list of files exempt from sc_prohibit_leading_TABs
12017         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
12018         now that it no longer contains leading TABs.
12019         Remove unused "url=FIXME" statement.
12020
12021 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
12022
12023         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
12024         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
12025         When gl_THREADLIB is not in use, assume that the POSIX sematics
12026         are desired.  This is better for Emacs, which uses POSIX semantics
12027         on GNUish and/or POSIXish platforms, and does not use threads at
12028         all otherwise.
12029
12030         pthread_sigmask: fix typo when testing for libraries
12031         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
12032         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
12033
12034 2011-07-08  Eric Blake  <eblake@redhat.com>
12035
12036         fts: introduce FTS_NOATIME
12037         * lib/fts_.h (FTS_NOATIME): New bit flag.
12038         (FTS_OPTIONMASK): Adjust.
12039         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
12040         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
12041
12042 2011-07-08  Bruno Haible  <bruno@clisp.org>
12043
12044         Tests for module 'thread'.
12045         * modules/thread-tests: New file.
12046         * tests/test-thread_self.c: New file.
12047         * tests/test-thread_create.cc: New file.
12048
12049 2011-07-08  Bruno Haible  <bruno@clisp.org>
12050
12051         thread: Avoid gcc warnings when using gl_thread_self().
12052         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
12053         'void *'.
12054         (gl_thread_self_pointer): Update.
12055
12056 2011-07-07  Bruno Haible  <bruno@clisp.org>
12057
12058         signal-c++-tests: Check declaration of pthread_sigmask.
12059         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
12060         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
12061         $(LIB_PTHREAD_SIGMASK).
12062
12063 2011-07-07  Bruno Haible  <bruno@clisp.org>
12064
12065         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
12066         * lib/signal.in.h (pthread_sigmask): Override if
12067         REPLACE_PTHREAD_SIGMASK is 1.
12068         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
12069         REPLACE_PTHREAD_SIGMASK.
12070         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
12071         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
12072         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
12073         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
12074         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
12075
12076 2011-07-07  Bruno Haible  <bruno@clisp.org>
12077
12078         pthread_sigmask: Ensure declaration in <signal.h>.
12079         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
12080         include <pthread.h>.
12081         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
12082         problem.
12083
12084 2011-07-07  Bruno Haible  <bruno@clisp.org>
12085
12086         pthread_sigmask: Document the module.
12087         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
12088
12089 2011-07-07  Bruno Haible  <bruno@clisp.org>
12090
12091         pthread_sigmask: Follow gnulib conventions.
12092         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
12093         gl_PTHREAD_SIGMASK.
12094         * modules/pthread_sigmask (configure.ac): Update.
12095
12096 2011-07-07  Bruno Haible  <bruno@clisp.org>
12097
12098         pthread_sigmask: Make declaration C++ safe.
12099         * lib/signal.in.h: In two special conditions, just do an #include_next.
12100         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
12101         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
12102         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
12103         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
12104         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
12105         not REPLACE_PTHREAD_MASK.
12106         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
12107         not REPLACE_PTHREAD_MASK.
12108         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
12109
12110 2011-07-07  Bruno Haible  <bruno@clisp.org>
12111
12112         pthread_sigmask: Fix return value.
12113         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
12114         * lib/pthread_sigmask.c: New file.
12115         * modules/pthread_sigmask (Files): Add it.
12116         (configure.ac): Invoke AC_LIBOBJ.
12117
12118 2011-07-07  Eric Blake  <eblake@redhat.com>
12119
12120         getopt: more portable argv creation
12121         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
12122         const, use char arrays rather than strings.
12123         Suggested by Paul Eggert.
12124
12125 2011-07-07  Bruno Haible  <bruno@clisp.org>
12126
12127         Tests for module 'sigprocmask'.
12128         * modules/sigprocmask-tests: New file.
12129         * tests/test-sigprocmask.c: New file.
12130
12131 2011-07-07  Bruno Haible  <bruno@clisp.org>
12132
12133         float tests: Tweak.
12134         * tests/test-float.c (main): Tweak skip message.
12135
12136 2011-07-07  Eric Blake  <eblake@redhat.com>
12137
12138         getopt: avoid compiler warning during configure
12139         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
12140         assigning string literals to non-const pointer.
12141
12142         getopt-gnu: avoid crash in glibc getopt
12143         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
12144         * tests/test-getopt.h (test_getopt): Enhance test.
12145         * tests/test-getopt_long.h (test_getopt_long): Likewise.
12146         * doc/posix-functions/getopt.texi (getopt): Document it.
12147         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
12148         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12149         Likewise.
12150
12151 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
12152
12153         getopt: handle W; without long options in getopt [BZ #12922]
12154         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
12155         but no long options are defined, just return 'W'.
12156
12157 2011-07-07  Bruno Haible  <bruno@clisp.org>
12158
12159         Avoid literal tabs.
12160         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
12161         variable containing a tab instead of a literal tab.
12162         Reported by Jim Meyering.
12163
12164 2011-07-07  Bruno Haible  <bruno@clisp.org>
12165
12166         Comments.
12167         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
12168
12169 2011-07-06  Bruno Haible  <bruno@clisp.org>
12170
12171         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
12172         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
12173         <winsock2.h>.
12174         (rpl_fd_isset, FD_ISSET): New definitions, copied from
12175         lib/sys_socket.in.h.
12176         (close, gethostname): Hide declarations from <winsock2.h>.
12177         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
12178         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
12179         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
12180         (select): Don't override if gnulib's <sys/select.h> was already
12181         included.
12182         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
12183         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
12184         setsockopt, shutdown, select): Tweak indentation.
12185
12186 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12187
12188         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
12189         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
12190         in an application that does not use the sys_select module.
12191
12192 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
12193
12194         poll: do not return 0 on timeout=-1
12195         * lib/poll.c: Loop with yield if no events occured
12196
12197 2011-07-06  Eric Blake  <eblake@redhat.com>
12198
12199         pthread_sigmask: always replace when not using pthread
12200         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
12201         replacement when using some threading other than pthread.  Fix
12202         logic bug.
12203
12204 2011-07-06  Bruno Haible  <bruno@clisp.org>
12205
12206         Comments.
12207         * m4/printf.m4: Update comments about mingw.
12208
12209 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12210
12211         sys_select: define sigset_t more portably
12212         * lib/sys_select.in.h: Always include <sys/types.h>, since
12213         we now need sigset_t and mingw defines it there.
12214         Include <signal.h> before split inclusion guard, to avoid
12215         mishaps on Solaris, whose <signal.h> eventually includes us.
12216         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
12217         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
12218         which come from ...
12219         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
12220         gl_CHECK_TYPE_SIGSET_T.
12221         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
12222         does the real work.
12223         * modules/sys_select (Depends-on): Add 'signal'.
12224
12225         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
12226         Suggested by Bruno Haible.
12227
12228         pselect: Use pthread_sigmask, not sigprocmask.
12229         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
12230         multithreaded apps better than sigprocmask does.
12231         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
12232         sigprocmask directly.
12233
12234 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
12235
12236         * lib/pselect.c (pselect): Use plain name, without "rpl_".
12237         Don't #undef,  since we don't need any underlying pselect.
12238         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
12239         (Depends-on): Add select.
12240         (Link): Add $(LIBSOCKET).
12241         These changes suggested by Bruno Haible.
12242
12243         pselect: document better
12244         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12245         * doc/posix-functions/pselect.texi (pselect): Document new module.
12246
12247         pthread_sigmask: new module
12248         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12249         * doc/posix-functions/pthread_sigmask.texi: Document new module.
12250         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
12251         This is done only as a macro; I don't know how well that'll
12252         work for C++.  Move <sys/types.h> include before the include_next,
12253         to avoid mishap on Solaris.
12254         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
12255         * modules/signal (Makefile.am): Substitute the check's results.
12256         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
12257
12258         test-pselect: new module
12259         * modules/pselect-tests, tests/test-pselect.c: New files.
12260         * tests/test-select.c, tests/test-sys_select-c++.cc:
12261         If TEST_PSELECT is defined, test pselect instead of testing select.
12262
12263         * tests/test-sys_select.c (sigset_t): Test for it, too.
12264         Suggested by Bruno Haible.
12265
12266 2011-07-05  Eric Blake  <eblake@redhat.com>
12267
12268         snprintf: guarantee %1$d, for libintl
12269         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
12270         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
12271         * doc/posix-functions/snprintf.texi (snprintf): Update.
12272         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
12273         * tests/test-snprintf.c (main): Enhance test.
12274         * tests/test-vsnprintf.c (main): Likewise.
12275
12276 2011-07-05  Jim Meyering  <meyering@redhat.com>
12277
12278         maint: exempt stdio-read.c and stdio-write.c from the cppi check
12279         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
12280         per Bruno's request, to accommodate this idiom (no space after "#")
12281         even when the function is inside an #if block:
12282         char *
12283         gets (char *s)
12284         #undef gets
12285         {
12286           ...
12287         }
12288
12289 2011-07-04  Jim Meyering  <meyering@redhat.com>
12290
12291         maint: indent with spaces, not TABs, and add a rule to check this
12292         * tests/test-userspec.c: Indent with spaces, not TABs.
12293         * tests/test-argp.c: Likewise.
12294         * tests/test-c-stack2.sh: Likewise.
12295         * tests/test-parse-duration.sh: Likewise
12296         * m4/strtod.m4: Likewise.
12297         * m4/alloca.m4: Likewise.
12298         * m4/pselect.m4: Likewise.
12299         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
12300
12301 2011-07-03  Jim Meyering  <meyering@redhat.com>
12302
12303         maint.mk: correct omissions in prohibit_argmatch_without_use check
12304         This rule would mistakenly report that argmatch.h is included without
12305         use even when both the argmatch and invalid_arg macro were used.
12306         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
12307         of argmatch and invalid_arg.
12308
12309 2011-07-03  Bruno Haible  <bruno@clisp.org>
12310
12311         Comments about EINTR.
12312         * lib/safe-read.h: Explain the purpose of this module.
12313         * lib/safe-write.h: Likewise.
12314         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
12315         module.
12316         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
12317         module.
12318         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12319
12320 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
12321
12322         xnanosleep: Rewrite to use new dtotimespec module.
12323         It has the conversion code that used to be in xnanosleep.
12324         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
12325         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
12326         (TIME_T_MAX): Remove.
12327         (xnanosleep): Rewrite in terms of dtotimespec.
12328         * modules/xnanosleep (Depends-on): Add dtotimespec.
12329         Remove intprops, stdbool.
12330
12331         timespec-add, timespec-sub: new modules
12332         * lib/timespec.h (timespec_add, timespec_sub): New decls.
12333         * lib/timespec-add.c, lib/timespec-sub.c:
12334         * modules/timespec-add, modules/timespec-sub: New files.
12335
12336         dtotimespec: new module
12337         * lib/timespec.h (dtotimespec): New decl.
12338         * lib/dtotimespec.c, modules/dtotimespec: New files.
12339
12340         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
12341
12342         pselect: new module
12343         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
12344         (pselect): New decls.
12345         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
12346         since the standard pselect decl uses 'restrict'.
12347         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
12348         HAVE_PSELECT, REPLACE_PSELECT.
12349         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
12350         HAVE_PSELECT, REPLACE_PSELECT.
12351         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
12352
12353         sys_select: don't depend on sys_socket
12354         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
12355         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
12356         This fix works on GNU and GNU-like platforms, but has not been tested
12357         on native Windows.
12358         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
12359         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
12360         gl_HEADER_SYS_SOCKET.
12361         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
12362         gl_PREREQ_SYS_H_WINSOCK2.
12363
12364 2011-06-29  Eric Blake  <eblake@redhat.com>
12365
12366         pipe2: fix C89 compile problem
12367         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
12368         Reported by Bruno Haible.
12369
12370         pipe, pipe2: don't corrupt fd on error
12371         * lib/pipe.c (pipe): Leave fd unchanged on error.
12372         * lib/pipe2.c (pipe2): Likewise.
12373         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
12374         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
12375
12376 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
12377
12378         mmap-anon: do not use regular expressions inadvertently
12379         * m4/mmap-anon.m4: Remove trailing period from strings sought
12380         in the output.
12381
12382 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
12383
12384         nanosleep: fix integer overflow problem
12385         * lib/nanosleep.c (my_usleep): Don't assume signed integer
12386         arithmetic wraps around on overflow.
12387
12388         nanosleep: simplify carrying
12389         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
12390         first call to the underyling nanosleep, not for the last one.
12391         This doesn't fix any bugs, but it simplifies the computation of
12392         the remaining delay.  Found while auditing integer overflow issues.
12393
12394         dup2: remove test for existence of fcntl
12395         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
12396         "#if HAVE_FCNTL", in the configure-time test program.
12397         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
12398         and therefore speeds up "configure" a bit.  Found while
12399         adding the dup2 module to Emacs.
12400
12401 2011-06-24  Eric Blake  <eblake@redhat.com>
12402
12403         maint.mk: enhance useless header checks
12404         * top/maint.mk (_sc_header_without_use): Check both include
12405         styles.
12406         (sc_prohibit_assert_without_use)
12407         (sc_prohibit_close_stream_without_use)
12408         (sc_prohibit_getopt_without_use)
12409         (sc_prohibit_quotearg_without_use)
12410         (sc_prohibit_quote_without_use)
12411         (sc_prohibit_long_options_without_use)
12412         (sc_prohibit_inttostr_without_use)
12413         (sc_prohibit_ignore_value_without_use)
12414         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
12415         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
12416         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
12417         (sc_prohibit_hash_pjw_without_use)
12418         (sc_prohibit_safe_read_without_use)
12419         (sc_prohibit_argmatch_without_use)
12420         (sc_prohibit_canonicalize_without_use)
12421         (sc_prohibit_root_dev_ino_without_use)
12422         (sc_prohibit_openat_without_use)
12423         (sc_prohibit_c_ctype_without_use)
12424         (sc_prohibit_signal_without_use)
12425         (sc_prohibit_stdio--_without_use)
12426         (sc_prohibit_stdio-safer_without_use)
12427         (sc_prohibit_strings_without_use)
12428         (sc_prohibit_intprops_without_use)
12429         (sc_prohibit_stddef_without_use)
12430         (sc_prohibit_xfreopen_without_use): Update clients.
12431
12432 2011-06-24  Jim Meyering  <meyering@redhat.com>
12433
12434         syntax-check: keep one maint.mk rule in sync with its header
12435         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
12436         of the bug Eric has just fixed, with today's commit 25e4c2ec.
12437         I prefer to avoid temporary files here, so use <(...), but that
12438         is not supported by /bin/sh, so...
12439         (SHELL): Define to /bin/bash.
12440
12441 2011-06-24  Eric Blake  <eblake@redhat.com>
12442
12443         maint.mk: update sc_prohibit_intprops_without_use
12444         * top/maint.mk (_intprops_names): Match recent changes.
12445
12446 2011-06-24  Bruno Haible  <bruno@clisp.org>
12447
12448         strerror-override: No-op tweak.
12449         * lib/strerror-override.h (strerror_override): Reorder conditions,
12450         for consistency with lib/strerror-override.c.
12451
12452 2011-06-23  Eric Blake  <eblake@redhat.com>
12453
12454         maint.mk: test further PATH_MAX issues
12455         * top/maint.mk (sc_prohibit_path_max_array): Rename...
12456         (sc_prohibit_path_max_allocation): ...and also test alloca.
12457         Suggested by Jim Meyering.
12458
12459 2011-06-22  Eric Blake  <eblake@redhat.com>
12460
12461         maint.mk: add syntax-check to avoid char[PATH_MAX]
12462         * top/maint.mk (sc_prohibit_path_max_array): New rule.
12463
12464         stat: be robust to PATH_MAX definition
12465         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
12466         * modules/stat (Depends-on): Add verify.
12467
12468         link: work around IRIX bug
12469         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
12470         * lib/link.c (rpl_link): Work around it.
12471         * tests/test-link.h (test_link): Enhance test.
12472         * doc/posix-functions/link.texi (link): Document the bug.
12473
12474         getopt: silence clang warning
12475         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
12476         dereference.
12477         Reported by Gustavo Martin Domato.
12478
12479 2011-06-22  Jim Meyering  <meyering@redhat.com>
12480
12481         bootstrap: do not insert a blank line into each .gitignore file
12482         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
12483
12484 2011-06-21  Eric Blake  <eblake@redhat.com>
12485
12486         perror: test for output mismatch
12487         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
12488         perror on IRIX.
12489
12490         strerror_r: fix OpenBSD behavior on out-of-range
12491         * lib/strerror_r.c (strerror_r): Always use maximal string.
12492         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12493
12494         strerror_r: fix OpenBSD behavior on 0
12495         * lib/strerror-override.c (strerror_override): Also override 0
12496         when needed.
12497         * lib/strerror-override.h (strerror_override): Likewise.
12498         * lib/strerror.c (strerror): Simplify, now that 0 override is done
12499         earlier.
12500         * lib/strerror_r.c (strerror_r): Likewise.
12501         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
12502         behavior...
12503         (gl_FUNC_STRERROR_0): ...into new macro.
12504         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
12505         is overridden.
12506         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
12507         * modules/strerror-override (Files): Add strerror.m4.
12508         (configure.ac): Also provide override for 0 when needed.
12509         * doc/posix-functions/strerror.texi (strerror): Document this.
12510         * doc/posix-functions/perror.texi (perror): Likewise.
12511
12512         perror: adjust array size
12513         * modules/perror (Depends-on): Add strerror-override.
12514         * lib/perror.c (perror): Use it to avoid magic number.
12515
12516         strerror-override: reduce size
12517         * lib/strerror-override.c (strerror_override): Use fewer lines.
12518
12519 2011-06-20  Bruno Haible  <bruno@clisp.org>
12520
12521         pathmax: Ensure correct value for PATH_MAX on HP-UX.
12522         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
12523
12524 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
12525
12526         alloca: port to compilers that can optimize like GCC 4.6.0
12527         * lib/alloca.c (find_stack_direction): New signature, taken from
12528         Autoconf git.  This works with GCC 4.6.0.  This code should never
12529         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
12530         be used with other compilers that optimize as well as GCC 4.6.0 does.
12531         (alloca): Adjust to new signature.
12532         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
12533         New macro, which patches Autoconf in a similar way.
12534
12535         c-stack: stop worrying about stack direction
12536         * lib/c-stack.c (find_stack_direction): Remove.
12537         (segv_handler): Don't worry about stack direction growth, as it's
12538         too much of a pain to configure this correctly, given how compilers
12539         are optimizing-away our stack-growth detection code.  Instead, assume
12540         that any access to just before or just after the stack is OK.
12541         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
12542         Don't require AC_FUNC_ALLOCA; no longer needed.
12543
12544 2011-06-20  Eric Blake  <eblake@redhat.com>
12545
12546         test-stat: don't allocate PATH_MAX bytes
12547         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
12548         PATH_MAX-sized buffer.
12549         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
12550         * modules/stat-tests (Depends-on): Likewise.
12551         * tests/test-fstatat.c (includes): Drop pathmax.h.
12552         * tests/test-stat.c (includes): Likewise.
12553         Reported by Bruno Haible.
12554
12555 2011-06-20  Bruno Haible  <bruno@clisp.org>
12556
12557         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
12558         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
12559         * lib/float.c: New file.
12560         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
12561         REPLACE_FLOAT_LDBL.
12562         * modules/float (Files): Add lib/float.c.
12563         (configure.ac): Invoke AC_LIBOBJ.
12564         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
12565
12566 2011-06-20  Bruno Haible  <bruno@clisp.org>
12567
12568         Tests for module 'float'.
12569         * modules/float-tests: New file.
12570         * tests/test-float.c: New file.
12571
12572 2011-06-19  Bruno Haible  <bruno@clisp.org>
12573
12574         isinf: Coding style.
12575         * lib/isinf.c: Use GNU coding style.
12576
12577 2011-06-19  Bruno Haible  <bruno@clisp.org>
12578
12579         linkat test: Avoid test failure on AIX 7.1.
12580         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
12581         * tests/test-link.h (test_link): Likewise.
12582
12583 2011-06-19  Bruno Haible  <bruno@clisp.org>
12584
12585         pread test: Avoid test failure on OpenBSD 4.9.
12586         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
12587
12588 2011-06-19  Bruno Haible  <bruno@clisp.org>
12589
12590         sprintf-posix: Fix test failure on AIX 7.1.
12591         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
12592         * doc/posix-functions/dprintf.texi: Mention limited precision problem
12593         on AIX.
12594         * doc/posix-functions/fprintf.texi: Likewise.
12595         * doc/posix-functions/printf.texi: Likewise.
12596         * doc/posix-functions/snprintf.texi: Likewise.
12597         * doc/posix-functions/sprintf.texi: Likewise.
12598         * doc/posix-functions/vdprintf.texi: Likewise.
12599         * doc/posix-functions/vfprintf.texi: Likewise.
12600         * doc/posix-functions/vprintf.texi: Likewise.
12601         * doc/posix-functions/vsnprintf.texi: Likewise.
12602         * doc/posix-functions/vsprintf.texi: Likewise.
12603
12604 2011-06-19  Bruno Haible  <bruno@clisp.org>
12605
12606         roundl-ieee: Fix test failure on AIX 7.1.
12607         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
12608         * doc/posix-functions/roundl.texi: Mention problem with negative
12609         arguments.
12610
12611 2011-06-19  Bruno Haible  <bruno@clisp.org>
12612
12613         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12614         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
12615         * doc/posix-functions/round.texi: Mention problem with negative
12616         arguments.
12617         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
12618
12619 2011-06-19  Bruno Haible  <bruno@clisp.org>
12620
12621         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12622         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
12623         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
12624         * doc/posix-functions/roundf.texi: Mention problem with negative
12625         arguments.
12626         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
12627
12628 2011-06-19  Bruno Haible  <bruno@clisp.org>
12629
12630         ceilf-ieee: Work around bug on MacOS X 10.5.
12631         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
12632
12633         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
12634         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
12635         IEEE compliant, avoid compiler optimizations.
12636         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
12637         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12638         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
12639         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12640         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12641         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12642         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12643         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12644         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12645         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12646
12647 2011-06-19  Bruno Haible  <bruno@clisp.org>
12648
12649         ceilf-ieee: Work around bug on AIX 7.1.
12650         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
12651         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
12652
12653 2011-06-19  Bruno Haible  <bruno@clisp.org>
12654
12655         ceil-ieee: Work around bug on AIX 7.1.
12656         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
12657         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
12658
12659 2011-06-18  Bruno Haible  <bruno@clisp.org>
12660
12661         fsync test: Avoid test failure on MacOS X and AIX.
12662         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
12663         EINVAL.
12664
12665 2011-06-18  Bruno Haible  <bruno@clisp.org>
12666
12667         openat, fdopendir tests: Fix link errors.
12668         * modules/openat-tests (Depends-on): Add progname.
12669         * modules/fdopendir-tests (Depends-on): Likewise.
12670         * tests/test-fchownat.c: Include progname.h.
12671         (main): Call set_program_name.
12672         * tests/test-fstatat.c: Include progname.h.
12673         (main): Call set_program_name.
12674         * tests/test-mkdirat.c: Include progname.h.
12675         (main): Call set_program_name.
12676         * tests/test-openat.c: Include progname.h.
12677         (main): Call set_program_name.
12678         * tests/test-unlinkat.c: Include progname.h.
12679         (main): Call set_program_name.
12680         * tests/test-fdopendir.c: Include progname.h.
12681         (main): Call set_program_name.
12682
12683 2011-06-18  Bruno Haible  <bruno@clisp.org>
12684
12685         Doc update.
12686         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
12687         HP-UX.
12688         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
12689
12690 2011-06-18  Bruno Haible  <bruno@clisp.org>
12691
12692         getcwd tests: Avoid compilation error on HP-UX 11.31.
12693         * modules/getcwd-tests (Depends-on): Add pathmax.
12694         * tests/test-getcwd.c: Include pathmax.h.
12695
12696 2011-06-18  Bruno Haible  <bruno@clisp.org>
12697
12698         isfinite, isinf: Fix link error on AIX 6 and 7.
12699         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
12700         needed, also test the macro with a 'float' argument.
12701         * m4/isinf.m4 (gl_ISINF): Likewise.
12702
12703 2011-06-18  Bruno Haible  <bruno@clisp.org>
12704
12705         getloadavg: Don't clobber LIBS. Regression from previous commit.
12706         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
12707         AC_CHECK_LIB from here...
12708         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
12709         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
12710         gl_func_getloadavg_done.
12711         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12712
12713 2011-06-18  Bruno Haible  <bruno@clisp.org>
12714
12715         clean-temp: Improve documentation.
12716         * lib/clean-temp.h: Explain better how to use this module.
12717         Reported by John Darrington <john@darrington.wattle.id.au>.
12718
12719 2011-06-17  Bruno Haible  <bruno@clisp.org>
12720
12721         pread, pwrite: Avoid cc warning on AIX.
12722         * lib/unistd.in.h (pread): Undefine before defining as a macro.
12723         (pwrite): Likewise.
12724
12725 2011-06-17  Bruno Haible  <bruno@clisp.org>
12726
12727         spawn-pipe tests: Fix link error.
12728         * tests/test-spawn-pipe-child.c: Undefine fprintf.
12729         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12730
12731 2011-06-17  Bruno Haible  <bruno@clisp.org>
12732
12733         Tests: Remove unnecessary dependency.
12734         * modules/canonicalize-tests (Depends-on): Remove progname.
12735         * modules/chown-tests (Depends-on): Likewise.
12736         * modules/dirname-tests (Depends-on): Likewise.
12737         * modules/fdopendir-tests (Depends-on): Likewise.
12738         * modules/fdutimensat-tests (Depends-on): Likewise.
12739         * modules/hash-tests (Depends-on): Likewise.
12740         * modules/lchown-tests (Depends-on): Likewise.
12741         * modules/linkat-tests (Depends-on): Likewise.
12742         * modules/renameat-tests (Depends-on): Likewise.
12743         * modules/spawn-pipe-tests (Depends-on): Likewise.
12744         * modules/utimensat-tests (Depends-on): Likewise.
12745
12746 2011-06-17  Bruno Haible  <bruno@clisp.org>
12747
12748         spawn-pipe tests: Fix link error.
12749         * tests/test-spawn-pipe-child.c: Undefine fflush.
12750
12751 2011-06-17  Bruno Haible  <bruno@clisp.org>
12752
12753         Fix tests link errors.
12754         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
12755         * modules/chown-tests (Makefile.am): Don't link test-chown with
12756         LIBINTL.
12757         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
12758         LIBINTL.
12759         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
12760         LIBINTL.
12761         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
12762         LIBINTL.
12763
12764 2011-06-16  Bruno Haible  <bruno@clisp.org>
12765
12766         crypto/gc-sha1: Fix recent regression.
12767         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
12768         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
12769
12770         crypto/gc-md5: Fix recent regression.
12771         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
12772
12773         crypto/gc-md4: Fix recent regression.
12774         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
12775         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
12776
12777         crypto/gc-arctwo: Fix recent regression.
12778         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
12779         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
12780
12781         crypto/gc-rijndael: Fix recent regression.
12782         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
12783         (configure.ac): Invoke AC_LIBOBJ here.
12784         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
12785         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12786
12787         crypto/gc-hmac-sha1: Fix recent regression.
12788         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
12789         (configure.ac): Invoke AC_LIBOBJ here.
12790         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
12791         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12792
12793         crypto/gc-hmac-md5: Fix recent regression.
12794         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
12795         (configure.ac): Invoke AC_LIBOBJ here.
12796         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
12797         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12798
12799         crypto/gc-des: Fix recent regression.
12800         * modules/crypto/gc-des (Files): Remove m4/des.m4.
12801         (configure.ac): Invoke AC_LIBOBJ here.
12802         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
12803         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12804
12805         crypto/gc-arcfour: Fix recent regression.
12806         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
12807         (configure.ac): Invoke AC_LIBOBJ here.
12808         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
12809         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12810
12811 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
12812
12813         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
12814         After the 2011-05-21 change, this macro requires
12815         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
12816         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
12817
12818 2011-06-16  Bruno Haible  <bruno@clisp.org>
12819
12820         fprintftime: Move AC_LIBOBJ invocations to module description.
12821         * m4/fprintftime.m4: Remove file.
12822         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
12823         (configure.ac): Remove gl_FPRINTFTIME call.
12824         (Makefile.am): Augment lib_SOURCES.
12825         Reported by Jim Meyering.
12826
12827 2011-06-16  Bruno Haible  <bruno@clisp.org>
12828
12829         tmpfile-safer: Finish 2011-05-23 commit.
12830         * m4/stdio-safer.m4: Really remove file.
12831         Reported by Jim Meyering.
12832
12833 2011-06-16  Bruno Haible  <bruno@clisp.org>
12834
12835         syntax-check: Fix typo.
12836         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
12837         printf-posix.m4.
12838         Reported by Jim Meyering.
12839
12840 2011-06-13  Jim Meyering  <meyering@redhat.com>
12841
12842         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
12843         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
12844
12845 2011-05-23  Bruno Haible  <bruno@clisp.org>
12846
12847         yesno: Move AC_LIBOBJ invocations to module description.
12848         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
12849         * modules/yesno (Makefile.am): Augment lib_SOURCES.
12850
12851 2011-05-23  Bruno Haible  <bruno@clisp.org>
12852
12853         xstrtol: Move AC_LIBOBJ invocations to module description.
12854         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
12855         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
12856
12857 2011-05-23  Bruno Haible  <bruno@clisp.org>
12858
12859         xstrtold: Move AC_LIBOBJ invocations to module description.
12860         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
12861         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
12862
12863 2011-05-23  Bruno Haible  <bruno@clisp.org>
12864
12865         xstrtod: Move AC_LIBOBJ invocations to module description.
12866         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
12867         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
12868
12869 2011-05-23  Bruno Haible  <bruno@clisp.org>
12870
12871         xnanosleep: Move AC_LIBOBJ invocations to module description.
12872         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
12873         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
12874
12875 2011-05-23  Bruno Haible  <bruno@clisp.org>
12876
12877         xgetcwd: Move AC_LIBOBJ invocations to module description.
12878         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
12879         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
12880
12881 2011-05-23  Bruno Haible  <bruno@clisp.org>
12882
12883         xalloc: Move AC_LIBOBJ invocations to module description.
12884         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
12885         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
12886
12887 2011-05-23  Bruno Haible  <bruno@clisp.org>
12888
12889         write-any-file: Move AC_LIBOBJ invocations to module description.
12890         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
12891         invocation.
12892         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
12893
12894 2011-05-23  Bruno Haible  <bruno@clisp.org>
12895
12896         utimens: Move AC_LIBOBJ invocations to module description.
12897         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
12898         * modules/utimens (Makefile.am): Augment lib_SOURCES.
12899
12900 2011-05-23  Bruno Haible  <bruno@clisp.org>
12901
12902         utimecmp: Move AC_LIBOBJ invocations to module description.
12903         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
12904         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
12905
12906 2011-05-23  Bruno Haible  <bruno@clisp.org>
12907
12908         userspec: Move AC_LIBOBJ invocations to module description.
12909         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
12910         * modules/userspec (Makefile.am): Augment lib_SOURCES.
12911
12912 2011-05-23  Bruno Haible  <bruno@clisp.org>
12913
12914         unlinkdir: Move AC_LIBOBJ invocations to module description.
12915         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
12916         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
12917
12918 2011-05-23  Bruno Haible  <bruno@clisp.org>
12919
12920         unistd-safer: Move AC_LIBOBJ invocations to module description.
12921         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
12922         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
12923
12924 2011-05-23  Bruno Haible  <bruno@clisp.org>
12925
12926         tempname: Move AC_LIBOBJ invocations to module description.
12927         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
12928         * modules/tempname (Makefile.am): Augment lib_SOURCES.
12929
12930 2011-05-23  Bruno Haible  <bruno@clisp.org>
12931
12932         strftime: Move AC_LIBOBJ invocations to module description.
12933         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
12934         * modules/strftime (Makefile.am): Augment lib_SOURCES.
12935
12936 2011-05-23  Bruno Haible  <bruno@clisp.org>
12937
12938         stdlib-safer: Move AC_LIBOBJ invocations to module description.
12939         * m4/stdlib-safer.m4: Remove file.
12940         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
12941         (configure.ac): Remove gl_STDLIB_SAFER call.
12942         (Makefile.am): Augment lib_SOURCES.
12943
12944 2011-05-23  Bruno Haible  <bruno@clisp.org>
12945
12946         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
12947         * m4/stdio-safer.m4: Remove file.
12948         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
12949         (configure.ac): Remove gl_TMPFILE_SAFER call.
12950         (Makefile.am): Augment lib_SOURCES.
12951
12952 2011-05-23  Bruno Haible  <bruno@clisp.org>
12953
12954         popen-safer: Move AC_LIBOBJ invocations to module description.
12955         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
12956         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
12957         (configure.ac): Remove gl_POPEN_SAFER call.
12958         (Makefile.am): Augment lib_SOURCES.
12959
12960 2011-05-23  Bruno Haible  <bruno@clisp.org>
12961
12962         freopen-safer: Move AC_LIBOBJ invocations to module description.
12963         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
12964         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
12965         (configure.ac): Remove gl_FREOPEN_SAFER call.
12966         (Makefile.am): Augment lib_SOURCES.
12967
12968 2011-05-23  Bruno Haible  <bruno@clisp.org>
12969
12970         fopen-safer: Move AC_LIBOBJ invocations to module description.
12971         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
12972         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
12973         (configure.ac): Remove gl_FOPEN_SAFER call.
12974         (Makefile.am): Augment lib_SOURCES.
12975
12976 2011-05-23  Bruno Haible  <bruno@clisp.org>
12977
12978         crypto/sha512: Move AC_LIBOBJ invocations to module description.
12979         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
12980         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
12981
12982 2011-05-23  Bruno Haible  <bruno@clisp.org>
12983
12984         crypto/sha256: Move AC_LIBOBJ invocations to module description.
12985         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
12986         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
12987
12988 2011-05-23  Bruno Haible  <bruno@clisp.org>
12989
12990         crypto/sha1: Move AC_LIBOBJ invocations to module description.
12991         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
12992         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
12993
12994 2011-05-23  Bruno Haible  <bruno@clisp.org>
12995
12996         settime: Move AC_LIBOBJ invocations to module description.
12997         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
12998         * modules/settime (Makefile.am): Augment lib_SOURCES.
12999
13000 2011-05-23  Bruno Haible  <bruno@clisp.org>
13001
13002         savedir: Move AC_LIBOBJ invocations to module description.
13003         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
13004         * modules/savedir (Makefile.am): Augment lib_SOURCES.
13005
13006 2011-05-23  Bruno Haible  <bruno@clisp.org>
13007
13008         save-cwd: Move AC_LIBOBJ invocations to module description.
13009         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
13010         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
13011
13012 2011-05-23  Bruno Haible  <bruno@clisp.org>
13013
13014         same: Move AC_LIBOBJ invocations to module description.
13015         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
13016         * modules/same (Makefile.am): Augment lib_SOURCES.
13017
13018 2011-05-23  Bruno Haible  <bruno@clisp.org>
13019
13020         safe-write: Move AC_LIBOBJ invocations to module description.
13021         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
13022         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
13023         instead of gl_SAFE_WRITE.
13024         (Makefile.am): Augment lib_SOURCES.
13025
13026 2011-05-23  Bruno Haible  <bruno@clisp.org>
13027
13028         safe-read: Move AC_LIBOBJ invocations to module description.
13029         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
13030         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
13031         of gl_SAFE_READ.
13032         (Makefile.am): Augment lib_SOURCES.
13033
13034 2011-05-23  Bruno Haible  <bruno@clisp.org>
13035
13036         safe-alloc: Move AC_LIBOBJ invocations to module description.
13037         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
13038         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
13039
13040 2011-05-23  Bruno Haible  <bruno@clisp.org>
13041
13042         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
13043         * m4/rijndael.m4: Remove file.
13044         * modules/crypto/rijndael (Files): Remove it.
13045         (configure.ac): Remove gl_RIJNDAEL call.
13046         (Makefile.am): Augment lib_SOURCES.
13047
13048 2011-05-23  Bruno Haible  <bruno@clisp.org>
13049
13050         readtokens: Move AC_LIBOBJ invocations to module description.
13051         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
13052         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
13053
13054 2011-05-23  Bruno Haible  <bruno@clisp.org>
13055
13056         read-file: Move AC_LIBOBJ invocations to module description.
13057         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
13058         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
13059         of gl_FUNC_READ_FILE.
13060         (Makefile.am): Augment lib_SOURCES.
13061
13062 2011-05-23  Bruno Haible  <bruno@clisp.org>
13063
13064         quotearg: Move AC_LIBOBJ invocations to module description.
13065         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
13066         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
13067
13068 2011-05-23  Bruno Haible  <bruno@clisp.org>
13069
13070         quote: Move AC_LIBOBJ invocations to module description.
13071         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
13072         * modules/quote (Makefile.am): Augment lib_SOURCES.
13073
13074 2011-05-23  Bruno Haible  <bruno@clisp.org>
13075
13076         posixver: Move AC_LIBOBJ invocations to module description.
13077         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
13078         * modules/posixver (Makefile.am): Augment lib_SOURCES.
13079
13080 2011-05-23  Bruno Haible  <bruno@clisp.org>
13081
13082         posixtm: Move AC_LIBOBJ invocations to module description.
13083         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
13084         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
13085
13086 2011-05-23  Bruno Haible  <bruno@clisp.org>
13087
13088         physmem: Move AC_LIBOBJ invocations to module description.
13089         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
13090         * modules/physmem (Makefile.am): Augment lib_SOURCES.
13091
13092 2011-05-23  Bruno Haible  <bruno@clisp.org>
13093
13094         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
13095         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
13096         invocation.
13097         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
13098
13099 2011-05-23  Bruno Haible  <bruno@clisp.org>
13100
13101         mpsort: Move AC_LIBOBJ invocations to module description.
13102         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
13103         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
13104
13105 2011-05-23  Bruno Haible  <bruno@clisp.org>
13106
13107         modechange: Move AC_LIBOBJ invocations to module description.
13108         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
13109         * modules/modechange (Makefile.am): Augment lib_SOURCES.
13110
13111 2011-05-23  Bruno Haible  <bruno@clisp.org>
13112
13113         mkdir-p: Move AC_LIBOBJ invocations to module description.
13114         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
13115         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
13116
13117 2011-05-23  Bruno Haible  <bruno@clisp.org>
13118
13119         mkancesdirs: Move AC_LIBOBJ invocations to module description.
13120         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
13121         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
13122
13123 2011-05-23  Bruno Haible  <bruno@clisp.org>
13124
13125         mgetgroups: Move AC_LIBOBJ invocations to module description.
13126         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
13127         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
13128
13129 2011-05-23  Bruno Haible  <bruno@clisp.org>
13130
13131         memxor: Move AC_LIBOBJ invocations to module description.
13132         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
13133         * modules/memxor (Makefile.am): Augment lib_SOURCES.
13134
13135 2011-05-23  Bruno Haible  <bruno@clisp.org>
13136
13137         memcoll: Move AC_LIBOBJ invocations to module description.
13138         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
13139         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
13140
13141 2011-05-23  Bruno Haible  <bruno@clisp.org>
13142
13143         memcasecmp: Move AC_LIBOBJ invocations to module description.
13144         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
13145         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
13146
13147 2011-05-23  Bruno Haible  <bruno@clisp.org>
13148
13149         crypto/md5: Move AC_LIBOBJ invocations to module description.
13150         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
13151         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
13152
13153 2011-05-23  Bruno Haible  <bruno@clisp.org>
13154
13155         crypto/md4: Move AC_LIBOBJ invocations to module description.
13156         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
13157         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
13158
13159 2011-05-23  Bruno Haible  <bruno@clisp.org>
13160
13161         crypto/md2: Move AC_LIBOBJ invocations to module description.
13162         * m4/md2.m4: Remove file.
13163         * modules/crypto/md2 (Files): Remove it.
13164         (configure.ac): Remove gl_MD2 call.
13165         (Makefile.am): Augment lib_SOURCES.
13166
13167 2011-05-23  Bruno Haible  <bruno@clisp.org>
13168
13169         long-options: Move AC_LIBOBJ invocations to module description.
13170         * m4/long-options.m4: Remove file.
13171         * modules/long-options (Files): Remove it.
13172         (configure.ac): Remove gl_LONG_OPTIONS call.
13173         (Makefile.am): Augment lib_SOURCES.
13174
13175 2011-05-23  Bruno Haible  <bruno@clisp.org>
13176
13177         i-ring: Move AC_LIBOBJ invocations to module description.
13178         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
13179         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
13180
13181 2011-05-23  Bruno Haible  <bruno@clisp.org>
13182
13183         idcache: Move AC_LIBOBJ invocations to module description.
13184         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
13185         * modules/idcache (Makefile.am): Augment lib_SOURCES.
13186
13187 2011-05-23  Bruno Haible  <bruno@clisp.org>
13188
13189         human: Move AC_LIBOBJ invocations to module description.
13190         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
13191         * modules/human (Makefile.am): Augment lib_SOURCES.
13192
13193 2011-05-23  Bruno Haible  <bruno@clisp.org>
13194
13195         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
13196         * m4/hmac-sha1.m4: Remove file.
13197         * modules/crypto/hmac-sha1 (Files): Remove it.
13198         (configure.ac): Remove gl_HMAC_SHA1 call.
13199         (Makefile.am): Augment lib_SOURCES.
13200
13201 2011-05-23  Bruno Haible  <bruno@clisp.org>
13202
13203         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
13204         * m4/hmac-md5.m4: Remove file.
13205         * modules/crypto/hmac-md5 (Files): Remove it.
13206         (configure.ac): Remove gl_HMAC_MD5 call.
13207         (Makefile.am): Augment lib_SOURCES.
13208
13209 2011-05-23  Bruno Haible  <bruno@clisp.org>
13210
13211         hash: Move AC_LIBOBJ invocations to module description.
13212         * m4/hash.m4: Remove file.
13213         * modules/hash (Files): Remove it.
13214         (configure.ac): Remove gl_HASH call.
13215         (Makefile.am): Augment lib_SOURCES.
13216
13217 2011-05-23  Bruno Haible  <bruno@clisp.org>
13218
13219         hard-locale: Move AC_LIBOBJ invocations to module description.
13220         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
13221         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
13222
13223 2011-05-23  Bruno Haible  <bruno@clisp.org>
13224
13225         getugroups: Move AC_LIBOBJ invocations to module description.
13226         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
13227         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
13228
13229 2011-05-23  Bruno Haible  <bruno@clisp.org>
13230
13231         gettime: Move AC_LIBOBJ invocations to module description.
13232         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
13233         * modules/gettime (Makefile.am): Augment lib_SOURCES.
13234
13235 2011-05-23  Bruno Haible  <bruno@clisp.org>
13236
13237         getndelim2: Move AC_LIBOBJ invocations to module description.
13238         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
13239         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
13240
13241 2011-05-23  Bruno Haible  <bruno@clisp.org>
13242
13243         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
13244         * m4/gc-pbkdf2-sha1.m4: Remove file.
13245         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
13246         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
13247         (Makefile.am): Augment lib_SOURCES.
13248
13249 2011-05-23  Bruno Haible  <bruno@clisp.org>
13250
13251         fts: Move AC_LIBOBJ invocations to module description.
13252         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
13253         * modules/fts (configure.ac): ... to here.
13254
13255 2011-05-23  Bruno Haible  <bruno@clisp.org>
13256
13257         file-type: Move AC_LIBOBJ invocations to module description.
13258         * m4/file-type.m4: Remove file.
13259         * modules/file-type (Files): Remove it.
13260         (configure.ac): Remove gl_FILE_TYPE call.
13261         (Makefile.am): Augment lib_SOURCES.
13262
13263 2011-05-23  Bruno Haible  <bruno@clisp.org>
13264
13265         filenamecat*: Respect rules for use of AC_LIBOBJ.
13266         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
13267         Remove AC_LIBOBJ invocation.
13268         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
13269         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
13270
13271 2011-05-23  Bruno Haible  <bruno@clisp.org>
13272
13273         filemode: Move AC_LIBOBJ invocations to module description.
13274         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
13275         * modules/filemode (Makefile.am): Augment lib_SOURCES.
13276
13277 2011-05-23  Bruno Haible  <bruno@clisp.org>
13278
13279         openat-safer: Move AC_LIBOBJ invocations to module description.
13280         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
13281         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
13282
13283 2011-05-23  Bruno Haible  <bruno@clisp.org>
13284
13285         fcntl-safer: Move AC_LIBOBJ invocations to module description.
13286         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
13287         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
13288
13289 2011-05-23  Bruno Haible  <bruno@clisp.org>
13290
13291         exclude: Move AC_LIBOBJ invocations to module description.
13292         * m4/exclude.m4: Remove file.
13293         * modules/exclude (Files): Remove it.
13294         (configure.ac): Remove gl_EXCLUDE call.
13295         (Makefile.am): Augment lib_SOURCES.
13296
13297 2011-05-23  Bruno Haible  <bruno@clisp.org>
13298
13299         dirname*: Respect rules for use of AC_LIBOBJ.
13300         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
13301         invocations.
13302         * modules/dirname (Makefile.am): Augment lib_SOURCES.
13303         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
13304
13305 2011-05-23  Bruno Haible  <bruno@clisp.org>
13306
13307         dirent-safer: Move AC_LIBOBJ invocations to module description.
13308         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
13309         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
13310
13311 2011-05-23  Bruno Haible  <bruno@clisp.org>
13312
13313         crypto/des: Move AC_LIBOBJ invocations to module description.
13314         * m4/des.m4: Remove file.
13315         * modules/crypto/des (Files): Remove it.
13316         (configure.ac): Remove gl_DES call.
13317         (Makefile.am): Augment lib_SOURCES.
13318
13319 2011-05-23  Bruno Haible  <bruno@clisp.org>
13320
13321         cycle-check: Move AC_LIBOBJ invocations to module description.
13322         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
13323         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
13324
13325 2011-05-23  Bruno Haible  <bruno@clisp.org>
13326
13327         c-strtold: Move AC_LIBOBJ invocations to module description.
13328         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
13329         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
13330
13331 2011-05-23  Bruno Haible  <bruno@clisp.org>
13332
13333         c-strtod: Move AC_LIBOBJ invocations to module description.
13334         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
13335         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
13336
13337 2011-05-23  Bruno Haible  <bruno@clisp.org>
13338
13339         crc: Move AC_LIBOBJ invocations to module description.
13340         * m4/crc.m4: Remove file.
13341         * modules/crc (Files): Remove it.
13342         (configure.ac): Remove gl_CRC call.
13343         (Makefile.am): Augment lib_SOURCES.
13344
13345 2011-05-23  Bruno Haible  <bruno@clisp.org>
13346
13347         close-stream: Move AC_LIBOBJ invocations to module description.
13348         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
13349         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
13350
13351 2011-05-23  Bruno Haible  <bruno@clisp.org>
13352
13353         closeout: Move AC_LIBOBJ invocations to module description.
13354         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
13355         * modules/closeout (Makefile.am): Augment lib_SOURCES.
13356
13357 2011-05-23  Bruno Haible  <bruno@clisp.org>
13358
13359         closein: Move AC_LIBOBJ invocations to module description.
13360         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
13361         * modules/closein (Makefile.am): Augment lib_SOURCES.
13362
13363 2011-05-23  Bruno Haible  <bruno@clisp.org>
13364
13365         cloexec: Move AC_LIBOBJ invocations to module description.
13366         * m4/cloexec.m4: Remove file.
13367         * modules/cloexec (Files): Remove it.
13368         (configure.ac): Remove gl_CLOEXEC call.
13369         (Makefile.am): Augment lib_SOURCES.
13370
13371 2011-05-23  Bruno Haible  <bruno@clisp.org>
13372
13373         check-version: Move AC_LIBOBJ invocations to module description.
13374         * m4/check-version.m4: Remove file.
13375         * modules/check-version (Files): Remove it.
13376         (configure.ac): Remove gl_CHECK_VERSION call.
13377         (Makefile.am): Augment lib_SOURCES.
13378
13379 2011-05-23  Bruno Haible  <bruno@clisp.org>
13380
13381         chdir-safer: Move AC_LIBOBJ invocations to module description.
13382         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
13383         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
13384
13385 2011-05-23  Bruno Haible  <bruno@clisp.org>
13386
13387         canonicalize: Move AC_LIBOBJ invocations to module description.
13388         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
13389         AC_LIBOBJ invocation.
13390         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
13391
13392 2011-05-23  Bruno Haible  <bruno@clisp.org>
13393
13394         canon-host: Move AC_LIBOBJ invocations to module description.
13395         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
13396         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
13397         instead of gl_CANON_HOST.
13398         (Makefile.am): Augment lib_SOURCES.
13399
13400 2011-05-23  Bruno Haible  <bruno@clisp.org>
13401
13402         backupfile: Move AC_LIBOBJ invocations to module description.
13403         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
13404         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
13405
13406 2011-05-23  Bruno Haible  <bruno@clisp.org>
13407
13408         argmatch: Move AC_LIBOBJ invocations to module description.
13409         * m4/argmatch.m4: Remove file.
13410         * modules/argmatch (Files): Remove it.
13411         (configure.ac): Remove gl_ARGMATCH call.
13412         (Makefile.am): Augment lib_SOURCES.
13413
13414 2011-05-23  Bruno Haible  <bruno@clisp.org>
13415
13416         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
13417         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
13418         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
13419
13420 2011-05-23  Bruno Haible  <bruno@clisp.org>
13421
13422         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
13423         * m4/arcfour.m4: Remove file.
13424         * modules/crypto/arcfour (Files): Remove it.
13425         (configure.ac): Remove gl_ARCFOUR call.
13426         (Makefile.am): Augment lib_SOURCES.
13427
13428 2011-05-22  Bruno Haible  <bruno@clisp.org>
13429
13430         write: Move AC_LIBOBJ invocations to module description.
13431         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
13432         * modules/write (configure.ac): ... to here.
13433
13434 2011-05-22  Bruno Haible  <bruno@clisp.org>
13435
13436         wmemset: Move AC_LIBOBJ invocations to module description.
13437         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
13438         here...
13439         * modules/wmemset (configure.ac): ... to here.
13440
13441 2011-05-22  Bruno Haible  <bruno@clisp.org>
13442
13443         wmemmove: Move AC_LIBOBJ invocations to module description.
13444         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
13445         here...
13446         * modules/wmemmove (configure.ac): ... to here.
13447
13448 2011-05-22  Bruno Haible  <bruno@clisp.org>
13449
13450         wmemcpy: Move AC_LIBOBJ invocations to module description.
13451         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
13452         here...
13453         * modules/wmemcpy (configure.ac): ... to here.
13454
13455 2011-05-22  Bruno Haible  <bruno@clisp.org>
13456
13457         wmemcmp: Move AC_LIBOBJ invocations to module description.
13458         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
13459         here...
13460         * modules/wmemcmp (configure.ac): ... to here.
13461
13462 2011-05-22  Bruno Haible  <bruno@clisp.org>
13463
13464         wmemchr: Move AC_LIBOBJ invocations to module description.
13465         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
13466         here...
13467         * modules/wmemchr (configure.ac): ... to here.
13468
13469 2011-05-22  Bruno Haible  <bruno@clisp.org>
13470
13471         wcswidth: Move AC_LIBOBJ invocations to module description.
13472         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
13473         here...
13474         * modules/wcswidth (configure.ac): ... to here.
13475
13476 2011-05-22  Bruno Haible  <bruno@clisp.org>
13477
13478         wcwidth: Respect rules for use of AC_LIBOBJ.
13479         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
13480         invocation from here...
13481         * modules/wcwidth (configure.ac): ... to here.
13482         (Depends-on): Update conditions.
13483
13484 2011-05-22  Bruno Haible  <bruno@clisp.org>
13485
13486         wctype: Move AC_LIBOBJ invocations to module description.
13487         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
13488         invocation from here...
13489         * modules/wctype (configure.ac): ... to here.
13490         (Depends-on): Update conditions.
13491
13492 2011-05-22  Bruno Haible  <bruno@clisp.org>
13493
13494         wctrans: Move AC_LIBOBJ invocations to module description.
13495         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
13496         invocation from here...
13497         * modules/wctrans (configure.ac): ... to here.
13498
13499 2011-05-22  Bruno Haible  <bruno@clisp.org>
13500
13501         wctomb: Move AC_LIBOBJ invocations to module description.
13502         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
13503         invocations from here...
13504         * modules/wctomb (configure.ac): ... to here.
13505
13506 2011-05-22  Bruno Haible  <bruno@clisp.org>
13507
13508         wctob: Move AC_LIBOBJ invocations to module description.
13509         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
13510         gl_PREREQ_WCTOB invocations from here...
13511         * modules/wctob (configure.ac): ... to here.
13512         (Depends-on): Update conditions.
13513
13514 2011-05-22  Bruno Haible  <bruno@clisp.org>
13515
13516         wcsxfrm: Move AC_LIBOBJ invocations to module description.
13517         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
13518         here...
13519         * modules/wcsxfrm (configure.ac): ... to here.
13520
13521 2011-05-22  Bruno Haible  <bruno@clisp.org>
13522
13523         wcstok: Move AC_LIBOBJ invocations to module description.
13524         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
13525         * modules/wcstok (configure.ac): ... to here.
13526
13527 2011-05-22  Bruno Haible  <bruno@clisp.org>
13528
13529         wcsstr: Move AC_LIBOBJ invocations to module description.
13530         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
13531         * modules/wcsstr (configure.ac): ... to here.
13532
13533 2011-05-22  Bruno Haible  <bruno@clisp.org>
13534
13535         wcsspn: Move AC_LIBOBJ invocations to module description.
13536         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
13537         * modules/wcsspn (configure.ac): ... to here.
13538
13539 2011-05-22  Bruno Haible  <bruno@clisp.org>
13540
13541         wcsrtombs: Move AC_LIBOBJ invocations to module description.
13542         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
13543         gl_PREREQ_WCSRTOMBS invocations from here...
13544         * modules/wcsrtombs (configure.ac): ... to here.
13545
13546 2011-05-22  Bruno Haible  <bruno@clisp.org>
13547
13548         wcsrchr: Move AC_LIBOBJ invocations to module description.
13549         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
13550         here...
13551         * modules/wcsrchr (configure.ac): ... to here.
13552
13553 2011-05-22  Bruno Haible  <bruno@clisp.org>
13554
13555         wcspbrk: Move AC_LIBOBJ invocations to module description.
13556         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
13557         here...
13558         * modules/wcspbrk (configure.ac): ... to here.
13559
13560 2011-05-22  Bruno Haible  <bruno@clisp.org>
13561
13562         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
13563         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
13564         gl_PREREQ_WCSNRTOMBS invocations from here...
13565         * modules/wcsnrtombs (configure.ac): ... to here.
13566
13567 2011-05-22  Bruno Haible  <bruno@clisp.org>
13568
13569         wcsnlen: Move AC_LIBOBJ invocations to module description.
13570         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
13571         here...
13572         * modules/wcsnlen (configure.ac): ... to here.
13573
13574 2011-05-22  Bruno Haible  <bruno@clisp.org>
13575
13576         wcsncpy: Move AC_LIBOBJ invocations to module description.
13577         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
13578         here...
13579         * modules/wcsncpy (configure.ac): ... to here.
13580
13581 2011-05-22  Bruno Haible  <bruno@clisp.org>
13582
13583         wcsncmp: Move AC_LIBOBJ invocations to module description.
13584         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
13585         here...
13586         * modules/wcsncmp (configure.ac): ... to here.
13587
13588 2011-05-22  Bruno Haible  <bruno@clisp.org>
13589
13590         wcsncat: Move AC_LIBOBJ invocations to module description.
13591         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
13592         here...
13593         * modules/wcsncat (configure.ac): ... to here.
13594
13595 2011-05-22  Bruno Haible  <bruno@clisp.org>
13596
13597         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
13598         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
13599         from here...
13600         * modules/wcsncasecmp (configure.ac): ... to here.
13601
13602 2011-05-22  Bruno Haible  <bruno@clisp.org>
13603
13604         wcslen: Move AC_LIBOBJ invocations to module description.
13605         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
13606         * modules/wcslen (configure.ac): ... to here.
13607
13608 2011-05-22  Bruno Haible  <bruno@clisp.org>
13609
13610         wcsdup: Move AC_LIBOBJ invocations to module description.
13611         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
13612         * modules/wcsdup (configure.ac): ... to here.
13613
13614 2011-05-22  Bruno Haible  <bruno@clisp.org>
13615
13616         wcscspn: Move AC_LIBOBJ invocations to module description.
13617         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
13618         here...
13619         * modules/wcscspn (configure.ac): ... to here.
13620
13621 2011-05-22  Bruno Haible  <bruno@clisp.org>
13622
13623         wcscpy: Move AC_LIBOBJ invocations to module description.
13624         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
13625         * modules/wcscpy (configure.ac): ... to here.
13626
13627 2011-05-22  Bruno Haible  <bruno@clisp.org>
13628
13629         wcscoll: Move AC_LIBOBJ invocations to module description.
13630         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
13631         here...
13632         * modules/wcscoll (configure.ac): ... to here.
13633
13634 2011-05-22  Bruno Haible  <bruno@clisp.org>
13635
13636         wcscmp: Move AC_LIBOBJ invocations to module description.
13637         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
13638         * modules/wcscmp (configure.ac): ... to here.
13639
13640 2011-05-22  Bruno Haible  <bruno@clisp.org>
13641
13642         wcschr: Move AC_LIBOBJ invocations to module description.
13643         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
13644         * modules/wcschr (configure.ac): ... to here.
13645
13646 2011-05-22  Bruno Haible  <bruno@clisp.org>
13647
13648         wcscat: Move AC_LIBOBJ invocations to module description.
13649         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
13650         * modules/wcscat (configure.ac): ... to here.
13651
13652 2011-05-22  Bruno Haible  <bruno@clisp.org>
13653
13654         wcscasecmp: Move AC_LIBOBJ invocations to module description.
13655         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
13656         here...
13657         * modules/wcscasecmp (configure.ac): ... to here.
13658
13659 2011-05-22  Bruno Haible  <bruno@clisp.org>
13660
13661         wcrtomb: Move AC_LIBOBJ invocations to module description.
13662         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
13663         invocations from here...
13664         * modules/wcrtomb (configure.ac): ... to here.
13665
13666 2011-05-22  Bruno Haible  <bruno@clisp.org>
13667
13668         wcpncpy: Move AC_LIBOBJ invocations to module description.
13669         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
13670         here...
13671         * modules/wcpncpy (configure.ac): ... to here.
13672
13673 2011-05-22  Bruno Haible  <bruno@clisp.org>
13674
13675         wcpcpy: Move AC_LIBOBJ invocations to module description.
13676         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
13677         * modules/wcpcpy (configure.ac): ... to here.
13678
13679 2011-05-22  Bruno Haible  <bruno@clisp.org>
13680
13681         waitpid: Move AC_LIBOBJ invocations to module description.
13682         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
13683         invocation from here...
13684         * modules/waitpid (configure.ac): ... to here.
13685
13686 2011-05-22  Bruno Haible  <bruno@clisp.org>
13687
13688         utimensat: Move AC_LIBOBJ invocations to module description.
13689         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
13690         here...
13691         * modules/utimensat (configure.ac): ... to here.
13692
13693 2011-05-22  Bruno Haible  <bruno@clisp.org>
13694
13695         usleep: Move AC_LIBOBJ invocations to module description.
13696         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
13697         here...
13698         * modules/usleep (configure.ac): ... to here.
13699
13700 2011-05-22  Bruno Haible  <bruno@clisp.org>
13701
13702         unlockpt: Move AC_LIBOBJ invocations to module description.
13703         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
13704         gl_PREREQ_UNLOCKPT invocations from here...
13705         * modules/unlockpt (configure.ac): ... to here.
13706
13707 2011-05-22  Bruno Haible  <bruno@clisp.org>
13708
13709         unlink: Respect rules for use of AC_LIBOBJ.
13710         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
13711         * modules/unlink (configure.ac): ... to here.
13712
13713 2011-05-22  Bruno Haible  <bruno@clisp.org>
13714
13715         uname: Move AC_LIBOBJ invocations to module description.
13716         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
13717         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
13718         here...
13719         * modules/uname (configure.ac): ... to here.
13720
13721 2011-05-22  Bruno Haible  <bruno@clisp.org>
13722
13723         ttyname_r: Move AC_LIBOBJ invocations to module description.
13724         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
13725         gl_PREREQ_TTYNAME_R invocations from here...
13726         * modules/ttyname_r (configure.ac): ... to here.
13727
13728 2011-05-22  Bruno Haible  <bruno@clisp.org>
13729
13730         tsearch: Move AC_LIBOBJ invocations to module description.
13731         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
13732         invocations from here...
13733         * modules/tsearch (configure.ac): ... to here.
13734
13735 2011-05-22  Bruno Haible  <bruno@clisp.org>
13736
13737         towctrans: Move AC_LIBOBJ invocations to module description.
13738         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
13739         AC_LIBOBJ invocation from here...
13740         * modules/towctrans (configure.ac): ... to here.
13741
13742 2011-05-22  Bruno Haible  <bruno@clisp.org>
13743
13744         tmpfile: Move AC_LIBOBJ invocations to module description.
13745         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
13746         invocations from here...
13747         * modules/tmpfile (configure.ac): ... to here.
13748
13749 2011-05-22  Bruno Haible  <bruno@clisp.org>
13750
13751         times: Move AC_LIBOBJ invocations to module description.
13752         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
13753         * modules/times (configure.ac): ... to here.
13754
13755 2011-05-22  Bruno Haible  <bruno@clisp.org>
13756
13757         time_r: Move AC_LIBOBJ invocations to module description.
13758         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
13759         invocations from here...
13760         * modules/time_r (configure.ac): ... to here.
13761
13762 2011-05-22  Bruno Haible  <bruno@clisp.org>
13763
13764         timegm: Move AC_LIBOBJ invocations to module description.
13765         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
13766         invocations from here...
13767         * modules/timegm (configure.ac): ... to here.
13768
13769 2011-05-22  Bruno Haible  <bruno@clisp.org>
13770
13771         tcgetsid: Move AC_LIBOBJ invocations to module description.
13772         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
13773         and gl_PREREQ_TCGETSID invocations from here...
13774         * modules/tcgetsid (configure.ac): ... to here.
13775         (Depends-on): Update conditions.
13776
13777 2011-05-22  Bruno Haible  <bruno@clisp.org>
13778
13779         symlinkat: Move AC_LIBOBJ invocations to module description.
13780         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
13781         here...
13782         * modules/symlinkat (configure.ac): ... to here.
13783
13784 2011-05-22  Bruno Haible  <bruno@clisp.org>
13785
13786         symlink: Move AC_LIBOBJ invocations to module description.
13787         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
13788         here...
13789         * modules/symlink (configure.ac): ... to here.
13790
13791 2011-05-22  Bruno Haible  <bruno@clisp.org>
13792
13793         strverscmp: Move AC_LIBOBJ invocations to module description.
13794         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
13795         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
13796         from here...
13797         * modules/strverscmp (configure.ac): ... to here.
13798
13799 2011-05-22  Bruno Haible  <bruno@clisp.org>
13800
13801         strtok_r: Move AC_LIBOBJ invocations to module description.
13802         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
13803         and gl_PREREQ_STRTOK_R invocations from here...
13804         * modules/strtok_r (configure.ac): ... to here.
13805         (Depends-on): Update conditions.
13806
13807 2011-05-22  Bruno Haible  <bruno@clisp.org>
13808
13809         strtoumax: Move AC_LIBOBJ invocations to module description.
13810         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
13811         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
13812         from here...
13813         * modules/strtoumax (configure.ac): ... to here.
13814
13815 2011-05-22  Bruno Haible  <bruno@clisp.org>
13816
13817         strtoimax: Move AC_LIBOBJ invocations to module description.
13818         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
13819         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
13820         from here...
13821         * modules/strtoimax (configure.ac): ... to here.
13822
13823 2011-05-22  Bruno Haible  <bruno@clisp.org>
13824
13825         strtoull: Move AC_LIBOBJ invocations to module description.
13826         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
13827         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
13828         from here...
13829         * modules/strtoull (configure.ac): ... to here.
13830
13831 2011-05-22  Bruno Haible  <bruno@clisp.org>
13832
13833         strtoll: Move AC_LIBOBJ invocations to module description.
13834         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
13835         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
13836         here...
13837         * modules/strtoll (configure.ac): ... to here.
13838
13839 2011-05-22  Bruno Haible  <bruno@clisp.org>
13840
13841         strtoul: Move AC_LIBOBJ invocations to module description.
13842         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
13843         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13844         * modules/strtoul (configure.ac): ... to here.
13845
13846 2011-05-22  Bruno Haible  <bruno@clisp.org>
13847
13848         strtol: Move AC_LIBOBJ invocations to module description.
13849         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
13850         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13851         * modules/strtol (configure.ac): ... to here.
13852
13853 2011-05-22  Bruno Haible  <bruno@clisp.org>
13854
13855         strtod: Move AC_LIBOBJ invocations to module description.
13856         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
13857         invocations from here...
13858         * modules/strtod (configure.ac): ... to here.
13859
13860 2011-05-22  Bruno Haible  <bruno@clisp.org>
13861
13862         strstr*: Move AC_LIBOBJ invocations to module description.
13863         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
13864         invocations from here...
13865         * modules/strstr-simple (configure.ac): ... to here.
13866         * modules/strstr (configure.ac): ... and here.
13867
13868 2011-05-22  Bruno Haible  <bruno@clisp.org>
13869
13870         strsignal: Move AC_LIBOBJ invocations to module description.
13871         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
13872         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
13873         * modules/strsignal (configure.ac): ... to here.
13874         (Depends-on): Update conditions.
13875
13876 2011-05-22  Bruno Haible  <bruno@clisp.org>
13877
13878         strsep: Move AC_LIBOBJ invocations to module description.
13879         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
13880         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
13881         here...
13882         * modules/strsep (configure.ac): ... to here.
13883
13884 2011-05-22  Bruno Haible  <bruno@clisp.org>
13885
13886         strptime: Move AC_LIBOBJ invocations to module description.
13887         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
13888         gl_PREREQ_STRPTIME invocations from here...
13889         * modules/strptime (configure.ac): ... to here.
13890
13891 2011-05-22  Bruno Haible  <bruno@clisp.org>
13892
13893         strpbrk: Move AC_LIBOBJ invocations to module description.
13894         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
13895         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
13896         here...
13897         * modules/strpbrk (configure.ac): ... to here.
13898
13899 2011-05-22  Bruno Haible  <bruno@clisp.org>
13900
13901         strnlen: Move AC_LIBOBJ invocations to module description.
13902         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
13903         invocations from here...
13904         * modules/strnlen (configure.ac): ... to here.
13905
13906 2011-05-22  Bruno Haible  <bruno@clisp.org>
13907
13908         strndup: Move AC_LIBOBJ invocations to module description.
13909         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
13910         invocations from here...
13911         * modules/strndup (configure.ac): ... to here.
13912         (Depends-on): Update conditions.
13913
13914 2011-05-22  Bruno Haible  <bruno@clisp.org>
13915
13916         strncat: Move AC_LIBOBJ invocations to module description.
13917         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
13918         invocations from here...
13919         * modules/strncat (configure.ac): ... to here.
13920
13921 2011-05-22  Bruno Haible  <bruno@clisp.org>
13922
13923         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
13924         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
13925         invocations from here...
13926         * modules/strdup (configure.ac): ... to here.
13927         * modules/strdup-posix (configure.ac): ... and here.
13928
13929 2011-05-22  Bruno Haible  <bruno@clisp.org>
13930
13931         strcspn: Move AC_LIBOBJ invocations to module description.
13932         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
13933         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
13934         here...
13935         * modules/strcspn (configure.ac): ... to here.
13936
13937 2011-05-22  Bruno Haible  <bruno@clisp.org>
13938
13939         strchrnul: Move AC_LIBOBJ invocations to module description.
13940         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
13941         gl_PREREQ_STRCHRNUL invocations from here...
13942         * modules/strchrnul (configure.ac): ... to here.
13943
13944 2011-05-22  Bruno Haible  <bruno@clisp.org>
13945
13946         strcasestr*: Move AC_LIBOBJ invocations to module description.
13947         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
13948         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
13949         * modules/strcasestr-simple (configure.ac): ... to here.
13950         * modules/strcasestr (configure.ac): ... and here.
13951
13952 2011-05-22  Bruno Haible  <bruno@clisp.org>
13953
13954         strcase: Move AC_LIBOBJ invocations to module description.
13955         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
13956         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
13957         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
13958         gl_PREREQ_STRNCASECMP invocations from here...
13959         * modules/strcase (configure.ac): ... to here.
13960
13961 2011-05-22  Bruno Haible  <bruno@clisp.org>
13962
13963         stpncpy: Move AC_LIBOBJ invocations to module description.
13964         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
13965         here...
13966         * modules/stpncpy (configure.ac): ... to here.
13967
13968 2011-05-22  Bruno Haible  <bruno@clisp.org>
13969
13970         stpcpy: Move AC_LIBOBJ invocations to module description.
13971         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
13972         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
13973         here...
13974         * modules/stpcpy (configure.ac): ... to here.
13975
13976 2011-05-21  Bruno Haible  <bruno@clisp.org>
13977
13978         stat: Move AC_LIBOBJ invocations to module description.
13979         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
13980         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
13981         here...
13982         * modules/stat (configure.ac): ... to here.
13983
13984 2011-05-21  Bruno Haible  <bruno@clisp.org>
13985
13986         sleep: Move AC_LIBOBJ invocations to module description.
13987         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
13988         * modules/sleep (configure.ac): ... to here.
13989
13990 2011-05-21  Bruno Haible  <bruno@clisp.org>
13991
13992         signbit: Move AC_LIBOBJ invocations to module description.
13993         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
13994         * modules/signbit (configure.ac): ... to here.
13995
13996 2011-05-21  Bruno Haible  <bruno@clisp.org>
13997
13998         sigprocmask: Move AC_LIBOBJ invocations to module description.
13999         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
14000         gl_PREREQ_SIGPROMASK invocations from here...
14001         * modules/sigprocmask (configure.ac): ... to here.
14002
14003 2011-05-21  Bruno Haible  <bruno@clisp.org>
14004
14005         sigaction: Move AC_LIBOBJ invocations to module description.
14006         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
14007         gl_PREREQ_SIGACTION invocations from here...
14008         * modules/sigaction (configure.ac): ... to here.
14009
14010 2011-05-21  Bruno Haible  <bruno@clisp.org>
14011
14012         sig2str: Move AC_LIBOBJ invocations to module description.
14013         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
14014         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
14015         here...
14016         * modules/sig2str (configure.ac): ... to here.
14017
14018 2011-05-21  Bruno Haible  <bruno@clisp.org>
14019
14020         setlocale: Move AC_LIBOBJ invocations to module description.
14021         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
14022         gl_PREREQ_SETLOCALE invocations from here...
14023         * modules/setlocale (configure.ac): ... to here.
14024
14025 2011-05-21  Bruno Haible  <bruno@clisp.org>
14026
14027         unsetenv: Move AC_LIBOBJ invocations to module description.
14028         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
14029         and gl_PREREQ_UNSETENV invocations from here...
14030         * modules/unsetenv (configure.ac): ... to here.
14031         (Depends-on): Update.
14032
14033 2011-05-21  Bruno Haible  <bruno@clisp.org>
14034
14035         setenv: Move AC_LIBOBJ invocations to module description.
14036         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
14037         here...
14038         * modules/setenv (configure.ac): ... to here.
14039
14040 2011-05-21  Bruno Haible  <bruno@clisp.org>
14041
14042         selinux-h: Move AC_LIBOBJ invocations to module description.
14043         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
14044         AC_LIBOBJ invocation from here...
14045         * modules/selinux-h (configure.ac): ... to here.
14046
14047 2011-05-21  Bruno Haible  <bruno@clisp.org>
14048
14049         select: Respect rules for use of AC_LIBOBJ.
14050         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
14051         here...
14052         * modules/select (configure.ac): ... to here.
14053
14054 2011-05-21  Bruno Haible  <bruno@clisp.org>
14055
14056         scandir: Move AC_LIBOBJ invocations to module description.
14057         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
14058         invocations from here...
14059         * modules/scandir (configure.ac): ... to here.
14060
14061 2011-05-21  Bruno Haible  <bruno@clisp.org>
14062
14063         rpmatch: Move AC_LIBOBJ invocations to module description.
14064         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
14065         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
14066         here...
14067         * modules/rpmatch (configure.ac): ... to here.
14068
14069 2011-05-21  Bruno Haible  <bruno@clisp.org>
14070
14071         rmdir: Respect rules for use of AC_LIBOBJ.
14072         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
14073         * modules/rmdir (configure.ac): ... to here.
14074
14075 2011-05-21  Bruno Haible  <bruno@clisp.org>
14076
14077         renameat: Move AC_LIBOBJ invocations to module description.
14078         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
14079         here...
14080         * modules/renameat (configure.ac): ... to here.
14081
14082 2011-05-21  Bruno Haible  <bruno@clisp.org>
14083
14084         rename: Respect rules for use of AC_LIBOBJ.
14085         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
14086         here...
14087         * modules/rename (configure.ac): ... to here.
14088
14089 2011-05-21  Bruno Haible  <bruno@clisp.org>
14090
14091         remove: Move AC_LIBOBJ invocations to module description.
14092         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
14093         here...
14094         * modules/remove (configure.ac): ... to here.
14095
14096 2011-05-21  Bruno Haible  <bruno@clisp.org>
14097
14098         relocatable-lib: Move AC_LIBOBJ invocations to module description.
14099         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
14100         macro.
14101         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
14102         * modules/relocatable-lib (configure.ac): ... to here.
14103         * modules/relocatable-prog-wrapper (configure.ac): Invoke
14104         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
14105
14106 2011-05-21  Bruno Haible  <bruno@clisp.org>
14107
14108         relocatable-prog: Move AC_LIBOBJ invocations to module description.
14109         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
14110         here...
14111         * modules/relocatable-prog (configure.ac): ... to here.
14112
14113 2011-05-21  Bruno Haible  <bruno@clisp.org>
14114
14115         regex: Move AC_LIBOBJ invocations to module description.
14116         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
14117         invocations from here...
14118         * modules/regex (configure.ac): ... to here.
14119
14120 2011-05-21  Bruno Haible  <bruno@clisp.org>
14121
14122         realloc-*: Move AC_LIBOBJ invocations to module description.
14123         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
14124         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
14125         AC_LIBOBJ invocations from here...
14126         * modules/realloc-gnu (configure.ac): ... to here.
14127         * modules/realloc-posix (configure.ac): ... and here.
14128
14129 2011-05-21  Bruno Haible  <bruno@clisp.org>
14130
14131         readutmp: Move AC_LIBOBJ invocations to module description.
14132         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
14133         * modules/readutmp (configure.ac): ... to here.
14134
14135 2011-05-21  Bruno Haible  <bruno@clisp.org>
14136
14137         readlinkat: Move AC_LIBOBJ invocations to module description.
14138         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
14139         here...
14140         * modules/readlinkat (configure.ac): ... to here.
14141
14142 2011-05-21  Bruno Haible  <bruno@clisp.org>
14143
14144         readlink: Move AC_LIBOBJ invocations to module description.
14145         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
14146         gl_PREREQ_READLINK invocations from here...
14147         * modules/readlink (configure.ac): ... to here.
14148
14149 2011-05-21  Bruno Haible  <bruno@clisp.org>
14150
14151         readline: Move AC_LIBOBJ invocations to module description.
14152         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
14153         gl_PREREQ_READLINE invocations from here...
14154         * modules/readline (configure.ac): ... to here.
14155
14156 2011-05-21  Bruno Haible  <bruno@clisp.org>
14157
14158         read: Move AC_LIBOBJ invocations to module description.
14159         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
14160         * modules/read (configure.ac): ... to here.
14161
14162 2011-05-21  Bruno Haible  <bruno@clisp.org>
14163
14164         rawmemchr: Move AC_LIBOBJ invocations to module description.
14165         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
14166         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
14167         from here...
14168         * modules/rawmemchr (configure.ac): ... to here.
14169
14170 2011-05-21  Bruno Haible  <bruno@clisp.org>
14171
14172         random_r: Move AC_LIBOBJ invocations to module description.
14173         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
14174         gl_PREREQ_RANDOM_R invocations from here...
14175         * modules/random_r (configure.ac): ... to here.
14176
14177 2011-05-21  Bruno Haible  <bruno@clisp.org>
14178
14179         pwrite: Move AC_LIBOBJ invocations to module description.
14180         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
14181         * modules/pwrite (configure.ac): ... to here.
14182
14183 2011-05-21  Bruno Haible  <bruno@clisp.org>
14184
14185         putenv: Move AC_LIBOBJ invocations to module description.
14186         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
14187         * modules/putenv (configure.ac): ... to here.
14188
14189 2011-05-21  Bruno Haible  <bruno@clisp.org>
14190
14191         login_tty: Move AC_LIBOBJ invocations to module description.
14192         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
14193         * modules/login_tty (configure.ac): ... to here.
14194
14195 2011-05-21  Bruno Haible  <bruno@clisp.org>
14196
14197         openpty: Move AC_LIBOBJ invocations to module description.
14198         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
14199         * modules/openpty (configure.ac): ... to here.
14200
14201 2011-05-21  Bruno Haible  <bruno@clisp.org>
14202
14203         forkpty: Move AC_LIBOBJ invocations to module description.
14204         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
14205         * modules/forkpty (configure.ac): ... to here.
14206
14207 2011-05-21  Bruno Haible  <bruno@clisp.org>
14208
14209         ptsname: Move AC_LIBOBJ invocations to module description.
14210         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
14211         invocations from here...
14212         * modules/ptsname (configure.ac): ... to here.
14213
14214 2011-05-21  Bruno Haible  <bruno@clisp.org>
14215
14216         pread: Move AC_LIBOBJ invocations to module description.
14217         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
14218         * modules/pread (configure.ac): ... to here.
14219
14220 2011-05-21  Bruno Haible  <bruno@clisp.org>
14221
14222         posix_spawn*: Move AC_LIBOBJ invocations to module description.
14223         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
14224         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
14225         * modules/posix_spawn (configure.ac): ... to here.
14226         * modules/posix_spawnp (configure.ac): ... and here.
14227
14228 2011-05-21  Bruno Haible  <bruno@clisp.org>
14229
14230         popen: Move AC_LIBOBJ invocations to module description.
14231         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
14232         invocations from here...
14233         * modules/popen (configure.ac): ... to here.
14234
14235 2011-05-21  Bruno Haible  <bruno@clisp.org>
14236
14237         poll: Move AC_LIBOBJ invocations to module description.
14238         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
14239         invocations from here...
14240         * modules/poll (configure.ac): ... to here.
14241
14242 2011-05-21  Bruno Haible  <bruno@clisp.org>
14243
14244         pipe-posix: Move AC_LIBOBJ invocations to module description.
14245         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
14246         * modules/pipe-posix (configure.ac): ... to here.
14247
14248 2011-05-21  Bruno Haible  <bruno@clisp.org>
14249
14250         openat: Respect rules for use of AC_LIBOBJ.
14251         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
14252         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14253         * modules/openat (configure.ac): ... to here.
14254
14255 2011-05-21  Bruno Haible  <bruno@clisp.org>
14256
14257         obstack-printf*: Move AC_LIBOBJ invocations to module description.
14258         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
14259         invocation from here...
14260         * modules/obstack-printf (configure.ac): ... to here.
14261         * modules/obstack-printf-posix (configure.ac): ... and here.
14262
14263 2011-05-21  Bruno Haible  <bruno@clisp.org>
14264
14265         nl_langinfo: Move AC_LIBOBJ invocations to module description.
14266         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
14267         from here...
14268         * modules/nl_langinfo (configure.ac): ... to here.
14269
14270 2011-05-21  Bruno Haible  <bruno@clisp.org>
14271
14272         nanosleep: Move AC_LIBOBJ invocations to module description.
14273         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
14274         gl_PREREQ_NANOSLEEP invocations from here...
14275         * modules/nanosleep (configure.ac): ... to here.
14276
14277 2011-05-21  Bruno Haible  <bruno@clisp.org>
14278
14279         mountlist: Move AC_LIBOBJ invocations to module description.
14280         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
14281         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
14282         * modules/mountlist (configure.ac): ... to here.
14283
14284 2011-05-21  Bruno Haible  <bruno@clisp.org>
14285
14286         mktime: Respect rules for use of AC_LIBOBJ.
14287         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
14288         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
14289         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
14290         (gl_FUNC_MKTIME_INTERNAL): ... and here...
14291         * modules/mktime (configure.ac): ... to here.
14292         * modules/mktime-internal (configure.ac): ... and here.
14293         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
14294
14295 2011-05-21  Bruno Haible  <bruno@clisp.org>
14296
14297         mkstemps: Move AC_LIBOBJ invocations to module description.
14298         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
14299         here...
14300         * modules/mkstemps (configure.ac): ... to here.
14301
14302 2011-05-21  Bruno Haible  <bruno@clisp.org>
14303
14304         mkstemp: Move AC_LIBOBJ invocations to module description.
14305         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
14306         gl_PREREQ_MKSTEMP invocations from here...
14307         * modules/mkstemp (configure.ac): ... to here.
14308
14309 2011-05-21  Bruno Haible  <bruno@clisp.org>
14310
14311         mkostemps: Move AC_LIBOBJ invocations to module description.
14312         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
14313         here...
14314         * modules/mkostemps (configure.ac): ... to here.
14315
14316 2011-05-21  Bruno Haible  <bruno@clisp.org>
14317
14318         mkostemp: Move AC_LIBOBJ invocations to module description.
14319         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
14320         gl_PREREQ_MKOSTEMP invocations from here...
14321         * modules/mkostemp (configure.ac): ... to here.
14322
14323 2011-05-21  Bruno Haible  <bruno@clisp.org>
14324
14325         mknod: Move AC_LIBOBJ invocations to module description.
14326         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
14327         * modules/mknod (configure.ac): ... to here.
14328
14329 2011-05-21  Bruno Haible  <bruno@clisp.org>
14330
14331         mkfifoat: Move AC_LIBOBJ invocations to module description.
14332         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
14333         here...
14334         * modules/mkfifoat (configure.ac): ... to here.
14335
14336 2011-05-21  Bruno Haible  <bruno@clisp.org>
14337
14338         mkfifo: Respect rules for use of AC_LIBOBJ.
14339         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
14340         here...
14341         * modules/mkfifo (configure.ac): ... to here.
14342
14343 2011-05-21  Bruno Haible  <bruno@clisp.org>
14344
14345         mkdtemp: Move AC_LIBOBJ invocations to module description.
14346         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
14347         invocations from here...
14348         * modules/mkdtemp (configure.ac): ... to here.
14349
14350 2011-05-21  Bruno Haible  <bruno@clisp.org>
14351
14352         mkdir: Move AC_LIBOBJ invocations to module description.
14353         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
14354         * modules/mkdir (configure.ac): ... to here.
14355
14356 2011-05-21  Bruno Haible  <bruno@clisp.org>
14357
14358         memset: Move AC_LIBOBJ invocations to module description.
14359         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
14360         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
14361         here...
14362         * modules/memset (configure.ac): ... to here.
14363
14364 2011-05-21  Bruno Haible  <bruno@clisp.org>
14365
14366         memrchr: Move AC_LIBOBJ invocations to module description.
14367         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
14368         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
14369         here...
14370         * modules/memrchr (configure.ac): ... to here.
14371
14372 2011-05-21  Bruno Haible  <bruno@clisp.org>
14373
14374         mempcpy: Move AC_LIBOBJ invocations to module description.
14375         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
14376         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
14377         here...
14378         * modules/mempcpy (configure.ac): ... to here.
14379
14380 2011-05-21  Bruno Haible  <bruno@clisp.org>
14381
14382         memmove: Move AC_LIBOBJ invocations to module description.
14383         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
14384         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
14385         here...
14386         * modules/memmove (configure.ac): ... to here.
14387
14388 2011-05-21  Bruno Haible  <bruno@clisp.org>
14389
14390         memmem*: Move AC_LIBOBJ invocations to module description.
14391         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
14392         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
14393         here...
14394         (gl_FUNC_MEMMEM): ... and here...
14395         * modules/memmem-simple (configure.ac): ... to here.
14396         * modules/memmem (configure.ac): ... and here.
14397
14398 2011-05-21  Bruno Haible  <bruno@clisp.org>
14399
14400         memcpy: Move AC_LIBOBJ invocations to module description.
14401         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
14402         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
14403         here...
14404         * modules/memcpy (configure.ac): ... to here.
14405
14406 2011-05-21  Bruno Haible  <bruno@clisp.org>
14407
14408         memcmp: Simplify autoconf macro.
14409         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
14410         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
14411         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
14412
14413 2011-05-21  Bruno Haible  <bruno@clisp.org>
14414
14415         memcmp: Move AC_LIBOBJ invocations to module description.
14416         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
14417         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
14418         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
14419         * modules/memcmp (configure.ac): ... to here.
14420         (Depends-on): Update conditions.
14421
14422 2011-05-21  Bruno Haible  <bruno@clisp.org>
14423
14424         memchr: Respect rules for use of AC_LIBOBJ.
14425         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
14426         invocations from here...
14427         * modules/memchr (configure.ac): ... to here.
14428
14429 2011-05-21  Bruno Haible  <bruno@clisp.org>
14430
14431         mbtowc: Move AC_LIBOBJ invocations to module description.
14432         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
14433         invocations from here...
14434         * modules/mbtowc (configure.ac): ... to here.
14435
14436 2011-05-21  Bruno Haible  <bruno@clisp.org>
14437
14438         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
14439         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
14440         gl_PREREQ_MBSRTOWCS invocations from here...
14441         * modules/mbsrtowcs (configure.ac): ... to here.
14442
14443 2011-05-21  Bruno Haible  <bruno@clisp.org>
14444
14445         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
14446         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
14447         gl_PREREQ_MBSNRTOWCS invocations from here...
14448         * modules/mbsnrtowcs (configure.ac): ... to here.
14449
14450 2011-05-21  Bruno Haible  <bruno@clisp.org>
14451
14452         mbsinit: Move AC_LIBOBJ invocations to module description.
14453         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
14454         invocations from here...
14455         * modules/mbsinit (configure.ac): ... to here.
14456
14457 2011-05-21  Bruno Haible  <bruno@clisp.org>
14458
14459         mbrlen: Move AC_LIBOBJ invocations to module description.
14460         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
14461         invocations from here...
14462         * modules/mbrlen (configure.ac): ... to here.
14463
14464 2011-05-21  Bruno Haible  <bruno@clisp.org>
14465
14466         mbrtowc: Respect rules for use of AC_LIBOBJ.
14467         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
14468         invocations from here...
14469         * modules/mbrtowc (configure.ac): ... to here.
14470
14471 2011-05-21  Bruno Haible  <bruno@clisp.org>
14472
14473         malloc-*: Move AC_LIBOBJ invocations to module description.
14474         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
14475         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
14476         AC_LIBOBJ invocations from here...
14477         * modules/malloc-gnu (configure.ac): ... to here.
14478         * modules/malloc-posix (configure.ac): ... and here.
14479
14480 2011-05-21  Bruno Haible  <bruno@clisp.org>
14481
14482         lstat, openat: Respect rules for use of AC_LIBOBJ.
14483         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
14484         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
14485         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
14486         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
14487         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
14488         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
14489         here.
14490         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
14491
14492 2011-05-21  Bruno Haible  <bruno@clisp.org>
14493
14494         lseek: Move AC_LIBOBJ invocations to module description.
14495         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
14496         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14497         * modules/lseek (configure.ac): ... to here.
14498
14499 2011-05-21  Bruno Haible  <bruno@clisp.org>
14500
14501         linkat: Move AC_LIBOBJ invocations to module description.
14502         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
14503         here...
14504         * modules/linkat (configure.ac): ... to here.
14505
14506 2011-05-21  Bruno Haible  <bruno@clisp.org>
14507
14508         link: Respect rules for use of AC_LIBOBJ.
14509         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
14510         * modules/link (configure.ac): ... to here.
14511
14512 2011-05-21  Bruno Haible  <bruno@clisp.org>
14513
14514         lchown: Move AC_LIBOBJ invocations to module description.
14515         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14516         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14517         * modules/lchown (configure.ac): ... to here.
14518
14519 2011-05-21  Bruno Haible  <bruno@clisp.org>
14520
14521         iswctype: Move AC_LIBOBJ invocations to module description.
14522         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
14523         here...
14524         * modules/iswctype (configure.ac): ... to here.
14525
14526 2011-05-21  Bruno Haible  <bruno@clisp.org>
14527
14528         iswblank: Move AC_LIBOBJ invocations to module description.
14529         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
14530         here...
14531         * modules/iswblank (configure.ac): ... to here.
14532
14533 2011-05-21  Bruno Haible  <bruno@clisp.org>
14534
14535         atanl: Move AC_LIBOBJ invocations to module description.
14536         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
14537         * modules/atanl (configure.ac): ... to here.
14538
14539 2011-05-21  Bruno Haible  <bruno@clisp.org>
14540
14541         acosl: Move AC_LIBOBJ invocations to module description.
14542         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
14543         * modules/acosl (configure.ac): ... to here.
14544
14545 2011-05-21  Bruno Haible  <bruno@clisp.org>
14546
14547         asinl: Respect rules for use of AC_LIBOBJ.
14548         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
14549         * modules/asinl (configure.ac): ... to here.
14550
14551 2011-05-21  Bruno Haible  <bruno@clisp.org>
14552
14553         tanl: Move AC_LIBOBJ invocations to module description.
14554         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
14555         * modules/tanl (configure.ac): ... to here.
14556
14557 2011-05-21  Bruno Haible  <bruno@clisp.org>
14558
14559         cosl: Move AC_LIBOBJ invocations to module description.
14560         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
14561         * modules/cosl (configure.ac): ... to here.
14562
14563 2011-05-21  Bruno Haible  <bruno@clisp.org>
14564
14565         sinl: Move AC_LIBOBJ invocations to module description.
14566         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
14567         * modules/sinl (configure.ac): ... to here.
14568
14569 2011-05-21  Bruno Haible  <bruno@clisp.org>
14570
14571         logl: Move AC_LIBOBJ invocations to module description.
14572         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
14573         * modules/logl (configure.ac): ... to here.
14574
14575 2011-05-21  Bruno Haible  <bruno@clisp.org>
14576
14577         expl: Move AC_LIBOBJ invocations to module description.
14578         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
14579         * modules/expl (configure.ac): ... to here.
14580
14581 2011-05-21  Bruno Haible  <bruno@clisp.org>
14582
14583         roundl: Move AC_LIBOBJ invocations to module description.
14584         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
14585         * modules/roundl (configure.ac): ... to here.
14586
14587 2011-05-21  Bruno Haible  <bruno@clisp.org>
14588
14589         round: Move AC_LIBOBJ invocations to module description.
14590         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
14591         * modules/round (configure.ac): ... to here.
14592
14593 2011-05-21  Bruno Haible  <bruno@clisp.org>
14594
14595         roundf: Move AC_LIBOBJ invocations to module description.
14596         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
14597         * modules/roundf (configure.ac): ... to here.
14598
14599 2011-05-21  Bruno Haible  <bruno@clisp.org>
14600
14601         truncl: Move AC_LIBOBJ invocations to module description.
14602         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
14603         * modules/truncl (configure.ac): ... to here.
14604
14605 2011-05-21  Bruno Haible  <bruno@clisp.org>
14606
14607         trunc: Move AC_LIBOBJ invocations to module description.
14608         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
14609         * modules/trunc (configure.ac): ... to here.
14610
14611 2011-05-21  Bruno Haible  <bruno@clisp.org>
14612
14613         truncf: Move AC_LIBOBJ invocations to module description.
14614         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
14615         * modules/truncf (configure.ac): ... to here.
14616
14617 2011-05-21  Bruno Haible  <bruno@clisp.org>
14618
14619         ceill: Move AC_LIBOBJ invocations to module description.
14620         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
14621         * modules/ceill (configure.ac): ... to here.
14622
14623 2011-05-21  Bruno Haible  <bruno@clisp.org>
14624
14625         ceil: Move AC_LIBOBJ invocations to module description.
14626         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
14627         * modules/ceil (configure.ac): ... to here.
14628
14629 2011-05-21  Bruno Haible  <bruno@clisp.org>
14630
14631         ceilf: Move AC_LIBOBJ invocations to module description.
14632         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
14633         * modules/ceilf (configure.ac): ... to here.
14634
14635 2011-05-21  Bruno Haible  <bruno@clisp.org>
14636
14637         floorl: Respect rules for use of AC_LIBOBJ.
14638         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
14639         * modules/floorl (configure.ac): ... to here.
14640
14641 2011-05-21  Bruno Haible  <bruno@clisp.org>
14642
14643         floor: Respect rules for use of AC_LIBOBJ.
14644         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
14645         * modules/floor (configure.ac): ... to here.
14646
14647 2011-05-21  Bruno Haible  <bruno@clisp.org>
14648
14649         floorf: Move AC_LIBOBJ invocations to module description.
14650         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
14651         * modules/floorf (configure.ac): ... to here.
14652
14653 2011-05-20  Bruno Haible  <bruno@clisp.org>
14654
14655         sqrtl: Respect rules for use of AC_LIBOBJ.
14656         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
14657         * modules/sqrtl (configure.ac): ... to here.
14658
14659 2011-05-20  Bruno Haible  <bruno@clisp.org>
14660
14661         ldexpl: Respect rules for use of AC_LIBOBJ.
14662         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
14663         * modules/ldexpl (configure.ac): ... to here.
14664
14665 2011-05-20  Bruno Haible  <bruno@clisp.org>
14666
14667         frexpl*: Respect rules for use of AC_LIBOBJ.
14668         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
14669         invocation from here...
14670         * modules/frexpl (configure.ac): ... to here.
14671         * modules/frexpl-nolibm (configure.ac): ... and here.
14672
14673 2011-05-20  Bruno Haible  <bruno@clisp.org>
14674
14675         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
14676         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
14677         invocation from here...
14678         * modules/frexp (configure.ac): ... to here.
14679         * modules/frexp-nolibm (configure.ac): ... and here.
14680
14681 2011-05-20  Bruno Haible  <bruno@clisp.org>
14682
14683         isnan: Respect rules for use of AC_LIBOBJ.
14684         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
14685         invocations here.
14686         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
14687         REPLACE_ISNAN.
14688         * modules/isnand (configure.ac): Likewise.
14689         * modules/isnanl (configure.ac): Likewise.
14690
14691 2011-05-20  Bruno Haible  <bruno@clisp.org>
14692
14693         isnanl*: Respect rules for use of AC_LIBOBJ.
14694         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
14695         invocation from here...
14696         * modules/isnanl (configure.ac): ... to here.
14697         * modules/isnanl-nolibm (configure.ac): ... and here.
14698
14699 2011-05-20  Bruno Haible  <bruno@clisp.org>
14700
14701         isnand*: Move AC_LIBOBJ invocations to module description.
14702         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
14703         invocation from here...
14704         * modules/isnand (configure.ac): ... to here.
14705         * modules/isnand-nolibm (configure.ac): ... and here.
14706
14707 2011-05-20  Bruno Haible  <bruno@clisp.org>
14708
14709         isnanf*: Move AC_LIBOBJ invocations to module description.
14710         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
14711         invocation from here...
14712         * modules/isnanf (configure.ac): ... to here.
14713         * modules/isnanf-nolibm (configure.ac): ... and here.
14714
14715 2011-05-20  Bruno Haible  <bruno@clisp.org>
14716
14717         isnan*: Separate the AC_LIBOBJ invocations.
14718         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
14719         AC_LIBOBJ invocation.
14720         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
14721         here.
14722         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
14723         AC_LIBOBJ invocation.
14724         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
14725         here.
14726         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
14727         AC_LIBOBJ invocation.
14728         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
14729         here.
14730         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
14731
14732 2011-05-08  Bruno Haible  <bruno@clisp.org>
14733
14734         isinf: Move AC_LIBOBJ invocations to module description.
14735         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
14736         * modules/isinf (configure.ac): ... to here.
14737
14738 2011-05-08  Bruno Haible  <bruno@clisp.org>
14739
14740         isfinite: Move AC_LIBOBJ invocations to module description.
14741         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
14742         * modules/isfinite (configure.ac): ... to here.
14743
14744 2011-05-08  Bruno Haible  <bruno@clisp.org>
14745
14746         isblank: Move AC_LIBOBJ invocations to module description.
14747         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
14748         here...
14749         * modules/isblank (configure.ac): ... to here.
14750
14751 2011-05-08  Bruno Haible  <bruno@clisp.org>
14752
14753         isapipe: Move AC_LIBOBJ invocations to module description.
14754         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
14755         gl_PREREQ_ISAPIPE invocations from here...
14756         * modules/isapipe (configure.ac): ... to here.
14757         (Depends-on): Update condition.
14758
14759 2011-05-08  Bruno Haible  <bruno@clisp.org>
14760
14761         ioctl: Move AC_LIBOBJ invocations to module description.
14762         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
14763         invocations from here...
14764         * modules/ioctl (configure.ac): ... to here.
14765         (Depends-on): Update condition.
14766
14767 2011-05-08  Bruno Haible  <bruno@clisp.org>
14768
14769         imaxdiv: Move AC_LIBOBJ invocations to module description.
14770         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
14771         invocations from here...
14772         * modules/imaxdiv (configure.ac): ... to here.
14773
14774 2011-05-08  Bruno Haible  <bruno@clisp.org>
14775
14776         imaxabs: Move AC_LIBOBJ invocations to module description.
14777         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
14778         invocations from here...
14779         * modules/imaxabs (configure.ac): ... to here.
14780
14781 2011-05-08  Bruno Haible  <bruno@clisp.org>
14782
14783         getaddrinfo: Move AC_LIBOBJ invocations to module description.
14784         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
14785         AC_LIBOBJ invocations from here...
14786         * modules/getaddrinfo (configure.ac): ... to here.
14787         (Depends-on): Add conditions.
14788
14789 2011-05-08  Bruno Haible  <bruno@clisp.org>
14790
14791         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14792         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
14793         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14794         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
14795         (gl_PREREQ_INET_PTON): ... from here.
14796         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
14797         gl_PREREQ_INET_PTON here.
14798         (Depends-on): Update condition.
14799
14800 2011-05-08  Bruno Haible  <bruno@clisp.org>
14801
14802         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14803         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
14804         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14805         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
14806         (gl_PREREQ_INET_NTOP): ... from here.
14807         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
14808         gl_PREREQ_INET_NTOP here.
14809         (Depends-on): Update condition.
14810
14811 2011-05-08  Bruno Haible  <bruno@clisp.org>
14812
14813         iconv_open: Move AC_LIBOBJ invocations to module description.
14814         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
14815         AC_LIBOBJ invocations from here...
14816         * modules/iconv_open (configure.ac): ... to here.
14817
14818 2011-05-08  Bruno Haible  <bruno@clisp.org>
14819
14820         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
14821         If module 'iconv_open' is among the main modules and module
14822         'iconv_open-utf' is among the tests dependencies, then
14823         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
14824         return the special iconv_t values. Therefore iconv() and iconv_close()
14825         must support these special iconv_t values, already in lib, not only in
14826         tests.
14827         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
14828         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
14829         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
14830         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
14831         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
14832         (Depends-on): Add the dependencies of iconv_open-utf.
14833         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
14834         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
14835         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
14836
14837 2011-05-08  Bruno Haible  <bruno@clisp.org>
14838
14839         group-member: Move AC_LIBOBJ invocations to module description.
14840         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
14841         gl_PREREQ_GROUP_MEMBER invocations from here...
14842         * modules/group-member (configure.ac): ... to here.
14843
14844 2011-05-08  Bruno Haible  <bruno@clisp.org>
14845
14846         grantpt: Move AC_LIBOBJ invocations to module description.
14847         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
14848         invocations from here...
14849         * modules/grantpt (configure.ac): ... to here.
14850
14851 2011-05-08  Bruno Haible  <bruno@clisp.org>
14852
14853         glob: Move AC_LIBOBJ invocations to module description.
14854         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
14855         from here...
14856         * modules/glob (configure.ac): ... to here.
14857
14858 2011-05-08  Bruno Haible  <bruno@clisp.org>
14859
14860         getusershell: Move AC_LIBOBJ invocations to module description.
14861         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
14862         Move AC_LIBOBJ invocation from here...
14863         * modules/getusershell (configure.ac): ... to here.
14864         (Depends-on): Update condition.
14865
14866 2011-05-08  Bruno Haible  <bruno@clisp.org>
14867
14868         gettimeofday: Move AC_LIBOBJ invocations to module description.
14869         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
14870         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
14871         gl_PREREQ_GETTIMEOFDAY invocations from here...
14872         * modules/gettimeofday (configure.ac): ... to here.
14873
14874 2011-05-08  Bruno Haible  <bruno@clisp.org>
14875
14876         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
14877         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
14878         just gl_FUNC_TZSET.
14879         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
14880         (gl_FUNC_TZSET_CLOBBER): Remove actions.
14881         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
14882         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
14883
14884 2011-05-08  Bruno Haible  <bruno@clisp.org>
14885
14886         getsubopt: Move AC_LIBOBJ invocations to module description.
14887         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
14888         gl_PREREQ_GETSUBOPT invocations from here...
14889         * modules/getsubopt (configure.ac): ... to here.
14890
14891 2011-05-08  Bruno Haible  <bruno@clisp.org>
14892
14893         getpass-gnu: Move AC_LIBOBJ invocations to module description.
14894         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
14895         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
14896         * modules/getpass-gnu (configure.ac): ... to here.
14897
14898 2011-05-08  Bruno Haible  <bruno@clisp.org>
14899
14900         getpass: Move AC_LIBOBJ invocations to module description.
14901         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
14902         gl_PREREQ_GETPASS invocations from here...
14903         * modules/getpass (configure.ac): ... to here.
14904
14905 2011-05-08  Bruno Haible  <bruno@clisp.org>
14906
14907         getpagesize: Move AC_LIBOBJ invocations to module description.
14908         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
14909         from here...
14910         * modules/getpagesize (configure.ac): ... to here.
14911
14912 2011-05-08  Bruno Haible  <bruno@clisp.org>
14913
14914         getopt: Move AC_LIBOBJ invocations to module description.
14915         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
14916         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
14917         invocations from here...
14918         * modules/getopt-gnu (configure.ac): ... to here.
14919         * modules/getopt-posix (configure.ac): ... and here.
14920         (Depends-on): Update condition.
14921
14922 2011-05-08  Bruno Haible  <bruno@clisp.org>
14923
14924         getopt, argp: Respect rules for use of AC_LIBOBJ.
14925         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
14926         (gl_REPLACE_GETOPT_ALWAYS): New macro.
14927         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
14928         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
14929
14930 2011-05-08  Bruno Haible  <bruno@clisp.org>
14931
14932         getlogin_r: Move AC_LIBOBJ invocations to module description.
14933         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
14934         gl_PREREQ_GETLOGIN_R invocations from here...
14935         * modules/getlogin_r (configure.ac): ... to here.
14936
14937 2011-05-08  Bruno Haible  <bruno@clisp.org>
14938
14939         getlogin: Move AC_LIBOBJ invocations to module description.
14940         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
14941         here...
14942         * modules/getlogin (configure.ac): ... to here.
14943
14944 2011-05-08  Bruno Haible  <bruno@clisp.org>
14945
14946         getloadavg: Move AC_LIBOBJ invocations to module description.
14947         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
14948         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
14949         * modules/getloadavg (configure.ac): ... to here.
14950
14951 2011-05-08  Bruno Haible  <bruno@clisp.org>
14952
14953         gethrxtime: Move AC_LIBOBJ invocations to module description.
14954         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
14955         LIB_GETHRXTIME from here...
14956         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
14957         invocations from here...
14958         * modules/gethrxtime (configure.ac): ... to here.
14959
14960 2011-05-08  Bruno Haible  <bruno@clisp.org>
14961
14962         gethostname: Move AC_LIBOBJ invocations to module description.
14963         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
14964         gl_PREREQ_GETHOSTNAME invocations from here...
14965         * modules/gethostname (configure.ac): ... to here.
14966
14967 2011-05-08  Bruno Haible  <bruno@clisp.org>
14968
14969         getgroups: Move AC_LIBOBJ invocations to module description.
14970         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
14971         here...
14972         * modules/getgroups (configure.ac): ... to here.
14973
14974 2011-05-08  Bruno Haible  <bruno@clisp.org>
14975
14976         getdtablesize: Move AC_LIBOBJ invocations to module description.
14977         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
14978         invocation from here...
14979         * modules/getdtablesize (configure.ac): ... to here.
14980
14981 2011-05-08  Bruno Haible  <bruno@clisp.org>
14982
14983         getdomainname: Move AC_LIBOBJ invocations to module description.
14984         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
14985         gl_PREREQ_GETDOMAINNAME invocations from here...
14986         * modules/getdomainname (configure.ac): ... to here.
14987
14988 2011-05-08  Bruno Haible  <bruno@clisp.org>
14989
14990         getline: Move AC_LIBOBJ invocations to module description.
14991         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
14992         invocations from here...
14993         * modules/getline (configure.ac): ... to here.
14994
14995 2011-05-08  Bruno Haible  <bruno@clisp.org>
14996
14997         getline: Simplify.
14998         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
14999         It's already handled through the module dependency.
15000
15001 2011-05-08  Bruno Haible  <bruno@clisp.org>
15002
15003         getdelim: Move AC_LIBOBJ invocations to module description.
15004         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
15005         and gl_PREREQ_GETDELIM invocations from here...
15006         * modules/getdelim (configure.ac): ... to here.
15007         (Depends-on): Fix condition.
15008
15009 2011-05-08  Bruno Haible  <bruno@clisp.org>
15010
15011         getcwd: Move AC_LIBOBJ invocations to module description.
15012         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
15013         invocations from here...
15014         * modules/getcwd (configure.ac): ... to here.
15015
15016 2011-05-08  Bruno Haible  <bruno@clisp.org>
15017
15018         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
15019         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
15020         here...
15021         * modules/getcwd-lgpl (configure.ac): ... to here.
15022
15023 2011-05-07  Bruno Haible  <bruno@clisp.org>
15024
15025         crypto/gc: Move AC_LIBOBJ invocations to module description.
15026         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
15027         * modules/crypto/gc (configure.ac): ... to here.
15028
15029 2011-05-07  Bruno Haible  <bruno@clisp.org>
15030
15031         fwriting: Move AC_LIBOBJ invocations to module description.
15032         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
15033         here...
15034         * modules/fwriting (configure.ac): ... to here.
15035
15036 2011-05-07  Bruno Haible  <bruno@clisp.org>
15037
15038         fwritable: Move AC_LIBOBJ invocations to module description.
15039         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
15040         here...
15041         * modules/fwritable (configure.ac): ... to here.
15042
15043 2011-05-07  Bruno Haible  <bruno@clisp.org>
15044
15045         futimens: Move AC_LIBOBJ invocations to module description.
15046         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
15047         here...
15048         * modules/futimens (configure.ac): ... to here.
15049
15050 2011-05-07  Bruno Haible  <bruno@clisp.org>
15051
15052         ftruncate: Move AC_LIBOBJ invocations to module description.
15053         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
15054         gl_PREREQ_FTRUNCATE invocations from here...
15055         * modules/ftruncate (configure.ac): ... to here.
15056
15057 2011-05-07  Bruno Haible  <bruno@clisp.org>
15058
15059         fsync: Move AC_LIBOBJ invocations to module description.
15060         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
15061         invocations from here...
15062         * modules/fsync (configure.ac): ... to here.
15063
15064 2011-05-07  Bruno Haible  <bruno@clisp.org>
15065
15066         fsusage: Move AC_LIBOBJ invocations to module description.
15067         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
15068         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
15069         * modules/fsusage (configure.ac): ... to here.
15070
15071 2011-05-07  Bruno Haible  <bruno@clisp.org>
15072
15073         freopen: Move AC_LIBOBJ invocations to module description.
15074         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
15075         invocations from here...
15076         * modules/freopen (configure.ac): ... to here.
15077
15078 2011-05-07  Bruno Haible  <bruno@clisp.org>
15079
15080         free: Move AC_LIBOBJ invocations to module description.
15081         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
15082         invocations from here...
15083         * modules/free (configure.ac): ... to here.
15084
15085 2011-05-07  Bruno Haible  <bruno@clisp.org>
15086
15087         freadable: Move AC_LIBOBJ invocations to module description.
15088         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
15089         here...
15090         * modules/freadable (configure.ac): ... to here.
15091
15092 2011-05-07  Bruno Haible  <bruno@clisp.org>
15093
15094         fpurge: Move AC_LIBOBJ invocations to module description.
15095         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
15096         invocations from here...
15097         * modules/fpurge (configure.ac): ... to here.
15098
15099 2011-05-07  Bruno Haible  <bruno@clisp.org>
15100
15101         fpending: Move AC_LIBOBJ invocations to module description.
15102         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
15103         gl_FUNC_FPENDING.
15104         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
15105         invocations from here...
15106         * modules/fpending (configure.ac): ... to here.
15107
15108 2011-05-07  Bruno Haible  <bruno@clisp.org>
15109
15110         fopen: Move AC_LIBOBJ invocations to module description.
15111         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
15112         invocations from here...
15113         * modules/fopen (configure.ac): ... to here.
15114
15115 2011-05-07  Bruno Haible  <bruno@clisp.org>
15116
15117         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
15118         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
15119         gl_FUNC_FNMATCH_POSIX.
15120         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
15121         invocations from here...
15122         * modules/fnmatch (configure.ac): ... to here.
15123         * modules/fnmatch-gnu (configure.ac): ... and here.
15124
15125 2011-05-07  Bruno Haible  <bruno@clisp.org>
15126
15127         flock: Move AC_LIBOBJ invocations to module description.
15128         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
15129         invocations from here...
15130         * modules/flock (configure.ac): ... to here.
15131
15132 2011-05-07  Bruno Haible  <bruno@clisp.org>
15133
15134         fileblocks: Move AC_LIBOBJ invocations to module description.
15135         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
15136         gl_PREREQ_FILEBLOCKS invocations from here...
15137         * modules/fileblocks (configure.ac): ... to here.
15138
15139 2011-05-06  Bruno Haible  <bruno@clisp.org>
15140
15141         fflush: Move AC_LIBOBJ invocations to module description.
15142         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
15143         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
15144         invocations from here...
15145         * modules/fflush (configure.ac): ... to here.
15146
15147 2011-05-06  Bruno Haible  <bruno@clisp.org>
15148
15149         fdopendir: Move AC_LIBOBJ invocations to module description.
15150         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
15151         here...
15152         * modules/fdopendir (configure.ac): ... to here.
15153         (Depends-on): Improve conditions.
15154
15155 2011-05-06  Bruno Haible  <bruno@clisp.org>
15156
15157         _Exit: Move AC_LIBOBJ invocations to module description.
15158         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
15159         invocations from here...
15160         * modules/_Exit (configure.ac): ... to here.
15161
15162 2011-05-21  Bruno Haible  <bruno@clisp.org>
15163
15164         euidaccess: Respect rules for use of AC_LIBOBJ.
15165         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
15166         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
15167         from here...
15168         * modules/euidaccess (configure.ac): ... to here.
15169
15170 2011-05-06  Bruno Haible  <bruno@clisp.org>
15171
15172         error: Move AC_LIBOBJ invocations to module description.
15173         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
15174         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
15175         invocations from here...
15176         * modules/error (configure.ac): ... to here.
15177
15178 2011-05-06  Bruno Haible  <bruno@clisp.org>
15179
15180         duplocale: Move AC_LIBOBJ invocations to module description.
15181         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
15182         gl_PREREQ_DUPLOCALE invocations from here...
15183         * modules/duplocale (configure.ac): ... to here.
15184
15185 2011-05-05  Bruno Haible  <bruno@clisp.org>
15186
15187         dirfd: Move AC_LIBOBJ invocations to module description.
15188         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
15189         gl_FUNC_DIRFD.
15190         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
15191         here...
15192         * modules/dirfd (configure.ac): ... to here.
15193         (Depends-on): Fix condition.
15194
15195 2011-05-05  Bruno Haible  <bruno@clisp.org>
15196
15197         chown: Respect rules for use of AC_LIBOBJ.
15198         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
15199         * modules/chown (configure.ac): ... to here.
15200
15201 2011-05-05  Bruno Haible  <bruno@clisp.org>
15202
15203         chdir-long: Move AC_LIBOBJ invocations to module description.
15204         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
15205         gl_PREREQ_CHDIR_LONG invocations from here...
15206         * modules/chdir-long (configure.ac): ... to here.
15207
15208 2011-05-05  Bruno Haible  <bruno@clisp.org>
15209
15210         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
15211         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
15212         from here...
15213         * modules/canonicalize-lgpl (configure.ac): ... to here.
15214
15215 2011-05-05  Bruno Haible  <bruno@clisp.org>
15216
15217         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
15218         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
15219         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
15220         REPLACE_CALLOC.
15221         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
15222         * modules/calloc-gnu (configure.ac): Likewise.
15223
15224 2011-05-05  Bruno Haible  <bruno@clisp.org>
15225
15226         btowc: Move AC_LIBOBJ invocations to module description.
15227         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
15228         invocations from here...
15229         * modules/btowc (configure.ac): ... to here.
15230
15231 2011-05-21  Bruno Haible  <bruno@clisp.org>
15232
15233         atexit: Move AC_LIBOBJ invocations to module description.
15234         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
15235         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
15236         here...
15237         * modules/atexit (configure.ac): ... to here.
15238
15239 2011-05-05  Bruno Haible  <bruno@clisp.org>
15240
15241         atoll: Move AC_LIBOBJ invocations to module description.
15242         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
15243         invocations from here...
15244         * modules/atoll (configure.ac): ... to here.
15245
15246 2011-05-05  Bruno Haible  <bruno@clisp.org>
15247
15248         argz: Move AC_LIBOBJ invocations to module description.
15249         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
15250         * modules/argz (configure.ac): ... to here.
15251
15252 2011-05-05  Bruno Haible  <bruno@clisp.org>
15253
15254         alphasort: Move AC_LIBOBJ invocations to module description.
15255         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
15256         gl_PREREQ_ALPHASORT invocations from here...
15257         * modules/alphasort (configure.ac): ... to here.
15258
15259 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
15260
15261         verify: new macro verify_expr; verify_true deprecated
15262         * NEWS: Mention this.
15263         * doc/verify.texi (Compile-time Assertions): Document this.
15264         * lib/verify.h (verify_true): Deprecate.
15265         (verify_expr): New macro.
15266         * tests/test-verify.c (function): Test verify_expr.
15267
15268 2011-06-14  Jim Meyering  <meyering@redhat.com>
15269
15270         init.sh: give more portable redirection-related advice in a comment
15271         * tests/init.sh (stderr_fileno_): Update the advice in comments.
15272         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
15273         for lots of discussion.  Stefano Lattarini suggested the solution
15274         of putting "9>&2" after the command.  Reported by Bruno Haible.
15275
15276 2011-06-13  Bruno Haible  <bruno@clisp.org>
15277
15278         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
15279         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
15280         'none'.
15281
15282 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
15283
15284         ftoastr: use strtof only if HAVE_STRTOF
15285         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
15286         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
15287         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
15288         * modules/ftoastr (configure.ac): Check for strtof.
15289
15290 2011-06-13  Bruno Haible  <bruno@clisp.org>
15291
15292         gnulib-tool: Addendum to 2011-06-08 commit.
15293         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
15294         and --witness-c-macro have been given, augment AM_CPPFLAGS.
15295
15296 2011-06-13  Bruno Haible  <bruno@clisp.org>
15297
15298         fseeko: Provide a non-inline replacement of fseek().
15299         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
15300         * modules/fseeko (Depends-on): Add fseek.
15301         * modules/fseek (License): Change to LGPLv2+.
15302
15303 2011-06-13  Bruno Haible  <bruno@clisp.org>
15304
15305         ftello: Provide a non-inline replacement of ftell().
15306         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
15307         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
15308         not have ftello() (such as on mingw).
15309         * modules/ftello (Depends-on): Add ftell.
15310         * modules/ftell (License): Change to LGPLv2+.
15311
15312 2011-05-07  Bruno Haible  <bruno@clisp.org>
15313
15314         ftell: Move AC_LIBOBJ invocations to module description.
15315         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
15316         * modules/ftell (configure.ac): ... to here.
15317
15318 2011-05-07  Bruno Haible  <bruno@clisp.org>
15319
15320         ftello: Respect rules for use of AC_LIBOBJ.
15321         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
15322         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
15323         here...
15324         * modules/ftello (configure.ac): ... to here.
15325
15326 2011-05-07  Bruno Haible  <bruno@clisp.org>
15327
15328         fseeko: Simplify.
15329         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
15330         (gl_FUNC_FSEEKO): Inline it here.
15331
15332 2011-05-07  Bruno Haible  <bruno@clisp.org>
15333
15334         fseek: Move AC_LIBOBJ invocations to module description.
15335         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
15336         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
15337         * modules/fseek (configure.ac): ... to here.
15338
15339 2011-05-07  Bruno Haible  <bruno@clisp.org>
15340
15341         fseek: Respect rules for use of AC_LIBOBJ.
15342         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
15343         here...
15344         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
15345
15346 2011-05-07  Bruno Haible  <bruno@clisp.org>
15347
15348         fseeko: Respect rules for use of AC_LIBOBJ.
15349         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
15350         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
15351         here...
15352         * modules/fseeko (configure.ac): ... to here.
15353
15354 2011-06-13  Bruno Haible  <bruno@clisp.org>
15355
15356         gnulib-tool: Allow comments in the 'Depends-on' section.
15357         * doc/gnulib.texi (Module description): Mention comment syntax in the
15358         Depends-on section.
15359         * gnulib-tool (func_get_dependencies): Filter out comment lines.
15360
15361 2011-06-13  Bruno Haible  <bruno@clisp.org>
15362
15363         file-set.h: guard __attibute__ use, now that it's not always defined
15364         * lib/file-set.h (record_file): Use __attribute__ only with compiler
15365         versions that support it.  This fixes a coreutils build failure with
15366         the vendor cc on HP-UX 11.31.
15367
15368 2011-06-12  Bruno Haible  <bruno@clisp.org>
15369
15370         acl: Add support for HP-UX >= 11.11 JFS ACLs.
15371         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
15372         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
15373         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
15374         (acl, aclsort): New declarations.
15375         (aclv_nontrivial): New declaration.
15376         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
15377         (file_has_acl): Read also the second kind of HP-UX ACLs.
15378         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
15379         kind of HP-UX ACLs if the first kind fails.
15380         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
15381         second kind of HP-UX ACLs.
15382         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
15383         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
15384         agree.
15385         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15386         hpuxjfs.
15387         Handle hpuxjfs.
15388         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15389         hpuxjfs.
15390         Handle hpuxjfs.
15391         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15392         (func_test_same_acls): Use both lsacl and getacl.
15393         Handle hpuxjfs.
15394         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15395         (func_test_same_acls): Use both lsacl and getacl.
15396         Handle hpuxjfs.
15397
15398 2011-06-12  Bruno Haible  <bruno@clisp.org>
15399
15400         acl: Complete the 2010-08-10 fix.
15401         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
15402         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
15403         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
15404         explicitly.
15405         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
15406         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
15407
15408 2011-06-12  Bruno Haible  <bruno@clisp.org>
15409
15410         spawn-pipe tests: Comments.
15411         * tests/test-spawn-pipe-child.c (main): Update comment.
15412         Reported by James Youngman <jay@gnu.org>.
15413
15414 2011-06-11  James Youngman  <jay@gnu.org>
15415
15416         New module 'stat-size'.
15417         * modules/stat-size: New module.  Provides macros for accessing
15418         file size information in instances of struct stat.  Depends on the
15419         fileblocks module because it calls st_blocks.
15420         * lib/stat-size.h: New file, adapted from coreutils' system.h.
15421         * doc/gnulib.texi: Include stat-size.texi.
15422         * doc/stat-size.texi: Documentation for this module.
15423         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
15424         * m4/fileblocks.m4: Mention that stat-size depends on the call to
15425         AC_STRUCT_ST_BLOCKS.
15426
15427 2011-06-09  Bruno Haible  <bruno@clisp.org>
15428
15429         thread: Support pthreads-win32.
15430         * lib/glthread/thread.h (gl_thread_self): Define differently on
15431         pthreads-win32.
15432         (gl_null_thread): New declaration.
15433         (gl_thread_self_pointer): New macro.
15434         * lib/glthread/thread.c (gl_null_thread): New constant.
15435         * tests/test-lock.c: Use gl_thread_self_pointer instead of
15436         gl_thread_self.
15437         * tests/test-tls.c: Likewise.
15438         Suggested by Paul Eggert. Reported by Eric Blake.
15439
15440 2011-06-09  Bruno Haible  <bruno@clisp.org>
15441
15442         thread: Fix confusion between NULL and 0.
15443         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
15444         Reported by Paul Eggert.
15445
15446 2011-06-09  Bruno Haible  <bruno@clisp.org>
15447
15448         spawn-pipe tests: Avoid test failure on HP-UX 11.
15449         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
15450         is closed.
15451
15452 2011-06-09  Bruno Haible  <bruno@clisp.org>
15453
15454         acl tests: Fix compilation error on HP-UX 11.
15455         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
15456
15457 2011-06-09  Bruno Haible  <bruno@clisp.org>
15458
15459         rmdir: Avoid test failure on HP-UX 10.20.
15460         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
15461         EEXIST.
15462
15463 2011-06-08  Eric Blake  <eblake@redhat.com>
15464
15465         perror: fix test on mingw
15466         * modules/perror-tests (Depends-on): Add dup2.
15467
15468         strerror_r-posix: fix on MacOS
15469         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
15470         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
15471         logic bug.
15472         * lib/strerror_r.c (strerror_r): Fix the bug.
15473         * lib/strerror.c (strerror): Likewise.
15474         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15475         problem.
15476         * doc/posix-functions/strerror.texi (strerror): Likewise.
15477         * doc/posix-functions/perror.texi (perror): Likewise.
15478         * tests/test-strerror.c (main): Enhance test.
15479         * tests/test-strerror_r.c (main): Likewise.
15480
15481 2011-06-08  Bruno Haible  <bruno@clisp.org>
15482
15483         gnulib-tool: Better isolation between different gnulib-tool invocations.
15484         * gnulib-tool: New option --witness-c-macro.
15485         (witness_c_macro): New variable.
15486         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
15487         AM_CPPFLAGS define it as a C macro.
15488         (func_emit_tests_Makefile_am): Likewise.
15489         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
15490         read it from there.
15491         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
15492         m4_define, not AC_DEFUN.
15493         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
15494         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
15495         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
15496         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
15497         s|...|...|, to substitute the values of the GNULIB_* module indicator
15498         variables.
15499         * modules/dirent (Makefile.am): Likewise.
15500         * modules/fcntl-h (Makefile.am): Likewise.
15501         * modules/iconv-h (Makefile.am): Likewise.
15502         * modules/langinfo (Makefile.am): Likewise.
15503         * modules/locale (Makefile.am): Likewise.
15504         * modules/math (Makefile.am): Likewise.
15505         * modules/netdb (Makefile.am): Likewise.
15506         * modules/poll-h (Makefile.am): Likewise.
15507         * modules/pty (Makefile.am): Likewise.
15508         * modules/search (Makefile.am): Likewise.
15509         * modules/signal (Makefile.am): Likewise.
15510         * modules/spawn (Makefile.am): Likewise.
15511         * modules/stdio (Makefile.am): Likewise.
15512         * modules/stdlib (Makefile.am): Likewise.
15513         * modules/string (Makefile.am): Likewise.
15514         * modules/sys_ioctl (Makefile.am): Likewise.
15515         * modules/sys_select (Makefile.am): Likewise.
15516         * modules/sys_socket (Makefile.am): Likewise.
15517         * modules/sys_stat (Makefile.am): Likewise.
15518         * modules/sys_times (Makefile.am): Likewise.
15519         * modules/sys_utsname (Makefile.am): Likewise.
15520         * modules/sys_wait (Makefile.am): Likewise.
15521         * modules/termios (Makefile.am): Likewise.
15522         * modules/time (Makefile.am): Likewise.
15523         * modules/unistd (Makefile.am): Likewise.
15524         * modules/wchar (Makefile.am): Likewise.
15525
15526 2011-06-08  Eric Blake  <eblake@redhat.com>
15527
15528         strerror: simplify replacement
15529         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
15530         * modules/strerror (configure.ac): No prereqs needed here...
15531         * modules/strerror-override (configure.ac): ...but this needs it.
15532         (Files): Add file for needed prereq macro.
15533
15534 2011-06-08  Bruno Haible  <bruno@clisp.org>
15535
15536         strerror_r-posix: Tweaks.
15537         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
15538         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
15539         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
15540         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
15541         (gl_FUNC_STRERROR_R): ... to here.
15542         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
15543
15544 2011-06-07  Eric Blake  <eblake@redhat.com>
15545
15546         perror: document fixed bugs
15547         * doc/posix-functions/perror.texi (perror): Document recent
15548         patches.
15549
15550 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
15551
15552         stat-time: get_stat_birthtime failure is better-defined
15553         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
15554         return a timestamp whose tv_sec and tv_nsec values are both -1.
15555         Previously, the spec said only that the tv_nsec value was negative.
15556         This upward-compatible change simplifies GNU tar a bit.
15557
15558 2011-06-07  Eric Blake  <eblake@redhat.com>
15559
15560         strerror_r-posix: work around cygwin 1.7.9
15561         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
15562         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
15563         bug without replacing strerror_r.
15564         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
15565         strerror_r is buggy, but without requiring strerror_r compilation.
15566         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
15567
15568         test-perror: relax test to ignore cygwin bug
15569         * tests/test-perror2.c (main): Relax test on requiring detection
15570         of stream errors, and use unbuffered stream.
15571         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
15572         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
15573         * doc/posix-functions/fputc.texi (fputc): Likewise.
15574         * doc/posix-functions/fputs.texi (fputs): Likewise.
15575         * doc/posix-functions/fputws.texi (fputws): Likewise.
15576         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
15577         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
15578         * doc/posix-functions/getopt.texi (getopt): Likewise.
15579         * doc/posix-functions/perror.texi (perror): Likewise.
15580         * doc/posix-functions/printf.texi (printf): Likewise.
15581         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
15582         * doc/posix-functions/psignal.texi (psignal): Likewise.
15583         * doc/posix-functions/putc.texi (putc): Likewise.
15584         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
15585         Likewise.
15586         * doc/posix-functions/putchar.texi (putchar): Likewise.
15587         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
15588         Likewise.
15589         * doc/posix-functions/puts.texi (puts): Likewise.
15590         * doc/posix-functions/putwc.texi (putwc): Likewise.
15591         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
15592         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15593         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15594         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
15595         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15596         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15597         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
15598         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
15599
15600 2011-05-22  Bruno Haible  <bruno@clisp.org>
15601
15602         strerror: Move AC_LIBOBJ invocations to module description.
15603         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
15604         gl_PREREQ_STRERROR invocations from here...
15605         * modules/strerror (configure.ac): ... to here.
15606
15607 2011-05-21  Bruno Haible  <bruno@clisp.org>
15608
15609         perror: Use common idiom.
15610         * modules/perror (configure.ac): Reorder statements.
15611
15612 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15613
15614         tests: fix usage message in 'mktempd_'
15615         * tests/init.sh (mktempd_): In the usage message, use literal
15616         'mktempd_', not '$ME' (which is even undefined), as the name of
15617         the subroutine.
15618
15619 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15620
15621         tests init: new function 'fatal_', for hard errors
15622         Before this patch, the only way offered by tests/init.sh to
15623         properly signal a hard error was the `framework_failure_'
15624         function.  But the error message issued by that function,
15625         as its name would suggest, refers to a set-up failure in the
15626         testsuite, while hard errors can obviously also be due to
15627         other reasons.  The best way to fix this inconsistency is to
15628         introduce a new function with a more general error message.
15629         * tests/init.sh (fatal_): New function.
15630
15631 2011-06-06  Eric Blake  <eblake@redhat.com>
15632
15633         canonicalize-lgpl: use common idiom
15634         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
15635         over newer POSIX -Rf.
15636         Reported by Bruno Haible.
15637
15638         canonicalize-lgpl: work around AIX realpath bug
15639         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
15640         * doc/posix-functions/realpath.texi (realpath): Document it.
15641         Reported by Bruno Haible.
15642
15643         strerror: work around FreeBSD bug
15644         * lib/strerror.c (strerror): Special case 0.
15645         Reported by Bruno Haible.
15646
15647         strerror-override: avoid bloating errno module
15648         * modules/errno (Files, configure.ac): Move replacement strings...
15649         * modules/strerror-override: ...to new module.
15650         * modules/strerror (Depends-on): Add strerror-override.
15651         * modules/strerror_r-posix (Depends-on): Likewise.
15652         * MODULES.html.sh: Document new module.
15653         Reported by Bruno Haible.
15654
15655 2011-06-06  Bruno Haible  <bruno@clisp.org>
15656
15657         spawn-pipe tests: Rename program.
15658         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
15659         * tests/test-spawn-pipe-child.c: Update comment.
15660         * tests/test-spawn-pipe.sh: Update.
15661         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
15662
15663         spawn-pipe tests: Link the child program only against libc.
15664         * tests/test-spawn-pipe-child.c: New file, extracted from
15665         tests/test-spawn-pipe.c.
15666         (main): Expect only one argument.
15667         (is_open): New function, copied from tests/test-pipe.c.
15668         * tests/test-spawn-pipe.c: Don't include <errno.h>.
15669         (child_main): Remove function.
15670         (test_pipe): Pass only one argument to the child program.
15671         (main): Remove child process code. Expect the child program's name as
15672         first argument.
15673         * tests/test-spawn-pipe.sh: Pass the child program's name as first
15674         argument.
15675         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
15676         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
15677         test-spawn-pipe-child against no libraries.
15678
15679 2011-06-06  Bruno Haible  <bruno@clisp.org>
15680
15681         careadlinkat: Avoid mismatch between ssize_t and int.
15682         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
15683         * lib/careadlinkat.c (careadlinkatcwd): Define always.
15684
15685 2011-06-06  Jim Meyering  <meyering@redhat.com>
15686
15687         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
15688         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
15689         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
15690
15691 2011-06-05  Bruno Haible  <bruno@clisp.org>
15692
15693         ansi-c++-opt: Interoperability with libtool.
15694         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
15695         set the variable to "no", not to ":".
15696         * NEWS: Mention the change.
15697
15698 2011-06-05  Bruno Haible  <bruno@clisp.org>
15699
15700         acl: Fix test failure on AIX 7.
15701         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
15702         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
15703
15704 2011-06-05  Bruno Haible  <bruno@clisp.org>
15705
15706         pipe-filter-ii: Fix test failure on AIX and IRIX.
15707         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
15708         with EAGAIN, retry with a smaller buffer size.
15709
15710 2011-06-05  Bruno Haible  <bruno@clisp.org>
15711
15712         localename: Fix link dependencies.
15713         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
15714         * modules/localename-tests (Makefile.am): Link test-localename with
15715         $(LIBTHREAD).
15716
15717 2011-06-05  Bruno Haible  <bruno@clisp.org>
15718
15719         error: Avoid gcc warning.
15720         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
15721
15722 2011-06-05  Bruno Haible  <bruno@clisp.org>
15723
15724         unsetenv: Avoid gcc warning.
15725         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
15726
15727 2011-06-05  Bruno Haible  <bruno@clisp.org>
15728
15729         setenv: Avoid gcc warning.
15730         * lib/setenv.c (setenv): Provide declaration if system lacks it.
15731
15732 2011-06-05  Bruno Haible  <bruno@clisp.org>
15733
15734         sys_select: Ensure memset is declared also on AIX 7.
15735         * lib/sys_select.in.h: Include <string.h> also on AIX.
15736         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
15737         self-contained also on AIX 7.1.
15738
15739 2011-06-04  Jim Meyering  <meyering@redhat.com>
15740
15741         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
15742         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
15743         function name, "error".
15744         (_gl_translatable_diag_func_re): New configurable variable.
15745
15746 2011-06-04  Bruno Haible  <bruno@clisp.org>
15747
15748         getopt: Avoid gcc warning.
15749         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
15750
15751 2011-06-04  Bruno Haible  <bruno@clisp.org>
15752
15753         strerror_r: Fix comments.
15754         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
15755         commit.
15756
15757 2011-06-04  Bruno Haible  <bruno@clisp.org>
15758
15759         perror: Fix compilation error.
15760         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
15761         Undefine fprintf, not sprintf.
15762         * modules/perror (Depends-on): Remove intprops, verify.
15763
15764 2011-06-04  Bruno Haible  <bruno@clisp.org>
15765
15766         setlocale: Enable replacement on Cygwin 1.5.
15767         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
15768         Cygwin 1.5.x.
15769         * doc/posix-functions/setlocale.texi: Mention that the problem with the
15770         LC_CTYPE category also exists on Cygwin 1.5.x.
15771
15772 2011-06-04  Bruno Haible  <bruno@clisp.org>
15773
15774         strerror-override: Don't disable symbol renamings.
15775         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
15776         * lib/strerror-override.c: Include config.h.
15777         (strerror_override): Don't undefine.
15778
15779 2011-06-03  Bruno Haible  <bruno@clisp.org>
15780
15781         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
15782         * lib/localename.h: Update copyright header.
15783         * lib/localename.c: Likewise.
15784         * lib/relocatable.h: Likewise.
15785         * lib/relocatable.c: Likewise.
15786
15787 2011-06-02  Bruno Haible  <bruno@clisp.org>
15788
15789         doc: Fix a module name.
15790         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
15791
15792 2011-06-02  Bruno Haible  <bruno@clisp.org>
15793
15794         pipe2: Remove dependency on 'nonblocking' module.
15795         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
15796         O_NONBLOCK is defined by gnulib.
15797         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
15798         is zero.
15799         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
15800         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
15801         defined by gnulib.
15802         (get_nonblocking_flag): New function.
15803         (main): Test O_NONBLOCK flag only if it is nonzero.
15804         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
15805
15806 2011-06-03  Jim Meyering  <meyering@redhat.com>
15807
15808         maint: three new prohibit-header-without-use rules
15809         Prohibit use of cloexec.h, posixver.h, same.h without use.
15810         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
15811         (sc_prohibit_posixver_without_use): Likewise.
15812         (sc_prohibit_same_without_use): Likewise.
15813
15814 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
15815
15816         allocator: 'die' routine is now given requested size
15817         * lib/allocator.h (struct allocator.die): New size arg.
15818         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
15819         If the actual problem is an ssize_t limitation, not a size_t or
15820         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
15821
15822 2011-06-01  Eric Blake  <eblake@redhat.com>
15823
15824         strerror: drop strerror_r dependency
15825         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
15826         * lib/strerror-override.c (strerror_override): ...to new file.
15827         * lib/strerror-override.h: Add prototype.
15828         * lib/strerror-impl.h: Delete.
15829         * lib/strerror.c (strerror): New implementation.
15830         * modules/errno (Files): Add new files.
15831         (configure.ac): Compile new file as appropriate.
15832         * modules/strerror (Files): Drop unused file.
15833         (Depends-on): Drop strerror_r-posix.
15834         * MODULES.html.sh: Document strerror_r-posix.
15835         Requested by Sam Steingold.
15836
15837         perror: call strerror_r directly
15838         * modules/perror (Files): Drop strerror-impl.h.
15839         * lib/perror.c (perror): Use our own stack buffer, rather than
15840         calling a wrapper that uses static storage.
15841         * doc/posix-functions/perror.texi (perror): Document a limitation
15842         of our replacement.
15843
15844         strerror_r: fix includes for FreeBSD
15845         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
15846         since we use abort on some platforms.
15847         Reported by Matthias Bolte.
15848
15849 2011-05-31  Bruno Haible  <bruno@clisp.org>
15850
15851         Fix link errors in tests: openat-die uses gettext-h.
15852         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
15853         against $(LIBINTL).
15854         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
15855         against $(LIBINTL).
15856         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
15857         $(LIBINTL).
15858         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
15859         against $(LIBINTL).
15860         * modules/linkat-tests (Makefile.am): Link test-linkat against
15861         $(LIBINTL).
15862         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
15863         $(LIBINTL).
15864         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
15865         against $(LIBINTL).
15866         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
15867         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
15868         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
15869         $(LIBINTL).
15870         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
15871         $(LIBINTL).
15872         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
15873         $(LIBINTL).
15874         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15875
15876 2011-05-31  Bruno Haible  <bruno@clisp.org>
15877
15878         Fix link errors in tests: wait-process uses gettext-h.
15879         * modules/nonblocking-pipe-tests (Makefile.am): Set
15880         test_nonblocking_pipe_main_LDADD.
15881         * modules/nonblocking-socket-tests (Makefile.am): Link
15882         test-nonblocking-socket-main against $(LIBINTL).
15883         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15884
15885 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
15886
15887         assert-h: work around 'verify' incompatibility
15888         * lib/verify.h: Use @...@ directives, not ifdef.
15889         * modules/assert-h (assert.h): Implement the directives.
15890         (assert.h): Substitute the symbol-prefix more consistently.
15891
15892 2011-05-29  Jim Meyering  <meyering@redhat.com>
15893
15894         trim: remove three superfluous assignments
15895         * lib/trim.c (trim2): Remove three superfluous assignments
15896         and correct brace positioning.
15897
15898 2011-05-29  Bruno Haible  <bruno@clisp.org>
15899
15900         wctype-h: Avoid namespace pollution on Solaris 2.6.
15901         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
15902         identifiers.
15903         * doc/posix-headers/wctype.texi: Mention the problem.
15904         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15905
15906 2011-05-28  Jim Meyering  <meyering@redhat.com>
15907
15908         parse-datetime.y: accommodate -Wstrict-overflow
15909         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
15910         placate -Wstrict-overflow.
15911
15912         trim: avoid a warning from -O2 -Wstrict-overflow
15913         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
15914
15915 2011-05-29  Bruno Haible  <bruno@clisp.org>
15916
15917         gnulib-tool: Fix bug in yesterday's commit.
15918         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
15919         twice.
15920
15921 2011-05-29  Bruno Haible  <bruno@clisp.org>
15922
15923         Allow multiple gnulib generated include files to be combined.
15924         * gnulib-tool (func_compute_include_guard_prefix): New function.
15925         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
15926         ${gl_include_guard_prefix} references.
15927         (func_import, func_create_testdir): Invoke
15928         func_compute_include_guard_prefix.
15929         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
15930         * lib/ctype.in.h: Likewise.
15931         * lib/dirent.in.h: Likewise.
15932         * lib/errno.in.h: Likewise.
15933         * lib/fcntl.in.h: Likewise.
15934         * lib/float.in.h: Likewise.
15935         * lib/getopt.in.h: Likewise.
15936         * lib/iconv.in.h: Likewise.
15937         * lib/langinfo.in.h: Likewise.
15938         * lib/locale.in.h: Likewise.
15939         * lib/math.in.h: Likewise.
15940         * lib/netdb.in.h: Likewise.
15941         * lib/netinet_in.in.h: Likewise.
15942         * lib/poll.in.h: Likewise.
15943         * lib/pthread.in.h: Likewise.
15944         * lib/pty.in.h: Likewise.
15945         * lib/sched.in.h: Likewise.
15946         * lib/se-selinux.in.h: Likewise.
15947         * lib/search.in.h: Likewise.
15948         * lib/signal.in.h: Likewise.
15949         * lib/spawn.in.h: Likewise.
15950         * lib/stdarg.in.h: Likewise.
15951         * lib/stddef.in.h: Likewise.
15952         * lib/stdint.in.h: Likewise.
15953         * lib/stdio.in.h: Likewise.
15954         * lib/stdlib.in.h: Likewise.
15955         * lib/string.in.h: Likewise.
15956         * lib/strings.in.h: Likewise.
15957         * lib/sys_file.in.h: Likewise.
15958         * lib/sys_ioctl.in.h: Likewise.
15959         * lib/sys_select.in.h: Likewise.
15960         * lib/sys_socket.in.h: Likewise.
15961         * lib/sys_stat.in.h: Likewise.
15962         * lib/sys_time.in.h: Likewise.
15963         * lib/sys_times.in.h: Likewise.
15964         * lib/sys_uio.in.h: Likewise.
15965         * lib/sys_utsname.in.h: Likewise.
15966         * lib/sys_wait.in.h: Likewise.
15967         * lib/sysexits.in.h: Likewise.
15968         * lib/termios.in.h: Likewise.
15969         * lib/time.in.h: Likewise.
15970         * lib/unistd.in.h: Likewise.
15971         * lib/wchar.in.h: Likewise.
15972         * lib/wctype.in.h: Likewise.
15973         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
15974         * modules/ctype (Makefile.am): Likewise.
15975         * modules/dirent (Makefile.am): Likewise.
15976         * modules/errno (Makefile.am): Likewise.
15977         * modules/fcntl-h (Makefile.am): Likewise.
15978         * modules/float (Makefile.am): Likewise.
15979         * modules/getopt-posix (Makefile.am): Likewise.
15980         * modules/iconv-h (Makefile.am): Likewise.
15981         * modules/langinfo (Makefile.am): Likewise.
15982         * modules/locale (Makefile.am): Likewise.
15983         * modules/math (Makefile.am): Likewise.
15984         * modules/netdb (Makefile.am): Likewise.
15985         * modules/netinet_in (Makefile.am): Likewise.
15986         * modules/poll-h (Makefile.am): Likewise.
15987         * modules/pthread (Makefile.am): Likewise.
15988         * modules/pty (Makefile.am): Likewise.
15989         * modules/sched (Makefile.am): Likewise.
15990         * modules/search (Makefile.am): Likewise.
15991         * modules/selinux-h (Makefile.am): Likewise.
15992         * modules/signal (Makefile.am): Likewise.
15993         * modules/spawn (Makefile.am): Likewise.
15994         * modules/stdarg (Makefile.am): Likewise.
15995         * modules/stddef (Makefile.am): Likewise.
15996         * modules/stdint (Makefile.am): Likewise.
15997         * modules/stdio (Makefile.am): Likewise.
15998         * modules/stdlib (Makefile.am): Likewise.
15999         * modules/string (Makefile.am): Likewise.
16000         * modules/strings (Makefile.am): Likewise.
16001         * modules/sys_file (Makefile.am): Likewise.
16002         * modules/sys_ioctl (Makefile.am): Likewise.
16003         * modules/sys_select (Makefile.am): Likewise.
16004         * modules/sys_socket (Makefile.am): Likewise.
16005         * modules/sys_stat (Makefile.am): Likewise.
16006         * modules/sys_time (Makefile.am): Likewise.
16007         * modules/sys_times (Makefile.am): Likewise.
16008         * modules/sys_uio (Makefile.am): Likewise.
16009         * modules/sys_utsname (Makefile.am): Likewise.
16010         * modules/sys_wait (Makefile.am): Likewise.
16011         * modules/sysexits (Makefile.am): Likewise.
16012         * modules/termios (Makefile.am): Likewise.
16013         * modules/time (Makefile.am): Likewise.
16014         * modules/unistd (Makefile.am): Likewise.
16015         * modules/wchar (Makefile.am): Likewise.
16016         * modules/wctype-h (Makefile.am): Likewise.
16017         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
16018
16019 2011-05-29  Bruno Haible  <bruno@clisp.org>
16020
16021         assert-h: Allow multiple gnulib generated replacements to coexist.
16022         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
16023
16024 2011-05-29  Bruno Haible  <bruno@clisp.org>
16025
16026         argp: Allow coexistence with strerror_r-posix module.
16027         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
16028         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
16029         by gnulib's <string.h> replacement), assume it has the POSIX signature,
16030         not the glibc signature.
16031
16032 2011-05-28  Bruno Haible  <bruno@clisp.org>
16033
16034         gnulib-tool: Alternative structure of testdirs, similar to --import.
16035         * gnulib-tool: New option --single-configure.
16036         (func_usage): Document it.
16037         (single_configure): New variable.
16038         (func_modules_transitive_closure_separately,
16039         func_modules_transitive_closure_separately,
16040         func_determine_use_libtests, func_modules_add_dummy_separately,
16041         func_modules_to_filelist_separately): New functions, extracted from
16042         func_import.
16043         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
16044         (func_import): Use the new functions.
16045         (func_create_testdir): Set final_modules. Handle $single_configure =
16046         true case.
16047
16048 2011-05-28  Bruno Haible  <bruno@clisp.org>
16049
16050         getloadavg: Remove an unreliable safety check.
16051         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
16052         getloadavg.c is in place.
16053         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
16054         Reported by Sam Steingold <sds@gnu.org>.
16055
16056 2011-05-28  Bruno Haible  <bruno@clisp.org>
16057
16058         doc: Cleanup yet another file produced by texinfo.tex.
16059         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
16060
16061 2011-05-28  Bruno Haible  <bruno@clisp.org>
16062
16063         Finish the conditional dependencies mechanism.
16064         * gnulib-tool: New option --no-conditional-dependencies.
16065         (func_usage): Document it. Don't mark --conditional-dependencies as
16066         experimental.
16067         (cond_dependencies): The possible values can now be true, false, empty.
16068         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
16069         (func_import): Store setting in gnulib-cache.m4 and read it from there.
16070         * doc/gnulib-tool.texi (Conditional dependencies): New section.
16071
16072 2011-05-28  Bruno Haible  <bruno@clisp.org>
16073
16074         doc: Use a recent texinfo.tex.
16075         * doc/Makefile (tex_opts): New variable.
16076         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
16077
16078 2011-05-28  Jim Meyering  <meyering@redhat.com>
16079
16080         intprops.h: adjust comment to match code change
16081         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
16082         only once, it *may* have side effects.  Also fix an unrelated typo.
16083         (_GL_INT_SIGNED): Likewise.
16084
16085 2011-05-26  Simon Josefsson  <simon@josefsson.org>
16086
16087         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
16088
16089 2011-05-26  Bruno Haible  <bruno@clisp.org>
16090
16091         mbsrchr: Avoid collision with system function on Interix.
16092         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
16093         Reported by Markus Duft <mduft@gentoo.org>.
16094
16095 2011-05-15  James Youngman  <jay@gnu.org>
16096
16097         getopt: for ambiguous options, enumerate the possibilities.
16098         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
16099         the ambiguous options when an ambiguous prefix is given. This was
16100         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
16101         glibc change was
16102         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
16103
16104 2011-05-25  Eric Blake  <eblake@redhat.com>
16105
16106         getcwd: work around mingw bug
16107         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
16108         * doc/posix-functions/getcwd.texi (getcwd): Document it.
16109         Reported by Matthias Bolte.
16110
16111 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
16112
16113         test-intprops: disable -Wtype-limits diagnostics
16114         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
16115         diagnostics.  Otherwise, the integer overflow macros generate many
16116         diagnostics.  Reported by Jim Meyering in
16117         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
16118
16119         intprops: shorten, to pacify gcc -Woverlength-strings
16120         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
16121         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
16122         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
16123         likely to run afoul of C compiler limits for string constant lengths.
16124         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
16125
16126 2011-05-24  Eric Blake  <eblake@redhat.com>
16127
16128         docs: document recently fixed glibc printf bug
16129         * doc/posix-functions/fprintf.texi (fprintf): Document it.
16130         * doc/posix-functions/printf.texi (printf): Likewise.
16131         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16132         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16133
16134         closein-tests: convert to init.sh
16135         * modules/closein-tests (Files): Add init.sh
16136         * tests/test-closein.sh Use it.
16137
16138         yesno-tests: convert to init.sh
16139         * modules/yesno-tests (Files): Add init.sh.
16140         * tests/test-yesno.sh: Use it.
16141
16142         atexit-tests: ensure reliable exit status
16143         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
16144         Reported by Bruno Haible.
16145
16146 2011-05-24  Bruno Haible  <bruno@clisp.org>
16147
16148         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
16149         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
16150         gl_PREREQ_STRERROR_R invocations from here...
16151         * modules/strerror_r-posix (configure.ac): ... to here.
16152
16153 2011-05-24  Eric Blake  <eblake@redhat.com>
16154
16155         strerror_r: fix missing header
16156         * lib/strerror_r.c: Avoid compiler warning about snprintf.
16157
16158         strerror_r: fix AIX test failures
16159         * lib/strerror_r.c (strerror_r): Convert silent truncation to
16160         ERANGE failure.
16161
16162         strerror_r: fix Solaris test failures
16163         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
16164         failures.
16165         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
16166
16167         strerror_r: enforce POSIX recommendations
16168         * lib/strerror_r.c (safe_copy): New helper method.
16169         (strerror_r): Guarantee a non-empty string.
16170         * tests/test-strerror_r.c (main): Enhance tests to incorporate
16171         recent POSIX rulings and to match our strerror guarantees.
16172         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
16173
16174 2011-05-24  Jim Meyering  <meyering@redhat.com>
16175
16176         test-perror2.c: avoid warning about unused variable
16177         * tests/test-perror2.c (main): Remove declaration of unused "fp".
16178
16179 2011-05-24  Eric Blake  <eblake@redhat.com>
16180
16181         perror: avoid spurious test failure on HP-UX
16182         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
16183
16184         tests: fix logic bug in init.sh
16185         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
16186         shell.
16187
16188 2011-05-24  Jim Meyering  <meyering@redhat.com>
16189
16190         utimensat: do not reference an out-of-scope buffer
16191         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
16192         declared in an inner scope, yet "times" would be dereferenced outside
16193         the scope in which "ts" was valid.
16194         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
16195         of ts[2] "out/up", so that the use of aliased "times" (via
16196         "times = ts;") does not end up referencing an out-of-scope "ts"
16197
16198         opendir-safer.c: don't clobber errno; don't close negative FD
16199         * lib/opendir-safer.c (opendir_safer):
16200         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
16201         file descriptor, and more importantly, don't clobber the
16202         offending errno value with EINVAL.  Before, upon failure
16203         of dup_safer, we would pass the negative file descriptor to
16204         fdopendir, which would clobber errno.
16205
16206 2011-05-23  Bruno Haible  <bruno@clisp.org>
16207
16208         idcache: Fix module description.
16209         * modules/idcache (Include): Set to "idcache.h".
16210
16211 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
16212
16213         gnulib-tool: fix portability problem with MacOS sed
16214         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
16215         before the "}".  Problem reported by Leo in
16216         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
16217         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
16218         sed_extract_condition1, sed_extract_condition2.
16219
16220 2011-05-23  Bruno Haible  <bruno@clisp.org>
16221
16222         hash: Simplify autoconf macro.
16223         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
16224
16225 2011-05-23  Bruno Haible  <bruno@clisp.org>
16226
16227         getugroups: Fix module description.
16228         * modules/getugroups (Include): Set to "getugroups.h".
16229
16230 2011-05-23  Bruno Haible  <bruno@clisp.org>
16231
16232         linkat: Simplify autoconf macro.
16233         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
16234
16235 2011-05-23  Bruno Haible  <bruno@clisp.org>
16236             Eric Blake  <eblake@redhat.com>
16237
16238         linkat, renameat: Update dependencies.
16239         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
16240         * modules/linkat (Depends-on): Likewise. Remove also readlink,
16241         symlinkat.
16242
16243 2011-05-23  Jim Meyering  <meyering@redhat.com>
16244
16245         maint.mk: more tight_scope improvements
16246         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
16247         (_gl_TS_headers): Define only in if-0'd block.
16248         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
16249         sometimes we must *not* use it.  Adjust uses accordingly.
16250         (sc_tight_scope): Use much simpler grep-based test to determine
16251         whether we skip this rule.
16252
16253         maint.mk: generalize/improve the tight-scope rule
16254         * top/maint.mk: Emit a warning when the test is skipped.
16255         (_gl_TS_dir): Add $(srcdir)/ prefix.
16256         (_gl_TS_function_match): Simplify, rather than trying
16257         to enumerate common types.  Otherwise, it would fail to match an
16258         "extern unsigned char const *" declaration in idutils.
16259         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
16260         a way to support use of that type of macro.
16261         (_gl_TS_var_match): Simplify regexp.
16262         (_gl_TS_obj_files): New configurable variable.
16263         (_gl_TS_headers): Likewise.
16264
16265 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
16266
16267         verify: fix bug when gnulib <assert.h> is also included
16268         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
16269         is defined, not if _GL_STATIC_ASSERT_H is not defined.
16270         Perhaps there's a better way, but this fixes the immediate problem.
16271         Problem reported by Bruno Haible in
16272         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
16273
16274 2011-05-22  Bruno Haible  <bruno@clisp.org>
16275
16276         xgetcwd: Simplify autoconf macro.
16277         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
16278
16279 2011-05-22  Bruno Haible  <bruno@clisp.org>
16280
16281         New module 'mktime-internal'.
16282         * modules/mktime-internal: New file.
16283         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
16284         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
16285         mktime_internal as a C macro if libc has __mktime_internal.
16286         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
16287         conditions.
16288         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
16289
16290 2011-05-22  Bruno Haible  <bruno@clisp.org>
16291
16292         timegm: Correct mktime replacement statements.
16293         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
16294         defining mktime as a C macro. This completes a 2009-07-28 commit.
16295
16296 2011-05-22  Bruno Haible  <bruno@clisp.org>
16297
16298         timegm: Simplify autoconf macro.
16299         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
16300
16301 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
16302
16303         clock-time: change to LGPLv2+.
16304         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
16305         BSD-like but we have no mark for that; this is good enough for now.
16306
16307 2011-05-21  Bruno Haible  <bruno@clisp.org>
16308
16309         strerror_r: Fix comments.
16310         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
16311
16312 2011-05-21  Bruno Haible  <bruno@clisp.org>
16313
16314         relocatable-prog-wrapper: Fix possible link error.
16315         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
16316         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
16317         (gl_FUNC_SETENV): ... to here.
16318         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
16319         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
16320
16321 2011-05-21  Bruno Haible  <bruno@clisp.org>
16322
16323         relocatable-prog-wrapper: Assume strerror() exists.
16324         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
16325         m4/strerror.m4.
16326         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
16327         * lib/relocwrapper.c: Remove mention of strerror module.
16328         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
16329         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
16330         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
16331         C macro.
16332
16333 2011-05-21  Bruno Haible  <bruno@clisp.org>
16334
16335         select: Simplify replacement idiom.
16336         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
16337         Win32 platforms.
16338         * lib/sys_select.in.h (select): Simplify accordingly.
16339         * modules/select (Depends-on): Likewise.
16340
16341 2011-05-21  Bruno Haible  <bruno@clisp.org>
16342
16343         mkdir-p: Simplify autoconf macro.
16344         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
16345         gl_FUNC_LCHOWN.
16346
16347 2011-05-21  Eric Blake  <eblake@redhat.com>
16348
16349         strerror_r: avoid clobbering strerror on cygwin
16350         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
16351         fall back instead to sys_errlist.
16352         * modules/strerror (configure.ac): Add witness.
16353         * tests/test-strerror_r.c (main): Enhance test.
16354         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16355         * tests/test-perror2.c (main): Free memory before exit.
16356
16357 2011-05-21  Bruno Haible  <bruno@clisp.org>
16358
16359         mkdtemp: Use gnulib naming conventions.
16360         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
16361         * modules/mkdtemp (configure.ac): Update.
16362
16363 2011-05-20  Eric Blake  <eblake@redhat.com>
16364
16365         strerror_r: avoid corrupting errno on Solaris
16366         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
16367         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16368
16369         strerror_r: avoid compiler warning
16370         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
16371
16372         strerror_r: simplify AIX code
16373         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
16374
16375         test-perror: avoid spurious failure on FreeBSD
16376         * modules/perror-tests (Depends-on): Add strerror, now that
16377         strerror_r no longer pulls it in.
16378
16379 2011-05-20  Bruno Haible  <bruno@clisp.org>
16380
16381         strerror_r-posix: Remove unused dependencies.
16382         * modules/strerror_r-posix (Depends-on): Remove strerror.
16383         Reported by Eric Blake.
16384
16385 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
16386
16387         intprops: remove assumption about A|B representation
16388         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
16389         is a valid integer if both A and B are.  Although this is true for
16390         all known practical hosts, the C standard doesn't guarantee it,
16391         and the code need not assume it.  Also, this change may work around
16392         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
16393         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
16394
16395 2011-05-20  Eric Blake  <eblake@redhat.com>
16396
16397         perror: work around FreeBSD bug
16398         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
16399         is broken.  Move AC_LIBOBJ...
16400         * modules/perror (configure.ac): Here.
16401         * doc/posix-functions/perror.texi (perror): Document this.
16402         * tests/test-perror2.c (main): Enhance test.
16403
16404         test-perror: check for strerror interactions
16405         * tests/macros.h (STREQ): Add macro.
16406         * modules/perror-tests (Files): Add second test.
16407         * tests/test-perror2.c (main): New file.
16408         * doc/posix-functions/perror.texi (perror): Document glibc bug.
16409
16410         test-perror: rewrite to use init script
16411         * modules/perror-tests (Files): Add init.sh.
16412         * tests/test-perror.sh: Use temporary directory.
16413
16414 2011-05-20  Jim Meyering  <meyering@redhat.com>
16415
16416         maint: replace misused "a" with "an"
16417         * doc/intprops.texi: "a integer"
16418         * doc/regex.texi: "a explanation"
16419         * lib/alignof.h: "a object"
16420         * lib/argmatch.h: "a explanation"
16421         * lib/argp-help.c: "a option" and "a OPTION_DOC"
16422         * lib/stdint.in.h: "a integer"
16423         * lib/userspec.c: "a owner"
16424         * doc/gnulib.texi: Fix "a idea", and reword.
16425
16426 2011-05-19  Jim Meyering  <meyering@redhat.com>
16427
16428         maint: correct misuse of "a" and "an"
16429         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
16430         * lib/argp-help.c: "an docum...": s/an/a/
16431         * lib/argp-parse.c: "An vector": s/An/A/
16432         * lib/execute.c: "an native": s/an/a/
16433         * lib/spawn-pipe.c: Likewise.
16434         * lib/gc.h: "an Gc_rc": s/an/a/
16435         * lib/unigbrk.in.h: "an grapheme": s/an/a/
16436         * lib/fts.c: "an stat.st_dev": s/an/a/
16437
16438 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16439
16440         intprops-tests: work around HP-UX 11.23 cc bug with constants
16441         * tests/test-intprops.c (VERIFY): New macro.
16442         (main): Use it, instead of verify, to work around the compiler bug; see
16443         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16444
16445         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
16446         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
16447         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
16448         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
16449         (_GL_REMAINDER_OVERFLOW): Use it.
16450
16451         intprops-tests: revert unsigned part of previous change
16452         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
16453         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
16454         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
16455         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
16456
16457 2011-05-19  Bruno Haible  <bruno@clisp.org>
16458
16459         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
16460         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
16461         strerror_r() returned without filling the buffer.
16462         Reported by Eric Blake.
16463
16464 2011-05-19  Eric Blake  <eblake@redhat.com>
16465
16466         strerror_r: guarantee unchanged errno
16467         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
16468         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
16469         failure.
16470         * tests/test-strerror_r.c (main): Enhance test.
16471
16472 2011-05-19  Bruno Haible  <bruno@clisp.org>
16473
16474         strerror_r: Reorder #if blocks.
16475         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
16476         for consistency with the previous commit.
16477
16478 2011-05-19  Bruno Haible  <bruno@clisp.org>
16479
16480         perror: Avoid clobbering the strerror buffer when possible.
16481         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
16482         * lib/strerror.c: Include it.
16483         * modules/strerror (Files): Add lib/strerror-impl.h.
16484         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
16485         (my_strerror): New function, defined through lib/strerror-impl.h.
16486         (perror): Use it instead of strerror.
16487         * modules/perror (Files): Add lib/strerror-impl.h.
16488         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
16489
16490 2011-05-19  Eric Blake  <eblake@redhat.com>
16491
16492         strerror_r: fix on newer cygwin
16493         * lib/strerror_r.c (strerror_r): Cygwin now has
16494         __xpg_strerror_r, use it.
16495
16496 2011-05-19  Bruno Haible  <bruno@clisp.org>
16497
16498         strerror_r: Avoid clobbering the strerror buffer when possible.
16499         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
16500         (sys_nerr, sys_errlist): New declarations.
16501         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
16502         HP-UX, native Win32, IRIX, and 32-bit Solaris.
16503         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
16504
16505 2011-05-19  Bruno Haible  <bruno@clisp.org>
16506
16507         strerror_r: Fix test failure on mingw.
16508         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
16509         EXTEND_STRERROR_R.
16510         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
16511         macros from errno.in.h instead.
16512
16513 2011-05-19  Eric Blake  <eblake@redhat.com>
16514
16515         strerror: relax test for Solaris
16516         * tests/test-strerror.c (main): Permit Solaris behavior.
16517         * tests/test-strerror_r.c (main): Likewise.
16518
16519         strerror: enforce POSIX ruling on strerror(0)
16520         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
16521         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
16522         * lib/strerror_r.c (rpl_strerror_r): Work around it.
16523         * doc/posix-functions/strerror.texi (strerror): Document it.
16524         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
16525         * tests/test-strerror.c (main): Strengthen test.
16526         * tests/test-strerror_r.c (main): Likewise.
16527
16528 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16529
16530         intprop-tests: port to older and more-pedantic compilers
16531         * modules/intprops-tests (Files): Add tests/macros.h.
16532         * tests/test-intprops.c: Include macros.h.
16533         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
16534         it's no longer documented to expand to an integer constant expression.
16535         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
16536         argument is floating point, as it's no longer documented to expand
16537         to an integer constant expression in that case.
16538         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
16539         compiler bugs reported by Bruno Haible.  See
16540         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16541         (U0, U1): New constants, to work around the same bugs.  Also,
16542         in tests, use e.g., "(unsigned int) 39" rather than "39u".
16543
16544         intprops: work around C compiler bugs
16545         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
16546         bug in Sun C 5.11 2010/08/13 and other compilers; see
16547         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16548
16549         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
16550         * doc/intprops.texi (Integer Type Determination): Fix
16551         documentation for TYPE_IS_INTEGER: it returns an constant
16552         expression, not an integer constant expression.  Fix doc for
16553         TYPE_SIGNED: it returns an integer constant expression only if its
16554         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
16555         hardly worth documented that way....)
16556
16557 2011-05-18  Bruno Haible  <bruno@clisp.org>
16558
16559         strerror_r: Avoid clobbering the strerror buffer when possible.
16560         * lib/strerror_r.c (strerror_r): Merge the three implementations.
16561         Handle gnulib defined errno values here. When strerror() returns NULL
16562         or an empty string, return EINVAL.
16563         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
16564         gnulib defined errno values here.
16565         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
16566
16567 2011-05-18  Eric Blake  <eblake@redhat.com>
16568
16569         fnmatch: avoid compiler warning
16570         * lib/fnmatch_loop.c (FCT): Use correct type.
16571         Reported by Matthias Bolte.
16572
16573 2011-05-13  Jim Meyering  <meyering@redhat.com>
16574
16575         maint.mk: three new prohibit_<HDR>_without_use rules
16576         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
16577         (sc_prohibit_stdio-safer_without_use): Likewise.
16578         (sc_prohibit_xfreopen_without_use): Likewise.
16579
16580 2011-05-17  Jim Meyering  <meyering@redhat.com>
16581
16582         announce-gen: fail if the NEWS delta is empty
16583         If there's nothing noteworthy in NEWS, then either you forgot
16584         or you shouldn't be releasing.
16585         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
16586
16587 2011-05-17  Pádraig Brady <P@draigBrady.com>
16588
16589         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
16590         reserved symbols starting with double underscore from the check.
16591
16592 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
16593
16594         intprops: add doc
16595         * doc/intprops.texi: New file, documenting intprops.
16596         * doc/gnulib.texi (Particular Modules): Include it.
16597
16598         verify: add doc to gnulib manual and fix example
16599         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
16600         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
16601         (Compile-time Assertions): Fix example so it can't overflow.
16602
16603 2011-05-17  Jim Meyering  <meyering@redhat.com>
16604
16605         warnings.m4: don't usurp save_CPPFLAGS variable name
16606         * m4/warnings.m4: Prefix local temporary variable name with gl_.
16607
16608         doc: fix typo
16609         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
16610
16611 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16612             Bruno Haible  <bruno@clisp.org>
16613
16614         doc: Tweak recent change.
16615         * README (Portability guidelines): Tweak new text.
16616         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
16617         Interix 6.1.
16618
16619 2011-05-16  Eric Blake  <eblake@redhat.com>
16620
16621         inttypes: avoid autoconf warning
16622         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
16623         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16624
16625 2011-05-16  Sam Steingold <sds@gnu.org>
16626         and Eric Blake  <eblake@redhat.com>
16627
16628         vc-list-files: accept multiple directory operands
16629         * build-aux/vc-list-files: Iterate over all remaining operands.
16630
16631 2011-05-16  Bruno Haible  <bruno@clisp.org>
16632
16633         Fix confusion regarding deprecated modules.
16634         * modules/calloc (Status, Notice): Mark module as deprecated, not
16635         obsolete.
16636         * modules/fnmatch-posix (Status, Notice): Likewise.
16637         * modules/getdate (Status, Notice): Likewise.
16638         * modules/getopt (Status, Notice): Likewise.
16639         * modules/malloc (Status, Notice): Likewise.
16640         * modules/pipe (Status, Notice): Likewise.
16641         * modules/realloc (Status, Notice): Likewise.
16642         * modules/rename-dest-slash (Status, Notice): Likewise.
16643         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
16644         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
16645         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
16646         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
16647         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
16648
16649 2011-05-16  Bruno Haible  <bruno@clisp.org>
16650
16651         doc: List the target platforms.
16652         * doc/gnulib-intro.texi (Target Platforms): New section.
16653         * doc/gnulib.texi (Introduction): Update menu.
16654         * README (Portability guidelines): Refer to the new section. Update
16655         statement about oldest supported environment. Remove rationale why
16656         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
16657         unportable C89 function.
16658         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
16659         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
16660
16661 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16662
16663         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
16664
16665 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
16666
16667         intprops-tests: new module
16668         * modules/intprops-tests, tests/test-intprops.c: New files.
16669
16670         intprops: add safe, portable integer overflow checking
16671         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
16672         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
16673         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
16674         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
16675         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
16676         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
16677         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
16678         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
16679         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
16680         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
16681         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
16682
16683 2011-05-12  James Youngman  <jay@gnu.org>
16684
16685         Add a test for glibc's Bugzilla bug #12378.
16686         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
16687         doesn't allow the literal matching of a lone "[" (which is
16688         required by POSIX).
16689         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
16690
16691 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
16692
16693         Sync glibc change fixing Bugzilla bug #12378.
16694         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
16695         beginning and fall back to matching as normal character if the
16696         string ends before the matching ']' is found.  This is what POSIX
16697         requires.
16698
16699 2011-05-13  Eric Blake  <eblake@redhat.com>
16700
16701         getcwd-lgpl: relax test for FreeBSD
16702         * doc/posix-functions/getcwd.texi (getcwd): Document portability
16703         issue.
16704         * tests/test-getcwd-lgpl.c (main): Relax test.
16705         Reported by Matthias Bolte.
16706
16707 2011-05-11  Eric Blake  <eblake@redhat.com>
16708
16709         test-fflush: silence compiler warning
16710         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
16711
16712 2011-05-11  Bruno Haible  <bruno@clisp.org>
16713
16714         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
16715         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
16716         * modules/canonicalize (Depends-on): Add 'nocrash'.
16717         * modules/canonicalize-lgpl (Depends-on): Likewise.
16718         * doc/posix-functions/realpath.texi: Update platforms list.
16719         Reported by Ryan Schmidt <ryandesign@macports.org>.
16720
16721 2011-05-11  Bruno Haible  <bruno@clisp.org>
16722
16723         group-member: Declare function in <unistd.h>.
16724         * lib/unistd.in.h (group_member): New declaration.
16725         * lib/group-member.h: Remove file.
16726         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
16727         * tests/test-unistd-c++.cc: Check signature of group_member.
16728         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
16729         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
16730         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
16731         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
16732         HAVE_GROUP_MEMBER.
16733         * modules/group-member (Files): Remove lib/group-member.h.
16734         (Depends-on): Add unistd. Specify conditions.
16735         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16736         (Include): Change to <unistd.h>.
16737         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
16738         HAVE_GROUP_MEMBER.
16739         * NEWS: Mention the change.
16740         * lib/euidaccess.c: Don't include group-member.h.
16741
16742 2011-05-11  Bruno Haible  <bruno@clisp.org>
16743
16744         group-member: Document module.
16745         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
16746         module.
16747
16748 2011-05-11  Bruno Haible  <bruno@clisp.org>
16749
16750         fclose: Fix mistake earlier today.
16751         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
16752
16753 2011-05-11  Eric Blake  <eblake@redhat.com>
16754
16755         fclose: preserve fflush errors
16756         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
16757         Reported by Jim Meyering.
16758
16759         bootstrap: support a prereq of 'rpcgen -' on RHEL5
16760         * build-aux/bootstrap (check_versions): When no specific version
16761         is required, merely check that the app produces an exit status
16762         that indicates its existence.
16763
16764         maint.mk: drop redundant check
16765         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
16766         the same but better.
16767
16768 2011-05-11  Bruno Haible  <bruno@clisp.org>
16769
16770         fclose: Fix possible link error.
16771         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
16772         unregister_shadow_fd. Improve comments.
16773         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
16774         Eric Blake.
16775
16776 2011-05-11  Jim Meyering  <meyering@redhat.com>
16777
16778         maint.mk: improve "can not" detection and generalize rule name
16779         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
16780         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
16781         Use the same technique as in sc_prohibit_doubled_word, so that
16782         we recognize "can not" also when the words are separated by a newline.
16783         Suggested by Eric Blake.
16784         (perl_filename_lineno_text_): Define.  Factored out of...
16785         (prohibit_doubled_word_): ...here.  Use the new definition.
16786         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
16787         (prohibit_undesirable_word_seq_RE_): New overridable variable.
16788         (ignore_undesirable_word_sequence_RE_): New overridable variable.
16789
16790 2011-05-10  Eric Blake  <eblake@redhat.com>
16791
16792         fclose: avoid double close race when possible
16793         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
16794         all but WINDOWS_SOCKETS.
16795
16796 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
16797
16798         openat: correct new comment
16799         * lib/openat-proc.c (openat_proc_name): Correct the comment.
16800
16801 2011-05-10  Jim Meyering  <meyering@redhat.com>
16802
16803         openat: add comments
16804         * lib/openat-proc.c (openat_proc_name): Add comments,
16805         mostly from Eric Blake.
16806
16807 2011-05-09  Eric Blake  <eblake@redhat.com>
16808
16809         openat: reduce syscalls in first probe of /proc
16810         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
16811         be a directory.  Simplify the probe for .. bugs.
16812         * modules/openat (Depends-on): Drop same-inode.
16813         Reported by Bastien ROUCARIES.
16814
16815 2011-05-09  Jim Meyering  <meyering@redhat.com>
16816
16817         maint.mk: change semantics/name of tight_scope variables
16818         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
16819         Rename variables to align with semantics that make them more useful.
16820
16821         maint.mk: tweak new rule's name not to impinge
16822         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
16823         (sc_tight_scope): Use new rule name rather than $@-0.
16824
16825         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
16826         * top/maint.mk (sc_tight_scope): New rule.
16827         (sc_tight_scope-0): New rule, ifdef'd out.
16828         (_gl_TS_dir): Default.
16829         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
16830         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
16831
16832 2011-05-09  Simon Josefsson  <simon@josefsson.org>
16833
16834         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
16835         Haible <bruno@clisp.org>.
16836
16837 2011-05-08  Bruno Haible  <bruno@clisp.org>
16838
16839         Comments.
16840         * m4/isnanf.m4: Add comment.
16841         * m4/isnanl.m4: Likewise.
16842
16843 2011-05-08  Bruno Haible  <bruno@clisp.org>
16844
16845         glob: Remove obsolete macro.
16846         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
16847
16848 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
16849
16850         intprops: Sun C 5.11 supports __typeof__
16851         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
16852         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
16853         which is new.
16854         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
16855
16856         intprops: switch to usual gnulib indenting and naming
16857         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
16858         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
16859
16860         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
16861
16862 2011-05-08  Jim Meyering  <meyering@redhat.com>
16863
16864         maint.mk: suppress "Entering/Leaving directory" diag in announcement
16865         * top/maint.mk (release-prep): Use make's --no-print-directory
16866         option when generating the announcement.  This eliminates the
16867         pesky "make[2]: Entering/Leaving directory" diagnostics in the
16868         generated announcement template.
16869
16870 2011-05-08  Bruno Haible  <bruno@clisp.org>
16871
16872         tzset: Fix gettimeofday wrapper on Solaris 2.6.
16873         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
16874         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
16875
16876 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
16877
16878         ignore-value, verify: Omit include files from lib_SOURCES.
16879         * modules/ignore-value, modules/verify (Makefile.am):
16880         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
16881         that leads Automake to duplicate use of am__objects_... variables
16882         in Makefile.in.  See
16883         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
16884
16885 2011-05-07  Bruno Haible  <bruno@clisp.org>
16886
16887         fclose: Simplify autoconf macro.
16888         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
16889         defined.
16890
16891 2011-05-07  Bruno Haible  <bruno@clisp.org>
16892
16893         canonicalize-lgpl: Fix autoconf macro ordering bug.
16894         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
16895         gl_STDLIB_H_DEFAULTS.
16896
16897 2011-05-06  Eric Blake  <eblake@redhat.com>
16898
16899         maintainer-makefile: make sc_po_check easier to tune
16900         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
16901         to probe for strings, such as an alternate location for gnulib.
16902
16903         fclose: guarantee behavior on seekable stdin
16904         * modules/fclose (Depends-on): Add fflush.
16905         * doc/posix-functions/fclose.texi (fclose): Document this.
16906         * tests/test-fclose.c (main): Make test for this unconditional.
16907
16908 2011-05-06  Bruno Haible  <bruno@clisp.org>
16909
16910         fflush, fpurge: Relicense under LGPLv2+.
16911         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
16912         * modules/fpurge (License): Likewise.
16913         With permission from Eric Blake and Jim Meyering.
16914         Suggested by Eric Blake.
16915
16916 2011-05-06  Karl Berry  <karl@gnu.org>
16917
16918         * MODULES.html.sh (func_all_modules): remove exit.
16919
16920 2011-05-06  Jim Meyering  <meyering@redhat.com>
16921
16922         maint.mk: use info-gnu@ as the default only for a stable release
16923         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
16924         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
16925         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
16926         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
16927
16928 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16929
16930         assert-h: new module, which supports C1X-style static_assert
16931         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
16932         * lib/verify.h: Revamp so that this can be copied into assert.h,
16933         while retaining the ability to use it standalone as before.
16934         Rename private identifiers so as not to encroach on the
16935         standard C namespace, since this is now used by assert.h.
16936         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
16937         the old verify_true.
16938         (_GL_VERIFY_TRUE): New macro, with much of the contents of
16939         the old verify_true.  Use _GL_VERIFY_TYPE.
16940         (_GL_VERIFY): New macro, with much of the contents of the old verify.
16941         (static_assert): New macro, if _GL_STATIC_ASSERT_H
16942         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
16943         defined when this file is copied into the replacement assert.h.
16944         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
16945         and _Static_assert is not built in.
16946         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
16947         defined, and use the new macros mentioned above.
16948         * doc/posix-headers/assert.texi: Document this.
16949
16950 2011-05-05  Bruno Haible  <bruno@clisp.org>
16951
16952         fclose, fflush: Respect rules for use of AC_LIBOBJ.
16953         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
16954         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
16955         gl_REPLACE_FCLOSE here.
16956         * modules/fflush (Depends-on): Remove fclose.
16957         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
16958         combination with module 'fclose'.
16959
16960 2011-05-05  Bruno Haible  <bruno@clisp.org>
16961
16962         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
16963         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
16964         gl_FUNC_FFLUSH.
16965         (gl_FUNC_FFLUSH): Use it.
16966         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
16967         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
16968         gl_REPLACE_FSEEKO here.
16969
16970 2011-05-05  Bruno Haible  <bruno@clisp.org>
16971
16972         tzset: Relicense under LGPL.
16973         * modules/tzset (License): Change to LGPL.
16974         No agreement needed; it's a no-op.
16975
16976         strtoimax, strtoumax: Relicense under LGPL.
16977         * modules/strtoimax (License): Change to LGPL.
16978         * modules/strtoumax (License): Likewise.
16979         With permission from Jim Meyering, Paul Eggert:
16980         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
16981         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
16982
16983         getgroups: Relicense under LGPL.
16984         * modules/getgroups (License): Change to LGPL.
16985         With permission from Jim Meyering, Paul Eggert, Eric Blake:
16986         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16987         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16988         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16989
16990         nanosleep: Relicense under LGPL.
16991         * modules/nanosleep (License): Change to LGPL.
16992         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
16993         Haible:
16994         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16995         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16996         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16997         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16998
16999         futimens: Relicense under LGPL.
17000         * modules/futimens (License): Change to LGPL.
17001         With permission from Eric Blake:
17002         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17003
17004         fflush: Relicense under LGPL.
17005         * modules/fflush (License): Change to LGPL.
17006         With permission from Eric Blake, Bruno Haible, Jim Meyering:
17007         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17008         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
17009         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
17010
17011         tmpfile: Relicense under LGPL.
17012         * modules/tmpfile (License): Change to LGPL.
17013         With permission from Ben Pfaff:
17014         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
17015
17016         isfinite: Relicense under LGPL.
17017         * modules/isfinite (License): Change to LGPL.
17018         With permission from Ben Pfaff, Bruno Haible:
17019         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
17020         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
17021
17022         acosl..tanl: Relicense under LGPL.
17023         * modules/acosl (License): Change to LGPL.
17024         * modules/asinl (License): Likewise.
17025         * modules/atanl (License): Likewise.
17026         * modules/cosl (License): Likewise.
17027         * modules/expl (License): Likewise.
17028         * modules/logl (License): Likewise.
17029         * modules/sinl (License): Likewise.
17030         * modules/sqrtl (License): Likewise.
17031         * modules/tanl (License): Likewise.
17032         Source code originally from glibc and Paolo Bonzini. Agreements:
17033         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
17034         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
17035
17036 2011-05-05  Bruno Haible  <bruno@clisp.org>
17037
17038         signal: Define sighandler_t.
17039         * lib/signal.in.h (sighandler_t): New type.
17040         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
17041         whether sighandler_t is defined.
17042         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
17043         * modules/signal (Depends-on): Add extensions.
17044         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
17045         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
17046         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
17047
17048 2011-05-05  Eric Blake  <eblake@redhat.com>
17049
17050         maint: remove useless REPLACE_*_H macros
17051         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
17052         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
17053         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
17054         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
17055         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
17056         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
17057         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
17058         * m4/btowc.m4: Update callers.
17059         * m4/dirfd.m4: Likewise.
17060         * m4/duplocale.m4: Likewise.
17061         * m4/fchdir.m4: Likewise.
17062         * m4/fdopendir.m4: Likewise.
17063         * m4/inet_ntop.m4: Likewise.
17064         * m4/inet_pton.m4: Likewise.
17065         * m4/ioctl.m4: Likewise.
17066         * m4/mbrlen.m4: Likewise.
17067         * m4/mbrtowc.m4: Likewise.
17068         * m4/mbsinit.m4: Likewise.
17069         * m4/mbsnrtowcs.m4: Likewise.
17070         * m4/mbsrtowcs.m4: Likewise.
17071         * m4/poll.m4: Likewise.
17072         * m4/setlocale.m4: Likewise.
17073         * m4/wcrtomb.m4: Likewise.
17074         * m4/wcsnrtombs.m4: Likewise.
17075         * m4/wcsrtombs.m4: Likewise.
17076         * m4/wctob.m4: Likewise.
17077         * m4/wcwidth.m4: Likewise.
17078         * modules/posix_spawn: Likewise.
17079         * modules/posix_spawn_file_actions_addclose: Likewise.
17080         * modules/posix_spawn_file_actions_adddup2: Likewise.
17081         * modules/posix_spawn_file_actions_addopen: Likewise.
17082         * modules/posix_spawn_file_actions_destroy: Likewise.
17083         * modules/posix_spawn_file_actions_init: Likewise.
17084         * modules/posix_spawnattr_destroy: Likewise.
17085         * modules/posix_spawnattr_getflags: Likewise.
17086         * modules/posix_spawnattr_getpgroup: Likewise.
17087         * modules/posix_spawnattr_getschedparam: Likewise.
17088         * modules/posix_spawnattr_getschedpolicy: Likewise.
17089         * modules/posix_spawnattr_getsigdefault: Likewise.
17090         * modules/posix_spawnattr_getsigmask: Likewise.
17091         * modules/posix_spawnattr_init: Likewise.
17092         * modules/posix_spawnattr_setflags: Likewise.
17093         * modules/posix_spawnattr_setpgroup: Likewise.
17094         * modules/posix_spawnattr_setschedparam: Likewise.
17095         * modules/posix_spawnattr_setschedpolicy: Likewise.
17096         * modules/posix_spawnattr_setsigdefault: Likewise.
17097         * modules/posix_spawnattr_setsigmask: Likewise.
17098         * modules/posix_spawnp: Likewise.
17099
17100 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
17101
17102         Add option to do-release-commit-and-tag to specify branch.
17103         * build-aux/do-release-commit-and-tag: Add --branch.
17104
17105 2011-05-03  Bruno Haible  <bruno@clisp.org>
17106
17107         Avoid unnecessary compilation units, through conditional dependencies.
17108         * modules/accept (Depends-on): Add conditions to the dependencies.
17109         * modules/acosl (Depends-on): Likewise.
17110         * modules/argz (Depends-on): Likewise.
17111         * modules/asinl (Depends-on): Likewise.
17112         * modules/atanl (Depends-on): Likewise.
17113         * modules/atoll (Depends-on): Likewise.
17114         * modules/bind (Depends-on): Likewise.
17115         * modules/btowc (Depends-on): Likewise.
17116         * modules/canonicalize-lgpl (Depends-on): Likewise.
17117         * modules/ceil (Depends-on): Likewise.
17118         * modules/ceilf (Depends-on): Likewise.
17119         * modules/ceill (Depends-on): Likewise.
17120         * modules/chdir-long (Depends-on): Likewise.
17121         * modules/chown (Depends-on): Likewise.
17122         * modules/close (Depends-on): Likewise.
17123         * modules/connect (Depends-on): Likewise.
17124         * modules/cosl (Depends-on): Likewise.
17125         * modules/dirfd (Depends-on): Likewise.
17126         * modules/dprintf (Depends-on): Likewise.
17127         * modules/dprintf-posix (Depends-on): Likewise.
17128         * modules/error (Depends-on): Likewise.
17129         * modules/euidaccess (Depends-on): Likewise.
17130         * modules/expl (Depends-on): Likewise.
17131         * modules/faccessat (Depends-on): Likewise.
17132         * modules/fchdir (Depends-on): Likewise.
17133         * modules/fclose (Depends-on): Likewise.
17134         * modules/fcntl (Depends-on): Likewise.
17135         * modules/fdopendir (Depends-on): Likewise.
17136         * modules/fflush (Depends-on): Likewise.
17137         * modules/floor (Depends-on): Likewise.
17138         * modules/floorf (Depends-on): Likewise.
17139         * modules/floorl (Depends-on): Likewise.
17140         * modules/fnmatch (Depends-on): Likewise.
17141         * modules/fopen (Depends-on): Likewise.
17142         * modules/fprintf-posix (Depends-on): Likewise.
17143         * modules/frexp (Depends-on): Likewise.
17144         * modules/frexp-nolibm (Depends-on): Likewise.
17145         * modules/frexpl (Depends-on): Likewise.
17146         * modules/frexpl-nolibm (Depends-on): Likewise.
17147         * modules/fseek (Depends-on): Likewise.
17148         * modules/fsusage (Depends-on): Likewise.
17149         * modules/ftell (Depends-on): Likewise.
17150         * modules/ftello (Depends-on): Likewise.
17151         * modules/futimens (Depends-on): Likewise.
17152         * modules/getcwd (Depends-on): Likewise.
17153         * modules/getcwd-lgpl (Depends-on): Likewise.
17154         * modules/getdelim (Depends-on): Likewise.
17155         * modules/getdomainname (Depends-on): Likewise.
17156         * modules/getgroups (Depends-on): Likewise.
17157         * modules/gethostname (Depends-on): Likewise.
17158         * modules/getline (Depends-on): Likewise.
17159         * modules/getlogin_r (Depends-on): Likewise.
17160         * modules/getopt-posix (Depends-on): Likewise.
17161         * modules/getpeername (Depends-on): Likewise.
17162         * modules/getsockname (Depends-on): Likewise.
17163         * modules/getsockopt (Depends-on): Likewise.
17164         * modules/getsubopt (Depends-on): Likewise.
17165         * modules/getusershell (Depends-on): Likewise.
17166         * modules/glob (Depends-on): Likewise.
17167         * modules/grantpt (Depends-on): Likewise.
17168         * modules/iconv_open (Depends-on): Likewise.
17169         * modules/iconv_open-utf (Depends-on): Likewise.
17170         * modules/inet_ntop (Depends-on): Likewise.
17171         * modules/inet_pton (Depends-on): Likewise.
17172         * modules/ioctl (Depends-on): Likewise.
17173         * modules/isapipe (Depends-on): Likewise.
17174         * modules/isfinite (Depends-on): Likewise.
17175         * modules/isinf (Depends-on): Likewise.
17176         * modules/lchown (Depends-on): Likewise.
17177         * modules/ldexpl (Depends-on): Likewise.
17178         * modules/link (Depends-on): Likewise.
17179         * modules/linkat (Depends-on): Likewise.
17180         * modules/listen (Depends-on): Likewise.
17181         * modules/logl (Depends-on): Likewise.
17182         * modules/lstat (Depends-on): Likewise.
17183         * modules/mbrlen (Depends-on): Likewise.
17184         * modules/mbrtowc (Depends-on): Likewise.
17185         * modules/mbsinit (Depends-on): Likewise.
17186         * modules/mbsnrtowcs (Depends-on): Likewise.
17187         * modules/mbsrtowcs (Depends-on): Likewise.
17188         * modules/mbtowc (Depends-on): Likewise.
17189         * modules/memcmp (Depends-on): Likewise.
17190         * modules/mkdir (Depends-on): Likewise.
17191         * modules/mkdtemp (Depends-on): Likewise.
17192         * modules/mkfifo (Depends-on): Likewise.
17193         * modules/mkfifoat (Depends-on): Likewise.
17194         * modules/mknod (Depends-on): Likewise.
17195         * modules/mkostemp (Depends-on): Likewise.
17196         * modules/mkostemps (Depends-on): Likewise.
17197         * modules/mkstemp (Depends-on): Likewise.
17198         * modules/mkstemps (Depends-on): Likewise.
17199         * modules/mktime (Depends-on): Likewise.
17200         * modules/nanosleep (Depends-on): Likewise.
17201         * modules/open (Depends-on): Likewise.
17202         * modules/openat (Depends-on): Likewise.
17203         * modules/perror (Depends-on): Likewise.
17204         * modules/poll (Depends-on): Likewise.
17205         * modules/popen (Depends-on): Likewise.
17206         * modules/posix_spawn (Depends-on): Likewise.
17207         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
17208         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
17209         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
17210         * modules/posix_spawnp (Depends-on): Likewise.
17211         * modules/pread (Depends-on): Likewise.
17212         * modules/printf-posix (Depends-on): Likewise.
17213         * modules/ptsname (Depends-on): Likewise.
17214         * modules/putenv (Depends-on): Likewise.
17215         * modules/pwrite (Depends-on): Likewise.
17216         * modules/readline (Depends-on): Likewise.
17217         * modules/readlink (Depends-on): Likewise.
17218         * modules/readlinkat (Depends-on): Likewise.
17219         * modules/recv (Depends-on): Likewise.
17220         * modules/recvfrom (Depends-on): Likewise.
17221         * modules/regex (Depends-on): Likewise.
17222         * modules/remove (Depends-on): Likewise.
17223         * modules/rename (Depends-on): Likewise.
17224         * modules/renameat (Depends-on): Likewise.
17225         * modules/rmdir (Depends-on): Likewise.
17226         * modules/round (Depends-on): Likewise.
17227         * modules/roundf (Depends-on): Likewise.
17228         * modules/roundl (Depends-on): Likewise.
17229         * modules/rpmatch (Depends-on): Likewise.
17230         * modules/select (Depends-on): Likewise.
17231         * modules/send (Depends-on): Likewise.
17232         * modules/sendto (Depends-on): Likewise.
17233         * modules/setenv (Depends-on): Likewise.
17234         * modules/setlocale (Depends-on): Likewise.
17235         * modules/setsockopt (Depends-on): Likewise.
17236         * modules/shutdown (Depends-on): Likewise.
17237         * modules/sigaction (Depends-on): Likewise.
17238         * modules/signbit (Depends-on): Likewise.
17239         * modules/sigprocmask (Depends-on): Likewise.
17240         * modules/sinl (Depends-on): Likewise.
17241         * modules/sleep (Depends-on): Likewise.
17242         * modules/snprintf (Depends-on): Likewise.
17243         * modules/snprintf-posix (Depends-on): Likewise.
17244         * modules/socket (Depends-on): Likewise.
17245         * modules/sprintf-posix (Depends-on): Likewise.
17246         * modules/sqrtl (Depends-on): Likewise.
17247         * modules/stat (Depends-on): Likewise.
17248         * modules/strchrnul (Depends-on): Likewise.
17249         * modules/strdup-posix (Depends-on): Likewise.
17250         * modules/strerror (Depends-on): Likewise.
17251         * modules/strerror_r-posix (Depends-on): Likewise.
17252         * modules/strndup (Depends-on): Likewise.
17253         * modules/strnlen (Depends-on): Likewise.
17254         * modules/strptime (Depends-on): Likewise.
17255         * modules/strsep (Depends-on): Likewise.
17256         * modules/strsignal (Depends-on): Likewise.
17257         * modules/strstr-simple (Depends-on): Likewise.
17258         * modules/strtod (Depends-on): Likewise.
17259         * modules/strtoimax (Depends-on): Likewise.
17260         * modules/strtok_r (Depends-on): Likewise.
17261         * modules/strtoumax (Depends-on): Likewise.
17262         * modules/symlink (Depends-on): Likewise.
17263         * modules/symlinkat (Depends-on): Likewise.
17264         * modules/tanl (Depends-on): Likewise.
17265         * modules/tcgetsid (Depends-on): Likewise.
17266         * modules/tmpfile (Depends-on): Likewise.
17267         * modules/trunc (Depends-on): Likewise.
17268         * modules/truncf (Depends-on): Likewise.
17269         * modules/truncl (Depends-on): Likewise.
17270         * modules/uname (Depends-on): Likewise.
17271         * modules/unlink (Depends-on): Likewise.
17272         * modules/unlockpt (Depends-on): Likewise.
17273         * modules/unsetenv (Depends-on): Likewise.
17274         * modules/usleep (Depends-on): Likewise.
17275         * modules/utimensat (Depends-on): Likewise.
17276         * modules/vasprintf (Depends-on): Likewise.
17277         * modules/vdprintf (Depends-on): Likewise.
17278         * modules/vdprintf-posix (Depends-on): Likewise.
17279         * modules/vfprintf-posix (Depends-on): Likewise.
17280         * modules/vprintf-posix (Depends-on): Likewise.
17281         * modules/vsnprintf (Depends-on): Likewise.
17282         * modules/vsnprintf-posix (Depends-on): Likewise.
17283         * modules/vsprintf-posix (Depends-on): Likewise.
17284         * modules/wcrtomb (Depends-on): Likewise.
17285         * modules/wcscasecmp (Depends-on): Likewise.
17286         * modules/wcscspn (Depends-on): Likewise.
17287         * modules/wcsdup (Depends-on): Likewise.
17288         * modules/wcsncasecmp (Depends-on): Likewise.
17289         * modules/wcsnrtombs (Depends-on): Likewise.
17290         * modules/wcspbrk (Depends-on): Likewise.
17291         * modules/wcsrtombs (Depends-on): Likewise.
17292         * modules/wcsspn (Depends-on): Likewise.
17293         * modules/wcsstr (Depends-on): Likewise.
17294         * modules/wcstok (Depends-on): Likewise.
17295         * modules/wcswidth (Depends-on): Likewise.
17296         * modules/wctob (Depends-on): Likewise.
17297         * modules/wctomb (Depends-on): Likewise.
17298         * modules/wctype (Depends-on): Likewise.
17299         * modules/wcwidth (Depends-on): Likewise.
17300         * modules/write (Depends-on): Likewise.
17301
17302 2011-05-03  Bruno Haible  <bruno@clisp.org>
17303
17304         Support for conditional dependencies.
17305         * doc/gnulib.texi (Module description): Document the syntax of
17306         conditional dependencies.
17307         * gnulib-tool: New option --conditional-dependencies.
17308         (func_usage): Document it.
17309         (cond_dependencies): New variable.
17310         (func_get_automake_snippet_conditional,
17311         func_get_automake_snippet_unconditional): New functions, extracted from
17312         func_get_automake_snippet.
17313         (func_get_automake_snippet): Use them.
17314         (sed_first_32_chars): New variable.
17315         (func_module_shellfunc_name): New function.
17316         (func_module_shellvar_name): New function.
17317         (func_module_conditional_name): New function.
17318         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
17319         func_cond_module_condition): New functions.
17320         (func_modules_transitive_closure): Add support for conditional
17321         dependencies.
17322         (func_emit_lib_Makefile_am): For a conditional module, enclose the
17323         conditional automake snippet in an automake conditional.
17324         (func_emit_autoconf_snippets): Emit shell functions that contain the
17325         code for conditional modules.
17326         (func_import, func_create_testdir): Update specification.
17327
17328 2011-05-03  Eric Blake  <eblake@redhat.com>
17329
17330         test-getaddrinfo: report error information
17331         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
17332
17333 2011-05-03  Jim Meyering  <meyering@redhat.com>
17334
17335         bootstrap: avoid build failure when $GZIP is set
17336         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
17337         program name.  If defined at all, it is supposed to list gzip options.
17338         Reported by Alan Curry in http://debbugs.gnu.org/8609
17339
17340 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
17341
17342         readme-release: new module with release instructions
17343         * modules/readme-release: New module.
17344         * top/README-release: New file, from coreutils, grep, diffutils.
17345         * MODULES.html.sh (Support for maintaining and releasing): Add it.
17346
17347 2011-05-02  Eric Blake  <eblake@redhat.com>
17348
17349         fflush: also replace fclose when fixing fflush
17350         * modules/fflush (Depends-on): Add fclose.
17351         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
17352         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
17353         memstreams with no backing fd.
17354         * doc/posix-functions/fclose.texi (fclose): Document the use of
17355         fflush module to fix the bug.
17356         * tests/test-fclose.c (main): Relax test when fclose is used in
17357         isolation.
17358
17359         fclose: add some tests
17360         * modules/fclose-tests: New test module.
17361         * tests/test-fclose.c: New file.
17362         * doc/posix-functions/fclose.texi (fclose): Document the bug.
17363
17364         fclose: reduced dependencies
17365         * modules/fclose (Depends-on): Switch from fflush/fseeko to
17366         simpler lseek.
17367         * lib/fclose.c (rpl_fclose): Likewise.
17368         Reported by Simon Josefsson.
17369
17370         exit: drop remaining clients
17371         * modules/argmatch (Depends-on): Replace exit with stdlib.
17372         * modules/copy-file (Depends-on): Likewise.
17373         * modules/execute (Depends-on): Likewise.
17374         * modules/exitfail (Depends-on): Likewise.
17375         * modules/obstack (Depends-on): Likewise.
17376         * modules/pagealign_alloc (Depends-on): Likewise.
17377         * modules/pipe-filter-gi (Depends-on): Likewise.
17378         * modules/pipe-filter-ii (Depends-on): Likewise.
17379         * modules/savewd (Depends-on): Likewise.
17380         * modules/spawn-pipe (Depends-on): Likewise.
17381         * modules/wait-process (Depends-on): Likewise.
17382         * modules/xsetenv (Depends-on): Likewise.
17383         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
17384         * modules/git-merge-changelog (Depends-on): Likewise.
17385         * modules/long-options (Depends-on): Likewise.
17386         * modules/pt_chown (Depends-on): Likewise.
17387         * modules/sysexits (Depends-on): Likewise.
17388
17389         freading: relax license from LGPLv3+ to LGPLv2+
17390         * modules/freading (License): Relax LGPL version.
17391
17392 2011-05-02  Bruno Haible  <bruno@clisp.org>
17393
17394         fchdir: Remove unused dependencies.
17395         * modules/fchdir (Depends-on): Remove include_next.
17396
17397 2011-05-02  Bruno Haible  <bruno@clisp.org>
17398
17399         gnulib-tool: Refactor.
17400         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
17401         from func_emit_autoconf_snippets.
17402         (func_emit_autoconf_snippets): Use it.
17403
17404 2011-05-02  Simon Josefsson  <simon@josefsson.org>
17405
17406         * NEWS: Document removal of 'exit'.
17407         * modules/exit: Remove file.
17408
17409 2011-05-01  Bruno Haible  <bruno@clisp.org>
17410
17411         Update DEPENDENCIES.
17412         * DEPENDENCIES (gettext): Recommend the newest release.
17413         Reported by Simon Josefsson.
17414
17415 2011-05-01  Bruno Haible  <bruno@clisp.org>
17416
17417         gnulib-tool: Reduce code duplication.
17418         * gnulib-tool (func_emit_autoconf_snippets): New function.
17419         (func_import, func_create_testdir): Use it.
17420
17421 2011-04-30  Eric Blake  <eblake@redhat.com>
17422
17423         fclose: don't fail on non-seekable input stream
17424         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
17425         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
17426         since fflush is allowed to fail in that case.
17427
17428 2011-04-30  Bruno Haible  <bruno@clisp.org>
17429
17430         dup3: cleanup
17431         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
17432
17433 2011-04-30  Bruno Haible  <bruno@clisp.org>
17434
17435         netdb: Make it work in C++ mode.
17436         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
17437         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
17438         module.
17439         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
17440         gl_MODULE_INDICATOR_FOR_TESTS.
17441         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
17442         * modules/netdb-c++-tests: New file.
17443         * tests/test-netdb-c++.cc: New file.
17444
17445 2011-04-30  Bruno Haible  <bruno@clisp.org>
17446
17447         New modules 'vfscanf', 'vscanf'.
17448         * modules/vfscanf: New file.
17449         * modules/vscanf: New file.
17450         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
17451         here.
17452         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
17453         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
17454
17455 2011-04-30  Bruno Haible  <bruno@clisp.org>
17456
17457         passfd: Add comments.
17458         * lib/passfd.c: Add comments about platforms.
17459
17460 2011-04-30  Bruno Haible  <bruno@clisp.org>
17461
17462         sys_uio: Make <sys/uio.h> self-contained.
17463         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
17464         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
17465
17466 2011-04-30  Bruno Haible  <bruno@clisp.org>
17467
17468         sys_socket: Ensure 'struct iovec' definition.
17469         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
17470         <sys/socket.h>.
17471         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
17472
17473 2011-04-30  Bruno Haible  <bruno@clisp.org>
17474
17475         sys_uio: Protect definition of 'struct iovec'.
17476         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
17477         it as a C struct.
17478
17479 2011-04-30  Bruno Haible  <bruno@clisp.org>
17480
17481         manywarnings: fix indentation
17482         * m4/manywarnings.m4: Indent by 2 spaces consistently.
17483
17484 2011-04-30  Pádraig Brady <P@draigBrady.com>
17485
17486         manywarnings: add -Wno-missing-field-initializers if needed.
17487         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
17488         option if it's needed to allow initialization with { 0, }
17489
17490 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
17491
17492         announce-gen: cosmetic improvement
17493         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
17494
17495 2011-04-29  Jim Meyering  <meyering@redhat.com>
17496
17497         vc-list-files: indent with spaces, not TABs
17498         * build-aux/vc-list-files: Convert leading TABs to spaces,
17499         to match the style of most other files in gnulib.
17500
17501         announce-gen: indent with spaces, not TABs
17502         * build-aux/announce-gen: Convert all TABs to spaces, to match
17503         the style of most other files in gnulib.
17504
17505 2011-04-29  Eric Blake  <eblake@redhat.com>
17506
17507         quotearg: avoid uninitialized variable use
17508         * lib/quotearg.c (quoting_options_from_style): Initialize
17509         remaining fields, and ensure that custom styles are only used via
17510         quoting_options rather than quoting_style.
17511
17512 2011-04-29  Jim Meyering  <meyering@redhat.com>
17513
17514         maint.mk: remove unused VC-tag variable
17515         * top/maint.mk (VC-tag): Remove unused variable.
17516
17517 2011-04-29  Bruno Haible  <bruno@clisp.org>
17518
17519         netdb: fix gai_strerror replacements
17520         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
17521         * modules/netdb: Substitute it.
17522
17523 2011-04-29  Jim Meyering  <meyering@redhat.com>
17524
17525         test-getcwd.c: avoid new set-but-not-used warning
17526         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
17527         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
17528         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
17529         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
17530
17531         test-hash.c: avoid a new shadowing warning
17532         * tests/test-hash.c (main): Don't shadow "dup".
17533
17534 2011-04-28  Eric Blake  <eblake@redhat.com>
17535
17536         getaddrinfo: fix gai_strerror signature
17537         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
17538         and work around mingw with UNICODE defined.
17539         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
17540         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
17541         * modules/netdb (Makefile.am): Substitute it.
17542         * lib/netdb.in.h (gai_strerror): Declare replacement.
17543         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
17544         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
17545         the fix.
17546
17547         getsockopt: avoid compiler warning
17548         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
17549         Reported by Matthias Bolte.
17550
17551         tests: drop unused link dependency
17552         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
17553         * modules/dirent-safer-tests (Makefile.am): Likewise.
17554         * modules/fdopendir-tests (Makefile.am): Likewise.
17555         * modules/mkfifoat-tests (Makefile.am): Likewise.
17556         * modules/openat-safer-tests (Makefile.am): Likewise.
17557         * modules/openat-tests (Makefile.am): Likewise.
17558         * modules/readlinkat-tests (Makefile.am): Likewise.
17559         * modules/symlinkat-tests (Makefile.am): Likewise.
17560         * modules/linkat-tests (Makefile.am): Likewise.
17561         (Depends-on): Switch to filenamecat-lgpl.
17562         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
17563         LIBINTL.
17564         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
17565         * tests/test-linkat.c (main): Don't require xalloc.
17566
17567         hash, mgetgroups: drop xalloc dependency
17568         * lib/hash.c (includes): Adjust includes.
17569         * lib/mgetgroups.c (includes): Likewise.
17570         (xgetgroups): Move...
17571         * lib/xgetgroups.c: ...to new file.
17572         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
17573         * modules/xgetgroups: New file, split from...
17574         * modules/mgetgroups: ...here.
17575         (Depends-on): Add xalloc-oversized.
17576         * modules/hash (Depends-on): Likewise.
17577         * modules/hash-tests (Depends-on): Drop xalloc.
17578         (test_hash_LDADD): Drop unused library.
17579         * tests/test-hash.c (main): Break xalloc dependency.
17580         (includes): Drop unused include.
17581
17582         xalloc-oversized: new module
17583         * modules/xalloc-oversized: New module.
17584         * modules/xalloc (Depends-on): Add it.
17585         * lib/xalloc.h (xalloc_oversized): Move...
17586         * lib/xalloc-oversized.h: ...into new file.
17587
17588         utimecmp: drop dependency on xmalloc
17589         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
17590         due to memory pressure.
17591         * modules/utimecmp (Depends-on): Drop xalloc.
17592
17593 2011-04-27  Eric Blake  <eblake@redhat.com>
17594
17595         getcwd: fix mingw bugs
17596         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
17597         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
17598         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
17599
17600 2011-04-27  Bruno Haible  <bruno@clisp.org>
17601
17602         mkstemps: Ensure declaration on MacOS X 10.5.
17603         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
17604         * doc/glibc-functions/mkstemps.texi: Document header file problem on
17605         MacOS X.
17606
17607 2011-04-27  Bruno Haible  <bruno@clisp.org>
17608
17609         mkstemp: More documentation.
17610         * doc/posix-functions/mkstemp.texi: Document header file problem on
17611         MacOS X.
17612
17613 2011-04-27  Bruno Haible  <bruno@clisp.org>
17614
17615         mkstemp: Tweak configure message when cross-compiling.
17616         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
17617         result as a guess.
17618
17619 2011-04-27  Bruno Haible  <bruno@clisp.org>
17620
17621         clean-temp: Clarify what it does.
17622         * lib/clean-temp.h: Add more comments.
17623         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
17624         module.
17625         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
17626         * doc/glibc-functions/mkstemps.texi: Likewise.
17627         * doc/glibc-functions/mkostemps.texi: Likewise.
17628
17629 2011-04-27  Eric Blake  <eblake@redhat.com>
17630
17631         fchdir: avoid extra chdir and fix test
17632         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
17633         getcwd-lgpl.
17634         * lib/fchdir.c (get_name): Any absolute name will do; it does not
17635         have to be canonical.
17636         (canonicalize_file_name): Drop unused macro.
17637         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
17638
17639         filenamecat-lgpl: fix licence
17640         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
17641         when it was first created.
17642
17643         linkat, renameat: add missing dependency
17644         * modules/linkat (Depends-on): Require getcwd-lgpl.
17645         * modules/renameat (Depends-on): Likewise.
17646
17647         tests: reduce dependencies
17648         * tests/test-linkat.c (main): Use lighter-weight getcwd.
17649         * tests/test-renameat.c (main): Likewise.
17650         * modules/linkat-tests (Depends-on): Relax dependency.
17651         * modules/renameat-tests (Depends-on): Likewise.
17652         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
17653         dependency explicit.
17654
17655         save-cwd: reduce default dependency
17656         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
17657         * lib/save-cwd.c: Update comments.
17658         * NEWS: Document the semantic change.
17659
17660         getcwd: enhance tests
17661         * tests/test-getcwd-lgpl.c: New file, taken from...
17662         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
17663         repeat long path stress tests from m4 probe.
17664         * modules/getcwd-lgpl-tests: New module.
17665         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
17666         * m4/getcwd-abort-bug.m4: Update comment.
17667         * m4/getcwd-path-max.m4: Likewise.
17668
17669         getcwd-lgpl: new module
17670         * modules/getcwd-lgpl: New module.
17671         * lib/getcwd-lgpl.c: New file.
17672         * doc/posix-functions/getcwd.texi (getcwd): Document it.
17673         * MODULES.html.sh (lacking POSIX:2008): Likewise.
17674         * modules/getcwd (configure.ac): Set C witness.
17675         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
17676
17677         getcwd: tweak comments
17678         * m4/getcwd-abort-bug.m4: Fix comments.
17679         * m4/getcwd-path-max.m4: Likewise.
17680         * m4/getcwd.m4: Likewise.
17681
17682 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17683         and Eric Blake  <eblake@redhat.com>
17684
17685         mkstemp: replace if system version uses wrong permissions
17686         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
17687         read/write mode bits set in file created by mkstemp.
17688         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
17689
17690 2011-04-27  Eric Blake  <eblake@redhat.com>
17691
17692         passfd: avoid compiler warning
17693         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
17694         Reported by Laine Stump.
17695
17696 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
17697
17698         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
17699         required by the NetBSD (and perhaps other 4.4BSD derived) join.
17700
17701 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17702         and Eric Blake  <eblake@redhat.com>
17703
17704         mkstemp: mention clean-temp module
17705         * lib/mkstemp.c: Add comment.
17706         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
17707
17708 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
17709
17710         inttypes: also provide default values for 32-bit tests
17711         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
17712         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
17713
17714 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
17715
17716         strtoumax: remove dependency on strtoimax
17717         This is like the strtoull change of yesterday.
17718         * modules/strtoumax (Files): Add lib/strtoimax.c.
17719         (Depends-on): Remove strtoimax and add verify.
17720
17721         inttypes-incomplete: new module
17722         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
17723         all but the PRI* and SCN* parts of gl_INTTYPES_H.
17724         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
17725         of gl_INTTYPES_H.
17726         (gl_INTTYPES_H): Rewrite in terms of these new macros.
17727         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
17728         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
17729         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
17730         * modules/strtoumax, modules/xstrtol (Depends-on):
17731         Depend on inttypes-incomplete, not inttypes.
17732         * modules/inttypes-incomplete: New module, containing the contents
17733         of the old modules/inttypes module, except that the Files: section
17734         omits m4/inttypes-pri.m4, and the configure.ac section invokes
17735         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
17736         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
17737         (Depends-on): Depend only on inttypes-incomplete.
17738         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
17739
17740         inttypes: omit now-redundant strtoimax and strtoumax work
17741         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
17742         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
17743
17744         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
17745         This supports apps that need pointers to strtoimax and strtoumax,
17746         and ports to HP-UX 11.00 64.bit, which has macros that expand to
17747         nonexistent functions.  See
17748         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
17749         et seq.
17750         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
17751         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
17752         a macro.
17753         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17754
17755 2011-04-25  Simon Josefsson  <simon@josefsson.org>
17756
17757         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
17758
17759 2011-04-25  Bruno Haible  <bruno@clisp.org>
17760
17761         strtol, strtoul: Mark modules as obsolete.
17762         * modules/strtol (Status, Notice): New sections.
17763         * modules/strtoul (Status, Notice): New sections.
17764
17765 2011-04-25  Bruno Haible  <bruno@clisp.org>
17766
17767         strtod: Remove check for strtod, unless supporting old platforms.
17768         * modules/strtod-obsolete: New file.
17769         * m4/strtod-obsolete.m4: New file.
17770         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
17771         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
17772         * modules/strtod (Depends-on): Add strtod-obsolete.
17773         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
17774
17775 2011-04-25  Bruno Haible  <bruno@clisp.org>
17776
17777         strcase: Make module obsolete.
17778         * modules/strcase (Status, Notice): New sections.
17779
17780 2011-04-25  Bruno Haible  <bruno@clisp.org>
17781
17782         dup2: Remove check for dup2, unless supporting old obsolete platforms.
17783         * modules/dup2-obsolete: New file.
17784         * m4/dup2-obsolete.m4: New file.
17785         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
17786         gl_FUNC_DUP2_OBSOLETE is not also defined.
17787         * modules/dup2 (Depends-on): Add dup2-obsolete.
17788         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
17789
17790 2011-04-25  Bruno Haible  <bruno@clisp.org>
17791
17792         strnlen: Avoid memchr related link error on old obsolete platforms.
17793         * modules/memchr-obsolete: New file.
17794         * m4/memchr-obsolete.m4: New file.
17795         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
17796         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
17797         * modules/memchr (Depends-on): Add memchr-obsolete.
17798         * modules/strnlen (Depends-on): Likewise.
17799         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
17800
17801 2011-04-25  Jim Meyering  <meyering@redhat.com>
17802
17803         maint.mk: makefile_at_at_check extend and clean up
17804         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
17805         in addition to */Makefile.am.
17806         Exempt legitimate uses of @VAR@ notation, e.g.,
17807         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
17808         Remove obsolete coreutils-specific comment.
17809         Prompted by discussion here:
17810         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
17811
17812 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
17813
17814         strtoul: remove dependency on strtol
17815         This is so that 'configure' need not check for strtol merely because
17816         the application needs strtoul.
17817         * modules/strtoul (Files): Add lib/strtol.c.
17818         (Depends-on): Remove strtol.
17819
17820         strtoull: remove dependency on strtoul
17821         This is like the strtoll change.
17822         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
17823         (Depends-on): Remove strtoul.
17824
17825         strtoll: remove dependency on strtol
17826         This is so that 'configure' need not check for strtol merely because
17827         the application needs strtoll.
17828         * modules/strtoll (Files): Add lib/strtol.c.
17829         (Depends-on): Remove strtol.
17830
17831 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17832
17833         inttypes: Move some configure check to module 'imaxdiv'.
17834         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
17835         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
17836         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
17837
17838 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17839
17840         inttypes: Move some configure check to module 'imaxabs'.
17841         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
17842         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
17843         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
17844
17845 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17846
17847         inttypes: Remove configure tests that are not needed since 2009-12-31.
17848         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
17849         gl_cv_header_working_inttypes_h.
17850
17851 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17852
17853         * modules/strnlen (Depends-on): Remove memchr.
17854         The strnlen implementation doesn't need the memchr module's fixes; see
17855         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
17856
17857         strtol: remove dependency on wchar
17858         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
17859         * modules/strtol (Depends-on): Remove wchar.
17860
17861 2011-04-21  Eric Blake  <eblake@redhat.com>
17862
17863         passfd: fix test regression on Linux
17864         * modules/passfd-tests (configure.ac): Correct socketpair check.
17865
17866         passfd: speed up configure and drop unused code
17867         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
17868         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
17869         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
17870         Instead of probing at configure for unix_scm_rights_bsd44_way,
17871         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
17872         check to a struct member probe.
17873         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
17874         (sendfd, recvfd): Update preprocessor checks.
17875         * modules/passfd (Files): Reflect rename, and drop unused file.
17876         (Depends-on): Drop unused dependency.
17877
17878         passfd: allow compilation on mingw
17879         * modules/sys_socket (Depends-on): Add sys_uio.
17880         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
17881         iovec and a minimal struct msghdr.
17882         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
17883         * tests/test-sys_socket.c (main): Enhance test.
17884         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
17885         guaranteed to provide what we need.
17886         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
17887         * modules/passfd-tests (Depends-on): Add sys_wait.
17888         * tests/test-passfd.c (main): Skip test on mingw, for now.
17889         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
17890         partial 'struct msghdr' implementation.
17891
17892         sys_uio: new module
17893         * modules/sys_uio: New module.
17894         * modules/sys_uio-tests: Likewise.
17895         * lib/sys_uio.in.h: New file.
17896         * m4/sys_uio_h.m4: Likewise.
17897         * tests/test-sys_uio.c: Likewise.
17898         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
17899         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
17900
17901 2011-04-20  Jim Meyering  <meyering@redhat.com>
17902
17903         useless-if-before-free: avoid false-positive
17904         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
17905         disjunct so that it too requires a terminating ";".  Without that,
17906         this script would identify as useless one statement from gcc that
17907         was not:
17908           if (aligned_ptr)
17909             free (((void **) aligned_ptr) [-1]);
17910
17911 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
17912
17913         doc: update users.txt.
17914         * users.txt: Add barcode.
17915
17916 2011-04-19  Bruno Haible  <bruno@clisp.org>
17917
17918         ioctl: Remove link dependency on native Windows.
17919         * lib/fd-hook.h: Renamed from lib/close-hook.h.
17920         (gl_close_fn, gl_ioctl_fn): New types.
17921         (struct fd_hook): Renamed from struct close_hook. Change type of
17922         private_close_fn field. Add private_ioctl_fn field.
17923         (close_hook_fn): Add parameter for primary close method.
17924         (execute_close_hooks, execute_all_close_hooks): Likewise.
17925         (ioctl_hook_fn): New type.
17926         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
17927         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17928         argument.
17929         (unregister_fd_hook): Renamed from unregister_close_hook.
17930         * lib/fd-hook.c: Renamed from lib/close-hook.c.
17931         Don't include <unistd.h>.
17932         (close): Remove undef.
17933         (anchor): Update.
17934         (execute_close_hooks): Add argument for primary close method.
17935         (execute_all_close_hooks): Likewise.
17936         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
17937         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17938         argument. Allow each argument to be NULL.
17939         (unregister_fd_hook): Renamed from unregister_close_hook.
17940         * lib/close.c (rpl_close): Pass 'close' function pointer to
17941         execute_all_close_hooks.
17942         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
17943         (primary_ioctl): New function.
17944         (ioctl): Don't call ioctlsocket here. Instead, call
17945         execute_all_ioctl_hooks.
17946         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
17947         close method.
17948         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
17949         (fd_sockets_hook): Renamed from close_sockets_hook.
17950         (gl_sockets_startup, gl_sockets_cleanup): Update.
17951         * modules/fd-hook: Renamed from modules/close-hook. Update.
17952         * modules/close (Depends-on): Add fd-hook, remove close-hook.
17953         * modules/sockets (Depends-on): Likewise.
17954         * modules/ioctl (Depends-on): Add fd-hook.
17955         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
17956         GNULIB_SOCKET.
17957
17958 2011-04-19  Bruno Haible  <bruno@clisp.org>
17959
17960         Move the support of O_NONBLOCK in open() to the 'open' module.
17961         * modules/nonblocking (Depends-on): Remove 'open'.
17962         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
17963         gl_cv_have_open_O_NONBLOCK.
17964         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
17965         O_NONBLOCK support.
17966         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
17967
17968 2011-04-17  Bruno Haible  <bruno@clisp.org>
17969
17970         pipe2: Simplify code.
17971         * lib/pipe2.c (pipe2): Reduce code duplication.
17972
17973 2011-04-17  Bruno Haible  <bruno@clisp.org>
17974
17975         nonblocking: Add comment.
17976         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
17977
17978 2011-04-17  Bruno Haible  <bruno@clisp.org>
17979
17980         nonblocking: Add tests for sockets.
17981         * tests/test-nonblocking-socket.sh: New file.
17982         * tests/test-nonblocking-socket-main.c: New file.
17983         * tests/test-nonblocking-socket-child.c: New file.
17984         * tests/test-nonblocking-socket.h: New file.
17985         * tests/socket-server.h: New file.
17986         * tests/socket-client.h: New file.
17987         * modules/nonblocking-socket-tests: New file.
17988         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
17989
17990 2011-04-17  Bruno Haible  <bruno@clisp.org>
17991
17992         nonblocking: Add tests for pipes.
17993         * tests/test-nonblocking-pipe.sh: New file.
17994         * tests/test-nonblocking-pipe-main.c: New file.
17995         * tests/test-nonblocking-pipe-child.c: New file.
17996         * tests/test-nonblocking-pipe.h: New file.
17997         * tests/test-nonblocking-writer.h: New file.
17998         * tests/test-nonblocking-reader.h: New file.
17999         * tests/test-nonblocking-misc.h: New file.
18000         * modules/nonblocking-pipe-tests: New file.
18001         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
18002
18003 2011-04-16  Bruno Haible  <bruno@clisp.org>
18004
18005         gettext: Clarify the needed programmer actions.
18006         * modules/gettext (Notice): New field.
18007         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
18008
18009 2011-04-16  Bruno Haible  <bruno@clisp.org>
18010
18011         strchrnul: Tweak last commit.
18012         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
18013         bug.
18014         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
18015         as in _GL_FUNCDECL_SYS.
18016         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
18017         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
18018
18019 2011-04-15  Eric Blake  <eblake@redhat.com>
18020
18021         strchrnul: work around cygwin bug
18022         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
18023         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
18024         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
18025         * modules/string (Makefile.am): Substitute it.
18026         * lib/string.in.h (strchrnul): Use it.
18027
18028 2011-04-15  Bruno Haible  <bruno@clisp.org>
18029
18030         Don't require lib/stdio-write.c when only module 'stdio' is used.
18031         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
18032         invocation.
18033         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
18034
18035 2011-04-14  Bruno Haible  <bruno@clisp.org>
18036
18037         Support non-blocking pipe I/O in read() on native Windows.
18038         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
18039         (read): New declaration.
18040         * lib/read.c: New file.
18041         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
18042         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
18043         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
18044         vscanf): New declarations.
18045         * lib/stdio-read.c: New file.
18046         * m4/read.m4: New file.
18047         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
18048         REPLACE_READ.
18049         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
18050         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18051         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
18052         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
18053         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
18054         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18055         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
18056         * modules/read: New file.
18057         * modules/nonblocking (Files): Add lib/stdio-read.c.
18058         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
18059         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
18060         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18061         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
18062         * modules/pread (Depends-on): Add read.
18063         * modules/safe-read (Depends-on): Likewise.
18064         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
18065         gets, scanf, vfscanf, vscanf): Verify signatures.
18066         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
18067         problem with non-blocking pipes.
18068         * doc/posix-functions/fgetc.texi: Likewise.
18069         * doc/posix-functions/fgets.texi: Likewise.
18070         * doc/posix-functions/fread.texi: Likewise.
18071         * doc/posix-functions/fscanf.texi: Likewise.
18072         * doc/posix-functions/getc.texi: Likewise.
18073         * doc/posix-functions/getchar.texi: Likewise.
18074         * doc/posix-functions/gets.texi: Likewise.
18075         * doc/posix-functions/scanf.texi: Likewise.
18076         * doc/posix-functions/vfscanf.texi: Likewise.
18077         * doc/posix-functions/vscanf.texi: Likewise.
18078
18079 2011-04-14  Bruno Haible  <bruno@clisp.org>
18080
18081         Support non-blocking pipe I/O in write() on native Windows.
18082         * lib/write.c (rpl_write): Split a write request that failed merely
18083         because the byte count was larger than the pipe buffer's size.
18084         * doc/posix-functions/write.texi: Mention the problem with large byte
18085         counts.
18086
18087 2011-04-14  Bruno Haible  <bruno@clisp.org>
18088
18089         wchar: Ensure that wchar_t gets defined on uClibc.
18090         * lib/wchar.in.h: On uClibc, include <stddef.h>.
18091         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
18092
18093 2011-04-13  Bruno Haible  <bruno@clisp.org>
18094
18095         safe-write, full-read: Avoid unnecessary compilation units.
18096         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
18097         (Depends-on): Remove safe-read. Add ssize_t.
18098         * modules/full-read (Files): Add lib/full-write.c.
18099         (Depends-on): Add full-write.
18100
18101 2011-04-13  Bruno Haible  <bruno@clisp.org>
18102
18103         Support non-blocking pipe I/O and SIGPIPE in pwrite().
18104         * modules/pwrite (Depends-on): Add 'write'.
18105
18106 2011-04-13  Bruno Haible  <bruno@clisp.org>
18107
18108         Support non-blocking pipe I/O in write() on native Windows.
18109         * lib/unistd.in.h (write): Enable replacement also if
18110         GNULIB_UNISTD_H_NONBLOCKING is 1.
18111         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
18112         (rpl_write): When failing to write on a non-blocking pipe, change
18113         errno from ENOSPC to EAGAIN.
18114         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
18115         putchar, puts, vfprintf, vprintf): Enable replacement also if
18116         GNULIB_STDIO_H_NONBLOCKING is 1.
18117         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
18118         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
18119         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
18120         CALL_WITH_SIGPIPE_EMULATION.
18121         (CALL_WITH_SIGPIPE_EMULATION): Use them.
18122         * m4/nonblocking.m4: New file.
18123         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
18124         for non-blocking I/O support.
18125         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18126         GNULIB_UNISTD_H_NONBLOCKING.
18127         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
18128         required for non-blocking I/O support.
18129         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
18130         * modules/nonblocking (Files): Add m4/nonblocking.m4,
18131         lib/stdio-write.c, m4/asm-underscore.m4.
18132         (Depends-on): Add stdio, unistd.
18133         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
18134         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
18135         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
18136         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
18137         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
18138         problem with non-blocking pipes.
18139         * doc/posix-functions/fputc.texi: Likewise.
18140         * doc/posix-functions/fputs.texi: Likewise.
18141         * doc/posix-functions/fwrite.texi: Likewise.
18142         * doc/posix-functions/printf.texi: Likewise.
18143         * doc/posix-functions/putc.texi: Likewise.
18144         * doc/posix-functions/putchar.texi: Likewise.
18145         * doc/posix-functions/puts.texi: Likewise.
18146         * doc/posix-functions/vfprintf.texi: Likewise.
18147         * doc/posix-functions/vprintf.texi: Likewise.
18148         * doc/posix-functions/write.texi: Likewise.
18149
18150 2011-04-10  Jim Meyering  <meyering@redhat.com>
18151
18152         maint.mk: prohibit doubled words
18153         Detect them also when they're separated by a newline.
18154         There are 3 ways to customize it:
18155           - disable the test on a per file basis, as usual with rules using
18156             $(VC_LIST_EXCEPT)
18157           - replace the default doubled-word-selecting regexp (affects all files)
18158           - ignore a particular file-vs-doubled-word match
18159         I nearly used that last one to ignore the "is is" match in
18160         coreutils' NEWS file, since the text was "ls -is is ..."
18161         To do that, I would have added this line to cfg.mk:
18162           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
18163         but it would have ignored any "is is" match in NEWS.
18164         Low probability, but still...
18165         Instead, I changed the text, slightly:
18166           -  ls -is is now consistent with ls -lis in ignoring values returned
18167           +  "ls -is" is now consistent with ls -lis in ignoring values returned
18168         * top/maint.mk (prohibit_double_word_RE_): Provide default.
18169         (prohibit_doubled_word_): Define.
18170         (sc_prohibit_doubled_word): New rule.
18171         (sc_prohibit_the_the): Remove.  Subsumed by the above.
18172
18173 2011-04-10  Jim Meyering  <meyering@redhat.com>
18174
18175         maint: fix doubled-word typo in comment
18176         * m4/gethostname.m4: s/is is/it is/
18177         * m4/getdomainname.m4: Likewise.
18178
18179 2011-04-10  Jim Meyering  <meyering@redhat.com>
18180
18181         maint: remove doubled word: s/it it/it/
18182         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
18183
18184 2011-04-10  Jim Meyering  <meyering@redhat.com>
18185
18186         maint.mk: remove useless semicolon and backslash
18187         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
18188         semicolon and backslash.
18189
18190 2011-04-10  Bruno Haible  <bruno@clisp.org>
18191
18192         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
18193         * modules/stdint-tests (Depends-on): Add wchar.
18194
18195 2011-04-10  Jim Meyering  <meyering@redhat.com>
18196
18197         maint: remove doubled words in comments, e.g., s/a a/a/
18198         * lib/strptime.c (day_of_the_week): s/the the/the/
18199         * tests/test-chown.h (test_chown): s/a a/a/
18200
18201         test-chown.h: correct a cast
18202         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
18203         when the destination is a stat.st_gid.
18204
18205 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
18206
18207         getaddrinfo: Fix test for sa_len member.
18208         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
18209         include <sys/types.h> before <sys/socket.h>.
18210
18211 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
18212
18213         maint: change "can not" to "cannot"
18214         * doc/posix-functions/iconv.texi (iconv): This one crossed line
18215         boundaries.
18216
18217 2011-04-09  Jim Meyering  <meyering@redhat.com>
18218
18219         maint: change "a a" to "a"
18220         * tests/test-lchown.h (test_lchown): s/a a/a/
18221
18222         maint.mk: prohibit \<the the\>
18223         * top/maint.mk (sc_prohibit_the_the): New rule.
18224
18225         maint: fix "the the" in comment
18226         * lib/count-one-bits.h: s/the the/the/
18227
18228         maint: change "can not" to "cannot"
18229         But do not change the occurrences in maintain.texi or in
18230         build-aux/po/Makefile.in.in, which I presume comes from gettext.
18231         * doc/gnulib-tool.texi: s/can not/cannot/
18232         * doc/posix-functions/accept.texi (accept): Likewise.
18233         * doc/posix-functions/socket.texi (socket): Likewise.
18234         * lib/mbrtowc.c: Likewise.
18235
18236         maint.mk: prohibit use of "can not"
18237         * top/maint.mk (sc_prohibit_can_not): New rule.
18238         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
18239
18240 2011-04-09  Bruno Haible  <bruno@clisp.org>
18241
18242         careadlinkat: Guard against misuse of careadlinkatcwd.
18243         * lib/careadlinkat.c: Include <stdlib.h>.
18244         (careadlinkatcwd): Check that the fd argument is as expected.
18245
18246 2011-04-09  Bruno Haible  <bruno@clisp.org>
18247
18248         careadlinkat: Use common coding style.
18249         * lib/careadlinkat.c: Move gnulib includes after system includes.
18250
18251 2011-04-09  Bruno Haible  <bruno@clisp.org>
18252
18253         careadlinkat: Clarify specification.
18254         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
18255         (careadlinkatcwd): Add comment.
18256         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
18257
18258 2011-04-09  Bruno Haible  <bruno@clisp.org>
18259
18260         areadlinkat: Avoid link error on many platforms.
18261         * modules/areadlinkat (Depends-on): Add areadlink.
18262
18263 2011-04-09  Bruno Haible  <bruno@clisp.org>
18264
18265         allocator, careadlinkat: Fix double-inclusion guard.
18266         * lib/allocator.h: Fix double-inclusion guard.
18267         * lib/careadlinkat.h: Likewise.
18268
18269 2011-04-09  Bruno Haible  <bruno@clisp.org>
18270
18271         relocatable-prog-wrapper: Update after module 'areadlink' changed.
18272         * lib/relocwrapper.c: Update dependencies hierarchy.
18273         * build-aux/install-reloc: Update list of files to be compiled.
18274         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
18275         lib/allocator.[hc].
18276
18277 2011-04-08  Eric Blake  <eblake@redhat.com>
18278
18279         strftime: silence gnulib-tool warning
18280         * modules/strftime-tests (Depends-on): Drop automatic dependency.
18281
18282 2011-04-08  Bruno Haible  <bruno@clisp.org>
18283
18284         verify: Fix syntax error with GCC 4.6 in C++ mode.
18285         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
18286         (HAVE_STATIC_ASSERT): New macro.
18287         (verify_true, verify): Use 'static_assert' if it is supported and
18288         '_Static_assert' is not supported.
18289
18290 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
18291
18292         allocator: New module.
18293         * modules/allocator, lib/allocator.c: New files.
18294         * lib/allocator.h (stdlib_allocator): New decl.
18295         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
18296         Remove.  Do not include <stdlib.h>.
18297         (careadlinkat): Use stdlib_allocator instead of rolling our own.
18298         * modules/careadlinkat (Files): Remove lib/allocator.h.
18299         (Depends-on): Add allocator.
18300
18301         stdlib: let modules use system malloc, realloc
18302         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
18303         if !_GL_USE_STDLIB_ALLOC.
18304         (malloc, realloc): Limit this change to a smaller scope.
18305
18306         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
18307         (malloc, realloc): Don't #undef; no longer needed.
18308         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18309         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18310         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18311         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18312         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18313         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18314         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18315         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18316
18317         careadlinkat: rename members to avoid problem
18318         * lib/allocator.h (struct allocator): Rename members from
18319         malloc/realloc to allocate/reallocate, to avoid problems if malloc
18320         and realloc are #define'd.  Reported by Eric Blake in
18321         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
18322         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
18323
18324 2011-04-08  Eric Blake  <eblake@redhat.com>
18325
18326         nonblocking: reduce dependency
18327         * tests/test-nonblocking.c: Only test sockets when in use.
18328         * modules/nonblocking-tests (Depends-on): Drop socket.
18329         (Makefile.am): Link even if sockets are not present.
18330         * modules/pipe2-tests (Makefile.am): Likewise.
18331         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
18332
18333         pipe2: fix O_NONBLOCK support on mingw
18334         * modules/pipe2 (Depends-on): Add nonblocking.
18335         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
18336         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
18337         * tests/test-nonblocking.c (main): Likewise.
18338         * modules/pipe2-tests (Makefile.am): Avoid link failure.
18339
18340         fcntl-h: fix O_ACCMODE on cygwin
18341         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
18342         * lib/fcntl.in.h (O_ACCMODE): Fix it.
18343
18344         pipe-filter: drop O_NONBLOCK workarounds
18345         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
18346         * modules/pipe-filter-ii (Depends-on): Likewise.
18347         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
18348
18349         nonblocking: provide O_NONBLOCK for mingw
18350         * modules/nonblocking (Depends-on): Add open.
18351         (configure.ac): Set new witness macro.
18352         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
18353         * modules/fcntl-h (Makefile.am): Substitute it.
18354         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
18355         nonblocking module is in use.
18356         * lib/nonblocking.c: Adjust portability test.
18357         * lib/open.c (open): Don't let native open see gnulib flag.
18358         * tests/test-fcntl-h.c (main): Enhance test.
18359         * tests/test-open.h (test_open): Likewise.
18360         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
18361
18362         careadlinkat: fix compilation error on mingw
18363         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
18364         within struct allocator.
18365
18366 2011-04-06  Eric Blake  <eblake@redhat.com>
18367
18368         binary-io: relicense under LGPLv2+
18369         * modules/binary-io (License): Relax to LGPLv2+.
18370         Requested for libvirt, and required by pipe2.
18371
18372 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
18373
18374         verify: use _Static_assert if available
18375         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
18376         (verify_true, verify): Use it if available.  This generates better
18377         diagnostics with GCC 4.6.0 and later.
18378
18379 2011-04-05  Bruno Haible  <bruno@clisp.org>
18380
18381         Remove leftover generated .h files after config.status changed.
18382
18383         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
18384         GL_GENERATE_ALLOCA_H.
18385         * modules/alloca-opt (Makefile.am): Remove alloca.h if
18386         GL_GENERATE_ALLOCA_H evaluates to false.
18387
18388         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
18389         GL_GENERATE_ARGZ_H.
18390         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
18391         evaluates to false.
18392
18393         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
18394         GL_GENERATE_BYTESWAP_H.
18395         * modules/byteswap (Makefile.am): Remove byteswap.h if
18396         GL_GENERATE_BYTESWAP_H evaluates to false.
18397
18398         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
18399         GL_GENERATE_ERRNO_H.
18400         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
18401         evaluates to false.
18402
18403         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
18404         GL_GENERATE_FLOAT_H.
18405         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
18406         evaluates to false.
18407
18408         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
18409         GL_GENERATE_FNMATCH_H.
18410         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
18411         GL_GENERATE_FNMATCH_H evaluates to false.
18412
18413         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
18414         GL_GENERATE_GLOB_H.
18415         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
18416         evaluates to false.
18417
18418         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
18419         automake conditional GL_GENERATE_ICONV_H.
18420         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
18421         evaluates to false.
18422
18423         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
18424         GL_GENERATE_NETINET_IN_H.
18425         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
18426         GL_GENERATE_NETINET_IN_H evaluates to false.
18427
18428         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
18429         conditional GL_GENERATE_PTHREAD_H.
18430         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
18431         * modules/pthread (Makefile.am): Remove pthread.h if
18432         GL_GENERATE_PTHREAD_H evaluates to false.
18433
18434         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
18435         GL_GENERATE_SCHED_H.
18436         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
18437         evaluates to false.
18438
18439         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
18440         conditional GL_GENERATE_SELINUX_CONTEXT_H.
18441         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
18442         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
18443
18444         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
18445         GL_GENERATE_STDARG_H.
18446         * modules/stdarg (Makefile.am): Remove stdarg.h if
18447         GL_GENERATE_STDARG_H evaluates to false.
18448
18449         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
18450         GL_GENERATE_STDBOOL_H.
18451         * modules/stdbool (Makefile.am): Remove stdbool.h if
18452         GL_GENERATE_STDBOOL_H evaluates to false.
18453
18454         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
18455         conditional GL_GENERATE_STDDEF_H.
18456         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
18457         * modules/stddef (Makefile.am): Remove stddef.h if
18458         GL_GENERATE_STDDEF_H evaluates to false.
18459
18460         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
18461         GL_GENERATE_STDINT_H.
18462         * modules/stdint (Makefile.am): Remove stdint.h if
18463         GL_GENERATE_STDINT_H evaluates to false.
18464
18465         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
18466         GL_GENERATE_SYSEXITS_H.
18467         * modules/sysexits (Makefile.am): Remove sysexits.h if
18468         GL_GENERATE_SYSEXITS_H evaluates to false.
18469
18470         Reported by Karl Berry and Ralf Wildenhues.
18471
18472 2011-04-05  Bruno Haible  <bruno@clisp.org>
18473
18474         Ensure to rebuild generated .h files when config.status has changed.
18475         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
18476         config.status.
18477         * modules/ctype (Makefile.am): Likewise.
18478         * modules/dirent (Makefile.am): Likewise.
18479         * modules/errno (Makefile.am): Likewise.
18480         * modules/fcntl-h (Makefile.am): Likewise.
18481         * modules/float (Makefile.am): Likewise.
18482         * modules/getopt-posix (Makefile.am): Likewise.
18483         * modules/glob (Makefile.am): Likewise.
18484         * modules/iconv-h (Makefile.am): Likewise.
18485         * modules/inttypes (Makefile.am): Likewise.
18486         * modules/langinfo (Makefile.am): Likewise.
18487         * modules/locale (Makefile.am): Likewise.
18488         * modules/math (Makefile.am): Likewise.
18489         * modules/netdb (Makefile.am): Likewise.
18490         * modules/netinet_in (Makefile.am): Likewise.
18491         * modules/poll-h (Makefile.am): Likewise.
18492         * modules/pthread (Makefile.am): Likewise.
18493         * modules/pty (Makefile.am): Likewise.
18494         * modules/sched (Makefile.am): Likewise.
18495         * modules/search (Makefile.am): Likewise.
18496         * modules/selinux-h (Makefile.am): Likewise.
18497         * modules/signal (Makefile.am): Likewise.
18498         * modules/spawn (Makefile.am): Likewise.
18499         * modules/stdarg (Makefile.am): Likewise.
18500         * modules/stdbool (Makefile.am): Likewise.
18501         * modules/stddef (Makefile.am): Likewise.
18502         * modules/stdint (Makefile.am): Likewise.
18503         * modules/stdio (Makefile.am): Likewise.
18504         * modules/stdlib (Makefile.am): Likewise.
18505         * modules/string (Makefile.am): Likewise.
18506         * modules/strings (Makefile.am): Likewise.
18507         * modules/sys_file (Makefile.am): Likewise.
18508         * modules/sys_ioctl (Makefile.am): Likewise.
18509         * modules/sys_select (Makefile.am): Likewise.
18510         * modules/sys_socket (Makefile.am): Likewise.
18511         * modules/sys_stat (Makefile.am): Likewise.
18512         * modules/sys_time (Makefile.am): Likewise.
18513         * modules/sys_times (Makefile.am): Likewise.
18514         * modules/sys_utsname (Makefile.am): Likewise.
18515         * modules/sys_wait (Makefile.am): Likewise.
18516         * modules/sysexits (Makefile.am): Likewise.
18517         * modules/termios (Makefile.am): Likewise.
18518         * modules/time (Makefile.am): Likewise.
18519         * modules/unistd (Makefile.am): Likewise.
18520         * modules/wchar (Makefile.am): Likewise.
18521         * modules/wctype-h (Makefile.am): Likewise.
18522         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
18523
18524 2011-04-05  Bruno Haible  <bruno@clisp.org>
18525
18526         pipe2: Relicense under LGPLv2+.
18527         * modules/pipe2 (License): Change to LGPLv2+.
18528         Requested by Eric Blake, for libvirt.
18529
18530 2011-04-05  Bruce Korb  <bkorb@gnu.org>
18531
18532         bootstrap: compute gnulib_extra_files after updating build_aux
18533         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
18534         change build_aux or also supply gnulib_extra_files.  Handle correctly.
18535
18536 2011-04-05  Eric Blake  <eblake@redhat.com>
18537
18538         bootstrap: preserve git whitelist item sorting
18539         * build-aux/bootstrap (sort_patterns): New function.
18540         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
18541
18542 2011-04-05  Simon Josefsson  <simon@josefsson.org>
18543
18544         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
18545         sc_space_tab check.
18546
18547 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
18548
18549         areadlink, areadlinkat: rewrite in terms of careadlinkat
18550         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
18551         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
18552         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
18553         (malloc, realloc): Remove #undefs.
18554         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
18555         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
18556         readlink, ssize_t, stdint, unistd.
18557         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
18558         areadlink, stdint.
18559
18560         careadlinkat: new module
18561         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
18562         * modules/careadlinkat: New files, written by me with
18563         a review and feedback from Ben Pfaff in
18564         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
18565
18566 2011-04-01  Bruno Haible  <bruno@clisp.org>
18567
18568         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
18569         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
18570         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
18571         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
18572         Reported by Bruce Korb <bruce.korb@gmail.com>.
18573
18574 2011-04-01  Bruno Haible  <bruno@clisp.org>
18575
18576         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
18577         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
18578         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
18579         * modules/wcpcpy (Depends-on): Add extensions.
18580         * modules/wcpncpy (Depends-on): Likewise.
18581         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
18582         systems.
18583         * doc/posix-functions/wcpncpy.texi: Likewise.
18584         * doc/posix-functions/wcwidth.texi: Likewise.
18585
18586 2011-03-31  Eric Blake  <eblake@redhat.com>
18587
18588         nonblocking: fix mingw test failures
18589         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
18590         non-blocking flag on regular file.
18591         (get_nonblocking_flag): Set errno on invalid fd.
18592         * tests/test-nonblocking.c (main): Avoid test failure on
18593         directories if fchdir is not active.
18594         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
18595
18596 2011-03-31  Bruno Haible  <bruno@clisp.org>
18597
18598         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
18599         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
18600         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
18601         Reported by Simon Josefsson <simon@josefsson.org>.
18602
18603 2011-03-31  Bruno Haible  <bruno@clisp.org>
18604         and Eric Blake  <eblake@redhat.com>
18605
18606         nonblocking: new module
18607         * modules/nonblocking: New module.
18608         * modules/nonblocking-tests: Likewise.
18609         * lib/nonblocking.h: New file.
18610         * lib/nonblocking.c: Likewise.
18611         * tests/test-nonblocking.c: New test.
18612         * lib/ioctl.c (ioctl) [mingw]: Update comment.
18613
18614 2011-03-30  Bruno Haible  <bruno@clisp.org>
18615
18616         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
18617         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
18618         instead of 'printf' format for GCC >= 4.4.
18619         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
18620         (fprintf, printf, vfprintf, vprintf): Declare with
18621         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
18622         the system's vfprintf() function.
18623         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
18624
18625 2011-03-30  Eric Blake  <eblake@redhat.com>
18626
18627         passfd: fix scoping bug
18628         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
18629         before sendmsg/recvmsg.
18630
18631         passfd: standardize coding conventions
18632         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
18633         can be learned at compile time.
18634         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
18635         ifdefs.
18636         (sendfd, recvfd): Follow gnulib code conventions.
18637
18638         passfd: fix incorrect sendmsg arguments
18639         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
18640         incorrect msg_controllen value.
18641         * modules/passfd-tests (Depends-on): Check for alarm.
18642         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
18643         Reported by Bastien ROUCARIES.
18644
18645 2011-03-30  Bruno Haible  <bruno@clisp.org>
18646
18647         c-strcasestr: Relicense under LGPLv2+.
18648         * modules/c-strcasestr (License): Change to LGPLv2+.
18649         Requested by Eric Blake, for libvirt.
18650
18651 2011-03-30  Simon Josefsson  <simon@josefsson.org>
18652
18653         * users.txt: Add libidn2.  Fix libtasn1 link.
18654
18655 2011-03-30  Jim Meyering  <meyering@redhat.com>
18656
18657         tests: readlink* ("",... fails with EINVAL on newer kernels
18658         readlink and readlinkat have typically failed with ENOENT for
18659         the invalid, empty file name,  "".  However, with the advent
18660         of linux-2.6.39, they fail with EINVAL.
18661         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
18662         when operating on the empty file name.
18663         * tests/test-readlink.h (test_readlink): Likewise.
18664
18665 2011-03-29  Bruno Haible  <bruno@clisp.org>
18666
18667         Relicense some modules under LGPLv2+, for libidn2.
18668         * modules/array-mergesort (License): Change to LGPLv2+.
18669         * modules/c-strcaseeq (License): Likewise.
18670         * modules/striconveh (License): Likewise.
18671         * modules/striconveha (License): Likewise.
18672         * modules/uniconv/base (License): Likewise.
18673         * modules/uniconv/u8-conv-from-enc (License): Likewise.
18674         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
18675         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
18676         * modules/unictype/base (License): Likewise.
18677         * modules/unictype/bidiclass-of (License): Likewise.
18678         * modules/unictype/category-M (License): Likewise.
18679         * modules/unictype/category-none (License): Likewise.
18680         * modules/unictype/category-of (License): Likewise.
18681         * modules/unictype/category-test (License): Likewise.
18682         * modules/unictype/category-test-withtable (License): Likewise.
18683         * modules/unictype/combining-class (License): Likewise.
18684         * modules/unictype/joiningtype-of (License): Likewise.
18685         * modules/unictype/scripts (License): Likewise.
18686         * modules/uninorm/base (License): Likewise.
18687         * modules/uninorm/canonical-decomposition (License): Likewise.
18688         * modules/uninorm/composition (License): Likewise.
18689         * modules/uninorm/decompose-internal (License): Likewise.
18690         * modules/uninorm/decomposition-table (License): Likewise.
18691         * modules/uninorm/nfc (License): Likewise.
18692         * modules/uninorm/nfd (License): Likewise.
18693         * modules/uninorm/u32-normalize (License): Likewise.
18694         * modules/unistr/base (License): Likewise.
18695         * modules/unistr/u32-cpy (License): Likewise.
18696         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
18697         * modules/unistr/u32-to-u8 (License): Likewise.
18698         * modules/unistr/u32-uctomb (License): Likewise.
18699         * modules/unistr/u8-check (License): Likewise.
18700         * modules/unistr/u8-mblen (License): Likewise.
18701         * modules/unistr/u8-mbtouc (License): Likewise.
18702         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
18703         * modules/unistr/u8-mbtoucr (License): Likewise.
18704         * modules/unistr/u8-prev (License): Likewise.
18705         * modules/unistr/u8-strlen (License): Likewise.
18706         * modules/unistr/u8-to-u32 (License): Likewise.
18707         * modules/unistr/u8-uctomb (License): Likewise.
18708         * modules/unitypes (License): Likewise.
18709         Requested by Simon Josefsson.
18710
18711 2011-03-29  Simon Josefsson  <simon@josefsson.org>
18712
18713         lib-symbol-visibility: Add a notice.
18714         * modules/lib-symbol-visibility (Notice): New field.
18715
18716 2011-03-29  Bruno Haible  <bruno@clisp.org>
18717
18718         getaddrinfo: Doc fix.
18719         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
18720         section "fixed in Gnulib".
18721
18722 2011-03-28  Simon Josefsson  <simon@josefsson.org>
18723
18724         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
18725         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
18726
18727 2011-03-26  Bruno Haible  <bruno@clisp.org>
18728
18729         unictype/property-byname: Reduce the number of load-time relocations.
18730         * lib/unictype/pr_byname.c: Include <stdlib.h>.
18731         (UC_PROPERTY_INDEX_*): New enumeration values.
18732         (uc_property_byname): Convert an index from the lookup table to an
18733         uc_property_t.
18734         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
18735         values.
18736
18737 2011-03-26  Bruno Haible  <bruno@clisp.org>
18738
18739         unictype/property-byname: Allow omitted word separators and aliases.
18740         * lib/unictype/pr_byname.gperf: Add property names without word
18741         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
18742         for 'space'.
18743
18744 2011-03-26  Bruno Haible  <bruno@clisp.org>
18745
18746         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
18747         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
18748         also hyphens to space.
18749         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
18750         without spaces.
18751         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
18752
18753 2011-03-26  Bruno Haible  <bruno@clisp.org>
18754
18755         unictype/joiningtype-byname: Recognize long names as well.
18756         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
18757         a long name.
18758         * lib/unictype/joiningtype_byname.c: Include <string.h>,
18759         unictype/joiningtype_byname.h.
18760         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
18761         * lib/unictype/joiningtype_byname.gperf: New file.
18762         * modules/unictype/joiningtype-byname (Files): Add
18763         lib/unictype/joiningtype_byname.gperf.
18764         (Depends-on): Add gperf.
18765         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
18766         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
18767         long names.
18768
18769         Tests for module 'unictype/joiningtype-longname'.
18770         * modules/unictype/joiningtype-longname-tests: New file.
18771         * tests/unictype/test-joiningtype_longname.c: New file.
18772
18773         New module 'unictype/joiningtype-longname'.
18774         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
18775         * lib/unictype/joiningtype_longname.c: New file.
18776         * modules/unictype/joiningtype-longname: New file.
18777         * modules/unictype/joiningtype-all (Depends-on): Add
18778         unictype/joiningtype-longname.
18779
18780 2011-03-26  Bruno Haible  <bruno@clisp.org>
18781
18782         unictype/bidiclass-byname: Recognize long names as well.
18783         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
18784         name.
18785         * lib/unictype/bidi_byname.c: Include <string.h>,
18786         unictype/bidi_byname.h.
18787         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
18788         * lib/unictype/bidi_byname.gperf: New file.
18789         * modules/unictype/bidiclass-byname (Files): Add
18790         lib/unictype/bidi_byname.gperf.
18791         (Depends-on): Add gperf.
18792         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
18793         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
18794         long names.
18795
18796         Tests for module 'unictype/bidiclass-longname'.
18797         * modules/unictype/bidiclass-longname-tests: New file.
18798         * tests/unictype/test-bidi_longname.c: New file.
18799
18800         New module 'unictype/bidiclass-longname'.
18801         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
18802         * lib/unictype/bidi_longname.c: New file.
18803         * modules/unictype/bidiclass-longname: New file.
18804         * modules/unictype/bidiclass-all (Depends-on): Add
18805         unictype/bidiclass-longname.
18806
18807 2011-03-26  Bruno Haible  <bruno@clisp.org>
18808
18809         unictype/bidi*: Rename modules.
18810         * modules/unictype/bidiclass-all: Renamed from
18811         modules/unictype/bidicategory-all.
18812         * modules/unictype/bidiclass-name: Renamed from
18813         modules/unictype/bidiclass-name.
18814         (Description): Update.
18815         * modules/unictype/bidiclass-name-tests: Renamed from
18816         modules/unictype/bidicategory-name-tests.
18817         * modules/unictype/bidiclass-byname: Renamed from
18818         modules/unictype/bidicategory-byname.
18819         (Description): Update.
18820         * modules/unictype/bidiclass-byname-tests: Renamed from
18821         modules/unictype/bidicategory-byname-tests.
18822         * modules/unictype/bidiclass-of: Renamed from
18823         modules/unictype/bidicategory-of.
18824         (Description): Update.
18825         * modules/unictype/bidiclass-of-tests: Renamed from
18826         modules/unictype/bidicategory-of-tests.
18827         * modules/unictype/bidiclass-test: Renamed from
18828         modules/unictype/bidicategory-test.
18829         (Description): Update.
18830         * modules/unictype/bidiclass-test-tests: Renamed from
18831         modules/unictype/bidicategory-test-tests.
18832         * modules/unictype/bidicategory-all: New file, a simple redirection.
18833         * modules/unictype/bidicategory-name: Likewise.
18834         * modules/unictype/bidicategory-byname: Likewise.
18835         * modules/unictype/bidicategory-of: Likewise.
18836         * modules/unictype/bidicategory-test: Likewise.
18837         * modules/unictype/property-bidi-* (Dependencies): Update.
18838         * lib/unictype/bidi_*.c: Update comment.
18839
18840 2011-03-26  Bruno Haible  <bruno@clisp.org>
18841
18842         unictype/bidi*: Rename functions, part 2.
18843         * modules/unictype/bidicategory-name (configure.ac): Update required
18844         libunistring version.
18845         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
18846
18847 2011-03-25  Bruno Haible  <bruno@clisp.org>
18848
18849         New module 'unictype/combining-class-all'.
18850         * modules/unictype/combining-class-all: New file.
18851
18852         Tests for module 'unictype/combining-class-byname'.
18853         * modules/unictype/combining-class-byname-tests: New file.
18854         * tests/unictype/test-combiningclass_byname.c: New file.
18855
18856         New module 'unictype/combining-class-byname'.
18857         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
18858         * lib/unictype/combiningclass_byname.c: New file.
18859         * lib/unictype/combiningclass_byname.gperf: New file.
18860         * modules/unictype/combining-class-byname: New file.
18861
18862         Tests for module 'unictype/combining-class-longname'.
18863         * modules/unictype/combining-class-longname-tests: New file.
18864         * tests/unictype/test-combiningclass_longname.c: New file.
18865
18866         New module 'unictype/combining-class-longname'.
18867         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
18868         * lib/unictype/combiningclass_longname.c: New file.
18869         * modules/unictype/combining-class-longname: New file.
18870
18871         Tests for module 'unictype/combining-class-name'.
18872         * modules/unictype/combining-class-name-tests: New file.
18873         * tests/unictype/test-combiningclass_name.c: New file.
18874
18875         New module 'unictype/combining-class-name'.
18876         * lib/unictype.in.h (uc_combining_class_name): New declaration.
18877         * lib/unictype/combiningclass_name.c: New file.
18878         * modules/unictype/combining-class-name: New file.
18879
18880 2011-03-25  Bruno Haible  <bruno@clisp.org>
18881
18882         unictype/combining-class: Rename source files.
18883         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
18884         of unictype/combining.h.
18885         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
18886         Update.
18887         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
18888         * modules/unictype/combining-class (Description): Fix.
18889         (Files, Makefile.am): Update.
18890         * tests/unictype/test-combiningclass.c: Renamed from
18891         tests/unictype/test-combining.c.
18892         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
18893
18894 2011-03-25  Bruno Haible  <bruno@clisp.org>
18895
18896         unictype: Update list of canonical combining classes.
18897         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
18898
18899 2011-03-25  Bruno Haible  <bruno@clisp.org>
18900
18901         unictype/category-byname: Recognize long names as well.
18902         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
18903         a long name.
18904         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
18905         unictype/categ_byname.h.
18906         (UC_CATEGORY_INDEX_*): New enumeration values.
18907         (uc_general_category_byname): Use uc_general_category_lookup and
18908         convert from index to value.
18909         * lib/unictype/categ_byname.gperf: New file.
18910         * modules/unictype/category-byname (Files): Add
18911         lib/unictype/categ_byname.gperf.
18912         (Depends-on): Add gperf.
18913         (Makefile.am): Add rule for generating unictype/categ_byname.h.
18914         * tests/unictype/test-categ_byname.c (main): Test the recognition of
18915         long names.
18916
18917         Tests for module 'unictype/category-longname'.
18918         * modules/unictype/category-longname-tests: New file.
18919         * tests/unictype/test-categ_longname.c: New file.
18920
18921         New module 'unictype/category-longname'.
18922         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
18923         * lib/unictype/categ_longname.c: New file.
18924         * modules/unictype/category-longname: New file.
18925         * modules/unictype/category-all (Depends-on): Add it.
18926
18927 2011-03-25  Bruno Haible  <bruno@clisp.org>
18928
18929         Tests for module 'unictype/category-LC'.
18930         * modules/unictype/category-LC-tests: New file.
18931         * tests/unictype/test-categ_LC.c: New file, automatically generated.
18932
18933         New module 'unictype/category-LC'.
18934         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
18935         (UC_CATEGORY_LC): New declaration.
18936         (UC_CASED_LETTER): New macro.
18937         * lib/gen-uni-tables.c (is_category_LC): New function.
18938         (output_categories): Also handle category LC.
18939         (UC_CATEGORY_MASK_LC): New enumeration value.
18940         (general_category_byname): Also handle category LC.
18941         * lib/unictype/categ_LC.c: New file.
18942         * lib/unictype/categ_LC.h: New file, automatically generated.
18943         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
18944         category LC.
18945         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
18946         * modules/unictype/category-LC: New file.
18947         * modules/unictype/category-byname (Depends-on): Add
18948         unictype/category-LC.
18949         * modules/unictype/category-all (Depends-on): Likewise.
18950
18951 2011-03-25  Eric Blake  <eblake@redhat.com>
18952
18953         xmalloc: revert yesterday's regression
18954         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
18955         realloc's underlying behavior (allowing allocation of zero-size
18956         objects, especially if malloc-gnu is also in use).
18957
18958 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
18959
18960         maint.mk: add missing version to VC-tag
18961         * top/maint.mk: git tag was missing actual tag name; add it.
18962
18963         valgrind: do leak checking, and exit with code 1 on error (not 0)
18964         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
18965         to VALGRIND.
18966
18967 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
18968
18969         posix-modules: say what it does.
18970         * posix-modules: Add a line to the --help output saying what it does.
18971
18972 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
18973
18974         xmalloc: Do not leak if underlying realloc is C99 compatible.
18975         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
18976         This avoids a leak on C99-based systems.  See
18977         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
18978
18979 2011-03-24  Eric Blake  <eblake@redhat.com>
18980
18981         realloc: document portability problem
18982         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
18983         passing 0 size to realloc.
18984
18985 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
18986
18987         doc: update users.txt
18988         * users.txt: Add cvsps, tmpwatch
18989
18990 2011-03-23  Matt Rice  <ratmice@gmail.com>
18991
18992         doc: update users.txt
18993         * users.txt: Add gdb.
18994
18995 2011-03-23  Jim Meyering  <meyering@redhat.com>
18996
18997         doc: update users.txt
18998         Looking through matches up to the following URL (there are still
18999         several more pages), I found several projects that use gnulib:
19000         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
19001         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
19002         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
19003
19004 2011-03-22  Bruno Haible  <bruno@clisp.org>
19005
19006         unictype/bidi*: Rename functions.
19007         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
19008         uc_bidi_class, uc_is_bidi_class): New declarations.
19009         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
19010         uc_bidi_category_byname.
19011         (uc_bidi_category_byname): New function.
19012         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
19013         u_bidi_category_name.
19014         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
19015         (uc_bidi_category_name): New function.
19016         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
19017         uc_bidi_category.
19018         (uc_bidi_category): New function.
19019         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
19020         uc_is_bidi_category. Invoke uc_bidi_class.
19021         (uc_is_bidi_category): New function.
19022         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
19023         instead of uc_bidi_category_byname.
19024         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
19025         instead of uc_bidi_category_name.
19026         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
19027         uc_bidi_category.
19028         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
19029         instead of uc_is_bidi_category.
19030
19031 2011-03-21  Bruno Haible  <bruno@clisp.org>
19032
19033         New module 'unictype/joininggroup-all'.
19034         * modules/unictype/joininggroup-all: New file.
19035
19036         Tests for module 'unictype/joininggroup-of'.
19037         * modules/unictype/joininggroup-of-tests: New file.
19038         * tests/unictype/test-joininggroup_of.c: New file.
19039         * tests/unictype/test-joininggroup_of.h: New file, automatically
19040         generated by gen-uni-tables.
19041
19042         New module 'unictype/joininggroup-of'.
19043         * modules/unictype/joininggroup-of: New file.
19044         * lib/unictype/joininggroup_of.c: New file.
19045         * lib/unictype/joininggroup_of.h: New file, automatically generated by
19046         gen-uni-tables.
19047
19048         Tests for module 'unictype/joininggroup-byname'.
19049         * modules/unictype/joininggroup-byname-tests: New file.
19050         * tests/unictype/test-joininggroup_byname.c: New file.
19051
19052         New module 'unictype/joininggroup-byname'.
19053         * modules/unictype/joininggroup-byname: New file.
19054         * lib/unictype/joininggroup_byname.c: New file.
19055         * lib/unictype/joininggroup_byname.gperf: New file.
19056
19057         Tests for module 'unictype/joininggroup-name'.
19058         * modules/unictype/joininggroup-name-tests: New file.
19059         * tests/unictype/test-joininggroup_name.c: New file.
19060
19061         New module 'unictype/joininggroup-name'.
19062         * modules/unictype/joininggroup-name: New file.
19063         * lib/unictype/joininggroup_name.c: New file.
19064         * lib/unictype/joininggroup_name.h: New file.
19065
19066         New module 'unictype/joiningtype-all'.
19067         * modules/unictype/joiningtype-all: New file.
19068
19069         Tests for module 'unictype/joiningtype-of'.
19070         * modules/unictype/joiningtype-of-tests: New file.
19071         * tests/unictype/test-joiningtype_of.c: New file.
19072         * tests/unictype/test-joiningtype_of.h: New file, automatically
19073         generated by gen-uni-tables.
19074
19075         New module 'unictype/joiningtype-of'.
19076         * modules/unictype/joiningtype-of: New file.
19077         * lib/unictype/joiningtype_of.c: New file.
19078         * lib/unictype/joiningtype_of.h: New file, automatically generated by
19079         gen-uni-tables.
19080
19081         Tests for module 'unictype/joiningtype-byname'.
19082         * modules/unictype/joiningtype-byname-tests: New file.
19083         * tests/unictype/test-joiningtype_byname.c: New file.
19084
19085         New module 'unictype/joiningtype-byname'.
19086         * modules/unictype/joiningtype-byname: New file.
19087         * lib/unictype/joiningtype_byname.c: New file.
19088
19089         Tests for module 'unictype/joiningtype-name'.
19090         * modules/unictype/joiningtype-name-tests: New file.
19091         * tests/unictype/test-joiningtype_name.c: New file.
19092
19093         New module 'unictype/joiningtype-name'.
19094         * modules/unictype/joiningtype-name: New file.
19095         * lib/unictype/joiningtype_name.c: New file.
19096
19097         unictype: Add support for Arabic shaping properties.
19098         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
19099         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
19100         declarations.
19101         (UC_JOINING_GROUP_*): New enumeration values.
19102         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
19103         declarations.
19104         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
19105         (unicode_joining_type): New variable.
19106         (UC_JOINING_GROUP_*): New enumeration values.
19107         (unicode_joining_group): New variable.
19108         (fill_arabicshaping, joining_type_as_c_identifier,
19109         output_joining_type_test, output_joining_type,
19110         joining_group_as_c_identifier, output_joining_group_test,
19111         output_joining_group): New functions.
19112         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
19113         fill_arabicshaping and output_joining_type_test, output_joining_type,
19114         output_joining_group_test, output_joining_group.
19115         Reported by Simon Josefsson.
19116
19117 2011-03-21  Jim Meyering  <meyering@redhat.com>
19118
19119         strftime: fix a bug in yesterday's change
19120         * lib/strftime.c (add): Accommodate width's initial value of -1.
19121         Otherwise, nstrftime would copy uninitialized data into
19122         the result buffer.
19123
19124 2011-03-21  Jim Meyering  <meyering@redhat.com>
19125
19126         tests: add strftime-tests module
19127         * tests/test-strftime.c: New file.
19128         * modules/strftime-tests: New module.
19129
19130 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19131
19132         strftime: don't assume a byte count fits in 'int'
19133         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
19134         found this problem by static analysis, using gcc -Wstrict-overflow
19135         (GCC 4.5.2, x86-64).  This reported an optimization that depended
19136         on an integer overflow having undefined behavior, but it turns out
19137         that the argument is a size, which might not fit in 'int' anyway,
19138
19139 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19140
19141         stdio: don't require ignore_value around fwrite
19142
19143         This patch works around libc bug 11959
19144         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
19145         Without this patch, applications must often write
19146         ignore_value (fwrite (...)) even though the ignore_value is
19147         not helpful here.  It's common to write many objects, using
19148         fwrite/printf/etc., and then use ferror to detect output error.
19149
19150         I considered making this patch optional, but decided against it,
19151         because libc is obviously being inconsistent here: there is no
19152         reason libc should insist that user code must inspect fwrite
19153         return's value without also insisting that it inspect printf's,
19154         putchar's, etc.  If user code wants to have a strict style where
19155         all these functions' values are checked (so that ferror need not
19156         be checked), we could add support for that style in a new gnulib
19157         module, but in the meantime it's better to be consistent and to
19158         support common usage.
19159
19160         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
19161         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
19162         that we are compiling in checking mode, and if not C++, and
19163         if not already wrapping fwrite for some other reason.
19164         (fwrite): #define to rpl_fwrite if the latter is defined.
19165
19166 2011-03-20  Bruno Haible  <bruno@clisp.org>
19167
19168         verror: Fix compilation error introduced on 2011-02-13.
19169         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
19170         instead of __attribute__.
19171         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19172
19173 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19174             Bruno Haible  <bruno@clisp.org>
19175
19176         socklen: do not depend on sys_socket
19177         While trying to modify Emacs to use gnulib's socklen module,
19178         I discovered a circular dependency: socklen depends on sys_socket
19179         and vice versa.  Emacs can use socklen, but it does not need
19180         sys_socket because it has its own substitute for sys/socket.h.
19181         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
19182         gl_TYPE_SOCKLEN_T.
19183         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
19184         gl_PREREQ_SYS_H_SOCKET.
19185         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
19186         gl_PREREQ_SYS_H_SOCKET.
19187         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
19188         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
19189         * modules/socklen (Depends-on): Do not depend on sys_socket.
19190         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
19191
19192 2011-03-20  Jim Meyering  <meyering@redhat.com>
19193
19194         maint.mk: sort file names *after* new transformation
19195         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
19196         prefix would have led to an unwarranted failure in GNU parted.
19197         Sort after that transformation.
19198
19199 2011-03-19  Jim Meyering  <meyering@redhat.com>
19200
19201         maint.mk: fix po-file syntax-check rule
19202         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
19203         Patch by Bruno Haible.
19204
19205 2011-03-19  Bruno Haible  <bruno@clisp.org>
19206
19207         socklen: Update comment.
19208         * m4/socklen.m4: Update comment about platforms.
19209
19210 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19211             Bruno Haible  <bruno@clisp.org>
19212
19213         inet_ntop, inet_pton: Simplify.
19214         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
19215         documented to provide socklen_t and we already depend on sys_socket.
19216         * modules/inet_pton (Depends-on): Likewise.
19217         * lib/arpa_inet.in.h: Adjust comment.
19218
19219 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19220             Bruno Haible  <bruno@clisp.org>
19221
19222         netdb: Simplify.
19223         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
19224         documented to provide socklen_t and we already depend on sys_socket.
19225         * lib/netdb.in.h: Adjust comment.
19226
19227 2011-03-19  Bruno Haible  <bruno@clisp.org>
19228
19229         sys_socket, netdb: Document problem with socklen_t.
19230         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
19231         platforms.
19232         * doc/posix-headers/netdb.texi: Likewise.
19233
19234 2011-03-18  Eric Blake  <eblake@redhat.com>
19235
19236         maint.mk: let po check work in VPATH build
19237         * top/maint.mk (po_file): Allow cfg.mk override.
19238         (sc_po_check): Allow VPATH use.
19239         Reported by Jiri Denemark.
19240
19241 2011-03-16  Jim Meyering  <meyering@redhat.com>
19242
19243         maint.mk: allow fine-grained syntax-check exclusion via Make variables
19244         Before, you would have had to create one .x-sc_ file per rule in order
19245         to exempt offending files.  Now, you may instead use a Make variable --
19246         usually defined in cfg.mk -- whose name identifies the affected rule.
19247         * top/maint.mk (_sc_excl): Define.
19248         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
19249         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
19250
19251 2011-03-13  Bruno Haible  <bruno@clisp.org>
19252
19253         ignore-value tests: Avoid warnings.
19254         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
19255         empty for gcc < 3.4.
19256
19257 2011-03-13  Bruno Haible  <bruno@clisp.org>
19258
19259         passfd: Fix link error on Solaris.
19260         * modules/passfd (Description): Correct.
19261         (Depends-on): Add socketlib.
19262         (Link): New section.
19263         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
19264
19265 2011-03-13  Bruno Haible  <bruno@clisp.org>
19266
19267         passfd: Fix link error on AIX 5.2.
19268         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
19269
19270 2011-03-13  Bruno Haible  <bruno@clisp.org>
19271
19272         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
19273         * lib/sys_socket.in.h: Include <stddef.h>.
19274         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
19275         CMSG_FIRSTHDR. Remove unused variable.
19276
19277 2011-03-13  Bruno Haible  <bruno@clisp.org>
19278
19279         passfd: Fix compilation error on OpenBSD.
19280         * lib/passfd.c: Include <sys/uio.h>.
19281
19282 2011-03-13  Bruno Haible  <bruno@clisp.org>
19283
19284         passfd test: Fix warnings.
19285         * tests/test-passfd.c: Include <sys/wait.h>.
19286         (main): Fix typo.
19287
19288 2011-03-13  Bruno Haible  <bruno@clisp.org>
19289
19290         passfd module, part 4, tweaks.
19291         * tests/test-passfd.c: Reorder includes.
19292         (main): Fix perror and printf calls.
19293
19294 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19295
19296         passfd module, part 4.
19297         * modules/passfd-tests: New file.
19298         * tests/test-passfd.c: New file.
19299
19300 2011-03-13  Jim Meyering  <meyering@redhat.com>
19301
19302         Makefile: rely on GNU make; derive syntax-check rule names
19303         Rather than requiring that each sc_ rule be listed as a dependent
19304         of "check", use features of GNU make to derive the list.
19305         * Makefile (syntax-check-rules): Define.
19306         (check): Depend on the new variable, not the hard-coded list.
19307
19308 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
19309             Bruno Haible  <bruno@clisp.org>
19310
19311         passfd module, part 3.
19312         * lib/passfd.h (recvfd): Add a flags argument.
19313         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
19314         (recvfd): Add a flags argument.
19315         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
19316         exists.
19317         * modules/passfd (Depends-on): Add cloexec.
19318         Suggested by Eric Blake.
19319
19320 2011-03-13  Bruno Haible  <bruno@clisp.org>
19321
19322         passfd module, part 2, tweaks.
19323         * modules/passfd (Files): Reorder.
19324         (Depends-on): Remove errno.
19325         (Include): Remove <sys/socket.h>, <sys/un.h>.
19326         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
19327         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
19328         specification header. Include <sys/socket.h> always. Don't include
19329         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
19330         (sendfd): Clarify that it sets errno when it fails.
19331         (recvfd): Fix specification.
19332
19333 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19334
19335         passfd module, part 2.
19336         * modules/passfd: New file.
19337         * lib/passfd.h: New file.
19338         * lib/passfd.c: New file.
19339
19340 2011-03-12  Bruno Haible  <bruno@clisp.org>
19341
19342         wcswidth, mbswidth: Avoid integer overflow.
19343         * lib/wcswidth.c: Include <limits.h>.
19344         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
19345         * lib/mbswidth.c: Include <limits.h>.
19346         (mbsnwidth): Avoid 'int' overflow.
19347         Reported by Jim Meyering.
19348
19349 2011-03-12  Bruno Haible  <bruno@clisp.org>
19350
19351         futimens, utimensat: Avoid endless recursion on Solaris 10.
19352         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
19353         Solaris.
19354         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
19355         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
19356
19357 2011-03-11  Jim Meyering  <meyering@redhat.com>
19358
19359         maint.mk: relax a regexp to accommodate other formatting styles
19360         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
19361         between "ngettext" and the following "(".
19362
19363 2011-03-11  Pádraig Brady <P@draigBrady.com>
19364
19365         maint.mk: suppress a false positive warning
19366         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
19367         diagnostics are marked with ngettext.
19368
19369 2011-03-10  Eric Blake  <eblake@redhat.com>
19370
19371         wchar: add explicit dependencies, for Tru64
19372         * modules/mbmemcasecoll (Depends-on): Add wchar.
19373         * modules/mbtowc (Depends-on): Likewise.
19374         * modules/vasnprintf (Depends-on): Likewise.
19375         * modules/unistdio/u-printf-args (Depends-on): Likewise.
19376         * modules/wctomb (Depends-on): Likewise.
19377         Reported by Peter O'Gorman.
19378
19379 2011-03-08  Bruno Haible  <bruno@clisp.org>
19380
19381         passfd module, part 1, tweaks.
19382         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
19383         Improve indentation. Improve AC_MSG_CHECKING messages.
19384         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
19385         gl_SOCKET_FAMILIES.
19386
19387 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19388
19389         passfd module, part 1.
19390         * m4/afunix.m4: New file.
19391         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
19392         sockets.
19393
19394 2011-03-08  Bruno Haible  <bruno@clisp.org>
19395
19396         regex-quote: New API.
19397         * lib/regex-quote.h: Include <stdbool.h>.
19398         (struct regex_quote_spec): New type.
19399         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19400         New declarations.
19401         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19402         'const struct regex_quote_spec *' argument.
19403         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
19404         (pcre_special): New constant.
19405         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19406         New functions.
19407         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19408         'const struct regex_quote_spec *' argument.
19409         * modules/regex-quote (Depends-on): Add stdbool.
19410         * tests/test-regex-quote.c (check): Update for new API. Add test for
19411         anchored results.
19412         * NEWS: Mention the API change.
19413         Reported by Reuben Thomas and Eric Blake.
19414
19415 2011-03-06  Bruno Haible  <bruno@clisp.org>
19416
19417         regex-quote: Fix creation of POSIX extended regular expressions.
19418         * lib/regex-quote.c (ere_special): Add grouping and alternation
19419         operators.
19420
19421 2011-03-05  Bruno Haible  <bruno@clisp.org>
19422
19423         doc: Improve doc regarding autopoint vs. gnulib.
19424         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
19425         disable autopoint while running autoreconf.
19426         Suggested by Ralf Wildenhues.
19427
19428 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19429
19430         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
19431         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
19432
19433 2011-03-03  Bruce Korb  <bkorb@gnu.org>
19434
19435         parse-duration: remove xalloc.h dependency
19436         * lib/parse-duration.c (parse_period): handle NULL return from
19437         strdup instead of calling xstrdup().
19438         * modules/parse-duration: remove "xalloc" dependency
19439
19440 2011-03-03  Matthew Booth  <mbooth@redhat.com>
19441
19442         bootstrap: honor m4_base when running aclocal
19443         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
19444
19445 2011-03-02  Jim Meyering  <meyering@redhat.com>
19446
19447         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
19448         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
19449         on request from Matt Booth.
19450
19451 2011-03-01  Eric Blake  <eblake@redhat.com>
19452
19453         test-link: work on Hurd
19454         * tests/test-link.h (test_link): Hurd rejects linking directories
19455         with EISDIR instead of the POSIX-mandated EPERM.
19456
19457 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
19458
19459         stdio: simplify by moving files to printf-posix, sigpipe
19460         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
19461         since this symbol is needed only if printf is replaced.
19462         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
19463         Require gl_ASM_SYMBOL_PREFIX.
19464         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
19465         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
19466         (Depends-on): Add 'raise'.
19467         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
19468         * modules/stdio (Files): Remove lib/stdio-write.c,
19469         m4/asm-underscore.m4.
19470         (Depends-on): Remove 'raise'.
19471
19472         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
19473         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
19474         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
19475         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
19476
19477 2011-02-28  Bruno Haible  <bruno@clisp.org>
19478
19479         localcharset: Assume ANSI C behaviour of free().
19480         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
19481         calling free().
19482         Suggested by Simon Josefsson <simon@josefsson.org>.
19483
19484 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
19485             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
19486             Bruno Haible  <bruno@clisp.org>  (tiny change)
19487
19488         On Cygwin, use /proc file system instead of win32 API.
19489         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
19490         Win32 file names.
19491         (DllMain): Simplify by removing Cygwin specific code.
19492         (find_shared_library_fullname): Use Linux specific implementation also
19493         for Cygwin.
19494         (get_shared_library_fullname): Update accordingly.
19495         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
19496         Win32 file names.
19497         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
19498         Cygwin specific code.
19499
19500 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
19501             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
19502
19503         Fix OpenMP flag detection for various Fortran compilers.
19504         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
19505         OpenMP-conditional compilation construct, to force compile
19506         failure with missing OpenMP flag.
19507         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
19508
19509 2011-02-25  Eric Blake  <eblake@redhat.com>
19510
19511         strstr: expand test coverage
19512         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
19513         compilation.
19514         * tests/test-memmem.c (main): Duplicate tests.
19515         * tests/test-strcasestr.c (main): Likewise.
19516         * tests/test-c-strcasestr.c (main): Likewise.
19517
19518 2011-02-25  Jim Meyering  <meyering@redhat.com>
19519
19520         maint.mk: detect missing-NL-at-EOF, too
19521         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
19522         it also detects when a file lacks a newline at EOF.
19523         (require_exactly_one_NL_at_EOF_): Renamed from
19524         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
19525         since people may well have .x-sc_... file names tied to the
19526         existing name.  Suggested by Eric Blake.
19527
19528 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
19529
19530         dirname: move m4/dos.m4 functionality into lib/dosname.h
19531
19532         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
19533         extracts symbols from it, puts them into config.h; but it's much
19534         easier to use the symbols directly.  filename.h already does this,
19535         but it disagrees with dos.m4 in some respects.  This patch
19536         introduces a different include file dosname.h that packages up
19537         dos.m4, and then later we can work on merging filename.h and
19538         dosname.h.  Applications that need only the easy-to-configure
19539         symbols should consider including dosname.h rather than dirname.h.
19540         * NEWS: Mention incompatible changes.
19541         * m4/dos.m4: Remove.
19542         * lib/dosname.h, modules/dosname: New files.
19543         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
19544         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
19545         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
19546         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
19547         Include dosname.h, not dirname.h.
19548         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
19549         Include dosname.h, for definitions of symbols like ISSLASH
19550         that used to be in config.h.
19551         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
19552         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19553         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19554         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19555         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
19556         * modules/rmdir (Files): Likewise.
19557         * modules/stat (Files): Likewise.
19558         * modules/unlink (Files): Likewise.
19559         * modules/dirname-lgpl (Depends-on): Add dosname.
19560         * modules/lstat (Depends-on): Likewise.
19561         * modules/openat (Depends-on): Likewise.
19562         * modules/rmdir (Depends-on): Likewise.
19563         * modules/savewd (Depends-on): Likewise.
19564         * modules/stat (Depends-on): Likewise.
19565         * modules/unlink (Depends-on): Likewise.
19566         * modules/openat (Depends-on): Remove dirname-lgpl.
19567         * modules/savewd (Depends-on): Likewise.
19568         * tests/test-dirname.c: Do not use removed symbols like
19569         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
19570         the remaining symbols, e.g., ISSLASH ('\\').
19571
19572 2011-02-25  Eric Blake  <eblake@redhat.com>
19573
19574         strstr: revert patches that introduced bug and pessimization
19575         * lib/str-two-way.h: Add another reference.
19576         (two_way_short_needle, two_way_long_needle): Revert changes from
19577         2011-02-24; they pessimize search speed.
19578         (critical_factorization): Partially revert changes from
19579         2010-06-22; they violate the requirement that the left half of the
19580         needle be smaller than the period of the needle.
19581
19582 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
19583
19584         filenamecat: remove unnecessary dependency on dirname-lgpl
19585         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
19586         is no direct dependency, just an indirect one via filenamecat-lgpl.
19587
19588         remove: remove unnecessary use of m4/dos.m4
19589         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
19590         * modules/remove (FILES): Remove m4/dos.m4.
19591
19592         * lib/openat-proc.c: Don't include dirname.h; not needed.
19593
19594         backupfile: remove unnecessary use of m4/dos.m4
19595         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
19596         of its symbols are used by the backupfile code.  backupfile.c does
19597         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
19598         for the rare case of programs that want all their backup file
19599         names to live within 8+3 limits, and dos.m4 doesn't address that.
19600         * modules/backupfile (Files): Remove m4/dos.m4.
19601
19602 2011-02-24  Jim Meyering  <meyering@redhat.com>
19603
19604         strstr: fix a bug whereby strstr would mistakenly return NULL
19605         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
19606         in period calculation.
19607         (two_way_long_needle): Likewise.
19608         The original problem was reported by Mike Stump in
19609         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
19610         Ralf Wildenhues provided the short needle and haystack.
19611         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
19612         Add a more involved test to trigger the bug in two_way_long_needle.
19613
19614 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19615
19616         gnulib-tool: remove use of bold display in help screen
19617         * gnulib-tool (func_usage): Do not use bold display anymore in the
19618         help screen.  That was just meant to be a temporary emphasis for a
19619         backward-incompatible change.
19620
19621 2011-02-23  Bruno Haible  <bruno@clisp.org>
19622
19623         Fix misindentation of preprocessor directives.
19624         * lib/argp-namefrob.h: Reindent preprocessor directives.
19625         * lib/getopt_int.h (struct _getopt_data): Likewise.
19626         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
19627         * lib/vasnprintf.c (decode_long_double): Likewise.
19628         * tests/test-argmatch.c: Insert blank lines, for clarity.
19629         * tests/test-exclude.c: Likewise.
19630
19631 2011-02-22  Bruno Haible  <bruno@clisp.org>
19632
19633         ioctl: Fix for MacOS X in 64-bit mode.
19634         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
19635         value.
19636         Suggested by Eric Blake.
19637         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
19638
19639 2011-02-22  Jim Meyering  <meyering@redhat.com>
19640
19641         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
19642         * Makefile (sc_cpp_indent_check): Don't limit the check to files
19643         in lib/.
19644
19645 2011-02-22  Eric Blake  <eblake@redhat.com>
19646
19647         maint: avoid any CDPATH issue
19648         * Makefile (sc_cpp_indent_check): Anchor cd argument.
19649
19650         maint: adjust cpp indentation for my modules, as well
19651         * Makefile (sc_cpp_indent_check): Add my name.
19652         * lib/fbufmode.c: Filter through cppi.
19653         * lib/fpurge.c: Likewise.
19654         * lib/freadable.c: Likewise.
19655         * lib/freading.c: Likewise.
19656         * lib/fwritable.c: Likewise.
19657         * lib/fwriting.c: Likewise.
19658         * lib/sigaction.c: Likewise.
19659
19660 2011-02-22  Jim Meyering  <meyering@redhat.com>
19661
19662         maint: adjust cpp indentation to reflect nesting depth
19663         I.e., in a block of code that begins with an unnested "#if",
19664         put one space between the "#" in column 1 and following token.
19665         For example,
19666         -#include <sys/vfs.h>
19667         +# include <sys/vfs.h>
19668         Do this only in .c files that are part of a module I maintain.
19669         * lib/linkat.c: Filter through cppi.
19670         * lib/nanosleep.c: Likewise.
19671         * lib/openat.c: Likewise.
19672         * lib/openat-die.c: Likewise.
19673         * lib/dup3.c: Likewise.
19674         * lib/fchownat.c: Likewise.
19675         * lib/flock.c: Likewise.
19676         * lib/fsync.c: Likewise.
19677         * lib/fts.c: Likewise.
19678         * lib/getpass.c: Likewise.
19679         * lib/gettimeofday.c: Likewise.
19680         * lib/userspec.c: Likewise.
19681         * Makefile (sc_cpp_indent_check): New rule, to check this.
19682
19683 2011-02-22  Bruno Haible  <bruno@clisp.org>
19684
19685         New module 'wctomb'.
19686         * lib/stdlib.in.h (wctomb): New declaration.
19687         * lib/wctomb.c: New file.
19688         * lib/wctomb-impl.h: New file.
19689         * m4/wctomb.m4: New file.
19690         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
19691         REPLACE_WCTOMB.
19692         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
19693         REPLACE_WCTOMB.
19694         * modules/wctomb: New file.
19695         * tests/test-stdlib-c++.cc: Test signature of wctomb.
19696         * doc/posix-functions/wctomb.texi: Mention the new module.
19697         * modules/wctob (Depends-on): Add wctomb.
19698
19699 2011-02-22  Bruno Haible  <bruno@clisp.org>
19700
19701         New module 'mbtowc'.
19702         * lib/stdlib.in.h (mbtowc): New declaration.
19703         * lib/mbtowc.c: New file.
19704         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
19705         * m4/mbtowc.m4: New file.
19706         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
19707         REPLACE_MBTOWC.
19708         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
19709         REPLACE_MBTOWC.
19710         * modules/mbtowc: New file.
19711         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
19712         * doc/posix-functions/mbtowc.texi: Mention the new module.
19713         * modules/btowc (Depends-on): Add mbtowc.
19714
19715 2011-02-22  Bruno Haible  <bruno@clisp.org>
19716
19717         wcrtomb: Add more tests for native Windows platforms.
19718         * tests/test-wcrtomb-w32-1.sh: New file.
19719         * tests/test-wcrtomb-w32-2.sh: New file.
19720         * tests/test-wcrtomb-w32-3.sh: New file.
19721         * tests/test-wcrtomb-w32-4.sh: New file.
19722         * tests/test-wcrtomb-w32-5.sh: New file.
19723         * tests/test-wcrtomb-w32.c: New file.
19724         * modules/wcrtomb-tests (Files): Add them.
19725         (Makefile.am): Arrange to run these tests.
19726         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
19727         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
19728
19729 2011-02-20  Bruno Haible  <bruno@clisp.org>
19730
19731         wcrtomb: Enhance test.
19732         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
19733
19734 2011-02-20  Bruno Haible  <bruno@clisp.org>
19735
19736         mbrtowc: Tiny optimization.
19737         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
19738
19739 2011-02-20  Jim Meyering  <meyering@redhat.com>
19740
19741         test-exclude.c: remove unmatched #endif
19742         * tests/test-exclude.c: Remove stray #endif, left over from
19743         the change of a week ago.
19744
19745 2011-02-19  Jim Meyering  <meyering@redhat.com>
19746
19747         git-version-gen: skip "-dirty" check when appropriate
19748         * build-aux/git-version-gen: Don't run any git commands when the
19749         version string comes from .tarball-version.  Prior to this, we
19750         would run git update-index --refresh even from a just-unpacked
19751         tarball directory, and that could affect a .git/ directory in a
19752         parent of the build directory.  Reported by Mike Frysinger.
19753
19754 2011-02-19  Bruno Haible  <bruno@clisp.org>
19755
19756         unictype/property-byname: Reduce the size of the 'data' segment.
19757         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
19758
19759 2011-02-19  Bruno Haible  <bruno@clisp.org>
19760
19761         unictype/scripts: Reduce the size of the 'data' segment.
19762         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
19763         '%pic'.
19764         * lib/unictype/scripts_byname.gperf: Regenerated.
19765
19766 2011-02-19  Bruno Haible  <bruno@clisp.org>
19767
19768         stdint: Update documentation.
19769         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
19770
19771 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
19772
19773         stdint: omit redundant check for wchar.h
19774         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
19775         always tests whether wchar.h exists, so remove the now-redundant test.
19776
19777 2011-02-18  Bruno Haible  <bruno@clisp.org>
19778
19779         stdint: Cut dependency to module 'wchar'.
19780         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
19781         include the necessary prerequisites.
19782         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
19783         * modules/stdint (Depends-on): Remove wchar.
19784         (Makefile.am): Substitute HAVE_WCHAR_H.
19785         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
19786
19787 2011-02-18  Eric Blake  <eblake@redhat.com>
19788
19789         longlong: skip, rather than fail, on cross-compilation
19790         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
19791         when cross-compiling; regression from 2011-02-16.
19792
19793 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19794
19795         * NEWS: Mention 2011-02-08 change to stdlib.
19796
19797 2011-02-17  Bruno Haible  <bruno@clisp.org>
19798
19799         getloadavg: Add comments about platforms.
19800         * m4/getloadavg.m4: Add comment.
19801         * lib/getloadavg.c: Likewise.
19802
19803 2011-02-17  Bruno Haible  <bruno@clisp.org>
19804
19805         getloadavg: Fix link error on Solaris 2.6.
19806         * modules/getloadavg (Link): New section.
19807         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
19808         linking test-getloadavg.
19809         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
19810         getloadavg.
19811
19812 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19813
19814         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
19815         It was 'int', but this doesn't match the IRIX 6.5 manual.
19816         Suggested by Bruno Haible in
19817         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
19818
19819 2011-02-17  Bruno Haible  <bruno@clisp.org>
19820
19821         havelib: Fix comments.
19822         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
19823         change.
19824
19825 2011-02-17  Bruno Haible  <bruno@clisp.org>
19826
19827         havelib: Update config.rpath.
19828         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
19829
19830 2011-02-17  Bruno Haible  <bruno@clisp.org>
19831
19832         getloadavg test: Add some plausibility checks.
19833         * tests/test-getloadavg.c (check_avg): Print a warning when the value
19834         is improbable.
19835
19836 2011-02-16  Eric Blake  <eblake@redhat.com>
19837
19838         maintainer-makefile: make syntax-check a no-op from tarballs
19839         * top/maint.mk (no-vc-detected): New rule.
19840         (local-checks-available): Use it to avoid hanging if someone tries
19841         'make syntax-check' from a tarball.  Also append to any non-syntax
19842         checks already defined in cfg.mk.
19843
19844 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
19845
19846         longlong: tune, particularly for common case of c99
19847
19848         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
19849         or running anything if c99, or if unsigned long long int does not
19850         work.  In either case, we know the answer without further tests.
19851         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
19852         it at most once, and use its results for both long long int and
19853         unsigned long long int.  This is more likely to be efficient in
19854         the common case where the program wants to check for both long
19855         long int and unsigned long long int.
19856         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
19857         since the answer is already known.
19858
19859 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
19860
19861         getloadavg: set errno
19862         * lib/getloadavg.c: Set errno when returning -1.  If no other
19863         error number looks appropriate, set it to ENOSYS if the getloadavg
19864         looks like it can't possibly ever work, ENOTSUP otherwise.
19865         Suggested by Bruno Haible in
19866         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
19867
19868         getloadavg: trim unused parts and speed up 'configure'
19869         * NEWS: Document this.
19870         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
19871         always compiled if getloadavg is absent.
19872         Move test code to ...
19873         * tests/test-getloadavg.c: New file, containing previous
19874         contents of test from lib/getloadavg.c.  It also contains
19875         suggestions by Bruno Haible in
19876         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
19877         * modules/getloadavg-tests: New file.
19878         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
19879         Do tests in the same order as they're needed for getloadavg.c.
19880         Omit setgid-related tests that generate symbols KMEM_GROUP,
19881         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
19882         Do only the tests that are needed to see whether the system has
19883         getloadavg, moving the other tests into ...
19884         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
19885         NLIST_NAME_UNION; nobody should be using it.  Do not define
19886         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
19887         relevant, as the user of this module shouldn't care how getloadavg
19888         is implemented.
19889
19890         getloadavg: omit unused var
19891         * lib/getloadavg.c (getloadavg): Omit unused local variable.
19892
19893 2011-02-15  Jim Meyering  <meyering@redhat.com>
19894
19895         doc: update users.txt
19896         * users.txt: Update iwhd's URL.
19897
19898 2011-02-13  Bruno Haible  <bruno@clisp.org>
19899
19900         Consistent macro naming for macros that use GCC __attribute__.
19901         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
19902         _ATTRIBUTE_NONNULL_.
19903         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
19904         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
19905         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
19906         ATTRIBUTE_DEPRECATED.
19907         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
19908         ATTRIBUTE_NORETURN.
19909         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19910         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19911         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19912         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19913         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
19914         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
19915         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
19916         ATTRIBUTE_SENTINEL.
19917         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
19918         ATTRIBUTE_RETURN_CHECK.
19919         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
19920         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
19921         ATTRIBUTE_NORETURN.
19922         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
19923         Reported by Paul Eggert.
19924
19925 2011-02-13  Bruno Haible  <bruno@clisp.org>
19926
19927         Don't interfere with a program's definition of __attribute__.
19928         * lib/argp.h (__attribute__): Remove definition.
19929         (_GL_ATTRIBUTE_FORMAT): New macro.
19930         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
19931         * lib/argp-fmtstream.h (__attribute__): Remove definition.
19932         (_GL_ATTRIBUTE_FORMAT): New macro.
19933         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
19934         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
19935         GCC 3 or newer.
19936         * lib/error.h (__attribute__): Remove definition.
19937         (_GL_ATTRIBUTE_FORMAT): New macro.
19938         (error, error_at_line): Use it.
19939         * lib/hash.h (__attribute__): Remove definition.
19940         (ATTRIBUTE_WUR): Update definition. Define always.
19941         * lib/openat.h (__attribute__): Remove definition.
19942         (ATTRIBUTE_NORETURN): Update definition. Define always.
19943         * lib/sigpipe-die.h (__attribute__): Remove definition.
19944         (ATTRIBUTE_NORETURN): Update definition. Define always.
19945         * lib/vasnprintf.h (__attribute__): Remove definition.
19946         (_GL_ATTRIBUTE_FORMAT): New macro.
19947         (asnprintf, vasnprintf): Use it.
19948         * lib/xalloc.h (__attribute__): Remove definition.
19949         (ATTRIBUTE_NORETURN): Update definition. Define always.
19950         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
19951         * lib/xmemdup0.h (__attribute__): Remove definition.
19952         (ATTRIBUTE_NORETURN): Update definition. Define always.
19953         * lib/xprintf.h (__attribute__): Remove definition.
19954         (_GL_ATTRIBUTE_FORMAT): New macro.
19955         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
19956         * lib/xstrtol.h (__attribute__): Remove definition.
19957         (ATTRIBUTE_NORETURN): Update definition. Define always.
19958         * lib/xvasprintf.h (__attribute__): Remove definition.
19959         (_GL_ATTRIBUTE_FORMAT): New macro.
19960         (xasprintf, xvasprintf): Use it.
19961         * tests/test-argmatch.c (__attribute__): Remove definition.
19962         (ATTRIBUTE_NORETURN): Update definition. Define always.
19963         * tests/test-exclude.c (__attribute__): Remove definition.
19964         (ATTRIBUTE_NORETURN): Update definition. Define always.
19965         Reported by Paul Eggert.
19966
19967 2011-02-13  Bruno Haible  <bruno@clisp.org>
19968
19969         mbrtowc: Add more tests for native Windows platforms.
19970         * tests/test-mbrtowc-w32-1.sh: New file.
19971         * tests/test-mbrtowc-w32-2.sh: New file.
19972         * tests/test-mbrtowc-w32-3.sh: New file.
19973         * tests/test-mbrtowc-w32-4.sh: New file.
19974         * tests/test-mbrtowc-w32-5.sh: New file.
19975         * tests/test-mbrtowc-w32.c: New file.
19976         * modules/mbrtowc-tests (Files): Add them.
19977         (Makefile.am): Arrange to run these tests.
19978         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
19979         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
19980
19981 2011-02-13  Bruno Haible  <bruno@clisp.org>
19982
19983         mbrtowc: Work around native Windows bug.
19984         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
19985         guess when no suitable locale for testing was found.
19986         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
19987
19988 2011-02-13  Bruno Haible  <bruno@clisp.org>
19989
19990         mbsinit: Work around mingw bug.
19991         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
19992         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
19993         Windows.
19994         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
19995
19996 2011-02-13  Bruno Haible  <bruno@clisp.org>
19997
19998         mbsinit: Don't crash for a NULL argument.
19999         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
20000         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
20001
20002 2011-02-13  Bruno Haible  <bruno@clisp.org>
20003
20004         Don't interfere with a program's definition of __attribute__.
20005         * lib/stdio.in.h (__attribute__): Remove definition.
20006         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
20007         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
20008         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
20009         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
20010         * lib/string.in.h (__attribute__): Remove definition.
20011         Reported by Paul Eggert.
20012
20013 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
20014
20015         stdlib: don't get in the way of non-GCC __attribute__
20016         See thread starting at
20017         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
20018         Revert previous stdlib change, installing the following instead:
20019         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
20020         to get in the way of a non-GCC compiler that supports __attribute__.
20021         (_GL_ATTRIBUTE_RETURN): New macro.
20022         (_Exit): Use it instead of __attribute__.
20023
20024 2011-02-12  Bruno Haible  <bruno@clisp.org>
20025
20026         quotearg test: Avoid test failure on mingw.
20027         * tests/test-quotearg.sh: Convert the locale identifier from native
20028         Windows syntax to Unix syntax.
20029
20030 2011-02-12  Bruno Haible  <bruno@clisp.org>
20031
20032         setlocale: Prefer gnulib's override over libintl's override.
20033         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
20034         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
20035         GNULIB_defined_setlocale is set.
20036
20037 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
20038
20039         stdlib: support non-GCC __attribute__
20040
20041         Fix a serious and tricky problem encountered when attempting to
20042         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
20043         5.5, but it crashed due to memory corruption on Solaris 10 with
20044         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
20045         bits that are otherwise zero.  This tagging is optional inside
20046         Emacs but is preferred and is used when __attribute__ ((__aligned
20047         (8))) works, as it does with both recent-enough GCC and with Sun C
20048         5.11.  However, Sun C 5.11 is not GCC and does not #define
20049         __GNUC__ and __GNUC_MINOR__.
20050
20051         When I added the getloadavg module to Emacs, it brought in
20052         stdlib.in.h, which contained this fragment:
20053
20054            #ifndef __attribute__
20055            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
20056            #  define __attribute__(Spec)   /* empty */
20057            # endif
20058            #endif
20059
20060         When files that include <stdlib.h> were compiled with Sun C 5.11,
20061         the above code disabled __attribute__ ((__aligned (8))), which
20062         caused variables to not be properly aligned, which eventually led
20063         to the pointer corruption mentioned above.  (This was a bit hard
20064         to diagnose, unfortunately.)
20065
20066         Several "#define __attribute__(X) /* empty */" code snippets need
20067         to be eradicated from Gnulib to work with non-GCC compilers that
20068         support __attribute__.  The Autoconf way to do this is to test for
20069         each kind of attribute that we want support for, and selectively
20070         enable that in source code.
20071
20072         Fix this problem just for stdlib.h, by adding a test for the
20073         __noreturn__ attribute, and change stdlib.in.h to use that test
20074         when needed.  This technique can be easily generalized to the
20075         other *.in.h files and attributes, and a similar technique can be
20076         used for *.h and *.c files.  This patch is enough to solve the
20077         problem for Emacs + getloadavg, and I thought I'd publish it for
20078         feedback before undertaking further, similar fixes in other
20079         modules.
20080
20081         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
20082         because it's not needed for stdlib.h.  It merely substitutes the
20083         value directly into stdlib.h.  We may well need to #define it, or
20084         similar symbols, for other modules, but it's nice to also have an
20085         option to not #define it for applications like Emacs that do not
20086         need it.
20087
20088         * lib/stdlib.in.h (__attribute__): Do not #define.
20089         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
20090         be defined only if the _Exit module is also used.
20091         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
20092         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
20093         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
20094         platforms.
20095         * modules/_Exit (Files): Add m4/attribute.m4.
20096         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
20097         * m4/attribute.m4: New file.
20098
20099 2011-02-12  Bruno Haible  <bruno@clisp.org>
20100
20101         wcsrtombs: Work around bug on native Windows.
20102         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
20103         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
20104         instead of len.
20105         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
20106
20107 2011-02-12  Bruno Haible  <bruno@clisp.org>
20108
20109         mbsrtowcs: Work around bug on native Windows.
20110         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
20111         against mingw bug.
20112         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
20113
20114 2011-02-12  Bruno Haible  <bruno@clisp.org>
20115
20116         Avoid setlocale bugs in tests.
20117         * modules/btowc (Dependencies): Add setlocale.
20118         * modules/c-strcase (Dependencies): Likewise.
20119         * modules/mbmemcasecmp (Dependencies): Likewise.
20120         * modules/mbmemcasecoll (Dependencies): Likewise.
20121         * modules/mbrtowc (Dependencies): Likewise.
20122         * modules/mbscasecmp (Dependencies): Likewise.
20123         * modules/mbscasestr (Dependencies): Likewise.
20124         * modules/mbschr (Dependencies): Likewise.
20125         * modules/mbscspn (Dependencies): Likewise.
20126         * modules/mbsinit (Dependencies): Likewise.
20127         * modules/mbsncasecmp (Dependencies): Likewise.
20128         * modules/mbsnrtowcs (Dependencies): Likewise.
20129         * modules/mbspbrk (Dependencies): Likewise.
20130         * modules/mbspcasecmp (Dependencies): Likewise.
20131         * modules/mbsrchr (Dependencies): Likewise.
20132         * modules/mbsrtowcs (Dependencies): Likewise.
20133         * modules/mbsspn (Dependencies): Likewise.
20134         * modules/mbsstr (Dependencies): Likewise.
20135         * modules/nl_langinfo (Dependencies): Likewise.
20136         * modules/quotearg (Dependencies): Likewise.
20137         * modules/unicase/locale-language (Dependencies): Likewise.
20138         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
20139         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
20140         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
20141         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
20142         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
20143         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
20144         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
20145         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
20146         * modules/vasnprintf-posix (Dependencies): Likewise.
20147         * modules/wcrtomb (Dependencies): Likewise.
20148         * modules/wcsnrtombs (Dependencies): Likewise.
20149         * modules/wcsrtombs (Dependencies): Likewise.
20150
20151 2011-02-12  Bruno Haible  <bruno@clisp.org>
20152
20153         setlocale: Workaround native Windows bug.
20154         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
20155         succeeds but sets LC_CTYPE to "C", report a failure.
20156         * tests/test-setlocale2.sh: New file.
20157         * tests/test-setlocale2.c: New file.
20158         * modules/setlocale-tests (Files): Add the new files.
20159         (Makefile.am): Enable test-setlocale2.sh test.
20160         * doc/posix-functions/setlocale.texi: Mention workaround.
20161
20162 2011-02-11  Bruno Haible  <bruno@clisp.org>
20163
20164         Tests for module 'setlocale'.
20165         * modules/setlocale-tests: New file.
20166         * tests/test-setlocale1.sh: New file.
20167         * tests/test-setlocale1.c: New file.
20168
20169         New module 'setlocale'.
20170         * lib/locale.in.h (setlocale): New declaration.
20171         * lib/setlocale.c: New file, based on
20172         gettext/gettext-runtime/intl/setlocale.c.
20173         * m4/setlocale.m4: New file.
20174         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
20175         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
20176         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
20177         REPLACE_SETLOCALE.
20178         * modules/setlocale: New file.
20179         * tests/test-locale-c++.cc: Test the declaration of setlocale.
20180         * doc/posix-functions/setlocale.texi: Mention the new module.
20181
20182 2011-02-11  Bruno Haible  <bruno@clisp.org>
20183
20184         Prepare for locale dependent tests on mingw.
20185         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
20186         because it has the wrong locale encoding.
20187         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
20188         French_France.1252 instead of "fr".
20189         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
20190         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
20191         because it has the wrong locale encoding.
20192         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
20193         native Windows, try Turkish_Turkey.65001.
20194         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
20195         Chinese_China.54936.
20196
20197         Prepare for locale dependent tests on mingw.
20198         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
20199         differently.
20200         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
20201         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
20202         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
20203         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20204
20205 2011-02-11  Eric Blake  <eblake@redhat.com>
20206
20207         strptime: avoid compiler warnings
20208         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
20209         compiler warnings about dead code.
20210         Reported by Daniel P. Berrange.
20211
20212 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
20213
20214         doc: update users.txt
20215         * users.txt: Add rcs.
20216
20217 2011-02-10  John W. Eaton  <jwe@gnu.org>
20218
20219         doc: update users.txt
20220         * users.txt: Add octave.
20221
20222 2011-02-10  Jim Meyering  <meyering@redhat.com>
20223
20224         doc: update users.txt
20225         * users.txt: Add iwhd.
20226
20227 2011-02-09  Bruno Haible  <bruno@clisp.org>
20228
20229         gnulib-tool: Make copyright notice adjustment more robust.
20230         * gnulib-tool (func_import): In sed_transform_main_lib_file,
20231         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
20232         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
20233         License".
20234         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
20235
20236 2011-02-06  Bruno Haible  <bruno@clisp.org>
20237
20238         New module 'towctrans'.
20239         * modules/towctrans: New file.
20240         * lib/wctype.in.h (towctrans): New declaration.
20241         * lib/towctrans.c: New file.
20242         * lib/towctrans-impl.h: New file.
20243         * m4/towctrans.m4: New file.
20244         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
20245         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
20246         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
20247         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
20248         * doc/posix-functions/towctrans.texi: Mention the new module.
20249
20250 2011-02-06  Bruno Haible  <bruno@clisp.org>
20251
20252         New module 'wctrans'.
20253         * modules/wctrans: New file.
20254         * lib/wctype.in.h (wctrans): New declaration.
20255         * lib/wctrans.c: New file.
20256         * lib/wctrans-impl.h: New file.
20257         * m4/wctrans.m4: New file.
20258         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
20259         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
20260         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
20261         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
20262         * doc/posix-functions/wctrans.texi: Mention the new module.
20263
20264 2011-02-06  Bruno Haible  <bruno@clisp.org>
20265
20266         New module 'iswctype'.
20267         * modules/iswctype: New file.
20268         * lib/wctype.in.h (iswctype): New declaration.
20269         * lib/iswctype.c: New file.
20270         * lib/iswctype-impl.h: New file.
20271         * m4/iswctype.m4: New file.
20272         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
20273         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
20274         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
20275         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
20276         * doc/posix-functions/iswctype.texi: Mention the new module and the
20277         HP-UX 11.00 problem.
20278
20279 2011-02-06  Bruno Haible  <bruno@clisp.org>
20280
20281         New module 'wctype'.
20282         * modules/wctype: Change to represent the wctype() substitute.
20283         * lib/wctype.in.h (wctype): New declaration.
20284         * lib/wctype.c: New file.
20285         * lib/wctype-impl.h: New file.
20286         * m4/wctype.m4: New file.
20287         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
20288         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
20289         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
20290         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
20291         * doc/posix-functions/wctype.texi: Mention the new module and the
20292         HP-UX 11.00 problem.
20293
20294 2011-02-06  Bruno Haible  <bruno@clisp.org>
20295
20296         wctype-h: Ensure wctype_t and wctrans_t are defined.
20297         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
20298         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20299         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20300         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
20301         HAVE_WCTRANS_T.
20302         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
20303
20304 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
20305
20306         flock: fix license typo
20307
20308         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
20309         omitted.
20310
20311 2011-02-08  Bruno Haible  <bruno@clisp.org>
20312
20313         Split large sed scripts, for HP-UX sed.
20314         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
20315         to avoid HP-UX limit of 99 commands, in the near future.
20316         * modules/stdlib (Makefile.am): Likewise.
20317         * modules/unistd (Makefile.am): Likewise.
20318         * modules/wchar (Makefile.am): Likewise.
20319         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20320         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
20321         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
20322
20323 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20324             Bruno Haible  <bruno@clisp.org>
20325
20326         stdlib: improve random_r modularization
20327         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
20328         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
20329         you also need the random_r module to get this material right.
20330         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
20331         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
20332         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
20333
20334 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20335
20336         stdlib: don't depend on stdint
20337         * lib/stdlib.in.h: Don't include <stdint.h> merely because
20338         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
20339         be independent of whether stdint.h is needed.
20340         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
20341         here, instead of ...
20342         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
20343         struct random_data should be using the random_r module, not just
20344         the stdlib module (which wouldn't make sense: what package needs
20345         just struct random_data without also needing random_r?).
20346         * modules/stdlib (Depends-on): Remove stdint.
20347
20348         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
20349         See the thread rooted at
20350         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
20351         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
20352         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
20353         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
20354         __VMS)); previously it was always included (via fcntl--.h).
20355         (getloadavg): Do not use c_strtod.  Instead, approximate it by
20356         hand; this is good enough for load averages.  Also, do not use
20357         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
20358         flags directly if available and don't bother otherwise.  (Packages
20359         that need the extra reliability should use the modules that define
20360         these flags on older platforms that lack them.)
20361         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
20362         fcntl-safer.
20363
20364 2011-02-08  Jim Meyering  <meyering@redhat.com>
20365
20366         di-set.h, ino-map.h: add multiple-inclusion guard
20367         Technically, the guard is required only for ino-map.h, due to its
20368         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
20369         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
20370         * lib/ino-map.h: Likewise.
20371
20372 2011-02-06  Bruno Haible  <bruno@clisp.org>
20373
20374         iswblank: Ensure declaration on glibc systems.
20375         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
20376         * modules/iswblank (Dependencies): Add 'extensions'.
20377         * doc/posix-functions/iswblank.texi: Document the glibc problem.
20378
20379 2011-02-06  Bruno Haible  <bruno@clisp.org>
20380
20381         New module 'iswblank'.
20382         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
20383         * modules/iswblank: New file.
20384         * modules/wctype-h (Files): Remove lib/iswblank.c.
20385         (Makefile.am): Substitute GNULIB_ISWBLANK.
20386         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
20387         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
20388         (gl_WCTYPE_H_DEFAULTS): New macro.
20389         (gl_WCTYPE_H): Require it. Remove iswblank related code.
20390         * modules/iswblank-tests: New file.
20391         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
20392         * tests/test-wctype-h.c (main): Remove iswblank tests.
20393         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
20394         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
20395         of 'wctype-h'.
20396         * NEWS: Mention the change.
20397         * modules/mbchar (Depends-on): Add iswblank.
20398
20399 2011-02-08  Bruno Haible  <bruno@clisp.org>
20400
20401         di-set tests: Refactor.
20402         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
20403         unnecessary includes.
20404         (ASSERT): Remove macro.
20405         (main): Make C90 compliant by avoiding variable declaration after
20406         statement.
20407         * modules/di-set-tests (Files): Add tests/macros.h.
20408
20409 2011-02-08  Bruno Haible  <bruno@clisp.org>
20410
20411         ino-map tests: Refactor.
20412         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
20413         unnecessary includes.
20414         (ASSERT): Remove macro.
20415         (main): Make C90 compliant by avoiding variable declaration after
20416         statement.
20417         * modules/ino-map-tests (Files): Add tests/macros.h.
20418
20419 2011-02-08  Jim Meyering  <meyering@redhat.com>
20420
20421         di-set: add "const" to a cast
20422         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
20423         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
20424
20425 2011-02-06  Bruno Haible  <bruno@clisp.org>
20426
20427         Rename module 'wctype' to 'wctype-h'.
20428         * modules/wctype-h: Renamed from modules/wctype.
20429         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
20430         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
20431         (Files, Depends-on, Makefile.am): Update.
20432         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
20433         (Files, Makefile.am): Update.
20434         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
20435         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
20436         * doc/posix-headers/wctype.texi: Update.
20437         * doc/posix-functions/iswalnum.texi: Update.
20438         * doc/posix-functions/iswalpha.texi: Update.
20439         * doc/posix-functions/iswblank.texi: Update.
20440         * doc/posix-functions/iswcntrl.texi: Update.
20441         * doc/posix-functions/iswdigit.texi: Update.
20442         * doc/posix-functions/iswgraph.texi: Update.
20443         * doc/posix-functions/iswlower.texi: Update.
20444         * doc/posix-functions/iswprint.texi: Update.
20445         * doc/posix-functions/iswpunct.texi: Update.
20446         * doc/posix-functions/iswspace.texi: Update.
20447         * doc/posix-functions/iswupper.texi: Update.
20448         * doc/posix-functions/iswxdigit.texi: Update.
20449         * doc/posix-functions/towlower.texi: Update.
20450         * doc/posix-functions/towupper.texi: Update.
20451         * NEWS: Mention the change.
20452         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
20453         * modules/mbchar (Dependencies): Likewise.
20454         * modules/mbswidth (Dependencies): Likewise.
20455         * modules/quotearg (Dependencies): Likewise.
20456         * modules/regex (Dependencies): Likewise.
20457         * modules/wcscasecmp (Dependencies): Likewise.
20458         * modules/wcsncasecmp (Dependencies): Likewise.
20459         * modules/wcwidth (Dependencies): Likewise.
20460
20461 2011-02-06  Bruno Haible  <bruno@clisp.org>
20462
20463         New module 'wcswidth'.
20464         * modules/wcswidth: New file.
20465         * lib/wchar.in.h (wcswidth): New declaration.
20466         * lib/wcswidth.c: New file.
20467         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
20468         * m4/wcswidth.m4: New file.
20469         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
20470         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
20471         REPLACE_WCSWIDTH.
20472         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
20473         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
20474         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
20475         * doc/posix-functions/wcswidth.texi: Mention the new module.
20476
20477 2011-02-06  Bruno Haible  <bruno@clisp.org>
20478
20479         New module 'wcstok'.
20480         * modules/wcstok: New file.
20481         * lib/wchar.in.h (wcstok): New declaration.
20482         * lib/wcstok.c: New file.
20483         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
20484         * m4/wcstok.m4: New file.
20485         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
20486         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
20487         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
20488         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
20489         * doc/posix-functions/wcstok.texi: Mention the new module.
20490
20491 2011-02-06  Bruno Haible  <bruno@clisp.org>
20492
20493         New module 'wcsstr'.
20494         * modules/wcsstr: New file.
20495         * lib/wchar.in.h (wcsstr): New declaration.
20496         * lib/wcsstr.c: New file.
20497         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
20498         * m4/wcsstr.m4: New file.
20499         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
20500         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
20501         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
20502         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
20503         * doc/posix-functions/wcsstr.texi: Mention the new module.
20504
20505 2011-02-06  Bruno Haible  <bruno@clisp.org>
20506
20507         New module 'wcspbrk'.
20508         * modules/wcspbrk: New file.
20509         * lib/wchar.in.h (wcspbrk): New declaration.
20510         * lib/wcspbrk.c: New file.
20511         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
20512         * m4/wcspbrk.m4: New file.
20513         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
20514         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
20515         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
20516         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
20517         * doc/posix-functions/wcspbrk.texi: Mention the new module.
20518
20519 2011-02-06  Bruno Haible  <bruno@clisp.org>
20520
20521         New module 'wcsspn'.
20522         * modules/wcsspn: New file.
20523         * lib/wchar.in.h (wcsspn): New declaration.
20524         * lib/wcsspn.c: New file.
20525         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
20526         * m4/wcsspn.m4: New file.
20527         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
20528         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
20529         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
20530         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
20531         * doc/posix-functions/wcsspn.texi: Mention the new module.
20532
20533 2011-02-06  Bruno Haible  <bruno@clisp.org>
20534
20535         New module 'wcscspn'.
20536         * modules/wcscspn: New file.
20537         * lib/wchar.in.h (wcscspn): New declaration.
20538         * lib/wcscspn.c: New file.
20539         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
20540         * m4/wcscspn.m4: New file.
20541         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
20542         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
20543         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
20544         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
20545         * doc/posix-functions/wcscspn.texi: Mention the new module.
20546
20547 2011-02-06  Bruno Haible  <bruno@clisp.org>
20548
20549         New module 'wcsrchr'.
20550         * modules/wcsrchr: New file.
20551         * lib/wchar.in.h (wcsrchr): New declaration.
20552         * lib/wcsrchr.c: New file.
20553         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
20554         * m4/wcsrchr.m4: New file.
20555         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
20556         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
20557         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
20558         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
20559         * doc/posix-functions/wcsrchr.texi: Mention the new module.
20560
20561 2011-02-06  Bruno Haible  <bruno@clisp.org>
20562
20563         New module 'wcschr'.
20564         * modules/wcschr: New file.
20565         * lib/wchar.in.h (wcschr): New declaration.
20566         * lib/wcschr.c: New file.
20567         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
20568         * m4/wcschr.m4: New file.
20569         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
20570         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
20571         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
20572         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
20573         * doc/posix-functions/wcschr.texi: Mention the new module.
20574
20575 2011-02-06  Bruno Haible  <bruno@clisp.org>
20576
20577         New module 'wcsdup'.
20578         * modules/wcsdup: New file.
20579         * lib/wchar.in.h (wcsdup): New declaration.
20580         * lib/wcsdup.c: New file.
20581         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
20582         * m4/wcsdup.m4: New file.
20583         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
20584         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
20585         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
20586         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
20587         * doc/posix-functions/wcsdup.texi: Mention the new module.
20588
20589 2011-02-06  Bruno Haible  <bruno@clisp.org>
20590
20591         New module 'wcsxfrm'.
20592         * modules/wcsxfrm: New file.
20593         * lib/wchar.in.h (wcsxfrm): New declaration.
20594         * lib/wcsxfrm.c: New file.
20595         * lib/wcsxfrm-impl.h: New file.
20596         * m4/wcsxfrm.m4: New file.
20597         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
20598         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
20599         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
20600         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
20601         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
20602
20603 2011-02-06  Bruno Haible  <bruno@clisp.org>
20604
20605         New module 'wcscoll'.
20606         * modules/wcscoll: New file.
20607         * lib/wchar.in.h (wcscoll): New declaration.
20608         * lib/wcscoll.c: New file.
20609         * lib/wcscoll-impl.h: New file.
20610         * m4/wcscoll.m4: New file.
20611         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
20612         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
20613         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
20614         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
20615         * doc/posix-functions/wcscoll.texi: Mention the new module.
20616
20617 2011-02-06  Bruno Haible  <bruno@clisp.org>
20618
20619         New module 'wcsncasecmp'.
20620         * modules/wcsncasecmp: New file.
20621         * lib/wchar.in.h (wcsncasecmp): New declaration.
20622         * lib/wcsncasecmp.c: New file.
20623         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
20624         * m4/wcsncasecmp.m4: New file.
20625         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
20626         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
20627         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
20628         HAVE_WCSNCASECMP.
20629         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
20630         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
20631
20632 2011-02-06  Bruno Haible  <bruno@clisp.org>
20633
20634         New module 'wcscasecmp'.
20635         * modules/wcscasecmp: New file.
20636         * lib/wchar.in.h (wcscasecmp): New declaration.
20637         * lib/wcscasecmp.c: New file.
20638         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
20639         * m4/wcscasecmp.m4: New file.
20640         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
20641         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
20642         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
20643         HAVE_WCSCASECMP.
20644         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
20645         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
20646
20647 2011-02-05  Bruno Haible  <bruno@clisp.org>
20648
20649         New module 'wcsncmp'.
20650         * modules/wcsncmp: New file.
20651         * lib/wchar.in.h (wcsncmp): New declaration.
20652         * lib/wcsncmp.c: New file.
20653         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
20654         * m4/wcsncmp.m4: New file.
20655         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
20656         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
20657         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
20658         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
20659         * doc/posix-functions/wcsncmp.texi: Mention the new module.
20660
20661 2011-02-05  Bruno Haible  <bruno@clisp.org>
20662
20663         New module 'wcscmp'.
20664         * modules/wcscmp: New file.
20665         * lib/wchar.in.h (wcscmp): New declaration.
20666         * lib/wcscmp.c: New file.
20667         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
20668         * m4/wcscmp.m4: New file.
20669         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
20670         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
20671         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
20672         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
20673         * doc/posix-functions/wcscmp.texi: Mention the new module.
20674
20675 2011-02-05  Bruno Haible  <bruno@clisp.org>
20676
20677         New module 'wcsncat'.
20678         * modules/wcsncat: New file.
20679         * lib/wchar.in.h (wcsncat): New declaration.
20680         * lib/wcsncat.c: New file.
20681         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
20682         * m4/wcsncat.m4: New file.
20683         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
20684         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
20685         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
20686         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
20687         * doc/posix-functions/wcsncat.texi: Mention the new module.
20688
20689 2011-02-05  Bruno Haible  <bruno@clisp.org>
20690
20691         New module 'wcscat'.
20692         * modules/wcscat: New file.
20693         * lib/wchar.in.h (wcscat): New declaration.
20694         * lib/wcscat.c: New file.
20695         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
20696         * m4/wcscat.m4: New file.
20697         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
20698         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
20699         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
20700         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
20701         * doc/posix-functions/wcscat.texi: Mention the new module.
20702
20703 2011-02-05  Bruno Haible  <bruno@clisp.org>
20704
20705         New module 'wcpncpy'.
20706         * modules/wcpncpy: New file.
20707         * lib/wchar.in.h (wcpncpy): New declaration.
20708         * lib/wcpncpy.c: New file.
20709         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
20710         * m4/wcpncpy.m4: New file.
20711         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
20712         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
20713         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
20714         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
20715         * doc/posix-functions/wcpncpy.texi: Mention the new module.
20716
20717 2011-02-05  Bruno Haible  <bruno@clisp.org>
20718
20719         New module 'wcsncpy'.
20720         * modules/wcsncpy: New file.
20721         * lib/wchar.in.h (wcsncpy): New declaration.
20722         * lib/wcsncpy.c: New file.
20723         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
20724         * m4/wcsncpy.m4: New file.
20725         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
20726         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
20727         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
20728         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
20729         * doc/posix-functions/wcsncpy.texi: Mention the new module.
20730
20731 2011-02-05  Bruno Haible  <bruno@clisp.org>
20732
20733         New module 'wcpcpy'.
20734         * modules/wcpcpy: New file.
20735         * lib/wchar.in.h (wcpcpy): New declaration.
20736         * lib/wcpcpy.c: New file.
20737         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
20738         * m4/wcpcpy.m4: New file.
20739         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
20740         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
20741         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
20742         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
20743         * doc/posix-functions/wcpcpy.texi: Mention the new module.
20744
20745 2011-02-05  Bruno Haible  <bruno@clisp.org>
20746
20747         New module 'wcscpy'.
20748         * modules/wcscpy: New file.
20749         * lib/wchar.in.h (wcscpy): New declaration.
20750         * lib/wcscpy.c: New file.
20751         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
20752         * m4/wcscpy.m4: New file.
20753         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
20754         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
20755         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
20756         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
20757         * doc/posix-functions/wcscpy.texi: Mention the new module.
20758
20759 2011-02-05  Bruno Haible  <bruno@clisp.org>
20760
20761         New module 'wcsnlen'.
20762         * modules/wcsnlen: New file.
20763         * lib/wchar.in.h (wcsnlen): New declaration.
20764         * lib/wcsnlen.c: New file.
20765         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
20766         * m4/wcsnlen.m4: New file.
20767         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
20768         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
20769         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
20770         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
20771         * doc/posix-functions/wcsnlen.texi: Mention the new module.
20772
20773 2011-02-05  Bruno Haible  <bruno@clisp.org>
20774
20775         New module 'wcslen'.
20776         * modules/wcslen: New file.
20777         * lib/wchar.in.h (wcslen): New declaration.
20778         * lib/wcslen.c: New file.
20779         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
20780         * m4/wcslen.m4: New file.
20781         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
20782         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
20783         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
20784         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
20785         * doc/posix-functions/wcslen.texi: Mention the new module.
20786
20787 2011-02-05  Bruno Haible  <bruno@clisp.org>
20788
20789         New module 'wmemset'.
20790         * modules/wmemset: New file.
20791         * lib/wchar.in.h (wmemset): New declaration.
20792         * lib/wmemset.c: New file.
20793         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
20794         * m4/wmemset.m4: New file.
20795         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
20796         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
20797         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
20798         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
20799         * doc/posix-functions/wmemset.texi: Mention the new module.
20800
20801 2011-02-05  Bruno Haible  <bruno@clisp.org>
20802
20803         New module 'wmemmove'.
20804         * modules/wmemmove: New file.
20805         * lib/wchar.in.h (wmemmove): New declaration.
20806         * lib/wmemmove.c: New file.
20807         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
20808         * m4/wmemmove.m4: New file.
20809         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
20810         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
20811         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
20812         HAVE_WMEMMOVE.
20813         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
20814         * doc/posix-functions/wmemmove.texi: Mention the new module.
20815
20816 2011-02-05  Bruno Haible  <bruno@clisp.org>
20817
20818         New module 'wmemcpy'.
20819         * modules/wmemcpy: New file.
20820         * lib/wchar.in.h (wmemcpy): New declaration.
20821         * lib/wmemcpy.c: New file.
20822         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
20823         * m4/wmemcpy.m4: New file.
20824         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
20825         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
20826         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
20827         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
20828         * doc/posix-functions/wmemcpy.texi: Mention the new module.
20829
20830 2011-02-05  Bruno Haible  <bruno@clisp.org>
20831
20832         New module 'wmemcmp'.
20833         * modules/wmemcmp: New file.
20834         * lib/wchar.in.h (wmemcmp): New declaration.
20835         * lib/wmemcmp.c: New file.
20836         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
20837         * m4/wmemcmp.m4: New file.
20838         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
20839         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
20840         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
20841         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
20842         * doc/posix-functions/wmemcmp.texi: Mention the new module.
20843
20844 2011-02-07  Jim Meyering  <meyering@redhat.com>
20845
20846         di-set, ino-map: new modules, from coreutils
20847         * lib/di-set.c: New file.
20848         * lib/di-set.h: Likewise.
20849         * lib/ino-map.c: Likewise.
20850         * lib/ino-map.h: Likewise.
20851         * modules/di-set: Likewise.
20852         * modules/di-set-tests: Likewise.
20853         * modules/ino-map: Likewise.
20854         * modules/ino-map-tests: Likewise.
20855         * tests/test-di-set.c: Likewise.
20856         * tests/test-ino-map.c: Likewise.
20857
20858 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
20859
20860         getloadavg: merge minor changes from Emacs
20861
20862         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
20863         (getloadavg): Use memset, not bzero.
20864
20865         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
20866         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
20867         clash (bug#86).
20868
20869 2010-11-14  Bruno Haible  <bruno@clisp.org>
20870
20871         Allow multiple gnulib generated replacements to coexist.
20872         * lib/getopt.in.h (struct option): Avoid identical redefinition.
20873         * lib/inttypes.in.h (imaxdiv_t): Likewise.
20874         * lib/langinfo.in.h (nl_item): Likewise.
20875         * lib/math.in.h (_NaN, NAN): Likewise.
20876         * lib/netdb.in.h (struct addrinfo): Likewise.
20877         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
20878         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
20879         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
20880         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
20881         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
20882         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
20883         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
20884         pthread_mutexattr_init, pthread_mutexattr_settype,
20885         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
20886         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
20887         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
20888         pthread_spin_trylock, pthread_spin_unlock): Likewise.
20889         * lib/sched.in.h (struct sched_param): Likewise.
20890         * lib/se-selinux.in.h (security_class_t, security_context_t,
20891         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
20892         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
20893         lsetfilecon, fsetfilecon, security_check_context,
20894         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
20895         Likewise.
20896         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
20897         Likewise.
20898         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
20899         _gl_function_taking_int_returning_void_t, union sigval,
20900         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
20901         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
20902         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20903         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
20904         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
20905         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
20906         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
20907         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
20908         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
20909         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
20910         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
20911         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
20912         socklen_t, rpl_fd_isset): Likewise.
20913         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
20914         * lib/sys_time.in.h (struct timeval): Likewise.
20915         * lib/sys_times.in.h (struct tms): Likewise.
20916         * lib/sys_utsname.in.h (struct utsname):
20917         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
20918         * lib/unistd.in.h (getpagesize): Likewise.
20919         * lib/wchar.in.h (mbstate_t): Likewise.
20920         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
20921         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
20922         towlower, towupper): Likewise.
20923         Reported by Sam Steingold <sds@gnu.org>.
20924
20925 2011-02-05  Eric Blake  <eblake@redhat.com>
20926
20927         unsetenv: work around Haiku issues
20928         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
20929         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
20930
20931 2010-12-30  Bruce Korb  <bkorb@gnu.org>
20932
20933         libposix: avoid calling error() within libposix
20934         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
20935         is defined.
20936
20937 2011-02-05  Eric Blake  <eblake@redhat.com>
20938
20939         strerror_r-posix: port to cygwin
20940         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
20941         implementation.
20942         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
20943         * tests/test-strerror_r.c (main): Fix test.
20944         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20945         issue.
20946
20947 2011-02-05  Bruno Haible  <bruno@clisp.org>
20948
20949         New module 'wmemchr'.
20950         * modules/wmemchr: New file.
20951         * lib/wchar.in.h (wmemchr): New declaration.
20952         * lib/wmemchr.c: New file.
20953         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
20954         * m4/wmemchr.m4: New file.
20955         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
20956         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
20957         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
20958         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
20959         * doc/posix-functions/wmemchr.texi: Mention the new module.
20960
20961 2011-02-04  Eric Blake  <eblake@redhat.com>
20962
20963         fdopendir: detect FreeBSD bug
20964         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
20965         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
20966
20967 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
20968
20969         stdbool: do not define HAVE_STDBOOL_H
20970         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
20971         AC_HEADER_STDBOOL.  All uses changed.  Do not define
20972         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
20973         imported from the latest Autoconf git.  It was motivated by Emacs,
20974         which uses gnulib but does not need HAVE_STDBOOL_H.
20975
20976 2011-02-04  Bruno Haible  <bruno@clisp.org>
20977
20978         wcsnrtombs: Prepare for new module wwcsnrtombs.
20979         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
20980         * lib/wcsnrtombs.c: Include it.
20981         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
20982
20983         wcsrtombs: Prepare for new module wwcsrtombs.
20984         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
20985         * lib/wcsrtombs.c: Include it.
20986         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
20987
20988         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
20989         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
20990         * lib/mbsnrtowcs.c: Include it.
20991         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
20992
20993         mbsrtowcs: Prepare for new module mbsrtowwcs.
20994         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
20995         * lib/mbsrtowcs.c: Include it.
20996         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
20997
20998 2011-02-04  Bruno Haible  <bruno@clisp.org>
20999
21000         vasnprintf: Reduce use of malloc for small format strings.
21001         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
21002         (arguments): Add room for the first 7 arguments.
21003         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
21004         (char_directives, u8_directives, u16_directives, u32_directives): Add
21005         room for the first 7 directives.
21006         * lib/printf-parse.c: Include <string.h>.
21007         (PRINTF_PARSE): Change memory handling code so that it uses the first
21008         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
21009         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
21010         Reported by Pádraig Brady <P@draigbrady.com>.
21011
21012 2011-01-31  Eric Blake  <eblake@redhat.com>
21013
21014         dup2: work around Haiku bug
21015         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
21016         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
21017         * doc/posix-functions/dup2.texi (dup2): Document the bug.
21018         * tests/test-dup2.c (main): Enhance test.
21019
21020 2011-01-31  Simon Josefsson  <simon@josefsson.org>
21021
21022         doc: off_t is not available in eglibc 2.11.2 stdio.h.
21023         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
21024         declared by eglibc 2.11.2.
21025         * lib/stdio.in.h: Likewise.
21026
21027 2011-01-31  Eric Blake  <eblake@redhat.com>
21028
21029         ignore-value: add missing test dependency
21030         * tests/test-ignore-value.c: Revert previous change; stdio.h
21031         provides off_t.
21032         * modules/ignore-value-tests (Depends-on): Add missing dependency.
21033
21034 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
21035
21036         mktime: clarify long_int width checking
21037         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
21038         the top level, to make it clearer that the assumption about
21039         long_int width is being checked.  See
21040         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
21041
21042 2011-01-30  Simon Josefsson  <simon@josefsson.org>
21043
21044         ignore-value: Fix self-test.
21045         * tests/test-ignore-value.c: Include sys/types.h for off_t.
21046
21047 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
21048
21049         TYPE_MAXIMUM: avoid theoretically undefined behavior
21050         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
21051         negative number, which the C Standard says has undefined behavior.
21052         In practice this is not a problem, but might as well do it by the book.
21053         Reported by Rich Felker and Eric Blake; see
21054         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
21055         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
21056         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
21057         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21058         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
21059         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21060         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
21061
21062         mktime: #undef mktime before #defining it
21063         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
21064
21065         mktime: systematically normalize tm_isdst comparisons
21066         * lib/mktime.c (isdst_differ): New function.
21067         (__mktime_internal): Use it systematically for all isdst comparisons.
21068         This completes the fix for libc BZ #6723, and removes the need for
21069         normalizing tm_isdst.  See
21070         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
21071         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
21072
21073         mktime: fix some integer overflow issues and sidestep the rest
21074
21075         This was prompted by a bug report by Benjamin Lindner for MinGW
21076         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
21077         His bug is due to signed integer overflow (0 - INT_MIN), and I
21078         I scanned through mktime.c looking for other integer overflow
21079         problems, fixing all the bugs I found.
21080
21081         Although the C Standard says the resulting code is still not safe
21082         in the presence of integer overflow, in practice it should be good
21083         enough for all real-world two's-complement implementations, except
21084         for debugging environments that deliberately trap on integer
21085         overflow (e.g., gcc -ftrapv).
21086
21087         * lib/mktime.c (WRAPV): New macro.
21088         (SHR): Also check that long_int and time_t shift right in the
21089         usual way, before using the fast-but-unportable method.
21090         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
21091         used.  The code already assumed two's complement, so there's
21092         no need to test for alternatives.  All uses removed.
21093         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
21094         the C standard.  Problem reported by Rich Felker in
21095         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
21096         (twos_complement_arithmetic): Also check long_int and time_t.
21097         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
21098         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
21099         (__mktime_internal): Avoid integer overflow with unary subtraction
21100         in two instances where -1 - X is an adequate replacement for -X,
21101         since the calculations are approximate.
21102
21103 2011-01-29  Eric Blake  <eblake@redhat.com>
21104
21105         mktime: avoid infinite loop
21106         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
21107         type; behavior is still undefined but portable to all known targets.
21108         Reported by Rich Felker.
21109
21110 2011-01-29  Simon Josefsson  <simon@josefsson.org>
21111
21112         rename, unlink, same-inode: Relicense.
21113         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
21114         * modules/unlink (License): Likewise.
21115         * modules/same-inode (License): Likewise.
21116
21117 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
21118
21119         mktime: avoid problems on NetBSD 5 / i386
21120         * lib/mktime.c (long_int): New type.  This works around a problem
21121         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
21122         but time_t is 64 bits, and where I expect the existing code is
21123         wrong in some cases.
21124         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
21125         (ydhms_diff): Bring back the compile-time check for wide-enough
21126         year and yday.
21127
21128         mktime: fix misspelling in comment
21129         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
21130         This merges all recent glibc changes of importance.
21131
21132 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21133
21134         move-if-change: cope with concurrent mv of identical file.
21135         * build-aux/move-if-change (CMPPROG): Accept environment
21136         variable as an override for `cmp'.
21137         (usage): Document CMPPROG.
21138         Adjust comparison to drop stdout.  Cope with failure of mv if
21139         the target file exists and is identical to the source, for
21140         parallel builds.
21141         Report from H.J. Lu against binutils in PR binutils/12283.
21142
21143 2011-01-28  Bruce Korb  <bkorb@gnu.org>
21144
21145         * users.txt: Mention sharutils.
21146
21147 2011-01-28  Simon Josefsson  <simon@josefsson.org>
21148
21149         * users.txt: Mention OATH Toolkit.
21150
21151 2011-01-27  Bruno Haible  <bruno@clisp.org>
21152
21153         Prepare for supporting FreeBSD 10.
21154         * build-aux/config.libpath: Remove handling of freebsd1*.
21155
21156 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
21157
21158         Prepare for supporting FreeBSD 10.
21159         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
21160         match FreeBSD 10.0.
21161
21162 2011-01-27  Bruno Haible  <bruno@clisp.org>
21163
21164         vma-iter, get-rusage-as: Add OpenBSD support.
21165         * modules/vma-iter (configure.ac): Test for mquery.
21166         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
21167         * lib/vma-iter.c: Include <sys/mman.h>.
21168         (vma_iterate): Add an implementation based on mquery().
21169         * lib/resource-ext.h (get_rusage_as): Update comments.
21170         * lib/get-rusage-as.c: Likewise.
21171         * lib/get-rusage-data.c: Likewise.
21172
21173 2011-01-26  Karl Berry  <karl@gnu.org>
21174
21175         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
21176         variables to make it easier to override the makeinfo program used.
21177
21178 2011-01-26  Eric Blake  <eblake@redhat.com>
21179
21180         fcntl: work around Haiku F_DUPFD bugs
21181         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
21182         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
21183         cloexec bit on duplication.
21184         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
21185
21186 2011-01-26  Bruno Haible  <bruno@clisp.org>
21187
21188         Enable memory leak tests on AIX.
21189         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
21190         * tests/test-fprintf-posix3.c (main): Likewise.
21191
21192 2011-01-26  Bruno Haible  <bruno@clisp.org>
21193
21194         Tests for module 'get-rusage-data'.
21195         * modules/get-rusage-data-tests: New file.
21196         * tests/test-get-rusage-data.c: New file.
21197
21198         New module 'get-rusage-data'.
21199         * lib/resource-ext.h (get_rusage_data): New declaration.
21200         * lib/get-rusage-data.c: New file.
21201         * modules/get-rusage-data: New file.
21202
21203 2011-01-25  Bruno Haible  <bruno@clisp.org>
21204
21205         get-rusage-as: Allow for easier testing.
21206         * lib/resource-ext.h (get_rusage_as): Add comment.
21207         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
21208         (main): New function for interactive testing.
21209
21210 2011-01-25  Bruno Haible  <bruno@clisp.org>
21211
21212         vma-iter: Treat Haiku like BeOS.
21213         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
21214         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
21215
21216 2011-01-25  Eric Blake  <eblake@redhat.com>
21217
21218         c-stack: fix regression on cygwin when libsigsegv is present
21219         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
21220
21221 2011-01-24  Bruno Haible  <bruno@clisp.org>
21222
21223         vma-iter: Avoid empty intervals.
21224         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
21225         on an empty interval.
21226
21227 2011-01-24  Jim Meyering  <meyering@redhat.com>
21228
21229         u64: remove unnecessary #include
21230         * lib/u64.h: Don't include <stddef.h>.  It was not used.
21231
21232 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
21233
21234         Allow the user to avoid the HAVE_RAW_DECL_* macros.
21235         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
21236
21237 2011-01-23  Bruno Haible  <bruno@clisp.org>
21238
21239         New module 'vma-iter'.
21240         * lib/vma-iter.h: New file.
21241         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
21242         * modules/vma-iter: New file.
21243         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
21244         for get_rusage_as_via_iterator.
21245         (vma_iterate_callback): New function.
21246         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
21247         * modules/get-rusage-as (Depends-on): Add vma-iter.
21248
21249 2011-01-23  Bruno Haible  <bruno@clisp.org>
21250
21251         uninorm: Tweak includes.
21252         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
21253         Reported by Jim Meyering.
21254
21255 2011-01-23  Bruno Haible  <bruno@clisp.org>
21256
21257         get-rusage-as: Improve on NetBSD.
21258         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
21259         /proc, like on FreeBSD.
21260
21261 2011-01-23  Jim Meyering  <meyering@redhat.com>
21262
21263         xreadlink.h: remove unnecessary #include
21264         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
21265
21266         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
21267         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
21268
21269 2011-01-23  Bruno Haible  <bruno@clisp.org>
21270
21271         get-rusage-as: Fix bug.
21272         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
21273         original limit when aborting the first loop.
21274
21275 2011-01-23  Bruno Haible  <bruno@clisp.org>
21276
21277         wctype: Ensure valid C syntax.
21278         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
21279         unconditionally, instead of gl_NEXT_HEADERS conditionally.
21280
21281 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
21282
21283         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
21284         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
21285         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
21286         as they are needed only for configure's test case.
21287         This removes two unnecessary symbols from config.h.
21288
21289         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
21290         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
21291         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
21292         AC_CHECK_HEADERS_ONCE on a header that we also invoke
21293         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
21294         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
21295         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
21296         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
21297         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21298         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21299         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
21300         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21301         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21302         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
21303         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
21304         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21305         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
21306         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
21307
21308 2011-01-21  Eric Blake  <eblake@redhat.com>
21309
21310         maintainer-makefile: work with older git for submodule check
21311         * top/maint.mk (public-submodule-commit): Rewrite to avoid
21312         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
21313         Reported by Matthias Bolte.
21314
21315         bootstrap: minor portability fixes
21316         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
21317         (usage): Omit leading capital and trailing . on help phrases, per
21318         GNU Coding Standards.
21319         (check_versions, top level): Prefix messages with script name.
21320
21321 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
21322
21323         bootstrap: support --no-git option
21324         * build-aux/bootstrap: Add --no-git option, to be used when
21325         --gnulib-srcdir points to the exact desired checkout.
21326
21327 2011-01-21  Eric Blake  <eblake@redhat.com>
21328
21329         strerror_r-posix: work with glibc 2.13
21330         * lib/strerror_r.c (strerror_r): Fix return type.
21331
21332 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21333             Bruno Haible  <bruno@clisp.org>
21334
21335         uN_strstr: New unit tests.
21336         * modules/unistr/u8-strstr-tests: New file.
21337         * modules/unistr/u16-strstr-tests: New file.
21338         * modules/unistr/u32-strstr-tests: New file.
21339         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
21340         * tests/unistr/test-u8-strstr.c: New file.
21341         * tests/unistr/test-u16-strstr.c: New file.
21342         * tests/unistr/test-u32-strstr.c: New file.
21343
21344 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21345             Bruno Haible  <bruno@clisp.org>
21346
21347         Make uN_strstr functions O(n) worst-case.
21348         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
21349         16-bit and 32-bit unit cases, use the unibyte algorithm from
21350         lib/mbsstr.c.
21351         * lib/unistr/u8-strstr.c: Include <string.h>.
21352         (UNIT_IS_UINT8_T): New macro.
21353         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
21354         (U_STRLEN, U_STRNLEN): New macros.
21355         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
21356         (U_STRLEN, U_STRNLEN): New macros.
21357         * modules/unistr/u8-strstr (Depends-on): Add strstr.
21358         (configure.ac): Update required libunistring version.
21359         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
21360         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
21361         malloca.
21362         (configure.ac): Update required libunistring version.
21363         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
21364         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
21365         malloca.
21366         (configure.ac): Update required libunistring version.
21367
21368 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21369             Bruno Haible  <bruno@clisp.org>
21370
21371         Prepare for faster uN_strstr functions.
21372         * lib/str-kmp.h: Support definable UNITs.
21373         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
21374         needle_len argument.
21375         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
21376         * lib/mbscasestr.c (mbscasestr): Likewise.
21377
21378 2011-01-21  Pádraig Brady <P@draigBrady.com>
21379
21380         malloca-tests: make faster by unsetting MALLOC_PERTURB_
21381         * tests/test-malloca.c (main): Unset the environment variable
21382         to greatly speed up the test.
21383         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
21384         * modules/malloca-tests: Depend on unsetenv.
21385
21386 2011-01-21  Pádraig Brady <P@draigBrady.com>
21387
21388         ignore-value: remove stdint dependency
21389         * lib/ignore-value.h: Remove <stdint.h>
21390         * modules/ignore-value: Remove stdint dependency.
21391
21392 2011-01-21  Jim Meyering  <meyering@redhat.com>
21393
21394         maint.mk: adjust variable name to be consistent with other gl_ vars
21395         * top/maint.mk (gl_public_submodule_commit): Rename the variable
21396         to be lower case.
21397
21398 2011-01-20  Jim Meyering  <meyering@redhat.com>
21399
21400         maint.mk: make "check" depend on public-submodule-commit by default
21401         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
21402
21403 2011-01-20  Bruno Haible  <bruno@clisp.org>
21404
21405         mbfile, mbiter: Complete change from 2008-12-21.
21406         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
21407         * m4/mbiter.m4 (gl_MBITER): Likewise.
21408
21409 2011-01-20  Jim Meyering  <meyering@redhat.com>
21410
21411         init.sh: insert space between each function name and "()"
21412         * tests/init.sh: Make it a little easier to see that a function's
21413         name is "warn_", and not "warn" when looking at the first part of
21414         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
21415
21416 2011-01-20  Jim Meyering  <meyering@redhat.com>
21417
21418         mountlist: clean up code formatting
21419         * lib/mountlist.c (read_file_system_list): Split a long line,
21420         correct bracing style, use NULL in place of "(struct statfs *)0",
21421         don't parenthesize return value, add spaces around "=" and after
21422         ";-in-for-stmt".
21423
21424 2011-01-14  Markus Duft <mduft@gentoo.org>
21425
21426         mountlist: add support for Interix
21427         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
21428         Apply statvfs to all entries of /dev/fs.
21429         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
21430         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
21431
21432 2011-01-20  Jim Meyering  <meyering@redhat.com>
21433
21434         maint.mk: improve the public-submodule-commit rule
21435         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
21436         to suppress printing of its commands... unless V=1.
21437         Add git submodule's --quiet option to suppress printing of e.g.,
21438         "Entering gnulib" output.
21439         "cd" into $(srcdir) before running git submodule.
21440
21441 2011-01-20  Bruno Haible  <bruno@clisp.org>
21442
21443         include_next: Fix bug introduced on 2011-01-18.
21444         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
21445         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
21446         ac_cv_header_... variable if the second argument is not 'check'.
21447         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
21448         gl_NEXT_HEADERS_INTERNAL.
21449
21450 2011-01-20  Bruno Haible  <bruno@clisp.org>
21451
21452         Allow the user to avoid the GNULIB_TEST_* macros.
21453         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
21454         Suggested by Paul Eggert.
21455
21456 2011-01-14  Jim Meyering  <meyering@redhat.com>
21457
21458         bootstrap: avoid failure when there is no .gitmodules file
21459         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
21460         has been assigned to, even when its value is the empty string.
21461         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
21462         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
21463         Reported by John W. Eaton <jwe@gnu.org>.
21464
21465 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
21466
21467         assume <ctype.h>, ..., <time.h> exist
21468         For years gnulib has been assuming the existence of the headers
21469         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
21470         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
21471         them, since they don't appear to be needed.
21472         * README (Portability guidelines): Document this.
21473         * lib/flock.c: Assume <fcntl.h> exists.
21474         * lib/regex_internal.h: Assume <locale.h> exists.
21475         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
21476         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
21477         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
21478         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
21479         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
21480         * m4/regex.m4 (gl_REGEX): Likewise.
21481         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
21482         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
21483         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
21484         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
21485         * tests/test-argp.c: Likewise.
21486         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
21487
21488         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
21489         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
21490         AA_APPLE_UNIVERSAL_BUILD.  See
21491         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
21492         * NEWS: Document this.
21493
21494 2011-01-19  Eric Blake  <eblake@redhat.com>
21495
21496         c-stack: assume stack overflow if SA_SIGINFO unsupported
21497         * lib/c-stack.c (SIGACTION_WORKS): Rename...
21498         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
21499         sigaction will work.
21500         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
21501         behavior match Linux.
21502         * tests/test-c-stack.c (main): Prefer NULL for pointers.
21503
21504         stdbool-tests: accomodate Haiku
21505         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
21506
21507         binary-io: fix O_TEXT on Haiku
21508         * modules/binary-io (Depends-on): Add fcntl-h.
21509         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
21510         than blindly undefining O_TEXT.
21511         Reported by Scott McCreary.
21512
21513 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21514
21515         include_next: do not check for standard headers like stddef.h
21516
21517         I found this problem when modifying Emacs to use gnulib.
21518         I noticed that it added HAVE_STDDEF_H to config.h, even though
21519         gnulib always assumes <stddef.h> exists as per README and this
21520         symbol is unnecessary.
21521         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
21522         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
21523         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
21524         faster for headers like stddef.h that are known to exist.
21525         (gl_CHECK_NEXT_HEADERS): Use it.
21526         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
21527         rather than gl_CHECK_NEXT_HEADERS.
21528         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
21529         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
21530
21531 2011-01-18  Eric Blake  <eblake@redhat.com>
21532
21533         ansi-c++-opt: skip C++ dependency style if C++ is unused
21534         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
21535         tests when we know C++ compilation is not desired.
21536         Reported by Scott McCreary.
21537
21538 2011-01-18  Bruno Haible  <bruno@clisp.org>
21539
21540         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
21541         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
21542         (main): Perform test also when getrlimit and setrlimit don't exist or
21543         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
21544         limiting the address space size using setrlimit, compare the address
21545         space size before and after the the test.
21546         * tests/test-dprintf-posix2.c: Likewise.
21547         * tests/test-fprintf-posix3.sh: Update skip messages.
21548         * tests/test-dprintf-posix2.sh: Likewise.
21549         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
21550         * modules/dprintf-posix-tests (Depends-on): Likewise.
21551         Reported by Bruce Korb <bkorb@gnu.org> and
21552         Gary V. Vaughan <gary@gnu.org>.
21553
21554 2011-01-18  Bruno Haible  <bruno@clisp.org>
21555
21556         get-rusage-as: Improvement for Cygwin.
21557         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
21558         areas that are merely reserved.
21559
21560 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21561
21562         strftime: remove dependencies on multibyte modules
21563
21564         strftime depended on mbrlen, mbsinit, and wchar, but these modules
21565         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
21566         only if __osf__ is defined, and I suspect OSF doesn't need these
21567         other modules.  If my guess is wrong, we'll need to come up with a
21568         variant of strftime that doesn't need the multibyte modules.
21569
21570         I discovered this problem when attempting modify Emacs to use the
21571         strftime module.  With the previous gnulib, this caused Emacs to
21572         need 31 new files, ranging from lib/config.charset to
21573         m4/wint_t.m4.  This was overkill and I expect would be offputting
21574         to the Emacs maintainers.  After this change, only 6 new files are
21575         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
21576         stdbool.m4, and tm_gmtoff.m4.
21577
21578         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
21579         Suggested by Bruno Haible in
21580         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
21581         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
21582         and do not check for wchar.h.
21583         * modules/strftime (Files): Remove m4/mbstate_t.m4.
21584         (Depends-on): Remove mbrlen, mbsinit, wchar.
21585
21586 2011-01-18  Bruno Haible  <bruno@clisp.org>
21587
21588         Tests for module 'get-rusage-as'.
21589         * modules/get-rusage-as-tests: New file.
21590         * tests/test-get-rusage-as.c: New file.
21591
21592         New module 'get-rusage-as'.
21593         * modules/get-rusage-as: New file.
21594         * lib/resource-ext.h: New file.
21595         * lib/get-rusage-as.c: New file.
21596
21597 2011-01-17  Eric Blake  <eblake@redhat.com>
21598
21599         sigaction: relax license from LGPLv3+ to LGPLv2+
21600         * modules/sigaction (License): Relax to LGPLv2+.
21601
21602 2011-01-14  Bruno Haible  <bruno@clisp.org>
21603
21604         filemode: Make function declarations usable in C++ mode.
21605         * lib/filemode.h: Enclose function declarations in extern "C" block.
21606         Reported by John W. Eaton <jwe@gnu.org>.
21607
21608 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
21609
21610         save-cwd: no longer include "xgetcwd.h"
21611         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
21612         This avoids a compilation failure in projects that use save-cwd
21613         without also using the xgetcwd module.
21614
21615 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21616
21617         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
21618         This is so that a program like Emacs, which needs only dtoastr,
21619         does not have to bother with distributing and compiling ftoastr
21620         and ldtoastr.
21621         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
21622         * modules/dtoastr, modules/ldtoastr: New files.
21623         * modules/ftoastr: Now works just for 'float'.
21624         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
21625         (Makefile.am): Remove ftoastr.h (not needed and no effect),
21626         dtoastr.c, ldtoastr.c.
21627
21628 2011-01-11  Jim Meyering  <meyering@redhat.com>
21629
21630         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
21631         There is no need to work around the lack of the fchdir function,
21632         since gnulib can now provide a replacement when required.
21633         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
21634         * modules/save-cwd (Depends-on): Add fchdir.
21635
21636 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21637
21638         openat, save-cwd: avoid xmalloc
21639
21640         This removes a direct (but undocumented) dependency of openat on
21641         xalloc, along with an indirect dependency via save-cwd.  It also
21642         removes a dependency of save-cwd on xgetcwd, and thereby
21643         indirectly on xalloc.  This change causes the openat substitute
21644         to fall back on save_cwd when memory is tight, and for save_cwd to
21645         fail instead of dying when memory is tight, but that's good enough.
21646         Problem and initial idea for fix reported by Bastien Roucaries in
21647         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
21648
21649         * lib/openat-proc.c: Include stdlib.h (for malloc), not
21650         xalloc.h (for xmalloc).
21651         (openat_proc_name): Use malloc, not xmalloc.
21652         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
21653         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
21654
21655         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
21656         This avoids heap allocation for file names whose lengths are in
21657         the range 512..1023, with the upper bound increasing to at most
21658         4031 depending on the platform's PATH_MAX.  (We do not want
21659         pathmax.h here as it might supply a non-constant PATH_MAX.)
21660         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
21661         Perhaps they should be moved to malloca.h?
21662         (OPENAT_BUFFER_SIZE): Use them.
21663
21664 2011-01-10  Bruno Haible  <bruno@clisp.org>
21665
21666         doc: Update users.txt.
21667         * users.txt: Add recutils.
21668
21669 2011-01-09  Karl Berry  <karl@gnu.org>
21670
21671         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
21672
21673         * doc/configmake.texi: New file.
21674         * doc/gnulib.texi: Include it.
21675         * modules/configmake: Move documentation from here.
21676
21677 2011-01-09  Bruno Haible  <bruno@clisp.org>
21678
21679         Update to Unicode 6.0.0.
21680         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
21681         (get_lbp): Update for Unicode 6.0.0.
21682         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
21683         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
21684         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
21685         U+11001, U+11038..U+11046. Remove U+06DE.
21686         (uc_width): Fix bounds of planes.
21687         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21688         lib/uniwidth/width.c.
21689         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
21690         trailing whitespace removed.
21691         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
21692         without comments, but with the original copyright notice.
21693         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
21694         * lib/unicase/ignorable.h: Likewise.
21695         * lib/unicase/tocasefold.h: Likewise.
21696         * lib/unicase/tolower.h: Likewise.
21697         * lib/unicase/totitle.h: Likewise.
21698         * lib/unicase/toupper.h: Likewise.
21699         * lib/unictype/bidi_of.h: Likewise.
21700         * lib/unictype/blocks.h: Likewise.
21701         * lib/unictype/categ_C.h: Likewise.
21702         * lib/unictype/categ_Cn.h: Likewise.
21703         * lib/unictype/categ_L.h: Likewise.
21704         * lib/unictype/categ_Ll.h: Likewise.
21705         * lib/unictype/categ_Lm.h: Likewise.
21706         * lib/unictype/categ_Lo.h: Likewise.
21707         * lib/unictype/categ_Lu.h: Likewise.
21708         * lib/unictype/categ_M.h: Likewise.
21709         * lib/unictype/categ_Mc.h: Likewise.
21710         * lib/unictype/categ_Me.h: Likewise.
21711         * lib/unictype/categ_Mn.h: Likewise.
21712         * lib/unictype/categ_N.h: Likewise.
21713         * lib/unictype/categ_Nd.h: Likewise.
21714         * lib/unictype/categ_No.h: Likewise.
21715         * lib/unictype/categ_P.h: Likewise.
21716         * lib/unictype/categ_Po.h: Likewise.
21717         * lib/unictype/categ_S.h: Likewise.
21718         * lib/unictype/categ_Sc.h: Likewise.
21719         * lib/unictype/categ_Sk.h: Likewise.
21720         * lib/unictype/categ_Sm.h: Likewise.
21721         * lib/unictype/categ_So.h: Likewise.
21722         * lib/unictype/categ_of.h: Likewise.
21723         * lib/unictype/combining.h: Likewise.
21724         * lib/unictype/ctype_alnum.h: Likewise.
21725         * lib/unictype/ctype_alpha.h: Likewise.
21726         * lib/unictype/ctype_graph.h: Likewise.
21727         * lib/unictype/ctype_lower.h: Likewise.
21728         * lib/unictype/ctype_print.h: Likewise.
21729         * lib/unictype/ctype_punct.h: Likewise.
21730         * lib/unictype/ctype_upper.h: Likewise.
21731         * lib/unictype/decdigit.h: Likewise.
21732         * lib/unictype/digit.h: Likewise.
21733         * lib/unictype/numeric.h: Likewise.
21734         * lib/unictype/pr_alphabetic.h: Likewise.
21735         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21736         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21737         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21738         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21739         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21740         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21741         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21742         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21743         * lib/unictype/pr_case_ignorable.h: Likewise.
21744         * lib/unictype/pr_cased.h: Likewise.
21745         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
21746         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
21747         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
21748         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
21749         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
21750         * lib/unictype/pr_combining.h: Likewise.
21751         * lib/unictype/pr_composite.h: Likewise.
21752         * lib/unictype/pr_currency_symbol.h: Likewise.
21753         * lib/unictype/pr_decimal_digit.h: Likewise.
21754         * lib/unictype/pr_deprecated.h: Likewise.
21755         * lib/unictype/pr_format_control.h: Likewise.
21756         * lib/unictype/pr_grapheme_base.h: Likewise.
21757         * lib/unictype/pr_grapheme_extend.h: Likewise.
21758         * lib/unictype/pr_grapheme_link.h: Likewise.
21759         * lib/unictype/pr_id_continue.h: Likewise.
21760         * lib/unictype/pr_id_start.h: Likewise.
21761         * lib/unictype/pr_ideographic.h: Likewise.
21762         * lib/unictype/pr_lowercase.h: Likewise.
21763         * lib/unictype/pr_math.h: Likewise.
21764         * lib/unictype/pr_numeric.h: Likewise.
21765         * lib/unictype/pr_other_alphabetic.h: Likewise.
21766         * lib/unictype/pr_other_id_continue.h: Likewise.
21767         * lib/unictype/pr_other_math.h: Likewise.
21768         * lib/unictype/pr_punctuation.h: Likewise.
21769         * lib/unictype/pr_sentence_terminal.h: Likewise.
21770         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21771         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21772         * lib/unictype/pr_unified_ideograph.h: Likewise.
21773         * lib/unictype/pr_uppercase.h: Likewise.
21774         * lib/unictype/pr_xid_continue.h: Likewise.
21775         * lib/unictype/pr_xid_start.h: Likewise.
21776         * lib/unictype/scripts.h: Likewise.
21777         * lib/unictype/scripts_byname.gperf: Likewise.
21778         * lib/unictype/sy_java_ident.h: Likewise.
21779         * lib/unigbrk/gbrkprop.h: Likewise.
21780         * lib/unilbrk/lbrkprop1.h: Likewise.
21781         * lib/unilbrk/lbrkprop2.h: Likewise.
21782         * lib/uninorm/decomposition-table2.h: Likewise.
21783         * lib/uniwbrk/wbrkprop.h: Likewise.
21784         * tests/unicase/test-cased.c: Likewise.
21785         * tests/unicase/test-ignorable.c: Likewise.
21786         * tests/unicase/test-uc_tolower.c: Likewise.
21787         * tests/unicase/test-uc_totitle.c: Likewise.
21788         * tests/unicase/test-uc_toupper.c: Likewise.
21789         * tests/unictype/test-categ_C.c: Likewise.
21790         * tests/unictype/test-categ_Cn.c: Likewise.
21791         * tests/unictype/test-categ_L.c: Likewise.
21792         * tests/unictype/test-categ_Ll.c: Likewise.
21793         * tests/unictype/test-categ_Lm.c: Likewise.
21794         * tests/unictype/test-categ_Lo.c: Likewise.
21795         * tests/unictype/test-categ_Lu.c: Likewise.
21796         * tests/unictype/test-categ_M.c: Likewise.
21797         * tests/unictype/test-categ_Mc.c: Likewise.
21798         * tests/unictype/test-categ_Me.c: Likewise.
21799         * tests/unictype/test-categ_Mn.c: Likewise.
21800         * tests/unictype/test-categ_N.c: Likewise.
21801         * tests/unictype/test-categ_Nd.c: Likewise.
21802         * tests/unictype/test-categ_No.c: Likewise.
21803         * tests/unictype/test-categ_P.c: Likewise.
21804         * tests/unictype/test-categ_Po.c: Likewise.
21805         * tests/unictype/test-categ_S.c: Likewise.
21806         * tests/unictype/test-categ_Sc.c: Likewise.
21807         * tests/unictype/test-categ_Sk.c: Likewise.
21808         * tests/unictype/test-categ_Sm.c: Likewise.
21809         * tests/unictype/test-categ_So.c: Likewise.
21810         * tests/unictype/test-ctype_alnum.c: Likewise.
21811         * tests/unictype/test-ctype_alpha.c: Likewise.
21812         * tests/unictype/test-ctype_graph.c: Likewise.
21813         * tests/unictype/test-ctype_lower.c: Likewise.
21814         * tests/unictype/test-ctype_print.c: Likewise.
21815         * tests/unictype/test-ctype_punct.c: Likewise.
21816         * tests/unictype/test-ctype_upper.c: Likewise.
21817         * tests/unictype/test-decdigit.h: Likewise.
21818         * tests/unictype/test-digit.h: Likewise.
21819         * tests/unictype/test-numeric.h: Likewise.
21820         * tests/unictype/test-pr_alphabetic.c: Likewise.
21821         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21822         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
21823         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
21824         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21825         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21826         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21827         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21828         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21829         * tests/unictype/test-pr_case_ignorable.c: Likewise.
21830         * tests/unictype/test-pr_cased.c: Likewise.
21831         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
21832         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
21833         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
21834         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
21835         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
21836         * tests/unictype/test-pr_combining.c: Likewise.
21837         * tests/unictype/test-pr_composite.c: Likewise.
21838         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21839         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21840         * tests/unictype/test-pr_deprecated.c: Likewise.
21841         * tests/unictype/test-pr_format_control.c: Likewise.
21842         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21843         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21844         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21845         * tests/unictype/test-pr_id_continue.c: Likewise.
21846         * tests/unictype/test-pr_id_start.c: Likewise.
21847         * tests/unictype/test-pr_ideographic.c: Likewise.
21848         * tests/unictype/test-pr_lowercase.c: Likewise.
21849         * tests/unictype/test-pr_math.c: Likewise.
21850         * tests/unictype/test-pr_numeric.c: Likewise.
21851         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21852         * tests/unictype/test-pr_other_id_continue.c: Likewise.
21853         * tests/unictype/test-pr_other_math.c: Likewise.
21854         * tests/unictype/test-pr_punctuation.c: Likewise.
21855         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21856         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21857         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21858         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21859         * tests/unictype/test-pr_uppercase.c: Likewise.
21860         * tests/unictype/test-pr_xid_continue.c: Likewise.
21861         * tests/unictype/test-pr_xid_start.c: Likewise.
21862         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21863         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21864         changes.
21865         * lib/unictype/categ_Cc.h: Likewise.
21866         * lib/unictype/categ_Cf.h: Likewise.
21867         * lib/unictype/categ_Co.h: Likewise.
21868         * lib/unictype/categ_Cs.h: Likewise.
21869         * lib/unictype/categ_Lt.h: Likewise.
21870         * lib/unictype/categ_Nl.h: Likewise.
21871         * lib/unictype/categ_Pc.h: Likewise.
21872         * lib/unictype/categ_Pd.h: Likewise.
21873         * lib/unictype/categ_Pe.h: Likewise.
21874         * lib/unictype/categ_Pf.h: Likewise.
21875         * lib/unictype/categ_Pi.h: Likewise.
21876         * lib/unictype/categ_Ps.h: Likewise.
21877         * lib/unictype/categ_Z.h: Likewise.
21878         * lib/unictype/categ_Zl.h: Likewise.
21879         * lib/unictype/categ_Zp.h: Likewise.
21880         * lib/unictype/categ_Zs.h: Likewise.
21881         * lib/unictype/ctype_blank.h: Likewise.
21882         * lib/unictype/ctype_cntrl.h: Likewise.
21883         * lib/unictype/ctype_digit.h: Likewise.
21884         * lib/unictype/ctype_space.h: Likewise.
21885         * lib/unictype/ctype_xdigit.h: Likewise.
21886         * lib/unictype/mirror.h: Likewise.
21887         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21888         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21889         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21890         * lib/unictype/pr_bidi_control.h: Likewise.
21891         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21892         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21893         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21894         * lib/unictype/pr_bidi_pdf.h: Likewise.
21895         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21896         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21897         * lib/unictype/pr_dash.h: Likewise.
21898         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21899         * lib/unictype/pr_diacritic.h: Likewise.
21900         * lib/unictype/pr_extender.h: Likewise.
21901         * lib/unictype/pr_hex_digit.h: Likewise.
21902         * lib/unictype/pr_hyphen.h: Likewise.
21903         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21904         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21905         * lib/unictype/pr_ignorable_control.h: Likewise.
21906         * lib/unictype/pr_iso_control.h: Likewise.
21907         * lib/unictype/pr_join_control.h: Likewise.
21908         * lib/unictype/pr_left_of_pair.h: Likewise.
21909         * lib/unictype/pr_line_separator.h: Likewise.
21910         * lib/unictype/pr_logical_order_exception.h: Likewise.
21911         * lib/unictype/pr_non_break.h: Likewise.
21912         * lib/unictype/pr_not_a_character.h: Likewise.
21913         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21914         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21915         * lib/unictype/pr_other_id_start.h: Likewise.
21916         * lib/unictype/pr_other_lowercase.h: Likewise.
21917         * lib/unictype/pr_other_uppercase.h: Likewise.
21918         * lib/unictype/pr_paired_punctuation.h: Likewise.
21919         * lib/unictype/pr_paragraph_separator.h: Likewise.
21920         * lib/unictype/pr_pattern_syntax.h: Likewise.
21921         * lib/unictype/pr_pattern_white_space.h: Likewise.
21922         * lib/unictype/pr_private_use.h: Likewise.
21923         * lib/unictype/pr_quotation_mark.h: Likewise.
21924         * lib/unictype/pr_radical.h: Likewise.
21925         * lib/unictype/pr_soft_dotted.h: Likewise.
21926         * lib/unictype/pr_space.h: Likewise.
21927         * lib/unictype/pr_titlecase.h: Likewise.
21928         * lib/unictype/pr_variation_selector.h: Likewise.
21929         * lib/unictype/pr_white_space.h: Likewise.
21930         * lib/unictype/pr_zero_width.h: Likewise.
21931         * lib/unictype/sy_c_ident.h: Likewise.
21932         * lib/unictype/sy_c_whitespace.h: Likewise.
21933         * lib/unictype/sy_java_whitespace.h: Likewise.
21934         * lib/uninorm/composition-table.gperf: Likewise.
21935         * lib/uninorm/decomposition-table1.h: Likewise.
21936         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
21937         LB8.
21938         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21939         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21940         * modules/unictype/*: Bump version number of expected libunistring
21941         version.
21942
21943 2011-01-09  Bruno Haible  <bruno@clisp.org>
21944
21945         Update to Unicode 5.2.0.
21946         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
21947         trailing whitespace removed.
21948
21949 2011-01-09  Bruno Haible  <bruno@clisp.org>
21950
21951         New Unicode character properties, from Unicode 5.2.0.
21952         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
21953         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
21954         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
21955         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
21956         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
21957         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
21958         uc_is_property_cased, uc_is_property_case_ignorable,
21959         uc_is_property_changes_when_lowercased,
21960         uc_is_property_changes_when_uppercased,
21961         uc_is_property_changes_when_titlecased,
21962         uc_is_property_changes_when_casefolded,
21963         uc_is_property_changes_when_casemapped): New declarations.
21964         * lib/unictype/pr_byname.gperf: Add the new properties.
21965         * modules/unictype/property-byname (Depends-on): Depend on the new
21966         properties modules.
21967         * modules/unictype/property-all (Depends-on): Likewise.
21968         * MODULES.html.sh (Unicode string functions): Add
21969         unictype/property-case-ignorable, unictype/property-cased,
21970         unictype/property-changes-when-casefolded,
21971         unictype/property-changes-when-casemapped,
21972         unictype/property-changes-when-lowercased,
21973         unictype/property-changes-when-titlecased,
21974         unictype/property-changes-when-uppercased.
21975
21976         New module 'unictype/property-changes-when-casemapped'.
21977         * modules/unictype/property-changes-when-casemapped: New file.
21978         * lib/unictype/pr_changes_when_casemapped.c: New file.
21979         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
21980         generated by gen-uni-tables.
21981         * modules/unictype/property-changes-when-casemapped-tests: New file.
21982         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
21983         automatically generated by gen-uni-tables.
21984
21985         New module 'unictype/property-changes-when-casefolded'.
21986         * modules/unictype/property-changes-when-casefolded: New file.
21987         * lib/unictype/pr_changes_when_casefolded.c: New file.
21988         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
21989         generated by gen-uni-tables.
21990         * modules/unictype/property-changes-when-casefolded-tests: New file.
21991         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
21992         automatically generated by gen-uni-tables.
21993
21994         New module 'unictype/property-changes-when-titlecased'.
21995         * modules/unictype/property-changes-when-titlecased: New file.
21996         * lib/unictype/pr_changes_when_titlecased.c: New file.
21997         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
21998         generated by gen-uni-tables.
21999         * modules/unictype/property-changes-when-titlecased-tests: New file.
22000         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
22001         automatically generated by gen-uni-tables.
22002
22003         New module 'unictype/property-changes-when-uppercased'.
22004         * modules/unictype/property-changes-when-uppercased: New file.
22005         * lib/unictype/pr_changes_when_uppercased.c: New file.
22006         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
22007         generated by gen-uni-tables.
22008         * modules/unictype/property-changes-when-uppercased-tests: New file.
22009         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
22010         automatically generated by gen-uni-tables.
22011
22012         New module 'unictype/property-changes-when-lowercased'.
22013         * modules/unictype/property-changes-when-lowercased: New file.
22014         * lib/unictype/pr_changes_when_lowercased.c: New file.
22015         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
22016         generated by gen-uni-tables.
22017         * modules/unictype/property-changes-when-lowercased-tests: New file.
22018         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
22019         automatically generated by gen-uni-tables.
22020
22021         New module 'unictype/property-case-ignorable'.
22022         * modules/unictype/property-case-ignorable: New file.
22023         * lib/unictype/pr_case_ignorable.c: New file.
22024         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
22025         by gen-uni-tables.
22026         * modules/unictype/property-case-ignorable-tests: New file.
22027         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
22028         generated by gen-uni-tables.
22029
22030         New module 'unictype/property-cased'.
22031         * modules/unictype/property-cased: New file.
22032         * lib/unictype/pr_cased.c: New file.
22033         * lib/unictype/pr_cased.h: New file, automatically generated by
22034         gen-uni-tables.
22035         * modules/unictype/property-cased-tests: New file.
22036         * tests/unictype/test-pr_cased.c: New file, automatically generated by
22037         gen-uni-tables.
22038
22039 2011-01-09  Bruno Haible  <bruno@clisp.org>
22040
22041         Update to Unicode 5.2.0.
22042         * lib/gen-uni-tables.c (output_predicate, output_category,
22043         output_combclass, output_bidi_category, output_decimal_digit_test,
22044         output_decimal_digit, output_digit_test, output_digit,
22045         output_numeric_test, output_numeric, output_mirror, output_scripts,
22046         output_scripts_byname, output_blocks, output_ident_category): Fix
22047         comment header.
22048         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
22049         get_wbp.
22050         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
22051         items.
22052         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
22053         Changes_When_Lowercased, Changes_When_Uppercased,
22054         Changes_When_Titlecased, Changes_When_Casefolded,
22055         Changes_When_Casemapped.
22056         (is_property_alphabetic, is_property_default_ignorable_code_point):
22057         Update for Unicode 5.2.0.
22058         (is_property_cased, is_property_case_ignorable,
22059         is_property_changes_when_lowercased,
22060         is_property_changes_when_uppercased,
22061         is_property_changes_when_titlecased,
22062         is_property_changes_when_casefolded,
22063         is_property_changes_when_casemapped): New functions.
22064         (output_properties): Output also the properties cased, case_ignorable,
22065         changes_when_lowercased, changes_when_uppercased,
22066         changes_when_titlecased, changes_when_casefolded,
22067         changes_when_casemapped.
22068         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
22069         Unicode TR#11 revision 17 -> 19.
22070         (LBP_CP): New enumeration value.
22071         (LBP_*): Adjust values accordingly.
22072         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
22073         TR#14 revision 22 -> 24.
22074         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
22075         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
22076         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
22077         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
22078         is_WBP_MIDLETTER.
22079         (output_composition_tables): Allow for 24 bits instead of 16 bits in
22080         the code1 and code2 of each composition rule.
22081         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
22082         * lib/unicase/ignorable.h: Likewise.
22083         * lib/unicase/tocasefold.h: Likewise.
22084         * lib/unicase/tolower.h: Likewise.
22085         * lib/unicase/totitle.h: Likewise.
22086         * lib/unicase/toupper.h: Likewise.
22087         * lib/unictype/bidi_of.h: Likewise.
22088         * lib/unictype/blocks.h: Likewise.
22089         * lib/unictype/categ_C.h: Likewise.
22090         * lib/unictype/categ_Cf.h: Likewise.
22091         * lib/unictype/categ_Cn.h: Likewise.
22092         * lib/unictype/categ_L.h: Likewise.
22093         * lib/unictype/categ_Ll.h: Likewise.
22094         * lib/unictype/categ_Lm.h: Likewise.
22095         * lib/unictype/categ_Lo.h: Likewise.
22096         * lib/unictype/categ_Lu.h: Likewise.
22097         * lib/unictype/categ_M.h: Likewise.
22098         * lib/unictype/categ_Mc.h: Likewise.
22099         * lib/unictype/categ_Mn.h: Likewise.
22100         * lib/unictype/categ_N.h: Likewise.
22101         * lib/unictype/categ_Nd.h: Likewise.
22102         * lib/unictype/categ_Nl.h: Likewise.
22103         * lib/unictype/categ_No.h: Likewise.
22104         * lib/unictype/categ_P.h: Likewise.
22105         * lib/unictype/categ_Pd.h: Likewise.
22106         * lib/unictype/categ_Po.h: Likewise.
22107         * lib/unictype/categ_S.h: Likewise.
22108         * lib/unictype/categ_Sc.h: Likewise.
22109         * lib/unictype/categ_So.h: Likewise.
22110         * lib/unictype/categ_of.h: Likewise.
22111         * lib/unictype/combining.h: Likewise.
22112         * lib/unictype/ctype_alnum.h: Likewise.
22113         * lib/unictype/ctype_alpha.h: Likewise.
22114         * lib/unictype/ctype_graph.h: Likewise.
22115         * lib/unictype/ctype_lower.h: Likewise.
22116         * lib/unictype/ctype_print.h: Likewise.
22117         * lib/unictype/ctype_punct.h: Likewise.
22118         * lib/unictype/ctype_upper.h: Likewise.
22119         * lib/unictype/decdigit.h: Likewise.
22120         * lib/unictype/digit.h: Likewise.
22121         * lib/unictype/numeric.h: Likewise.
22122         * lib/unictype/pr_alphabetic.h: Likewise.
22123         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
22124         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
22125         * lib/unictype/pr_bidi_european_digit.h: Likewise.
22126         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
22127         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
22128         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
22129         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
22130         * lib/unictype/pr_combining.h: Likewise.
22131         * lib/unictype/pr_composite.h: Likewise.
22132         * lib/unictype/pr_currency_symbol.h: Likewise.
22133         * lib/unictype/pr_dash.h: Likewise.
22134         * lib/unictype/pr_decimal_digit.h: Likewise.
22135         * lib/unictype/pr_deprecated.h: Likewise.
22136         * lib/unictype/pr_diacritic.h: Likewise.
22137         * lib/unictype/pr_extender.h: Likewise.
22138         * lib/unictype/pr_grapheme_base.h: Likewise.
22139         * lib/unictype/pr_grapheme_extend.h: Likewise.
22140         * lib/unictype/pr_grapheme_link.h: Likewise.
22141         * lib/unictype/pr_id_continue.h: Likewise.
22142         * lib/unictype/pr_id_start.h: Likewise.
22143         * lib/unictype/pr_ideographic.h: Likewise.
22144         * lib/unictype/pr_ignorable_control.h: Likewise.
22145         * lib/unictype/pr_logical_order_exception.h: Likewise.
22146         * lib/unictype/pr_lowercase.h: Likewise.
22147         * lib/unictype/pr_numeric.h: Likewise.
22148         * lib/unictype/pr_other_alphabetic.h: Likewise.
22149         * lib/unictype/pr_punctuation.h: Likewise.
22150         * lib/unictype/pr_sentence_terminal.h: Likewise.
22151         * lib/unictype/pr_terminal_punctuation.h: Likewise.
22152         * lib/unictype/pr_unassigned_code_value.h: Likewise.
22153         * lib/unictype/pr_unified_ideograph.h: Likewise.
22154         * lib/unictype/pr_uppercase.h: Likewise.
22155         * lib/unictype/pr_xid_continue.h: Likewise.
22156         * lib/unictype/pr_xid_start.h: Likewise.
22157         * lib/unictype/pr_zero_width.h: Likewise.
22158         * lib/unictype/scripts.h: Likewise.
22159         * lib/unictype/scripts_byname.gperf: Likewise.
22160         * lib/unictype/sy_java_ident.h: Likewise.
22161         * lib/unigbrk/gbrkprop.h: Likewise.
22162         * lib/unilbrk/lbrkprop1.h: Likewise.
22163         * lib/unilbrk/lbrkprop2.h: Likewise.
22164         * lib/unilbrk/lbrktables.h: Likewise.
22165         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
22166         LBP_CP. Implement rule LB30.
22167         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
22168         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
22169         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
22170         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
22171         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
22172         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
22173         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
22174         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
22175         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
22176         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
22177         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
22178         bits instead of 16 bits in the code1 and code2 of each composition
22179         rule.
22180         (uc_composition): Update for Unicode 5.2.0.
22181         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
22182         * lib/uninorm/decomposition-table2.h: Likewise.
22183         * lib/uniwbrk/wbrkprop.h: Likewise.
22184         * tests/unicase/test-cased.c: Likewise.
22185         * tests/unicase/test-ignorable.c: Likewise.
22186         * tests/unicase/test-uc_tolower.c: Likewise.
22187         * tests/unicase/test-uc_totitle.c: Likewise.
22188         * tests/unicase/test-uc_toupper.c: Likewise.
22189         * tests/unictype/test-categ_C.c: Likewise.
22190         * tests/unictype/test-categ_Cf.c: Likewise.
22191         * tests/unictype/test-categ_Cn.c: Likewise.
22192         * tests/unictype/test-categ_L.c: Likewise.
22193         * tests/unictype/test-categ_Ll.c: Likewise.
22194         * tests/unictype/test-categ_Lm.c: Likewise.
22195         * tests/unictype/test-categ_Lo.c: Likewise.
22196         * tests/unictype/test-categ_Lu.c: Likewise.
22197         * tests/unictype/test-categ_M.c: Likewise.
22198         * tests/unictype/test-categ_Mc.c: Likewise.
22199         * tests/unictype/test-categ_Mn.c: Likewise.
22200         * tests/unictype/test-categ_N.c: Likewise.
22201         * tests/unictype/test-categ_Nd.c: Likewise.
22202         * tests/unictype/test-categ_Nl.c: Likewise.
22203         * tests/unictype/test-categ_No.c: Likewise.
22204         * tests/unictype/test-categ_P.c: Likewise.
22205         * tests/unictype/test-categ_Pd.c: Likewise.
22206         * tests/unictype/test-categ_Po.c: Likewise.
22207         * tests/unictype/test-categ_S.c: Likewise.
22208         * tests/unictype/test-categ_Sc.c: Likewise.
22209         * tests/unictype/test-categ_So.c: Likewise.
22210         * tests/unictype/test-ctype_alnum.c: Likewise.
22211         * tests/unictype/test-ctype_alpha.c: Likewise.
22212         * tests/unictype/test-ctype_graph.c: Likewise.
22213         * tests/unictype/test-ctype_lower.c: Likewise.
22214         * tests/unictype/test-ctype_print.c: Likewise.
22215         * tests/unictype/test-ctype_punct.c: Likewise.
22216         * tests/unictype/test-ctype_upper.c: Likewise.
22217         * tests/unictype/test-decdigit.h: Likewise.
22218         * tests/unictype/test-digit.h: Likewise.
22219         * tests/unictype/test-numeric.h: Likewise.
22220         * tests/unictype/test-pr_alphabetic.c: Likewise.
22221         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
22222         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
22223         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
22224         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
22225         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
22226         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
22227         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
22228         * tests/unictype/test-pr_combining.c: Likewise.
22229         * tests/unictype/test-pr_composite.c: Likewise.
22230         * tests/unictype/test-pr_currency_symbol.c: Likewise.
22231         * tests/unictype/test-pr_dash.c: Likewise.
22232         * tests/unictype/test-pr_decimal_digit.c: Likewise.
22233         * tests/unictype/test-pr_deprecated.c: Likewise.
22234         * tests/unictype/test-pr_diacritic.c: Likewise.
22235         * tests/unictype/test-pr_extender.c: Likewise.
22236         * tests/unictype/test-pr_grapheme_base.c: Likewise.
22237         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
22238         * tests/unictype/test-pr_grapheme_link.c: Likewise.
22239         * tests/unictype/test-pr_id_continue.c: Likewise.
22240         * tests/unictype/test-pr_id_start.c: Likewise.
22241         * tests/unictype/test-pr_ideographic.c: Likewise.
22242         * tests/unictype/test-pr_ignorable_control.c: Likewise.
22243         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
22244         * tests/unictype/test-pr_lowercase.c: Likewise.
22245         * tests/unictype/test-pr_numeric.c: Likewise.
22246         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
22247         * tests/unictype/test-pr_punctuation.c: Likewise.
22248         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
22249         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
22250         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
22251         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
22252         * tests/unictype/test-pr_uppercase.c: Likewise.
22253         * tests/unictype/test-pr_xid_continue.c: Likewise.
22254         * tests/unictype/test-pr_xid_start.c: Likewise.
22255         * tests/unictype/test-pr_zero_width.c: Likewise.
22256         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
22257         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
22258         changed behaviour: line breaking is now disallowed between a letter
22259         or '=' and '('.
22260         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22261         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22262         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
22263         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
22264         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22265         lib/uniwidth/width.c.
22266         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
22267         without comments, but with the original copyright notice.
22268         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
22269         changes.
22270         * lib/unictype/categ_Cc.h: Likewise.
22271         * lib/unictype/categ_Co.h: Likewise.
22272         * lib/unictype/categ_Cs.h: Likewise.
22273         * lib/unictype/categ_Lt.h: Likewise.
22274         * lib/unictype/categ_Me.h: Likewise.
22275         * lib/unictype/categ_Pc.h: Likewise.
22276         * lib/unictype/categ_Pe.h: Likewise.
22277         * lib/unictype/categ_Pf.h: Likewise.
22278         * lib/unictype/categ_Pi.h: Likewise.
22279         * lib/unictype/categ_Ps.h: Likewise.
22280         * lib/unictype/categ_Sk.h: Likewise.
22281         * lib/unictype/categ_Sm.h: Likewise.
22282         * lib/unictype/categ_Z.h: Likewise.
22283         * lib/unictype/categ_Zl.h: Likewise.
22284         * lib/unictype/categ_Zp.h: Likewise.
22285         * lib/unictype/categ_Zs.h: Likewise.
22286         * lib/unictype/ctype_blank.h: Likewise.
22287         * lib/unictype/ctype_cntrl.h: Likewise.
22288         * lib/unictype/ctype_digit.h: Likewise.
22289         * lib/unictype/ctype_space.h: Likewise.
22290         * lib/unictype/ctype_xdigit.h: Likewise.
22291         * lib/unictype/mirror.h: Likewise.
22292         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
22293         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
22294         * lib/unictype/pr_bidi_block_separator.h: Likewise.
22295         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
22296         * lib/unictype/pr_bidi_common_separator.h: Likewise.
22297         * lib/unictype/pr_bidi_control.h: Likewise.
22298         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
22299         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
22300         * lib/unictype/pr_bidi_pdf.h: Likewise.
22301         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22302         * lib/unictype/pr_bidi_whitespace.h: Likewise.
22303         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22304         * lib/unictype/pr_format_control.h: Likewise.
22305         * lib/unictype/pr_hex_digit.h: Likewise.
22306         * lib/unictype/pr_hyphen.h: Likewise.
22307         * lib/unictype/pr_ids_binary_operator.h: Likewise.
22308         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22309         * lib/unictype/pr_iso_control.h: Likewise.
22310         * lib/unictype/pr_join_control.h: Likewise.
22311         * lib/unictype/pr_left_of_pair.h: Likewise.
22312         * lib/unictype/pr_line_separator.h: Likewise.
22313         * lib/unictype/pr_math.h: Likewise.
22314         * lib/unictype/pr_non_break.h: Likewise.
22315         * lib/unictype/pr_not_a_character.h: Likewise.
22316         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22317         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22318         * lib/unictype/pr_other_id_continue.h: Likewise.
22319         * lib/unictype/pr_other_id_start.h: Likewise.
22320         * lib/unictype/pr_other_lowercase.h: Likewise.
22321         * lib/unictype/pr_other_math.h: Likewise.
22322         * lib/unictype/pr_other_uppercase.h: Likewise.
22323         * lib/unictype/pr_paired_punctuation.h: Likewise.
22324         * lib/unictype/pr_paragraph_separator.h: Likewise.
22325         * lib/unictype/pr_pattern_syntax.h: Likewise.
22326         * lib/unictype/pr_pattern_white_space.h: Likewise.
22327         * lib/unictype/pr_private_use.h: Likewise.
22328         * lib/unictype/pr_quotation_mark.h: Likewise.
22329         * lib/unictype/pr_radical.h: Likewise.
22330         * lib/unictype/pr_soft_dotted.h: Likewise.
22331         * lib/unictype/pr_space.h: Likewise.
22332         * lib/unictype/pr_titlecase.h: Likewise.
22333         * lib/unictype/pr_variation_selector.h: Likewise.
22334         * lib/unictype/pr_white_space.h: Likewise.
22335         * lib/unictype/sy_c_ident.h: Likewise.
22336         * lib/unictype/sy_c_whitespace.h: Likewise.
22337         * lib/unictype/sy_java_whitespace.h: Likewise.
22338         * modules/uni*/*: Bump version number of expected libunistring version.
22339         Reported by Simon Josefsson.
22340
22341 2011-01-09  Karl Heuer  <kwzh@gnu.org>
22342
22343         useless-if-before-free: fix typo in --help and make the internal,
22344         automatic version date update process work once again.
22345         --help output contained a NUL character instead of the
22346         backslash-zero that was intended.  Also, the "must lie within
22347         the first 8 lines" line is on line 9, and hence not getting
22348         automatically updated.
22349         * build-aux/useless-if-before-free: Fix the former by adding a
22350         backslash, and the latter by condensing the three lines of what-it-does
22351         to a single line, leaving one line of slack for the future.
22352
22353 2011-01-09  Bruno Haible  <bruno@clisp.org>
22354
22355         uniwidth/width: Fix width of U+1D173..U+1D17A.
22356         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
22357         symbolic_width, output_width_property_test): New functions.
22358         (main): Invoke output_nonspacing_property, output_width_property_test.
22359         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
22360         U+1D173..U+1D17A.
22361         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
22362         1.
22363         * modules/uniwidth/*: Bump version number of expected libunistring
22364         version.
22365         * modules/unilbrk/*: Likewise.
22366
22367 2011-01-08  Bruno Haible  <bruno@clisp.org>
22368
22369         uninorm tests: Preserve copyright of Unicode data file.
22370         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
22371         Mention modifications.
22372
22373 2011-01-08  Bruno Haible  <bruno@clisp.org>
22374
22375         gen-uni-tables: Prepare for Unicode 5.2.0.
22376         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
22377         (debug_output_lbp, output_lbp): Update.
22378
22379 2011-01-08  Bruno Haible  <bruno@clisp.org>
22380
22381         unilbrk: Clarify gen-uni-tables.c code.
22382         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
22383         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
22384         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
22385
22386 2011-01-07  Bruno Haible  <bruno@clisp.org>
22387
22388         strtod: Restore errno when successfully parsing Infinity or NaN.
22389         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
22390         restore the original errno.
22391
22392 2011-01-07  Bruno Haible  <bruno@clisp.org>
22393
22394         remove test: Avoid failure on HP-UX 11.
22395         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
22396
22397 2011-01-07  Bruno Haible  <bruno@clisp.org>
22398
22399         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
22400         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
22401         error code.
22402
22403 2011-01-07  Pádraig Brady <P@draigBrady.com>
22404
22405         ignore-value: fixup comments, and add Eric Blake
22406         as an author since he rewrote the macros.
22407         * lib/ignore-value.h (ignore_value):  State that
22408         we now support aggregates.  Also specify exactly
22409         when the GCC warn_unused_result feature was added.
22410
22411 2011-01-06  Eric Blake  <eblake@redhat.com>
22412
22413         ignore-value: support aggregate types
22414         * lib/ignore-value.h (ignore_value): Provide separate gcc
22415         definition.
22416         * modules/ignore-value-tests: New test module.
22417         * tests/test-ignore-value.c: New test.
22418
22419         maint.mk: improve sc_prohibit_strcmp regex
22420         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
22421         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
22422         definition of STRNEQ.
22423
22424         signal: work around Haiku issue with SIGBUS
22425         * lib/siglist.h: Add comment.
22426         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
22427         strsignal's favoring of SIGSEGV.
22428         * tests/test-signal.c (main): Avoid test failure.
22429         * doc/posix-headers/signal.texi (signal.h): Document the issue.
22430         Reported by Scott McCreary.
22431
22432         maint.mk: add pre-release check to ensure submodule commits are public
22433         * top/maint.mk (public-submodule-commit): New rule.
22434         (submodule-checks): New variable.
22435         (alpha beta stable): Depend on the variable.
22436
22437 2011-01-05  Pádraig Brady <P@draigBrady.com>
22438         and Jim Meyering  <meyering@redhat.com>
22439
22440         ignore-value: make ignore_value more generic; deprecate ignore_ptr
22441         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
22442         (ATTRIBUTE_DEPRECATED): Define.
22443         (_ignore_case): New function.
22444         (ignore_value): New macro, to replace the old function.
22445         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
22446         * modules/ignore-value (Depends-on): Add stdint.
22447
22448 2011-01-04  Eric Blake  <eblake@redhat.com>
22449
22450         doc: regenerate INSTALL
22451         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
22452         @firstparagraphindent support, now that autoconf dropped it.
22453         (INSTALL_PRELUDE): Reinstate old macro.
22454         * doc/install.texi: Resync from autoconf.
22455         * doc/INSTALL: Reflect recent autoconf update.
22456         * doc/INSTALL.ISO: Likewise.
22457         * doc/INSTALL.UTF-8: Likewise.
22458         Reported by Karl Berry.
22459
22460 2011-01-04  Bruce Korb  <address@hidden>
22461
22462         git-version-gen: avoid a sub-shell
22463         * build-aux/git-version-gen: Redirect stderr in `...` via
22464         "exec 2>...", rather than via an added sub-shell.
22465
22466 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
22467
22468         git-version-gen: use (...) rather than sh -c '...'
22469         * build-aux/git-version-gen: Rather than hard-coding a shell's name
22470         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
22471
22472 2011-01-03  Jim Meyering  <meyering@redhat.com>
22473
22474         git-version-gen: convert leading TABs to spaces
22475         * build-aux/git-version-gen: Expand leading TABs.
22476
22477         git-version-gen: handle failed "git rev-list"
22478         * build-aux/git-version-gen: Rather than leaking a "fatal" error
22479         from git and proceeding as if it had succeeded but printed no SHA1
22480         checksums, suppress the diagnostic and handle the failure.
22481         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
22482
22483         git-version-gen: include command name in one more diagnostic
22484         * build-aux/git-version-gen: When the required .tarball-version file
22485         was missing or unreadable, you might see the diagnostic from "cat",
22486         but no trace of the name of the invoking script.  Now, you still see
22487         the diagnostic from cat, but also get one from "git-version-gen: ".
22488         Inspired by a patch from Bruce Korb.
22489
22490         update-copyright: adjust test to match changed code
22491         * tests/test-update-copyright.sh: Change test's expected output
22492         to match new actual output.
22493
22494 2011-01-02  Bruno Haible  <bruno@clisp.org>
22495
22496         getlogin_r: Avoid test failure on HP-UX 11.
22497         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
22498         ERANGE when the second argument is zero.
22499         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
22500         portability problem.
22501
22502 2011-01-02  Bruce Korb  <bkorb@gnu.org>
22503
22504         * build-aux/update-copyright: doc Simon's changes
22505
22506 2011-01-02  Simon Josefsson  <simon@josefsson.org>
22507
22508         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
22509         environment variable.
22510
22511 2011-01-02  Bruno Haible  <bruno@clisp.org>
22512
22513         unigbrk: Avoid gcc warnings.
22514         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
22515         unused variable.
22516         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
22517         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
22518         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
22519         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
22520         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
22521         Change type of first argument to 'const char *'.
22522         (main): Remove unused variable.
22523         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
22524         type of first argument to 'const char *'.
22525         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
22526         Likewise.
22527         (main): Change type of variable 's'.
22528         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
22529         to 'int'.
22530
22531 2011-01-02  Bruno Haible  <bruno@clisp.org>
22532
22533         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
22534         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
22535         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
22536         bug.
22537         * lib/pwrite.c: Undo 2010-12-31 patch.
22538         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
22539
22540 2011-01-02  Bruno Haible  <bruno@clisp.org>
22541
22542         pread: Fix test whether it works.
22543         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
22544
22545 2011-01-02  Bruno Haible  <bruno@clisp.org>
22546
22547         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
22548         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
22549         ends in "6". Don't require a specific month name. Try also the locale
22550         names found on HP-UX 11 and Solaris 7.
22551
22552 2011-01-02  Bruno Haible  <bruno@clisp.org>
22553
22554         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
22555         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
22556         C linkage.
22557         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
22558
22559 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22560
22561         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
22562         for consistency, since the "cluster" term is not used elsewhere.
22563         * lib/unigbrk.in.h: Update name.
22564         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
22565         * lib/unigbrk/u16-grapheme-next.c: Update name.
22566         * lib/unigbrk/u16-grapheme-prev.c: Update name.
22567         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
22568         * lib/unigbrk/u32-grapheme-next.c: Update name.
22569         * lib/unigbrk/u32-grapheme-prev.c: Update name.
22570         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
22571         * lib/unigbrk/u8-grapheme-next.c: Update name.
22572         * lib/unigbrk/u8-grapheme-prev.c: Update name.
22573         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
22574         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
22575         Suggested by Bruno Haible.
22576
22577 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22578
22579         Remove module 'u8-grapheme-len' as too redundant with
22580         'u8-grapheme-next'.
22581         * modules/unigbrk/u8-grapheme-len: Delete file.
22582         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
22583         * lib/unigbrk.in.h: Remove prototype for deleted function.
22584         * lib/unigbrk/u8-grapheme-len.c: Delete file.
22585         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
22586
22587         Remove module 'u16-grapheme-len' as too redundant with
22588         'u16-grapheme-next'.
22589         * modules/unigbrk/u16-grapheme-len: Delete file.
22590         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
22591         * lib/unigbrk.in.h: Remove prototype for deleted function.
22592         * lib/unigbrk/u16-grapheme-len.c: Delete file.
22593         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
22594
22595         Remove module 'u32-grapheme-len' as too redundant with
22596         'u32-grapheme-next'.
22597         * modules/unigbrk/u32-grapheme-len: Delete file.
22598         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
22599         * lib/unigbrk.in.h: Remove prototype for deleted function.
22600         * lib/unigbrk/u32-grapheme-len.c: Delete file.
22601         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
22602
22603         Suggested by Bruno Haible.
22604
22605 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22606
22607         * unigbrk.in.h: Fix typo: "ben" => "been".
22608         Reported by Bruno Haible.
22609
22610 2011-01-01  Jim Meyering  <meyering@redhat.com>
22611
22612         maint: update almost all copyright ranges to include 2011
22613         Run the new "make update-copyright" rule.
22614
22615 2011-01-01  Jim Meyering  <meyering@redhat.com>
22616
22617         maint: update-copyright: exempt doc/INSTALL*
22618         * Makefile (update-copyright): Also exclude doc/INSTALL*,
22619         since they are generated.  Suggested by Bruno Haible.
22620
22621 2011-01-01  Jim Meyering  <meyering@redhat.com>
22622
22623         maint: refine the update-copyright rule
22624         * Makefile (update-copyright): Also exclude any file that includes
22625         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
22626         code that merely generates the comment.
22627
22628 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22629
22630         New module 'u8-grapheme-len'.
22631         * modules/unigbrk/u8-grapheme-len: New file.
22632         * modules/unigbrk/u8-grapheme-len-tests: New file.
22633         * lib/unigbrk.in.h: Add prototype for new function.
22634         * lib/unigbrk/u8-grapheme-len.c: New file.
22635         * tests/unigbrk/test-u8-grapheme-len.c: New file.
22636
22637         New module 'u16-grapheme-len'.
22638         * modules/unigbrk/u16-grapheme-len: New file.
22639         * modules/unigbrk/u16-grapheme-len-tests: New file.
22640         * lib/unigbrk.in.h: Add prototype for new function.
22641         * lib/unigbrk/u16-grapheme-len.c: New file.
22642         * tests/unigbrk/test-u16-grapheme-len.c: New file.
22643
22644         New module 'u32-grapheme-len'.
22645         * modules/unigbrk/u32-grapheme-len: New file.
22646         * modules/unigbrk/u32-grapheme-len-tests: New file.
22647         * lib/unigbrk.in.h: Add prototype for new function.
22648         * lib/unigbrk/u32-grapheme-len.c: New file.
22649         * tests/unigbrk/test-u32-grapheme-len.c: New file.
22650
22651         New module 'u8-grapheme-next'.
22652         * modules/unigbrk/u8-grapheme-next: New file.
22653         * modules/unigbrk/u8-grapheme-next-tests: New file.
22654         * lib/unigbrk.in.h: Add prototype for new function.
22655         * lib/unigbrk/u8-grapheme-next.c: New file.
22656         * tests/unigbrk/test-u8-grapheme-next.c: New file.
22657
22658         New module 'u16-grapheme-next'.
22659         * modules/unigbrk/u16-grapheme-next: New file.
22660         * modules/unigbrk/u16-grapheme-next-tests: New file.
22661         * lib/unigbrk.in.h: Add prototype for new function.
22662         * lib/unigbrk/u16-grapheme-next.c: New file.
22663         * tests/unigbrk/test-u16-grapheme-next.c: New file.
22664
22665         New module 'u32-grapheme-next'.
22666         * modules/unigbrk/u32-grapheme-next: New file.
22667         * modules/unigbrk/u32-grapheme-next-tests: New file.
22668         * lib/unigbrk.in.h: Add prototype for new function.
22669         * lib/unigbrk/u32-grapheme-next.c: New file.
22670         * tests/unigbrk/test-u32-grapheme-next.c: New file.
22671
22672         New module 'u8-grapheme-prev'.
22673         * modules/unigbrk/u8-grapheme-prev: New file.
22674         * modules/unigbrk/u8-grapheme-prev-tests: New file.
22675         * lib/unigbrk.in.h: Add prototype for new function.
22676         * lib/unigbrk/u8-grapheme-prev.c: New file.
22677         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
22678
22679         New module 'u16-grapheme-prev'.
22680         * modules/unigbrk/u16-grapheme-prev: New file.
22681         * modules/unigbrk/u16-grapheme-prev-tests: New file.
22682         * lib/unigbrk.in.h: Add prototype for new function.
22683         * lib/unigbrk/u16-grapheme-prev.c: New file.
22684         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
22685
22686         New module 'u32-grapheme-prev'.
22687         * modules/unigbrk/u32-grapheme-prev: New file.
22688         * modules/unigbrk/u32-grapheme-prev-tests: New file.
22689         * lib/unigbrk.in.h: Add prototype for new function.
22690         * lib/unigbrk/u32-grapheme-prev.c: New file.
22691         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
22692
22693         New module 'u8-grapheme-breaks'.
22694         * modules/unigbrk/u8-grapheme-breaks: New file.
22695         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
22696         * lib/unigbrk.in.h: Add prototype for new function.
22697         * lib/unigbrk/u8-grapheme-breaks.c: New file.
22698         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
22699
22700         New module 'u16-grapheme-breaks'.
22701         * modules/unigbrk/u16-grapheme-breaks: New file.
22702         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
22703         * lib/unigbrk.in.h: Add prototype for new function.
22704         * lib/unigbrk/u16-grapheme-breaks.c: New file.
22705         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
22706
22707         New module 'u32-grapheme-breaks'.
22708         * modules/unigbrk/u32-grapheme-breaks: New file.
22709         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
22710         * lib/unigbrk.in.h: Add prototype for new function.
22711         * lib/unigbrk/u32-grapheme-breaks.c: New file.
22712         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
22713
22714         New module 'ulc-grapheme-breaks'.
22715         * modules/unigbrk/ulc-grapheme-breaks: New file.
22716         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
22717         * m4/locale-ar.m4: New file.
22718         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
22719         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
22720         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
22721
22722 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22723
22724         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
22725         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
22726         modified how this file was generated before I initially submitted
22727         the module, but failed to regenerate it.  This meant that several
22728         of the level2 entries were wrong.
22729         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
22730         Remove the division-by-2 that is folded into the table now that
22731         gbrkprop.h has been regenerated properly.  Now -1 entries are
22732         handled correctly.
22733
22734         New module 'unigbrk/uc-gbrk-prop-tests'.
22735         * modules/unigbrk/uc-gbrk-prop-tests: New file.
22736         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
22737         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
22738         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
22739
22740 2011-01-01  Bruno Haible  <bruno@clisp.org>
22741
22742         Avoid use of hexadecimal escapes.
22743         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
22744         instead of hexadecimal escapes.
22745
22746 2011-01-01  Jim Meyering  <meyering@redhat.com>
22747
22748         maint: new rule to update copyright year ranges
22749         * Makefile (update-copyright): New rule.
22750
22751         maint: indent with TABs in Makefile
22752         * Makefile: Expand leading sequences of spaces to TABs
22753
22754         version-etc: update the copyright year it reports
22755         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
22756
22757 2010-12-31  Bruno Haible  <bruno@clisp.org>
22758
22759         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
22760         * lib/isfinite.c (zerof, zerod, zerol): New variables.
22761         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
22762         zero.
22763
22764 2010-12-31  Bruno Haible  <bruno@clisp.org>
22765
22766         pwrite: Work around HP-UX 11.11 bug.
22767         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
22768         works and set REPLACE_PWRITE if not.
22769         * lib/pwrite.c (pwrite): Add an implementation that uses the system
22770         function.
22771         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
22772
22773 2010-12-31  Bruno Haible  <bruno@clisp.org>
22774
22775         pread: Work around HP-UX 11 bugs.
22776         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
22777         and set REPLACE_PREAD if not.
22778         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
22779
22780 2010-12-31  Eric Blake  <eblake@redhat.com>
22781
22782         nl_langinfo: fix YESEXPR on Irix 6.5
22783         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
22784         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
22785         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
22786         it.
22787
22788 2010-12-31  Bruno Haible  <bruno@clisp.org>
22789
22790         iconv: Document HP-UX 11 bug.
22791         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
22792
22793 2010-12-31  Bruno Haible  <bruno@clisp.org>
22794
22795         ldexpl: Fix link error on HP-UX 11.
22796         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
22797         LDEXPL_LIBM, using $ISNANL_LIBM.
22798
22799 2010-12-31  Eric Blake  <eblake@redhat.com>
22800
22801         ftello: avoid compilation failure with SunStudio c89
22802         * lib/ftello.c (ftello): Use lseek, not llseek.
22803
22804         tests: avoid failing coreutils tests on cygwin
22805         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
22806         (create_exe_shims_): Return 0 when skipping.
22807
22808 2010-12-31  Bruno Haible  <bruno@clisp.org>
22809
22810         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
22811         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
22812
22813 2010-12-31  Bruno Haible  <bruno@clisp.org>
22814
22815         waitpid: Fix link error in C++ mode.
22816         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
22817
22818 2010-12-31  Bruno Haible  <bruno@clisp.org>
22819
22820         isnan: Use GCC built-ins when possible.
22821         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
22822         __builtin_isnan.
22823         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
22824         (isnan): Define using GCC built-ins for GCC >= 4.0.
22825
22826 2010-12-31  Bruno Haible  <bruno@clisp.org>
22827
22828         isnand: Fix mistake.
22829         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
22830         __builtin_isnand.
22831
22832 2010-12-31  Bruno Haible  <bruno@clisp.org>
22833
22834         open: Avoid C++ error on HP-UX 11.
22835         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
22836
22837 2010-12-31  Bruno Haible  <bruno@clisp.org>
22838
22839         time_r: Add missing declarations on HP-UX 11.
22840         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
22841         instead of HAVE_LOCALTIME_R.
22842         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
22843         HAVE_LOCALTIME_R always.
22844         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
22845         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
22846         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
22847         HAVE_LOCALTIME_R.
22848         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
22849         * doc/posix-functions/localtime_r.texi: Likewise.
22850
22851 2010-12-29  Eric Blake  <eblake@redhat.com>
22852
22853         mountlist: tweak previous commit
22854         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
22855         Reported by Paul Eggert.
22856
22857         mountlist: fix local drive detection on cygwin
22858         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
22859         that works for cygwin.
22860
22861 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
22862
22863         ftoastr, snprintf: ftoastr + snprintf module
22864         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
22865         since the snprintf module now should be good enough here.
22866         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
22867         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
22868         and gl_MODULE_INDICATOR([snprintf]), but the former enables
22869         GNULIB_SNPRINTF only for the test directory, and the latter
22870         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
22871         seems to suffice by itself.
22872
22873 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
22874
22875         alloca: one step towards thread-safety
22876         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
22877         need for a static variable.  All callers changed.  This does not
22878         make the alloca replacement thread-safe, but it's one step.
22879
22880         tests: minor indenting change
22881         * tests/init.sh: Sync from coreutils housekeeping patch
22882         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
22883         to keep lines within 80 columns.
22884
22885 2010-12-28  Jim Meyering  <meyering@redhat.com>
22886
22887         regex: don't infloop on persistent failing calloc
22888         * lib/regexec.c (build_trtable): Return failure indication upon
22889         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
22890         In glibc, this was fixed for version 2.13:
22891         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
22892
22893 2010-12-28  Bruno Haible  <bruno@clisp.org>
22894             Paul Eggert <eggert@cs.ucla.edu>
22895
22896         linkat: Make implementation robust against system behaviour variations.
22897         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
22898         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
22899         way, and to -2 if it needs a generic runtime test.
22900         * lib/linkat.c (solaris_optimized_link_immediate,
22901         solaris_optimized_link_follow): New functions.
22902         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
22903         (check_same_link): Use it.
22904
22905 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
22906
22907         New module 'unigbrk/base'.
22908         * modules/unigbrk/base: New file.
22909         * lib/unigbrk.in.h: New file.
22910
22911         New module 'unigbrk/uc-gbrk-prop'.
22912         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
22913         * modules/unigbrk/uc-gbrk-prop: New file.
22914         * lib/unigbrk/gbrkprop.h: New file.
22915         * lib/unigbrk/uc-gbrk-prop.c: New file.
22916
22917         New module 'unigbrk/uc-is-grapheme-break'.
22918         * modules/unigbrk/uc-is-grapheme-break: New file.
22919         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
22920         * lib/unigbrk/uc-is-grapheme-break.c: New file.
22921         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
22922         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
22923         * tests/unigbrk/GraphemeBreakTest.txt: New file.
22924
22925         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
22926
22927 2010-12-27  Bruno Haible  <bruno@clisp.org>
22928
22929         linkat test: Avoid failure on Solaris 11 2010-11.
22930         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
22931
22932 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22933
22934         utimens: work around glibc rounding bug on more platforms
22935         * lib/utimens.c (fdutimens): Work around rounding bug even if
22936         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
22937         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
22938
22939 2010-12-27  Bruno Haible  <bruno@clisp.org>
22940
22941         select tests: Improve comments.
22942         * tests/test-select.c (do_select): Add comments.
22943
22944 2010-12-27  Bruno Haible  <bruno@clisp.org>
22945
22946         select tests: Safer way of handling timeout.
22947         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
22948         at every invocation.
22949
22950 2010-12-27  Bruno Haible  <bruno@clisp.org>
22951
22952         select tests: Use 'bool' where appropriate.
22953         * tests/test-select.c (connect_to_socket): Change argument type to
22954         'bool'.
22955
22956 2010-12-27  Bruno Haible  <bruno@clisp.org>
22957
22958         select tests: Use existing modules.
22959         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
22960         (configure.ac): Don't test for unistd.h.
22961         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
22962         declared in <unistd.h>.
22963
22964 2010-12-27  Bruno Haible  <bruno@clisp.org>
22965
22966         mbrtowc: Work around a Solaris 7 bug.
22967         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
22968         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
22969         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
22970         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
22971         MBRTOWC_NULL_ARG1_BUG.
22972         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
22973         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
22974         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
22975         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
22976
22977 2010-12-27  Jim Meyering  <meyering@redhat.com>
22978
22979         read-file.c: tweak syntax
22980         * lib/read-file.c (fread_file): Remove space after "*" in function
22981         definitions.
22982
22983 2010-12-27  Bruno Haible  <bruno@clisp.org>
22984
22985         times test: Avoid gcc warnings on OSF/1.
22986         * tests/test-times.c (main): Cast printf arguments from clock_t to
22987         'long int'.
22988
22989 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22990
22991         utimens: work around glibc rounding bug on older Linux kernels
22992         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
22993         on Linux with a glibc whose utimes might not work, then work
22994         around a longstanding glibc bug involving rounding rather than
22995         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
22996         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22997
22998 2010-12-26  Bruno Haible  <bruno@clisp.org>
22999
23000         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
23001         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
23002         _GL_CXXALIAS_SYS.
23003         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23004
23005 2010-12-26  Bruno Haible  <bruno@clisp.org>
23006
23007         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
23008         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
23009         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
23010         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
23011         looking for the declaration.
23012         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
23013         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
23014         problem.
23015         * doc/posix-functions/inet_pton.texi: Likewise.
23016
23017 2010-12-26  Bruno Haible  <bruno@clisp.org>
23018
23019         arpa_inet: Use the common idioms with C++ support.
23020         * lib/arpa_inet.in.h: Include c++defs.h.
23021         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
23022         support.
23023         * modules/arpa_inet (Depends-on): Add c++defs.
23024         (Makefile.am): Substitute the contents of c++defs.h.
23025         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
23026         * modules/arpa_inet-c++-tests: New file.
23027         * tests/test-arpa_inet-c++.cc: New file.
23028
23029 2010-12-25  Bruno Haible  <bruno@clisp.org>
23030
23031         Fix more C++ link errors on Solaris 8.
23032         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
23033         $(LIB_EACCESS).
23034         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
23035         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
23036         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
23037         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
23038         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
23039
23040 2010-12-25  Bruno Haible  <bruno@clisp.org>
23041
23042         printf-posix: Fix link error when a non-GCC compiler is used.
23043         * lib/stdio.in.h (printf): When not using GCC, override printf
23044         correctly.
23045         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23046
23047 2010-12-25  Bruno Haible  <bruno@clisp.org>
23048
23049         strerror_r-posix: Update doc.
23050         * doc/posix-functions/strerror_r.texi: Update doc about the return
23051         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
23052
23053 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
23054
23055         utimens: simplify the logic of the previous change
23056         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
23057         This should not affect whether the test succeeds or fails.
23058
23059         utimens: configure better on hosts with NFS clock skew
23060         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
23061         uses the clock of the local host.  It might use the clock of the
23062         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
23063         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
23064
23065 2010-12-25  Bruno Haible  <bruno@clisp.org>
23066
23067         ptsname test: Avoid failure on Solaris.
23068         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
23069         open a pseudo-terminal; don't use BSD-style ptys.
23070         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
23071
23072 2010-12-25  Bruno Haible  <bruno@clisp.org>
23073
23074         ptsname: Avoid ERANGE failure on some systems.
23075         * lib/ptsname.c (buffer): Increase size.
23076
23077 2010-12-25  Bruno Haible  <bruno@clisp.org>
23078
23079         rename, renameat: Avoid test failures at NFS mounted locations.
23080         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
23081         so that subsequent mkdir calls succeed.
23082
23083 2010-12-25  Bruno Haible  <bruno@clisp.org>
23084
23085         iswblank: Fix C++ link error on Solaris 8.
23086         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
23087         _GL_FUNCDECL_SYS.
23088
23089 2010-12-25  Bruno Haible  <bruno@clisp.org>
23090
23091         unistd: Fix C++ link error on Solaris 8.
23092         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
23093
23094 2010-12-25  Bruno Haible  <bruno@clisp.org>
23095
23096         readlink doc: Mention an old glibc bug.
23097         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
23098
23099 2010-12-25  Bruno Haible  <bruno@clisp.org>
23100
23101         fcntl-h: Fix for use of C++ on glibc systems.
23102         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
23103         also on glibc systems in C++ mode.
23104         Reported by Gary V. Vaughan <gary@gnu.org>.
23105
23106 2010-12-25  Bruno Haible  <bruno@clisp.org>
23107
23108         roundl-ieee: Make it work on OSF/1 5.1 with cc.
23109         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
23110
23111 2010-12-25  Bruno Haible  <bruno@clisp.org>
23112
23113         truncl-ieee: Make it work on OSF/1 5.1 with cc.
23114         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
23115         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
23116         test whether truncl works according to ISO C 99 with IEC 60559.
23117         * m4/truncl-ieee.m4: New file.
23118         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
23119         m4/signbit.m4.
23120         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
23121
23122 2010-12-25  Bruno Haible  <bruno@clisp.org>
23123
23124         ceill-ieee: Make it work on OSF/1 5.1 with cc.
23125         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
23126         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
23127         test whether ceill works according to ISO C 99 with IEC 60559.
23128         * m4/ceill-ieee.m4: New file.
23129         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
23130         m4/signbit.m4.
23131         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
23132
23133 2010-12-25  Bruno Haible  <bruno@clisp.org>
23134
23135         Ensure all prerequisites of <wchar.h> are included.
23136         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
23137         before <wchar.h>.
23138         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
23139         gl_MBRLEN_NUL_RETVAL): Likewise.
23140         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
23141         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
23142         AC_FUNC_MBRTOWC): Likewise.
23143         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23144         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
23145         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23146         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
23147         Likewise.
23148         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
23149         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
23150         (gl_WCHAR_H): Improve comments.
23151         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
23152
23153 2010-12-25  Bruno Haible  <bruno@clisp.org>
23154
23155         strtok_r: Fix C syntax error in autoconf macro.
23156         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
23157         characters in test program.
23158
23159 2010-12-24  Bruno Haible  <bruno@clisp.org>
23160
23161         ceil, trunc, round: Fix gcc warnings.
23162         * lib/ceil.c (MIN): Undefine before redefining.
23163         * lib/trunc.c (MIN): Likewise.
23164         * lib/round.c (MIN): Likewise.
23165         Include <math.h> first.
23166
23167 2010-12-24  Bruno Haible  <bruno@clisp.org>
23168
23169         select tests: Avoid failures on OSF/1 5.1.
23170         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
23171         failure of closing the last socket; it may fail with ECONNRESET.
23172
23173 2010-12-24  Eric Blake  <eblake@redhat.com>
23174
23175         stdint: avoid HP-UX 10.20 preprocessor bug
23176         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
23177         than #if.
23178         * tests/test-floor2.c (main): Likewise.
23179         Reported by Peter O'Gorman.
23180
23181         pipe: make obsoletion transition easier
23182         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
23183         * modules/pipe (Files): Include revived file.
23184         (Include): Drop reference, to mirror getdate's behavior.
23185
23186 2010-12-24  Bruno Haible  <bruno@clisp.org>
23187
23188         sys_socket: Hide mismatch of declarations on NonStop Kernel.
23189         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
23190         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
23191         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23192
23193 2010-12-24  Bruno Haible  <bruno@clisp.org>
23194
23195         gethostname: Ensure declaration on NonStop Kernel.
23196         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
23197         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23198
23199 2010-12-24  Bruno Haible  <bruno@clisp.org>
23200
23201         sys_select: Ensure all necessary types on NonStop Kernel.
23202         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
23203         include <sys/time.h>.
23204         * doc/posix-headers/sys_select.texi: Mention that it's missing on
23205         NonStop Kernel.
23206         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23207
23208 2010-12-24  Bruno Haible  <bruno@clisp.org>
23209
23210         sys_select: Remove unneeded include.
23211         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
23212         have <sys/select.h>.
23213
23214 2010-12-24  Bruno Haible  <bruno@clisp.org>
23215
23216         gethostname: Provide a fallback for HOST_NAME_MAX.
23217         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
23218         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
23219         instead.
23220         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23221
23222 2010-12-24  Bruno Haible  <bruno@clisp.org>
23223
23224         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
23225         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
23226         (SA_RESTART): Likewise.
23227         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23228
23229 2010-12-24  Bruno Haible  <bruno@clisp.org>
23230
23231         signal: Define NSIG.
23232         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
23233         * tests/test-signal.c (nsig): New variable.
23234         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23235
23236 2010-12-24  Bruno Haible  <bruno@clisp.org>
23237
23238         rename, renameat: Avoid test failures on OSF/1 5.1.
23239         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
23240         alternative error codes.
23241         * tests/test-renameat.c (main): Likewise.
23242
23243 2010-12-24  Bruno Haible  <bruno@clisp.org>
23244
23245         *printf: Detect large precisions bug on Solaris 10/SPARC.
23246         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
23247         by Paul Eggert.
23248         * tests/test-snprintf-posix.h (test_function): Add this test code here
23249         too.
23250         * tests/test-sprintf-posix.h (test_function): Likewise.
23251         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23252         * tests/test-vasprintf-posix.c (test_function): Likewise.
23253         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
23254         around by gnulib.
23255         * doc/posix-functions/printf.texi: Likewise.
23256         * doc/posix-functions/snprintf.texi: Likewise.
23257         * doc/posix-functions/sprintf.texi: Likewise.
23258         * doc/posix-functions/vfprintf.texi: Likewise.
23259         * doc/posix-functions/vprintf.texi: Likewise.
23260         * doc/posix-functions/vsnprintf.texi: Likewise.
23261         * doc/posix-functions/vsprintf.texi: Likewise.
23262         * doc/posix-functions/dprintf.texi: Undo last commit.
23263         * doc/posix-functions/vdprintf.texi: Likewise.
23264
23265 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
23266
23267         tests: port test-fdutimensat.c to Solaris 8
23268         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
23269         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
23270         On Solaris 8, it fails with errno == ENOSYS, because there is no
23271         futimens (so it can't use the fd), and there is no lutimens (so it
23272         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
23273
23274         vsnprintf: make more consistent with snprintf; doc fixes
23275
23276         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
23277         the byte count return problem was promoted from the snprintf-posix
23278         to the snprintf module.
23279         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
23280         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
23281         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
23282         * tests/test-snprintf.c (main): Check the byte count returned.
23283         * tests/test-vsnprintf.c (main): Likewise.
23284
23285 2010-12-23  Eric Blake  <eblake@redhat.com>
23286
23287         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
23288         * modules/sigpipe (License): Relax license.
23289
23290 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23291
23292         doc: document Solaris printf bug with large float precisions
23293         * doc/posix-functions/dprintf.texi (dprintf):
23294         * doc/posix-functions/fprintf.texi (fprintf):
23295         * doc/posix-functions/printf.texi (printf):
23296         * doc/posix-functions/snprintf.texi (snprintf):
23297         * doc/posix-functions/sprintf.texi (sprintf):
23298         * doc/posix-functions/vdprintf.texi (vdprintf):
23299         * doc/posix-functions/vfprintf.texi (vfprintf):
23300         * doc/posix-functions/vprintf.texi (vprintf):
23301         * doc/posix-functions/vsnprintf.texi (vsnprintf):
23302         * doc/posix-functions/vsprintf.texi (vsprintf):
23303         Mention that these functions mishandle large floating point
23304         precisions on Solaris 10.  The same bug is also present in Solaris
23305         8, and I assume earlier.  This causes "cd gnulib-tests; make
23306         check" to fail on Solaris 8 (and I assume, later) when building
23307         the latest coreutils, in test-vasprintf-posix's call to
23308         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
23309         the wide flavors (e.g., wprintf) so this patch just updates the
23310         documentation for the narrow ones.
23311
23312         test-posixtm.c: add two tests
23313         * tests/test-posixtm.c: Add two tests, to highlight the
23314         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
23315         around this bug; this is merely to document it.
23316
23317 2010-12-22  Bruno Haible  <bruno@clisp.org>
23318
23319         getlogin_r: Work around portability problem on OSF/1.
23320         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
23321         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
23322         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
23323         test for a truncated result.
23324         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
23325         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
23326         * modules/getlogin_r (Depends-on): Add memchr.
23327         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
23328
23329 2010-12-22  Bruno Haible  <bruno@clisp.org>
23330
23331         ptsname: Avoid test failure on OSF/1 5.1.
23332         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
23333         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
23334         (same_slave): New function.
23335         (main): Use it to compare ptsname's result with the expected file name.
23336
23337 2010-12-22  Bruno Haible  <bruno@clisp.org>
23338
23339         Port extended stdio modules to HP NonStop Kernel.
23340         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
23341         macros.
23342         * lib/fbufmode.c: Update comments.
23343         * lib/fflush.c: Likewise.
23344         * lib/fpurge.c: Likewise.
23345         * lib/freadable.c: Likewise.
23346         * lib/freadahead.c: Likewise.
23347         * lib/freading.c: Likewise.
23348         * lib/freadptr.c: Likewise.
23349         * lib/freadseek.c: Likewise.
23350         * lib/fseeko.c: Likewise.
23351         * lib/fseterr.c: Likewise.
23352         * lib/fwritable.c: Likewise.
23353         * lib/fwriting.c: Likewise.
23354         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23355
23356 2010-12-22  Bruno Haible  <bruno@clisp.org>
23357
23358         ttyname_r: Work around bug on OSF/1 5.1.
23359         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
23360         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
23361         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
23362         present.
23363         * lib/ttyname_r.c (ttyname_r): Update comments.
23364
23365 2010-12-22  Bruno Haible  <bruno@clisp.org>
23366
23367         round: Implement result sign according to IEEE 754.
23368         * lib/round.c (MIN, MINUS_ZERO): New macros.
23369         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
23370         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
23371         * tests/test-round-ieee.c (main): Likewise.
23372         * tests/test-roundl-ieee.c (main): Likewise.
23373
23374         trunc: Implement result sign according to IEEE 754.
23375         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
23376         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
23377         * tests/test-trunc2.c: Include minus-zero.h.
23378         (MINUS_ZERO): New macro.
23379         (trunc_reference): Keep in sync with lib/trunc.c.
23380         * tests/test-truncf2.c: Include minus-zero.h.
23381         (MINUS_ZERO): New macro.
23382         (truncf_reference): Keep in sync with lib/trunc.c.
23383         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
23384         * tests/test-trunc-ieee.c (main): Likewise.
23385         * tests/test-truncl-ieee.c (main): Likewise.
23386
23387         ceil: Implement result sign according to IEEE 754.
23388         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
23389         (FUNC): Return -0.0 for -1 < x < 0.
23390         * tests/test-ceil2.c: Include minus-zero.h.
23391         (MINUS_ZERO): New macro.
23392         (ceil_reference): Keep in sync with lib/ceil.c.
23393         * tests/test-ceilf2.c: Include minus-zero.h.
23394         (MINUS_ZERO): New macro.
23395         (ceilf_reference): Keep in sync with lib/ceil.c.
23396         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
23397         * tests/test-ceil-ieee.c (main): Likewise.
23398         * tests/test-ceill-ieee.c (main): Likewise.
23399
23400         floor: Implement result sign according to IEEE 754.
23401         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
23402         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
23403         * tests/test-floorf2.c (floorf_reference): Likewise.
23404         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
23405         * tests/test-floor-ieee.c (main): Likewise.
23406         * tests/test-floorl-ieee.c (main): Likewise.
23407
23408 2010-12-22  Bruno Haible  <bruno@clisp.org>
23409
23410         getaddrinfo: Update doc.
23411         * doc/posix-functions/gai_strerror.texi: Return type is also different
23412         on AIX and HP-UX.
23413
23414 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23415
23416         getaddrinfo, inet_ntop: Update doc for Solaris.
23417         * doc/posix-functions/gai_strerror.texi: Return type is also an
23418         issue on Solaris 9 and earlier.
23419         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
23420         on Solaris 10 and earlier.
23421
23422 2010-12-21  Bruno Haible  <bruno@clisp.org>
23423
23424         New module 'roundl-ieee'.
23425         * modules/roundl-ieee: New file.
23426         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
23427         test whether roundl works according to ISO C 99 with IEC 60559.
23428         * m4/roundl-ieee.m4: New file.
23429         * modules/roundl-ieee-tests: New file.
23430         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
23431         * tests/test-roundl.c (main): Remove signbit tests.
23432         * modules/roundl-tests (Depends-on): Remove signbit.
23433         * doc/posix-functions/roundl.texi: Mention the new module.
23434
23435 2010-12-21  Bruno Haible  <bruno@clisp.org>
23436
23437         New module 'truncl-ieee'.
23438         * modules/truncl-ieee: New file.
23439         * modules/truncl-ieee-tests: New file.
23440         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
23441         * tests/test-truncl.c (main): Remove signbit tests.
23442         * modules/truncl-tests (Depends-on): Remove signbit.
23443         * doc/posix-functions/truncl.texi: Mention the new module.
23444
23445 2010-12-21  Bruno Haible  <bruno@clisp.org>
23446
23447         New module 'ceill-ieee'.
23448         * modules/ceill-ieee: New file.
23449         * modules/ceill-ieee-tests: New file.
23450         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
23451         * tests/test-ceill.c (main): Remove signbit tests.
23452         * modules/ceill-tests (Depends-on): Remove signbit.
23453         * doc/posix-functions/ceill.texi: Mention the new module.
23454
23455 2010-12-21  Bruno Haible  <bruno@clisp.org>
23456
23457         New module 'floorl-ieee'.
23458         * modules/floorl-ieee: New file.
23459         * modules/floorl-ieee-tests: New file.
23460         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
23461         * tests/test-floorl.c (main): Remove signbit tests.
23462         * modules/floorl-tests (Depends-on): Remove signbit.
23463         * doc/posix-functions/floorl.texi: Mention the new module.
23464
23465 2010-12-21  Bruno Haible  <bruno@clisp.org>
23466
23467         New module 'round-ieee'.
23468         * modules/round-ieee: New file.
23469         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
23470         whether round works according to ISO C 99 with IEC 60559.
23471         * m4/round-ieee.m4: New file.
23472         * modules/round-ieee-tests: New file.
23473         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
23474         * tests/test-round1.c (main): Remove signbit tests.
23475         * modules/round-tests (Depends-on): Remove 'signbit'.
23476         * doc/posix-functions/round.texi: Mention the new module.
23477
23478 2010-12-21  Bruno Haible  <bruno@clisp.org>
23479
23480         New module 'trunc-ieee'.
23481         * modules/trunc-ieee: New file.
23482         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
23483         whether trunc works according to ISO C 99 with IEC 60559.
23484         * m4/trunc-ieee.m4: New file.
23485         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
23486         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
23487         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
23488         * modules/trunc-ieee-tests: New file.
23489         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
23490         * tests/test-trunc1.c (main): Remove signbit tests.
23491         * modules/trunc-tests (Depends-on): Remove 'signbit'.
23492         * doc/posix-functions/trunc.texi: Mention the new module.
23493
23494 2010-12-21  Bruno Haible  <bruno@clisp.org>
23495
23496         New module 'ceil-ieee'.
23497         * modules/ceil-ieee: New file.
23498         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
23499         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
23500         ISO C 99 with IEC 60559.
23501         * m4/ceil-ieee.m4: New file.
23502         * modules/ceil (Files): Add lib/ceil.c.
23503         (Depends-on): Add 'float'.
23504         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23505         * lib/math.in.h (ceil): New declaration.
23506         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
23507         REPLACE_CEIL.
23508         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
23509         * modules/ceil-ieee-tests: New file.
23510         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
23511         * tests/test-math-c++.cc: Check the signature of 'ceil'.
23512         * doc/posix-functions/ceil.texi: Mention the new module.
23513
23514 2010-12-21  Bruno Haible  <bruno@clisp.org>
23515
23516         New module 'floor-ieee'.
23517         * modules/floor-ieee: New file.
23518         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
23519         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
23520         ISO C 99 with IEC 60559.
23521         * m4/floor-ieee.m4: New file.
23522         * modules/floor (Files): Add lib/floor.c.
23523         (Depends-on): Add 'float'.
23524         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23525         * lib/math.in.h (floor): New declaration.
23526         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
23527         REPLACE_FLOOR.
23528         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
23529         * modules/floor-ieee-tests: New file.
23530         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
23531         * tests/test-math-c++.cc: Check the signature of 'floor'.
23532         * doc/posix-functions/floor.texi: Mention the new module.
23533
23534 2010-12-21  Bruno Haible  <bruno@clisp.org>
23535
23536         New module 'roundf-ieee'.
23537         * modules/roundf-ieee: New file.
23538         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
23539         test whether roundf works according to ISO C 99 with IEC 60559.
23540         * m4/roundf-ieee.m4: New file.
23541         * modules/roundf-ieee-tests: New file.
23542         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
23543         * tests/test-roundf1.c (main): Remove signbit tests.
23544         * modules/roundf-tests (Depends-on): Remove 'signbit'.
23545         * doc/posix-functions/roundf.texi: Mention the new module.
23546
23547 2010-12-21  Bruno Haible  <bruno@clisp.org>
23548
23549         New module 'truncf-ieee'.
23550         * modules/truncf-ieee: New file.
23551         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
23552         test whether truncf works according to ISO C 99 with IEC 60559.
23553         * m4/truncf-ieee.m4: New file.
23554         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
23555         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
23556         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
23557         * modules/truncf-ieee-tests: New file.
23558         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
23559         * tests/test-truncf1.c (main): Remove signbit tests.
23560         * modules/truncf-tests (Depends-on): Remove 'signbit'.
23561         * doc/posix-functions/truncf.texi: Mention the new module.
23562
23563 2010-12-21  Bruno Haible  <bruno@clisp.org>
23564
23565         New module 'ceilf-ieee'.
23566         * modules/ceilf-ieee: New file.
23567         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
23568         test whether ceilf works according to ISO C 99 with IEC 60559.
23569         * m4/ceilf-ieee.m4: New file.
23570         * modules/ceilf-ieee-tests: New file.
23571         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
23572         * tests/test-ceilf1.c (main): Remove signbit tests.
23573         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
23574         * doc/posix-functions/ceilf.texi: Mention the new module.
23575
23576 2010-12-21  Bruno Haible  <bruno@clisp.org>
23577
23578         New module 'floorf-ieee'.
23579         * modules/floorf-ieee: New file.
23580         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
23581         test whether floorf works according to ISO C 99 with IEC 60559.
23582         * m4/floorf-ieee.m4: New file.
23583         * modules/floorf-ieee-tests: New file.
23584         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
23585         * tests/test-floorf1.c (main): Remove signbit tests.
23586         * modules/floorf-tests (Depends-on): Remove 'signbit'.
23587         * doc/posix-functions/floorf.texi: Mention the new module.
23588
23589 2010-12-21  Bruno Haible  <bruno@clisp.org>
23590
23591         Support for minus zero in autoconf macros.
23592         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
23593         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
23594         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
23595         * tests/minus-zero.h: Update comments.
23596
23597 2010-12-21  Bruno Haible  <bruno@clisp.org>
23598
23599         Tests for module 'ceil'.
23600         * modules/ceil-tests: New file.
23601         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
23602         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
23603
23604 2010-12-21  Bruno Haible  <bruno@clisp.org>
23605
23606         Tests for module 'floor'.
23607         * modules/floor-tests: New file.
23608         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
23609         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
23610
23611 2010-12-21  Bruno Haible  <bruno@clisp.org>
23612
23613         math: Fix indentation.
23614         * lib/math.in.h (floorf): Fix indentation.
23615
23616 2010-12-21  Bruno Haible  <bruno@clisp.org>
23617
23618         Fix cross-compilation guesses on Solaris.
23619         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
23620         not match "solaris2.10".
23621         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23622         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
23623         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
23624
23625 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
23626
23627         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
23628         This fixes a problem observed with the latest coreutils snapshot
23629         that caused a test to fail on Solaris 8.  src/csplit.c's call
23630         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
23631         earlier, instead of returning the number of bytes that would have
23632         been generated; this causes csplit to incorrectly report memory
23633         exhaustion.
23634         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
23635         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
23636         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
23637         comments to match.
23638         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
23639         Fix typo in matching older versions of Solaris: "solaris2.10"
23640         is matched by the shell pattern "solaris2.[0-9]*".  This matters
23641         only for guessing while cross-compiling.
23642         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
23643
23644 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
23645
23646         ftoastr: fix comment again
23647         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23648         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
23649         Also, simplify example a bit by using flags = 0.
23650
23651 2010-12-20  Bruno Haible  <bruno@clisp.org>
23652
23653         round*, trunc*: Update documentation regarding glibc.
23654         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
23655         * doc/posix-functions/round.texi: Likewise.
23656         * doc/posix-functions/roundl.texi: Likewise.
23657         * doc/posix-functions/truncf.texi: Likewise.
23658         * doc/posix-functions/trunc.texi: Likewise.
23659         * doc/posix-functions/truncl.texi: Likewise.
23660
23661 2010-12-20  Bruno Haible  <bruno@clisp.org>
23662
23663         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
23664         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
23665         * doc/posix-functions/round.texi: Likewise.
23666         * doc/posix-functions/roundl.texi: Likewise.
23667
23668 2010-12-20  Bruno Haible  <bruno@clisp.org>
23669
23670         ttyname_r: Add missing declaration on HP-UX 11.
23671         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
23672         HAVE_TTYNAME_R.
23673         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
23674         declared. Set HAVE_TTYNAME_R always.
23675         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23676         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
23677         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
23678         HAVE_TTYNAME_R.
23679         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
23680
23681 2010-12-20  Bruno Haible  <bruno@clisp.org>
23682
23683         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
23684         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
23685         * doc/posix-functions/getlogin_r.texi: Likewise.
23686         * tests/test-getlogin.c: Include <errno.h>.
23687         (main): Avoid test failure on HP-UX 11.11.
23688         * tests/test-getlogin_r.c (main): Likewise.
23689
23690 2010-12-20  Bruno Haible  <bruno@clisp.org>
23691
23692         getlogin_r: Add missing declaration on HP-UX 11.
23693         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
23694         declared also when it exists as a function.
23695         * doc/posix-functions/getlogin_r.texi: Document this workaround.
23696
23697 2010-12-20  Bruno Haible  <bruno@clisp.org>
23698
23699         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
23700         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
23701         through wcrtomb.
23702
23703 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
23704
23705         ftoastr: fix comment
23706         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23707         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
23708
23709 2010-12-19  Bruno Haible  <bruno@clisp.org>
23710
23711         isnan: Ensure it is a macro.
23712         * lib/math.in.h (isnan): Define as a macro if not already a macro.
23713         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
23714         Solaris.
23715
23716 2010-12-19  Bruno Haible  <bruno@clisp.org>
23717
23718         ldexpl test: Fix link error on OSF/1 5.1.
23719         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
23720
23721 2010-12-19  Bruno Haible  <bruno@clisp.org>
23722
23723         wctype: Make it work in C++ mode on OSF/1 5.1.
23724         * lib/wctype.in.h (iswblank): Declare but not define here.
23725         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
23726         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
23727         * modules/wctype (Files): Add lib/iswblank.c.
23728
23729 2010-12-19  Bruno Haible  <bruno@clisp.org>
23730
23731         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
23732         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
23733         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
23734
23735 2010-12-19  Bruno Haible  <bruno@clisp.org>
23736
23737         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
23738         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
23739         _POSIX_PII_SOCKET.
23740         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
23741         * doc/posix-functions/recvfrom.texi: Likewise.
23742         * doc/posix-functions/send.texi: Likewise.
23743         * doc/posix-functions/sendto.texi: Likewise.
23744
23745 2010-12-19  Bruno Haible  <bruno@clisp.org>
23746
23747         tcgetsid: Add missing declaration on OSF/1 5.1.
23748         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
23749         HAVE_TCGETSID.
23750         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
23751         Don't set HAVE_TCGETSID.
23752         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
23753         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
23754         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
23755         HAVE_TCGETSID.
23756         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
23757
23758 2010-12-19  Bruno Haible  <bruno@clisp.org>
23759
23760         stdio: Fix problem with popen() declaration on OSF/1 5.1.
23761         * lib/stdio.in.h: During the include_next statement, let recursive
23762         includes of this file include only the system header file.
23763
23764 2010-12-19  Bruno Haible  <bruno@clisp.org>
23765
23766         iconv_open: Fix regression from 2010-12-04.
23767         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
23768         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
23769
23770 2010-12-19  Bruno Haible  <bruno@clisp.org>
23771
23772         stdbool test: Avoid a gcc warning.
23773         * tests/test-stdbool.c (main): Fail if e1 is false.
23774         Reported by Jim Meyering.
23775
23776 2010-12-19  Jim Meyering  <meyering@redhat.com>
23777
23778         setenv: restore to working order
23779         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
23780         mistakenly removed.
23781         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
23782         HAVE_SETENV.
23783         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
23784         HAVE_SETENV.
23785
23786 2010-12-19  Bruno Haible  <bruno@clisp.org>
23787
23788         Document some different function declarations on OSF/1 5.1.
23789         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
23790         * doc/posix-functions/inet_ntop.texi: Likewise.
23791         * doc/posix-functions/gethostname.texi: Likewise.
23792         * lib/unistd.in.h (gethostname): Update comment.
23793
23794 2010-12-19  Bruno Haible  <bruno@clisp.org>
23795
23796         doc: Mention vasprintf-posix module.
23797         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
23798         the 'vasprintf-posix' module.
23799         * doc/glibc-functions/vasprintf.texi: Likewise.
23800
23801 2010-12-19  Bruno Haible  <bruno@clisp.org>
23802
23803         unsetenv: Add missing declaration on OSF/1 5.1.
23804         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
23805         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
23806         Don't set HAVE_UNSETENV. In the test program, set _BSD.
23807         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
23808         not HAVE_UNSETENV.
23809         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
23810         HAVE_UNSETENV.
23811         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
23812
23813 2010-12-19  Bruno Haible  <bruno@clisp.org>
23814
23815         setenv: Add missing declaration on OSF/1 5.1.
23816         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
23817         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
23818         declared. Don't set HAVE_SETENV.
23819         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
23820         not HAVE_SETENV.
23821         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
23822         HAVE_SETENV.
23823         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
23824
23825 2010-12-19  Bruno Haible  <bruno@clisp.org>
23826
23827         nl_langinfo tests: Avoid gcc warning.
23828         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
23829
23830 2010-12-19  Bruno Haible  <bruno@clisp.org>
23831
23832         mknod: Avoid error in C++ mode on OSF/1 with GCC.
23833         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
23834         _GL_CXXALIAS_SYS.
23835
23836 2010-12-19  Bruno Haible  <bruno@clisp.org>
23837
23838         stdbool: Relax test.
23839         * tests/test-stdbool.c (e): Don't require that casts from a variable's
23840         address to 'bool' work in static initializer, for compilers other than
23841         GCC.
23842
23843 2010-12-19  Bruno Haible  <bruno@clisp.org>
23844
23845         ftello: Add missing declaration on OSF/1 5.1.
23846         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
23847         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
23848         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
23849         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
23850         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
23851
23852 2010-12-19  Bruno Haible  <bruno@clisp.org>
23853
23854         fseeko: Add missing declaration on OSF/1 5.1.
23855         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
23856         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
23857         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
23858         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
23859         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
23860
23861 2010-12-19  Bruno Haible  <bruno@clisp.org>
23862
23863         fchdir: Add missing declaration on OSF/1 5.1.
23864         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
23865         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
23866         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
23867         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
23868         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
23869
23870 2010-12-19  Bruno Haible  <bruno@clisp.org>
23871
23872         relocatable-prog-wrapper: Separate from relocatable-prog.
23873         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
23874         uninstall-relocwrapper rule here.
23875         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
23876         Reported by Ian Beckwith <ianb@erislabs.net>.
23877
23878 2010-12-19  Bruno Haible  <bruno@clisp.org>
23879
23880         unistr/u8-mbsnlen: Add missing dependency.
23881         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
23882         Reported by Ian Beckwith <ianb@erislabs.net>.
23883
23884 2010-12-19  Bruno Haible  <bruno@clisp.org>
23885
23886         iconv: Make it possible again to use this module without 'iconv-h'.
23887         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
23888         if it is not defined.
23889         Reported by Ian Beckwith <ianb@erislabs.net>.
23890
23891 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
23892
23893         acl: port to Solaris 8 when copying from tmpfs to ufs
23894         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
23895         error number.  Problem observed on Solaris 8 with latest
23896         coreutils, with "mv A B", where A is on a tmpfs file system and B
23897         is on a ufs file system.  This caused coreutils' mv/part-symlink
23898         test to fail.
23899
23900         tests: set fail=0 at start
23901         * tests/init.sh (setup_): Move fail=0 initialization here ...
23902         (mktempd_): ... from here, so that tests can rely on fail being
23903         set to 0 initially.  This fixes a problem in coreutils; see:
23904         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
23905
23906 2010-12-18  Bruno Haible  <bruno@clisp.org>
23907
23908         memmem-simple: Stylistic changes.
23909         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
23910         Fix preprocessor directive indentation.
23911
23912 2010-12-15  Pádraig Brady <P@draigBrady.com>
23913
23914         memmem, memmem-simple: reorganize and expand empty needle check
23915         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
23916         functional checks to memmem-simple so that one has a fully functional
23917         memmem by using just this module.
23918         Restrict the performance only check to the memmem module.
23919         Also expand the empty needle check to ensure the correct
23920         pointer is returned, not just a non NULL pointer.
23921         * doc/glibc-functions/memmem.texi: Rearrange the portability
23922         documentation to correlate with the rearranged checks.
23923         Clarify exactly how the memmem and memmem-simple modules
23924         relate to each other.
23925
23926 2010-12-15  Pádraig Brady <P@draigBrady.com>
23927             Bruno Haible  <bruno@clisp.org>
23928
23929         Improve cross-compilation guesses for uClibc.
23930         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
23931         that uClibc does not have the glibc bug.
23932         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
23933         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
23934
23935 2010-12-14  Eric Blake  <eblake@redhat.com>
23936
23937         configmake: provide fallbacks for oldest supported autotools
23938         * m4/configmake.m4: New file.
23939         * modules/configmake (Files): Ship it.
23940         (configure.ac): Use it to guarantee fallbacks.
23941
23942 2010-12-13  Pádraig Brady <P@draigBrady.com>
23943
23944         read-file: Improve handling of large files
23945         * lib/read-file.c (fread_file): Minimize realloc()s
23946         for regular files, and better manage sizes around SIZE_MAX.
23947
23948 2010-12-13  Eric Blake  <eblake@redhat.com>
23949
23950         cloexec, fcntl: relax license
23951         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
23952         consent from all contributors.
23953         * modules/fcntl (License): Likewise.
23954
23955 2010-12-10  Bruno Haible  <bruno@clisp.org>
23956
23957         Tests for module 'pipe-posix'.
23958         * modules/pipe-posix-tests: New file.
23959         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
23960
23961 2010-12-10  Bruno Haible  <bruno@clisp.org>
23962
23963         pipe-posix: Make it work in C++ mode.
23964         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
23965         (pipe): Use common idiom, not a macro definition.
23966         * lib/pipe.c: New file.
23967         * m4/pipe.m4: New file.
23968         * modules/pipe-posix (Description): Enhance.
23969         (Files): Add lib/pipe.c, m4/pipe.m4.
23970         (configure.ac): Invoke gl_FUNC_PIPE.
23971         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
23972         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
23973         * tests/test-unistd-c++.cc: Check the signature of pipe.
23974
23975 2010-12-10  Bruno Haible  <bruno@clisp.org>
23976
23977         Rename module 'pipe' to 'spawn-pipe'.
23978         * modules/spawn-pipe: New file, renamed from modules/pipe.
23979         (Files, configure.ac, Makefile.am): Update.
23980         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
23981         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
23982         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
23983         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
23984         "spawn-pipe.h" instead of "pipe.h".
23985         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
23986         to gl_SPAWN_PIPE.
23987         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
23988         (Files, Makefile.am): Update.
23989         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
23990         Update.
23991         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
23992         Include "spawn-pipe.h" instead of "pipe.h".
23993         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
23994         * lib/javacomp.c: Likewise.
23995         * lib/javaversion.c: Likewise.
23996         * lib/pipe-filter-gi.c: Likewise.
23997         * lib/pipe-filter-ii.c: Likewise.
23998         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
23999         * modules/javacomp (Depends-on): Likewise.
24000         * modules/javaversion (Depends-on): Likewise.
24001         * modules/pipe-filter-gi (Depends-on): Likewise.
24002         * modules/pipe-filter-ii (Depends-on): Likewise.
24003         * MODULES.html.sh (Executing programs): Update.
24004         * NEWS: Mention the change.
24005
24006 2010-12-10  Eric Blake  <eblake@redhat.com>
24007
24008         pipe-posix: new module
24009         * modules/pipe-posix: New file.
24010         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
24011         (gl_UNISTD_H): Check for declaration.
24012         * modules/unistd (Makefile.am): Substitute it.
24013         * lib/unistd.in.h (pipe): Provide it for mingw.
24014         * doc/posix-functions/pipe.texi (pipe): Update documentation.
24015         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
24016
24017 2010-12-07  Bruno Haible  <bruno@clisp.org>
24018
24019         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
24020         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
24021         u8_strcmp_gnu.
24022         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
24023
24024 2010-12-06  Bruno Haible  <bruno@clisp.org>
24025
24026         Update internal documentation.
24027         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
24028
24029 2010-12-04  Bruno Haible  <bruno@clisp.org>
24030
24031         Put more information about failed tests into the test return codes.
24032         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
24033         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
24034         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
24035         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
24036         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
24037         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24038         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24039         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
24040         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
24041         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24042         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
24043         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
24044         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
24045         * m4/stdint.m4 (gl_STDINT_H): Likewise.
24046         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
24047         returns a bit mask.
24048         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
24049         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
24050         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
24051         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
24052         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
24053         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
24054         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
24055         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
24056         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
24057         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
24058         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
24059         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
24060         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
24061         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
24062         * m4/link.m4 (gl_FUNC_LINK): Likewise.
24063         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
24064         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
24065         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
24066         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
24067         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
24068         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24069         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
24070         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
24071         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
24072         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
24073         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
24074         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
24075         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
24076         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
24077         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
24078         gl_PRINTF_PRECISION): Likewise.
24079         * m4/regex.m4 (gl_REGEX): Likewise.
24080         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
24081         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
24082         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
24083         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24084         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
24085         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24086         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
24087         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
24088         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24089         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24090         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
24091         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
24092         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
24093         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
24094         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24095         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24096         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
24097         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
24098         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
24099         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
24100         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
24101         enumerated value.
24102         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
24103
24104 2010-12-04  Bruno Haible  <bruno@clisp.org>
24105
24106         Update for Solaris 11 2010-11.
24107         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
24108         Express, released in November 2010.
24109
24110 2010-12-04  Bruno Haible  <bruno@clisp.org>
24111
24112         nproc: Relax license.
24113         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
24114         and Paul Eggert.
24115         Requested by Ludovic Courtès <ludo@gnu.org>.
24116
24117 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
24118
24119         utimecmp: fine-grained src to nearby coarse-grained dest
24120
24121         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
24122         and the source is on a file system with higher-resolution time
24123         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
24124         not work, and the time stamps are close together, the algorithm to
24125         determine the exact resolution from the read-back mtime was buggy:
24126         it had a "!=" where it should have had an "==".  This bug has been
24127         in the code ever since it was introduced to gnulib.
24128         Problem reported by Dan Jacobson in
24129         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
24130
24131 2010-11-30  Bruno Haible  <bruno@clisp.org>
24132
24133         strerror_r-posix: Fix autoconf test.
24134         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
24135
24136 2010-11-28  Bruno Haible  <bruno@clisp.org>
24137             Paul Eggert  <eggert@cs.ucla.edu>
24138
24139         Tests for module 'getdomainname'.
24140         * modules/getdomainname-tests: New file.
24141         * tests/test-getdomainname.c: New file, based on
24142         tests/test-gethostname.c.
24143
24144 2010-11-28  Bruno Haible  <bruno@clisp.org>
24145             Paul Eggert  <eggert@cs.ucla.edu>
24146
24147         getdomainname: Use the system function when possible.
24148         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
24149         (getdomainname): Replace if needed. Provide the declaration if it is
24150         missing. Don't use _GL_CXXALIAS_SYS_CAST.
24151         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
24152         (getdomainname): When the system has getdomainname, call the system
24153         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
24154         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
24155         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
24156         found in libnsl. Look for the declaration also in <netdb.h>. Replace
24157         the function if its second argument is of type 'int' or if it is found
24158         in libnsl.
24159         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
24160         <sys/systeminfo.h> and sysinfo().
24161         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
24162         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24163         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
24164         HAVE_GETDOMAINNAME.
24165         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
24166         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
24167         * doc/glibc-functions/getdomainname.texi: Document the problems with
24168         the getdomainname declaration.
24169
24170 2010-11-28  Bruno Haible  <bruno@clisp.org>
24171
24172         sys_socket: Ensure ss_family field on AIX.
24173         * lib/sys_socket.in.h (ss_family): New macro definition.
24174         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
24175         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
24176         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
24177         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
24178         * modules/sys_socket (Makefile.am): Substitute
24179         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
24180         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
24181
24182 2010-11-27  Bruno Haible  <bruno@clisp.org>
24183
24184         readline: Improve configure output.
24185         * m4/readline.m4 (gl_FUNC_READLINE): Make the
24186         "checking for readline..." result understandable.
24187
24188 2010-11-27  Bruno Haible  <bruno@clisp.org>
24189
24190         *printf-posix: Detect a bug on Solaris 10/x86.
24191         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
24192         for floating-point output.
24193         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
24194         directive.
24195         * tests/test-snprintf-posix.h (test_function): Likewise.
24196         * tests/test-sprintf-posix.h (test_function): Likewise.
24197         * tests/test-vasprintf-posix.c (test_function): Likewise.
24198         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
24199         * doc/posix-functions/printf.texi: Likewise.
24200         * doc/posix-functions/snprintf.texi: Likewise.
24201         * doc/posix-functions/sprintf.texi: Likewise.
24202         * doc/posix-functions/vfprintf.texi: Likewise.
24203         * doc/posix-functions/vprintf.texi: Likewise.
24204         * doc/posix-functions/vsnprintf.texi: Likewise.
24205         * doc/posix-functions/vsprintf.texi: Likewise.
24206         * doc/glibc-functions/obstack_printf.texi: Likewise.
24207         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
24208
24209 2010-11-27  Bruno Haible  <bruno@clisp.org>
24210
24211         Fix link error when module libunistring-optional is in use.
24212         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
24213         * modules/striconveha-tests (Makefile.am): Likewise.
24214
24215 2010-11-27  Bruno Haible  <bruno@clisp.org>
24216
24217         regex: Mention link dependencies.
24218         * modules/regex (Link): New section.
24219         * modules/rpmatch (Link): Likewise.
24220         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
24221
24222 2010-11-27  Bruno Haible  <bruno@clisp.org>
24223
24224         ftoastr: Fix compilation error on Solaris.
24225         * lib/ftoastr.c: Include <config.h>.
24226
24227 2010-11-27  Bruno Haible  <bruno@clisp.org>
24228
24229         getloadavg: Update documentation.
24230         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
24231
24232 2010-11-27  Bruno Haible  <bruno@clisp.org>
24233
24234         sys_socket: Fix test whether the functions are declared.
24235         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
24236         not <sys/select.h>.
24237
24238 2010-11-27  Bruno Haible  <bruno@clisp.org>
24239
24240         getpass: Make sure to get system declaration on some platforms.
24241         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
24242         gl_USE_SYSTEM_EXTENSIONS.
24243         * modules/getpass (Depends-on): Add extensions.
24244
24245 2010-11-26  Bruno Haible  <bruno@clisp.org>
24246
24247         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
24248         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
24249         'iconv' module is present.
24250         (ICONV_CONST): New macro.
24251         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
24252         ICONV_CONST.
24253         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
24254         set ICONV_CONST.
24255         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
24256         here.
24257         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
24258         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
24259         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
24260         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
24261         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
24262         present.
24263
24264 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
24265
24266         ftoastr: comment fix
24267         * lib/ftoastr.c: "little" -> "little or no" in comment
24268
24269 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
24270
24271         stdint: port to GCC 4.3 + OSX + Octave
24272         On this platform, stdint.h is buggy and defines int64_t to long
24273         long int.  The replacement defined it to long int, causing
24274         problems with C++ style name mangling.  Instead, trust the system
24275         definition if INT64_MAX is defined, and likewise for the unsigned
24276         variant.   Problem reported by Jarno Rajahalme in
24277         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
24278         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
24279         and don't mess with int64_t and INT64_MAX in this case.
24280         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
24281
24282 2010-11-24  Bruno Haible  <bruno@clisp.org>
24283
24284         doc: Corrections regarding MacOS X 10.4 and 10.5.
24285         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
24286         MacOS X.
24287         Reported by Simon Josefsson.
24288
24289 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
24290
24291         Uninstall ".bin" files installed by relocwrapper.
24292         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
24293         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
24294         unless it is already there.
24295
24296 2010-11-21  Bruno Haible  <bruno@clisp.org>
24297
24298         Update for NetBSD 5.0.
24299         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24300         NetBSD; the test fails on NetBSD 5.0.
24301         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24302         about NetBSD.
24303
24304 2010-11-21  Bruno Haible  <bruno@clisp.org>
24305
24306         Update for HP-UX 11.23 and HP-UX 11.31.
24307         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
24308         HP-UX.
24309
24310 2010-11-21  Bruno Haible  <bruno@clisp.org>
24311
24312         Update for MacOS X 10.5.
24313         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24314         MacOS X; the test fails on MacOS X 10.5.8.
24315         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24316         about MacOS X.
24317
24318 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
24319
24320         bootstrap: add bootstrap_sync option.
24321         See discussion at
24322         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
24323         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
24324         * build-aux/bootstrap: Accept --bootstrap-sync to update
24325         bootstrap if it is not identical to the local gnulib's
24326         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
24327         enable this by default.  Accept --no-bootstrap-sync to disable
24328         it.
24329
24330 2010-11-20  Bruno Haible  <bruno@clisp.org>
24331
24332         Ensure that <features.h> is included before __GLIBC__ is tested.
24333         * lib/printf-parse.h: Include <features.h>.
24334         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
24335         Reported by Mike Frysinger <vapier@gentoo.org>.
24336
24337         Ensure that <features.h> is included before __GLIBC__ is tested.
24338         * lib/wchar.in.h: Include <features.h>.
24339         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
24340         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
24341         Reported by Mike Frysinger <vapier@gentoo.org>.
24342
24343         Ensure that <features.h> is included before __GLIBC__ is tested.
24344         * lib/arpa_inet.in.h: Include <features.h>.
24345         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
24346         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
24347         Reported by Mike Frysinger <vapier@gentoo.org>.
24348
24349         Ensure that <features.h> is included before __GLIBC__ is tested.
24350         * build-aux/link-warning.h: Include <features.h>.
24351         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
24352         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
24353         Reported by Mike Frysinger <vapier@gentoo.org>.
24354
24355         Ensure that <features.h> is included before __GLIBC__ is tested.
24356         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
24357         Reported by Mike Frysinger <vapier@gentoo.org>.
24358
24359 2010-11-20  Bruno Haible  <bruno@clisp.org>
24360
24361         memmem: Fix autoconf test.
24362         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
24363
24364 2010-11-20  Bruno Haible  <bruno@clisp.org>
24365
24366         Port to uClibc.
24367         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
24368         * lib/fcntl.in.h: Likewise.
24369         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
24370         * lib/mbrtowc.c (mbrtowc): Likewise.
24371         * lib/relocatable.c (find_shared_library_fullname): Likewise.
24372         * lib/strerror_r.c: Likewise.
24373         * lib/unistr/u8-strnlen.c: Likewise.
24374         * lib/vasnprintf.c (decimal_point_char): Likewise.
24375         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
24376         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
24377         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
24378         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
24379         * tests/test-sigaction.c (handler, main): Likewise.
24380         * lib/freading.h: Treat uClibc like a non-glibc platform.
24381         * lib/freading.c: Likewise.
24382         * lib/gettext.h: Likewise.
24383         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
24384         Likewise.
24385         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
24386         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
24387         * lib/propername.c (proper_name_utf8): Likewise.
24388         * lib/spawn.in.h: Likewise.
24389         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
24390         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
24391         mem_cd_iconveh_internal): Likewise.
24392         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
24393         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
24394         strstr, strcasestr): Likewise.
24395         * lib/unicodeio.c (unicode_to_mb): Likewise.
24396         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
24397         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
24398         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
24399         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
24400         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
24401         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
24402         * lib/unistr/u8-stpncpy.c: Likewise.
24403         * lib/vasnprintf.c (VASNPRINTF): Likewise.
24404         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
24405         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24406         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24407         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
24408         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
24409         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
24410         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
24411         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
24412         Likewise.
24413         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24414         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24415         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
24416         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24417         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24418         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24419         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24420         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
24421         * tests/test-getopt.h (OPTIND_MIN): Likewise.
24422         * tests/test-striconveha.c (main): Likewise.
24423         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24424         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
24425         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
24426         * doc/posix-functions/getline.texi: Likewise.
24427         Reported by Mike Frysinger <vapier@gentoo.org>.
24428
24429 2010-11-20  Bruno Haible  <bruno@clisp.org>
24430
24431         nproc: Fix condition.
24432         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
24433         HAVE_PTHREAD_AFFINITY_NP.
24434
24435 2010-11-20  Bruno Haible  <bruno@clisp.org>
24436
24437         Fix a comment.
24438         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
24439
24440 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
24441
24442         ftoastr: don't assume snprintf
24443         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
24444         Implement a subset of snprintf here, by using sprintf safely.
24445         * modules/ftoastr (Depends-on): Remove snprintf.
24446
24447 2010-11-19  Jim Meyering  <meyering@redhat.com>
24448
24449         test-rename.h: fix compilation failure
24450         * tests/test-rename.h (test_rename): Add omitted "}".
24451
24452 2010-11-17  Jim Meyering  <meyering@redhat.com>
24453
24454         maint.mk: add a URL discussing the no-@acronym policy
24455         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
24456
24457 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
24458
24459         ftoastr: depend on snprintf, improve comments
24460         * lib/ftoastr.c: Also mention Loitsch's draft.
24461         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
24462         needed in the current implementation, but it might simplify
24463         speeding up the code later.
24464         * modules/ftoastr: Depend on snprintf; this improves portability.
24465         Suggested by Bruno Haible in the same email.
24466
24467         ftoastr: port to hosts lacking strtof and strtold
24468         Problem reported by Bruno Haible in
24469         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
24470         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
24471         environment and strtold (and presumably strtof) are not available.
24472         * modules/ftoastr (Files): Add m4/c-strtod.m4.
24473         (configure.ac): Require gl_C99_STRTOLD.
24474
24475 2010-11-18  Bruno Haible  <bruno@clisp.org>
24476
24477         c-strtold: Avoid link error on AIX 7.
24478         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
24479         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
24480         (gl_C_STRTOLD): Test whether strtold_l exists.
24481         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24482
24483 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
24484
24485         intprops: new macro INT_BITS_STRLEN_BOUND
24486         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
24487         ftoastr.h.  This exposes an internal of intprops.h that was formerly
24488         not exposed.  Also, it uses a slightly tighter bound than before;
24489         though this makes no practical difference, we might as well be as
24490         tight as we easily can.
24491
24492         ftoastr: new module, for lossless conversion of floats to short strings
24493         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
24494         * modules/ftoastr: New files.
24495
24496 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
24497
24498         bootstrap: port to Solaris sed
24499         * build-aux/bootstrap (get_version): Port to Solaris sed.
24500         See Ralf Wildenhues's note in
24501         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
24502
24503 2010-11-14  Jim Meyering  <meyering@redhat.com>
24504
24505         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
24506         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
24507         and move definition closer to sole use.
24508
24509 2010-11-13  Jim Meyering  <meyering@redhat.com>
24510
24511         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
24512         Now we require at least autoconf-2.59, which means the work-around
24513         is no longer needed.
24514         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
24515         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24516         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
24517         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
24518         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
24519
24520 2010-11-13  Bruno Haible  <bruno@clisp.org>
24521
24522         rename, renameat: Avoid test failures at NFS mounted locations.
24523         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
24524         functions.
24525         (test_rename): Use assert_nonexistent.
24526         * tests/test-rename.c: Include <dirent.h>.
24527         * tests/test-renameat.c: Likewise.
24528         Reported by Gary V. Vaughan <gary@gnu.org>.
24529
24530         rename, renameat: Document Linux bug with NFS
24531         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
24532         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
24533         * doc/posix-functions/renameat.texi: Likewise.
24534         Suggested by Eric Blake.
24535
24536 2010-11-13  Bruno Haible  <bruno@clisp.org>
24537
24538         rename test: Add comments.
24539         * tests/test-rename.h (test_rename): Add structure and comments.
24540
24541 2010-11-13  Eric Blake  <eblake@redhat.com>
24542
24543         maintainer-makefile: cover a few more files
24544         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
24545         scripts generated within C files, for libvirt.
24546
24547 2010-11-13  Bruno Haible  <bruno@clisp.org>
24548
24549         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
24550         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
24551         character, return the number of bytes that belong together, not always
24552         1.
24553         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
24554         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
24555         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
24556         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
24557         number of bytes of an invalid character.
24558         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
24559         (main): Invoke it.
24560         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
24561         results.
24562         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
24563         malformed byte sequences.
24564         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
24565         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
24566         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
24567         Reported by Ben Pfaff and Paolo Bonzini.
24568
24569 2010-11-13  Bruno Haible  <bruno@clisp.org>
24570
24571         openat: Work around glibc bug with fchownat() and empty file names.
24572         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
24573         (gl_FUNC_FCHOWNAT): Invoke it.
24574         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
24575         * doc/posix-functions/fchownat.texi: Document the glibc bug.
24576         Reported by Gary V. Vaughan <gary@gnu.org>.
24577
24578 2010-11-13  Bruno Haible  <bruno@clisp.org>
24579
24580         openat: Ensure autoconf macro ordering.
24581         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
24582         gl_USE_SYSTEM_EXTENSIONS.
24583         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
24584
24585 2010-11-13  Bruno Haible  <bruno@clisp.org>
24586
24587         Update comments.
24588         * lib/unistr/u8-check.c: Update file name in comments.
24589         * lib/unistr/u8-mblen.c: Likewise.
24590         * lib/unistr/u8-prev.c: Likewise.
24591         * lib/unistr/u8-strmblen.c: Likewise.
24592         * lib/unistr/u8-strmbtouc.c: Likewise.
24593
24594 2010-11-13  Jim Meyering  <meyering@redhat.com>
24595
24596         tests: avoid test failure on Solaris 10 due to lack of PATH export
24597         * tests/test-update-copyright.sh: Don't forget to export PATH.
24598
24599         init.sh: ensure that IFS is defined, just in case...
24600         * tests/init.sh (setup_): Ensure that IFS is defined,
24601         so that saving and restoring it works as expected.  This
24602         appears to be useful at least for an old version of dash
24603         from a long time ago (RH 6).  See here for details:
24604         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
24605
24606         maint.mk: tighten "test a == b" check
24607         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
24608         test to files that contain something like #!/bin/sh.
24609         Without this, coreutils would get two false positives in
24610         the comments of C source files.
24611
24612 2010-11-12  Eric Blake  <eblake@redhat.com>
24613
24614         bootstrap: fix typo in previous attempt
24615         * build-aux/bootstrap (buildreq): Correct the grouping.
24616         Reported by Paul Eggert.
24617
24618         maintainer-makefile: prohibit test x == x
24619         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
24620         Based on a report by Matthias Bolte.
24621
24622         bootstrap: allow FreeBSD gzip
24623         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
24624         which has no '.' and goes to stderr.
24625         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
24626         Reported by Matthias Bolte.
24627
24628         maintainer-makefile: check for i18n setup
24629         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
24630         will likely work.
24631
24632 2010-11-12  Bruno Haible  <bruno@clisp.org>
24633
24634         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
24635         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
24636         * lib/nanosleep.c (nanosleep): Likewise.
24637
24638 2010-11-11  Bruno Haible  <bruno@clisp.org>
24639
24640         fcntl-h: Fix for use of C++ on glibc systems.
24641         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
24642         also on glibc systems in C++ mode.
24643         Reported by Gary V. Vaughan <gary@gnu.org>.
24644
24645 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24646
24647         mknod: avoid false failure with dash
24648         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
24649
24650 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
24651
24652         unlink: Fix "is it should" typo in diagnostic.
24653         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
24654         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
24655
24656 2010-11-11  Bruno Haible  <bruno@clisp.org>
24657
24658         Tests for module 'strerror_r-posix'.
24659         * modules/strerror_r-posix-tests: New file.
24660         * tests/test-strerror_r.c: New file.
24661         * tests/test-string-c++.cc: Check the signature of strerror_r.
24662
24663         New module 'strerror_r-posix'.
24664         * lib/string.in.h (strerror_r): New declaration.
24665         * lib/strerror_r.c: New file.
24666         * m4/strerror_r.m4: New file.
24667         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
24668         of strerror_r.
24669         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
24670         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24671         * modules/strerror_r-posix: New file.
24672         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
24673         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24674         * doc/posix-functions/strerror_r.texi: Mention the new module and the
24675         portability problems.
24676
24677 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
24678
24679         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
24680         line is also considered for output. Quoted function name in shell
24681         command, so temporary files for functions like MyClass::operator()
24682         are removed correctly without errors.
24683
24684 2010-11-09  Bruno Haible  <bruno@clisp.org>
24685
24686         * doc/posix-functions/strerror.texi: List more failing platforms.
24687
24688         * doc/posix-functions/strerror.texi: Add a comment.
24689
24690 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
24691
24692         fdopendir: fix bug on MacOS X when low on file descriptors
24693
24694         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
24695         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
24696         All callers changed.
24697         (fdopendir): Invoke save_cwd at the top level, not after using
24698         multiple dup() calls to use up file descriptors.  Then retry
24699         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
24700         less than the maximum number of open file descriptors, because
24701         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
24702         on Mac OS X 10.6.4 for tar 1.24
24703         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
24704         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
24705         and for tar 1.25
24706         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
24707
24708 2010-11-07  Bruno Haible  <bruno@clisp.org>
24709
24710         vasnprintf: Support I flag on glibc systems.
24711         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
24712         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
24713         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
24714         snprintf function.
24715         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
24716         glibc systems.
24717         * tests/test-vasnprintf-posix3.c: New file.
24718         * modules/vasnprintf-posix-tests (Files): Add it.
24719         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
24720
24721 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24722
24723         [html] Fix copy/paste bug: Use unique name for compiler warnings.
24724         * MODULES.html.sh: For compiler warnings, use name
24725         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
24726
24727 2010-11-05  Eric Blake  <eblake@redhat.com>
24728
24729         ceil, floor: avoid spurious failure with icc
24730         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
24731         [denormals-as-zero] when optimizing without -mieee-fp option.
24732         * tests/test-floorf2.c (floorf_reference): Likewise.
24733         * tests/test-ceilf1.c (dummy): New function.
24734         (main): Use it to outsmart icc's optimization.
24735         * tests/test-floorf1.c (dummy, main): Likewise.
24736
24737         tests: require working signbit
24738         * modules/ceilf-tests (Depends-on): Add signbit.
24739         * modules/ceill-tests (Depends-on): Likewise.
24740         * modules/floorf-tests (Depends-on): Likewise.
24741         * modules/floorl-tests (Depends-on): Likewise.
24742         * modules/round-tests (Depends-on): Likewise.
24743         * modules/roundf-tests (Depends-on): Likewise.
24744         * modules/roundl-tests (Depends-on): Likewise.
24745         * modules/trunc-tests (Depends-on): Likewise.
24746         * modules/truncf-tests (Depends-on): Likewise.
24747         * modules/truncl-tests (Depends-on): Likewise.
24748
24749         strtod: work around icc bug
24750         * lib/strtod.c (minus_zero): Define to working value.
24751         (strtod): Use it to avoid icc bug.
24752
24753         copysign: enhance tests
24754         * modules/copysign-tests (Files): Add minus-zero.h.
24755         * tests/test-copysign.c (main): Also test zeros.
24756
24757 2010-11-04  Eric Blake  <eblake@redhat.com>
24758
24759         ceil, floor, round, trunc: enhance tests of -0
24760         * tests/test-ceilf1.c (main): Ensure correct sign of result.
24761         * tests/test-ceill.c (main): Likewise.
24762         * tests/test-floorf1.c (main): Likewise.
24763         * tests/test-floorl.c (main): Likewise.
24764         * tests/test-round1.c (main): Likewise.
24765         * tests/test-roundf1.c (main): Likewise.
24766         * tests/test-roundl.c (main): Likewise.
24767         * tests/test-trunc1.c (main): Likewise.
24768         * tests/test-truncf1.c (main): Likewise.
24769         * tests/test-truncl.c (main): Likewise.
24770
24771 2010-11-04  Eric Blake  <eblake@redhat.com>
24772
24773         frexp, tests: work around ICC bug with -zero
24774         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
24775         works with more compilers.
24776         * tests/minus-zero.h: New file.
24777         * modules/ceilf-tests (Files): Include it.
24778         * modules/ceill-tests (Files): Likewise.
24779         * modules/floorf-tests (Files): Likewise.
24780         * modules/floorl-tests (Files): Likewise.
24781         * modules/frexp-nolibm-tests (Files): Likewise.
24782         * modules/frexp-tests (Files): Likewise.
24783         * modules/frexpl-nolibm-tests (Files): Likewise.
24784         * modules/frexpl-tests (Files): Likewise.
24785         * modules/isnan-tests (Files): Likewise.
24786         * modules/isnand-nolibm-tests (Files): Likewise.
24787         * modules/isnand-tests (Files): Likewise.
24788         * modules/isnanf-nolibm-tests (Files): Likewise.
24789         * modules/isnanf-tests (Files): Likewise.
24790         * modules/isnanl-nolibm-tests (Files): Likewise.
24791         * modules/isnanl-tests (Files): Likewise.
24792         * modules/round-tests (Files): Likewise.
24793         * modules/roundf-tests (Files): Likewise.
24794         * modules/roundl-tests (Files): Likewise.
24795         * modules/ldexpl-tests (Files): Likewise.
24796         * modules/signbit-tests (Files): Likewise.
24797         * modules/snprintf-posix-tests (Files): Likewise.
24798         * modules/sprintf-posix-tests (Files): Likewise.
24799         * modules/strtod-tests (Files): Likewise.
24800         * modules/trunc-tests (Files): Likewise.
24801         * modules/truncf-tests (Files): Likewise.
24802         * modules/truncl-tests (Files): Likewise.
24803         * modules/vsnprintf-posix-tests (Files): Likewise.
24804         * modules/vsprintf-posix-tests (Files): Likewise.
24805         * modules/vasnprintf-posix-tests (Files): Likewise.
24806         * modules/vasprintf-posix-tests (Files): Likewise.
24807         * tests/test-ceilf1.c (main): Use it.
24808         * tests/test-ceill.c (main): Likewise.
24809         * tests/test-floorf1.c (main): Likewise.
24810         * tests/test-floorl.c (main): Likewise.
24811         * tests/test-frexp.c (main): Likewise.
24812         * tests/test-frexpl.c (main): Likewise.
24813         * tests/test-isnan.c (main): Likewise.
24814         * tests/test-isnand.h (main): Likewise.
24815         * tests/test-isnanf.h (main): Likewise.
24816         * tests/test-isnanl.h (main): Likewise.
24817         * tests/test-ldexpl.c (main): Likewise.
24818         * tests/test-round.c (main): Likewise.
24819         * tests/test-roundf.c (main): Likewise.
24820         * tests/test-roundl.c (main): Likewise.
24821         * tests/test-signbit.c (test_signbitf, test_signbitd)
24822         (test_signbitl): Likewise.
24823         * tests/test-snprintf-posix.h (test_function): Likewise.
24824         * tests/test-sprintf-posix.h (test_function): Likewise.
24825         * tests/test-strtod.c (main): Likewise.
24826         * tests/test-trunc1.c (main): Likewise.
24827         * tests/test-truncf1.c (main): Likewise.
24828         * tests/test-truncl.c (main): Likewise.
24829
24830         isnanl: work around icc bug
24831         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
24832
24833 2010-11-03  Eric Blake  <eblake@redhat.com>
24834
24835         tests: fix compiler warnings
24836         * tests/test-getopt.h (test_getopt): Fix condition.
24837         * tests/test-getopt_long.h (test_getopt_long): Likewise.
24838         * tests/test-pipe2.c (main): Likewise.
24839         * tests/test-quotearg-simple.c (main): Avoid icc warning.
24840
24841         utimens: fix broken m4 test
24842         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
24843
24844 2010-10-28  Bruno Haible  <bruno@clisp.org>
24845
24846         posix_spawn*, getdtablesize: Relax license.
24847         * modules/posix_spawn (License): Change to LGPLv2+.
24848         * modules/posix_spawnp (License): Likewise.
24849         * modules/posix_spawn-internal (License): Likewise.
24850         * modules/posix_spawnattr_init (License): Likewise.
24851         * modules/posix_spawnattr_getflags (License): Likewise.
24852         * modules/posix_spawnattr_setflags (License): Likewise.
24853         * modules/posix_spawnattr_getpgroup (License): Likewise.
24854         * modules/posix_spawnattr_setpgroup (License): Likewise.
24855         * modules/posix_spawnattr_getschedparam (License): Likewise.
24856         * modules/posix_spawnattr_setschedparam (License): Likewise.
24857         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
24858         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
24859         * modules/posix_spawnattr_getsigdefault (License): Likewise.
24860         * modules/posix_spawnattr_setsigdefault (License): Likewise.
24861         * modules/posix_spawnattr_getsigmask (License): Likewise.
24862         * modules/posix_spawnattr_setsigmask (License): Likewise.
24863         * modules/posix_spawnattr_destroy (License): Likewise.
24864         * modules/posix_spawn_file_actions_init (License): Likewise.
24865         * modules/posix_spawn_file_actions_addclose (License): Likewise.
24866         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
24867         * modules/posix_spawn_file_actions_addopen (License): Likewise.
24868         * modules/posix_spawn_file_actions_destroy (License): Likewise.
24869         * modules/getdtablesize (License): Likewise.
24870         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
24871
24872 2010-10-26  Bruno Haible  <bruno@clisp.org>
24873
24874         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
24875         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
24876         Cygwin and mingw.
24877         Suggested by Eric Blake.
24878
24879 2010-10-26  Bruno Haible  <bruno@clisp.org>
24880
24881         stdio: Work around compilation error due to renameat() on Solaris 10.
24882         * lib/stdio.in.h: Include <unistd.h> on Solaris.
24883         * lib/renameat.c: Don't include <unistd.h> here.
24884         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
24885         Reported by Paul Eggert and Eric Blake.
24886
24887 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
24888
24889         renameat: port to Solaris 10, which declares renameat in unistd.h
24890
24891         * lib/renameat.c: Include unistd.h before stdio.h, because
24892         Solaris 10 declares renameat in unistd.h.  Problem encountered
24893         when building GNU tar 1.24 on Solaris 10.
24894
24895 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24896
24897         fdopendir: fix C89 compilation
24898         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
24899         compilers.
24900
24901 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
24902
24903         inttostr: simplify by removing unnecessary redundancy
24904         * lib/anytostr.c: Don't include verify.h.
24905         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
24906         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
24907         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
24908         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
24909         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
24910         Likewise.
24911         * modules/inttostr (Depends-on): Remove 'verify'.
24912
24913 2010-10-23  Bruno Haible  <bruno@clisp.org>
24914
24915         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
24916         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
24917         Reported by Eric Blake.
24918
24919 2010-10-23  Bruno Haible  <bruno@clisp.org>
24920
24921         Tests: Fix LOCALE_JA on MirBSD 10.
24922         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
24923         to an UTF-8 locale.
24924         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
24925         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24926         Reported by Eric Blake.
24927
24928 2010-10-21  Bruno Haible  <bruno@clisp.org>
24929
24930         nl_langinfo test: Avoid test failure on NetBSD 5.
24931         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
24932         Reported by Eric Blake.
24933
24934 2010-10-21  Eric Blake  <eblake@redhat.com>
24935
24936         c-stack: work around libsigsegv 2.8 bug
24937         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
24938         overflow on at least PowerPC64.
24939
24940 2010-10-17  Bruno Haible  <bruno@clisp.org>
24941
24942         userspec: Drop redundant file.
24943         * modules/userspec (Files): Remove lib/inttostr.h.
24944
24945 2010-10-17  Bruno Haible  <bruno@clisp.org>
24946
24947         nl_langinfo tests: Silence some warnings.
24948         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
24949         Reported by Jim Meyering.
24950
24951 2010-10-17  Bruno Haible  <bruno@clisp.org>
24952
24953         Make use of GCC's attribute __alloc_size__.
24954         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
24955         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
24956         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
24957         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
24958         __alloc_size__.
24959         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24960         Suggested by Jim Meyering.
24961
24962 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
24963
24964         bootstrap: anchor .gitignore entries.
24965         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
24966         with...
24967         (insert_vc_ignore): ... this new function, which prepends `/' to
24968         all .gitignore entries before passing them to
24969         insert_sorted_if_absent.
24970
24971 2010-10-16  Bruno Haible  <bruno@clisp.org>
24972
24973         nextafter: Fix configure check.
24974         * modules/nextafter (configure.ac): Correct expected prototype.
24975
24976 2010-10-16  Bruno Haible  <bruno@clisp.org>
24977
24978         termios: Update documentation.
24979         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
24980
24981 2010-10-16  Bruno Haible  <bruno@clisp.org>
24982
24983         tests: Make them compile with TinyCC.
24984         * tests/test-strstr.c (main): Remove parentheses around array
24985         initializer.
24986
24987 2010-10-15  Eric Blake  <eblake@redhat.com>
24988
24989         ignore-value: make header idempotent
24990         * lib/ignore-value.h: Add double-inclusion guards.
24991         Reported by Stefan Berger.
24992
24993 2010-10-15  Jim Meyering  <meyering@redhat.com>
24994
24995         GNUmakefile: handle "stable" target, not "major"
24996         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
24997         lists in maint.mk and announce-gen.  Without this, "make stable"
24998         would fail to ensure that $(VERSION) is up to date.
24999
25000 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
25001
25002         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
25003         & co.
25004
25005 2010-10-14  Bruno Haible  <bruno@clisp.org>
25006
25007         vasnprintf: Don't set errno to 0.
25008         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
25009         block that sets it to 0.
25010         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
25011
25012 2010-10-14  Bruno Haible  <bruno@clisp.org>
25013
25014         socketlib: Fix.
25015         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
25016         gl_PREREQ_SYS_H_WINSOCK2.
25017         Reported by Ian Beckwith <ianb@erislabs.net>.
25018
25019 2010-10-13  Jim Meyering  <meyering@redhat.com>
25020
25021         test-select-stdin.c: avoid warn_unused_result warnings
25022         * tests/test-select-stdin.c: Include "macros.h".
25023         ASSERT that read and fflush succeed.
25024
25025 2010-10-13  Jim Meyering  <meyering@redhat.com>
25026
25027         git-version-gen: do require git-VC'd files in cwd
25028         * build-aux/git-version-gen: Reject a git version string
25029         if there are no commits associated with the current directory.
25030         This avoids an unlikely false-positive (unrelated dir whose parent
25031         repository also contains a tag matching v*), as pointed out
25032         by Giuseppe Scrivano in
25033         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
25034
25035 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
25036
25037         argv-iter: omit nonconforming declaration
25038         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
25039         enum arg_iter_err declaration, which doesn't conform to C99.
25040         Solaris 10 cc warns about this.
25041
25042 2010-10-13  Eric Blake  <eblake@redhat.com>
25043
25044         termios: fix compilation on mingw
25045         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
25046         (gl_TERMIOS_H): Adjust it on mingw.
25047         * modules/termios (Makefile.am): Substitute new key.
25048         * lib/termios.in.h (includes): Make include_next conditional.
25049         * doc/posix-headers/termios.texi (termios.h): Update
25050         documentation.
25051         Reported by Daniel P. Berrange.
25052
25053 2010-10-13  Jim Meyering  <meyering@redhat.com>
25054
25055         git-version-gen: don't require that .git/ be in the current dir
25056         * build-aux/git-version-gen: Adjust this script so that it works
25057         when run from any working directory beneath the top-level .git/-
25058         containing directory.  Inspired by a patch from Giuseppe Scrivano,
25059         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
25060
25061         test-select: avoid warn_unused_result warnings
25062         * tests/test-select.c: Include "macros.h".
25063         ASSERT that each call to read, write, and pipe succeeds.
25064         While not technically required, also check each "close".
25065         * modules/select-tests (Files): Add tests/macros.h.
25066
25067         test-symlinkat: remove declaration of unused local
25068         * tests/test-symlinkat.c (main): Remove unused local, "buf".
25069
25070         test-inttostr: avoid shadowing warnings
25071         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
25072         and use malloc rather than the stack for the same reason as
25073         mentioned in the comment justifying the other allocation.
25074
25075 2010-10-11  Bruno Haible  <bruno@clisp.org>
25076
25077         stdlib: Allow multiple gnulib generated replacements to coexist.
25078         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
25079         Reported by Sam Steingold <sds@gnu.org>.
25080
25081 2010-10-11  Jim Meyering  <meyering@redhat.com>
25082
25083         fix a documentation typo
25084         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
25085
25086 2010-10-11  Eric Blake  <eblake@redhat.com>
25087
25088         futimens: work around Solaris 11 bug
25089         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
25090         * tests/test-futimens.h (test_futimens): Enhance, rather than
25091         weaken test.
25092         * doc/posix-functions/futimens.texi (futimens): Document the bug.
25093
25094 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
25095
25096         Indentation.
25097         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
25098         higher-level operators more to the left.
25099
25100 2010-10-11  Jim Meyering  <meyering@redhat.com>
25101
25102         test-futimens: avoid unwarranted test failure on Solaris 5.11
25103         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
25104         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
25105         because it tries to dereference the NULL name argument.
25106
25107 2010-10-11  Bruno Haible  <bruno@clisp.org>
25108
25109         Indentation.
25110         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
25111         indentation.
25112
25113 2010-10-11  Jim Meyering  <meyering@redhat.com>
25114
25115         spawn.in.h: make indentation consistent with parentheses
25116         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
25117         Make indentation consistent with parentheses.
25118
25119 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
25120
25121         Fix mismatched parens in previous commit
25122         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
25123         parens.
25124
25125 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
25126
25127         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
25128
25129         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
25130         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
25131         * lib/malloca.c: Include "verify.h".
25132         (verify1): Remove, replacing with a verify call.
25133         * lib/relocwrapper.c (verify1): Likewise.
25134         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
25135         Likewise.
25136         * modules/malloca (Depends-on): Add 'verify'.
25137         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
25138         * modules/vasnprintf (Depends-on): Add 'verify'.
25139         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25140         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25141         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25142         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25143         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25144         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25145         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25146
25147         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
25148
25149         Formerly the style was sometimes 2*X - 1, because the C standard
25150         was wrongly thought to disallow ?: in integral constant expressions.
25151         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
25152         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
25153         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
25154         * lib/stdint.in.h (_verify_intmax_size): Likewise.
25155         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
25156         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
25157         verify that time_t cannot be floating.
25158
25159 2010-10-08  Eric Blake  <eblake@redhat.com>
25160
25161         time: enforce recent POSIX ruling that time_t is integral
25162         * lib/time.in.h (__time_t_must_be_integral): Detect any
25163         problematic systems, allowing the rest of gnulib to assume POSIX.
25164
25165 2010-10-08  Jim Meyering  <meyering@redhat.com>
25166
25167         fdopendir: fix a bug on systems lacking openat and /proc support
25168         OpenBSD 4.7 is one such system.  The most noticeable effect was
25169         failure of any application making nontrivial use of fts: rm, du,
25170         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
25171           ./rm: traversal failed: `a': Bad file descriptor
25172         Debugging that, you see that even though FD 6 was closed just
25173         prior to the opendir call in fd_clone_opendir, its resulting
25174         dir->dd_fd was 8, rather than the expected value of 6:
25175
25176         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
25177         93                close (fd);
25178         (gdb) n
25179         94                dir = fd_clone_opendir (dupfd);
25180         (gdb) n
25181         95                saved_errno = errno;
25182         (gdb) p dir->dd_fd
25183         $11 = 8
25184
25185         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
25186         The problem is that on OpenBSD, fd_clone_opendir has to resort
25187         to using the old-style save/restore CWD mechanism, due to its
25188         lack of openat/proc support, and *that* would steal the FD (6)
25189         that opendir was supposed to use.
25190
25191         The fix is to squirrel away the desired FD so that save_cwd uses a
25192         different one, and then free the dest FD right before calling opendir.
25193         That guarantees opendir will use the required file descriptor.
25194
25195         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
25196
25197 2010-10-08  Bruno Haible  <bruno@clisp.org>
25198
25199         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
25200         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
25201
25202 2010-10-08  Bruno Haible  <bruno@clisp.org>
25203
25204         nanosleep: Make replacement POSIX compliant.
25205         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
25206         is out of range.
25207         Reported by Jim Meyering.
25208
25209 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
25210
25211         bootstrap: add hook for altering gnulib.mk, for Bison
25212         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
25213         the Bison bootstrapping process can rewrite file names and variables
25214         in this file before later parts of 'bootstrap' use the file.
25215         Bison wants to include lib/gnulib.mk from the top-level makefile,
25216         so it needs the file names in this file to be relative to the top
25217         level, not relative to lib; plus it needs variable names to be
25218         rewritten.
25219         (slurp): Use the new function.
25220
25221         bootstrap: reformat for readability
25222         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
25223
25224 2010-10-08  Eric Blake  <eblake@redhat.com>
25225
25226         docs: update cygwin progress
25227         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
25228         1.7.7.
25229         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
25230         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
25231         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
25232         * doc/posix-functions/carg.texi (carg): Likewise.
25233         * doc/posix-functions/cargf.texi (cargf): Likewise.
25234         * doc/posix-functions/casin.texi (casin): Likewise.
25235         * doc/posix-functions/casinf.texi (casinf): Likewise.
25236         * doc/posix-functions/casinh.texi (casinh): Likewise.
25237         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
25238         * doc/posix-functions/catan.texi (catan): Likewise.
25239         * doc/posix-functions/catanf.texi (catanf): Likewise.
25240         * doc/posix-functions/catanh.texi (catanh): Likewise.
25241         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
25242         * doc/posix-functions/ccos.texi (ccos): Likewise.
25243         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
25244         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
25245         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
25246         * doc/posix-functions/cexp.texi (cexp): Likewise.
25247         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
25248         * doc/posix-functions/cimag.texi (cimag): Likewise.
25249         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
25250         * doc/posix-functions/clog.texi (clog): Likewise.
25251         * doc/posix-functions/clogf.texi (clogf): Likewise.
25252         * doc/posix-functions/conj.texi (conj): Likewise.
25253         * doc/posix-functions/conjf.texi (conjf): Likewise.
25254         * doc/posix-functions/cpow.texi (cpow): Likewise.
25255         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
25256         * doc/posix-functions/cproj.texi (cproj): Likewise.
25257         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
25258         * doc/posix-functions/creal.texi (creal): Likewise.
25259         * doc/posix-functions/crealf.texi (crealf): Likewise.
25260         * doc/posix-functions/csin.texi (csin): Likewise.
25261         * doc/posix-functions/csinf.texi (csinf): Likewise.
25262         * doc/posix-functions/csinh.texi (csinh): Likewise.
25263         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
25264         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
25265         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
25266         * doc/posix-functions/ctan.texi (ctan): Likewise.
25267         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
25268         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
25269         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
25270         * doc/posix-headers/complex.texi (complex.h): Likewise.
25271
25272 2010-10-07  Jim Meyering  <meyering@redhat.com>
25273
25274         parse-datetime: avoid compilation failure on OpenBSD 4.7
25275         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
25276         This works around a compilation failure on OpenBSD 4.7:
25277         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
25278
25279 2010-10-07  Eric Blake  <eblake@redhat.com>
25280
25281         docs: update cygwin progress
25282         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
25283         1.7.6.
25284         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
25285         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
25286         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
25287         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
25288         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
25289         Likewise.
25290         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
25291         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
25292         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
25293         Likewise.
25294         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
25295         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
25296         Likewise.
25297         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
25298         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
25299         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
25300         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
25301         Likewise.
25302         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
25303         Likewise.
25304         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
25305
25306         docs: update parse-datetime history
25307         * doc/parse-datetime.texi (Authors of parse_datetime): Better
25308         documentation of this function's history and alternatives.
25309
25310         cygwin: use more robust version check
25311         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
25312         exclude an eventual cygwin 1.9.1.
25313         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25314         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25315         (gl_FUNC_STRCASESTR): Likewise.
25316         Reported by Bruno Haible.
25317
25318 2010-10-06  Bruno Haible  <bruno@clisp.org>
25319
25320         string, sys_select: Avoid #including large headers unless necessary.
25321         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
25322         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
25323         OSF/1, BeOS, Haiku.
25324         Reported by Jim Meyering.
25325
25326 2010-10-05  Eric Blake  <eblake@redhat.com>
25327
25328         memmem, strstr, strcasestr: fix bug with long periodic needle
25329         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
25330         periodic needle having false positive.
25331         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
25332         and cygwin 1.7.7.
25333         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
25334         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25335         (gl_FUNC_STRCASESTR): Likewise.
25336         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25337         * tests/test-memmem.c (main): Expose the bug.
25338         * tests/test-strcasestr.c (main): Likewise.
25339         * tests/test-strstr.c (main): Likewise.
25340         * tests/test-c-strcasestr.c (main): Likewise.
25341         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
25342         * doc/posix-functions/strstr.texi (strstr): Likewise.
25343         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
25344         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
25345
25346 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25347
25348         parse-datetime: do some more renaming
25349         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
25350         parse_datetime, not get_date.  Mention the renaming.
25351         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
25352         in comments.
25353         * m4/bison.m4: Likewise.
25354
25355 2010-10-05  Eric Blake  <eblake@redhat.com>
25356
25357         parse-datetime: better name than get_date
25358         * NEWS: Reword the deprecation notice.
25359         * modules/get_date: Rename to modules/parse-datetime.
25360         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
25361         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
25362         * lib/get_date.y: Rename to lib/parse-datetime.y.
25363         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
25364         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
25365         * doc/getdate.texi: Provide fallback wrapper.
25366         * lib/getdate.h: Move guts, and wrap...
25367         * lib/parse-datetime.h: ...new file.
25368         * lib/parse-datetime.y (get_date): Rename...
25369         (parse_datetime): ...to this.
25370         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
25371         (gl_PARSE_DATETIME): ...to this.
25372         * doc/posix-functions/getdate.texi (get_date): Provide fallback
25373         documentation.
25374         * modules/getdate (Files): Provide fallback docs and header.
25375         (Notice, Depends-on): Update references.
25376         * tests/test-parse-datetime.c: Likewise.
25377         * DEPENDENCIES: Likewise.
25378         * MODULES.html.sh (Date and time <time.h>): Likewise.
25379         * doc/parse-datetime.texi (Date input formats)
25380         (Authors of parse_datetime): Likewise.
25381         * modules/parse-datetime (Files, configure.ac, Makefile.am)
25382         (Include): Likewise.
25383         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
25384         * gnulib-tool: Likewise.
25385         * m4/bison.m4 (gl_BISON): Likewise.
25386         Suggested by Bruno Haible.
25387
25388 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25389
25390         more ports to Solaris tr, which needs [] around ranges
25391         * gnulib-tool: Solaris tr needs [] around ranges.
25392         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
25393         * tests/test-pipe-filter-gi1.c (main): Likewise.
25394         * tests/test-pipe-filter-ii1.c (main): Likewise.
25395
25396 2010-10-05  Eric Blake  <eblake@redhat.com>
25397
25398         bootstrap: fix Solaris regression
25399         * build-aux/bootstrap (check_versions): Solaris tr still needs []
25400         around ranges.
25401         Reported by Pádraig Brady.
25402
25403         bootstrap: work with pkg-config
25404         * build-aux/bootstrap (check_versions): Also transliterate - in
25405         prerequisite name.
25406         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
25407         prerequisites that were already found, to avoid confusion.
25408         Reported by Justin Clift.
25409
25410         faccessat: remove unused wrappers
25411         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
25412         presence of these wrappers dragged in -lgen on Solaris.
25413         Reported by Clemens Brogi; fix suggested by Paul Eggert.
25414
25415 2010-10-05  Jim Meyering  <meyering@redhat.com>
25416
25417         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
25418         * Makefile (sc_pragma_columns): New syntax-check rule.
25419
25420 2010-10-04  Bruno Haible  <bruno@clisp.org>
25421
25422         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
25423         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
25424         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
25425         Reported by Bruce Korb and Eric Blake.
25426
25427 2010-10-04  Bruno Haible  <bruno@clisp.org>
25428
25429         threadlib: Make option --with-libpth-prefix work.
25430         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
25431         use $LIBPTH, not just -lpth.
25432
25433 2010-10-04  Bruno Haible  <bruno@clisp.org>
25434
25435         Avoid line length limitation from HP NonStop system header files.
25436         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
25437         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
25438         * lib/ctype.in.h: Likewise.
25439         * lib/dirent.in.h: Likewise.
25440         * lib/errno.in.h: Likewise.
25441         * lib/fcntl.in.h: Likewise.
25442         * lib/float.in.h: Likewise.
25443         * lib/getopt.in.h: Likewise.
25444         * lib/iconv.in.h: Likewise.
25445         * lib/inttypes.in.h: Likewise.
25446         * lib/langinfo.in.h: Likewise.
25447         * lib/locale.in.h: Likewise.
25448         * lib/math.in.h: Likewise.
25449         * lib/netdb.in.h: Likewise.
25450         * lib/netinet_in.in.h: Likewise.
25451         * lib/poll.in.h: Likewise.
25452         * lib/pthread.in.h: Likewise.
25453         * lib/pty.in.h: Likewise.
25454         * lib/sched.in.h: Likewise.
25455         * lib/se-selinux.in.h: Likewise.
25456         * lib/search.in.h: Likewise.
25457         * lib/signal.in.h: Likewise.
25458         * lib/spawn.in.h: Likewise.
25459         * lib/stdarg.in.h: Likewise.
25460         * lib/stddef.in.h: Likewise.
25461         * lib/stdint.in.h: Likewise.
25462         * lib/stdio.in.h: Likewise.
25463         * lib/stdlib.in.h: Likewise.
25464         * lib/string.in.h: Likewise.
25465         * lib/strings.in.h: Likewise.
25466         * lib/sys_file.in.h: Likewise.
25467         * lib/sys_ioctl.in.h: Likewise.
25468         * lib/sys_select.in.h: Likewise.
25469         * lib/sys_socket.in.h: Likewise.
25470         * lib/sys_stat.in.h: Likewise.
25471         * lib/sys_time.in.h: Likewise.
25472         * lib/sys_times.in.h: Likewise.
25473         * lib/sys_utsname.in.h: Likewise.
25474         * lib/sys_wait.in.h: Likewise.
25475         * lib/sysexits.in.h: Likewise.
25476         * lib/termios.in.h: Likewise.
25477         * lib/time.in.h: Likewise.
25478         * lib/unistd.in.h: Likewise.
25479         * lib/wchar.in.h: Likewise.
25480         * lib/wctype.in.h: Likewise.
25481         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
25482         * modules/ctype (Makefile.am): Likewise.
25483         * modules/dirent (Makefile.am): Likewise.
25484         * modules/errno (Makefile.am): Likewise.
25485         * modules/fcntl-h (Makefile.am): Likewise.
25486         * modules/float (Makefile.am): Likewise.
25487         * modules/getopt-posix (Makefile.am): Likewise.
25488         * modules/iconv-h (Makefile.am): Likewise.
25489         * modules/inttypes (Makefile.am): Likewise.
25490         * modules/langinfo (Makefile.am): Likewise.
25491         * modules/locale (Makefile.am): Likewise.
25492         * modules/math (Makefile.am): Likewise.
25493         * modules/netdb (Makefile.am): Likewise.
25494         * modules/netinet_in (Makefile.am): Likewise.
25495         * modules/poll-h (Makefile.am): Likewise.
25496         * modules/pthread (Makefile.am): Likewise.
25497         * modules/pty (Makefile.am): Likewise.
25498         * modules/sched (Makefile.am): Likewise.
25499         * modules/search (Makefile.am): Likewise.
25500         * modules/selinux-h (Makefile.am): Likewise.
25501         * modules/signal (Makefile.am): Likewise.
25502         * modules/spawn (Makefile.am): Likewise.
25503         * modules/stdarg (Makefile.am): Likewise.
25504         * modules/stddef (Makefile.am): Likewise.
25505         * modules/stdint (Makefile.am): Likewise.
25506         * modules/stdio (Makefile.am): Likewise.
25507         * modules/stdlib (Makefile.am): Likewise.
25508         * modules/string (Makefile.am): Likewise.
25509         * modules/strings (Makefile.am): Likewise.
25510         * modules/sys_file (Makefile.am): Likewise.
25511         * modules/sys_ioctl (Makefile.am): Likewise.
25512         * modules/sys_select (Makefile.am): Likewise.
25513         * modules/sys_socket (Makefile.am): Likewise.
25514         * modules/sys_stat (Makefile.am): Likewise.
25515         * modules/sys_time (Makefile.am): Likewise.
25516         * modules/sys_times (Makefile.am): Likewise.
25517         * modules/sys_utsname (Makefile.am): Likewise.
25518         * modules/sys_wait (Makefile.am): Likewise.
25519         * modules/sysexits (Makefile.am): Likewise.
25520         * modules/termios (Makefile.am): Likewise.
25521         * modules/time (Makefile.am): Likewise.
25522         * modules/unistd (Makefile.am): Likewise.
25523         * modules/wchar (Makefile.am): Likewise.
25524         * modules/wctype (Makefile.am): Likewise.
25525
25526 2010-10-04  Bruno Haible  <bruno@clisp.org>
25527
25528         read-file tests: Avoid a test failure on NonStop Kernel.
25529         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
25530         a regular file.
25531         Reported by Joachim Schmitz <schmitz@hp.com>.
25532
25533 2010-10-03  Bruno Haible  <bruno@clisp.org>
25534
25535         gnulib-tool: Fixes for --create-testdir with --libtool.
25536         * gnulib-tool (func_get_automake_snippet): Don't augment
25537         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
25538         an executable.
25539         (func_create_testdir): Handle module 'alloca' like func_import.
25540         Reported by Bruce Korb <bruce.korb@gmail.com>.
25541
25542 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
25543
25544         Avoid some lines longer than 80 characters.
25545         * lib/stdint.in.h: Break long comment lines.
25546         * lib/math.in.h: Likewise.
25547         (_GL_NUM_UINT_WORDS): New macro, for readability.
25548         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
25549         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
25550         * lib/stdlib.in.h: Likewise.
25551         * lib/spawn.in.h: Likewise.
25552         * lib/sys_socket.in.h: Update an URL.
25553         * lib/sys_stat.in.h: Break long line.
25554
25555 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
25556
25557         Improve pmccabe2html.
25558         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
25559         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
25560         when the sources change. Remove the line in the HTML about "Used
25561         ranges" (which implied that there might be other unused ranges),
25562         rename "Resume" to "Summary" (easier to understand for more users).
25563         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
25564         styles, and some unnecessary blank lines.
25565
25566 2010-10-03  Bruno Haible  <bruno@clisp.org>
25567             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
25568
25569         acl: Add support for ACLs on NonStop Kernel.
25570         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
25571         Check whether the function aclsort() exists.
25572         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
25573         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
25574         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25575         (acl_nontrivial [HAVE_ACLSORT]: New function.
25576         (file_has_acl): Implement for NonStop Kernel.
25577         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25578         (qset_acl): Implement for NonStop Kernel.
25579         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
25580         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25581         (main): Implement for NonStop Kernel.
25582         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
25583         Kernel. Handle this flavor.
25584         * tests/test-set-mode-acl.sh: Likewise.
25585         * tests/test-copy-acl.sh: Likewise.
25586         * tests/test-copy-file.sh: Likewise.
25587
25588 2010-10-03  Bruno Haible  <bruno@clisp.org>
25589
25590         Info about ACLs on NonStop Kernel.
25591         * doc/acl-resources.txt: Add info about NonStop Kernel.
25592         References by Joachim Schmitz <schmitz@hp.com>.
25593
25594 2010-10-02  Bruno Haible  <bruno@clisp.org>
25595
25596         Define missing EDQUOT on NonStop Kernel.
25597         * lib/errno.in.h (EDQUOT): Assign a value if missing.
25598         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
25599         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
25600         missing.
25601         * doc/posix-headers/errno.texi: Mention the NSK bug.
25602         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
25603         Reported by Joachim Schmitz <schmitz@hp.com>.
25604
25605 2010-10-02  Bruno Haible  <bruno@clisp.org>
25606
25607         Update doc for POSIX:2008.
25608         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
25609         Update URL of POSIX specification.
25610
25611 2010-10-02  Bruno Haible  <bruno@clisp.org>
25612
25613         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
25614         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
25615         from gnulib, not from Automake.
25616
25617 2010-10-02  Bruno Haible  <bruno@clisp.org>
25618
25619         New module 'system-posix'.
25620         * modules/system-posix: New file.
25621         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
25622         module is present.
25623         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
25624         GNULIB_SYSTEM_POSIX.
25625         * modules/stdlib (Depends-on): Remove sys_wait.
25626         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
25627         * doc/posix-functions/system.texi: Mention the new module.
25628         * doc/posix-headers/stdlib.texi: Likewise.
25629         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
25630         define test_sys_wait_macros to a no-op.
25631         Reported by Sam Steingold <sds@gnu.org>.
25632
25633 2010-09-30  Bruno Haible  <bruno@clisp.org>
25634
25635         More renaming from 'getdate' to 'get_date'.
25636         * doc/get_date.texi: Renamed from doc/getdate.texi.
25637         * modules/get_date (Files): Update.
25638         * MODULES.html.sh (Date and time <time.h>): Update.
25639         * DEPENDENCIES: Update.
25640         * gnulib-tool: Update comment.
25641         * m4/bison.m4 (gl_BISON): Likewise.
25642         * m4/get_date.m4 (gl_GET_DATE): Likewise.
25643
25644 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
25645
25646         bootstrap: support ACLOCAL_FLAGS during aclocal
25647         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
25648         can add additional -I dir for third-party .m4 files.
25649
25650 2010-09-30  Eric Blake  <eblake@redhat.com>
25651
25652         bootstrap: use glibtoolize on MacOS
25653         * build-aux/bootstrap (check_versions): Convert libtool into
25654         libtoolize.
25655         (tool search): Move libtool check earlier, and look for
25656         glibtoolize for MacOS.
25657         (gnulib_tool_options): Auto-add --libtool when appropriate.
25658         Reported by Justin Clift.
25659
25660         poll: fix typo that broke test on MacOS
25661         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
25662         Reported by Justin Clift.
25663
25664         getdate: rename to get_date
25665         Note: getdate.h is not renamed, to minimize client impact.
25666         * modules/getdate: Mark obsolete.  Move old contents...
25667         * modules/get_date: ...to new module name.
25668         * modules/getdate-tests: Move...
25669         * modules/get_date-tests: ...here.
25670         * m4/getdate.m4: Move...
25671         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
25672         * lib/getdate.y: Move...
25673         * lib/get_date.y: ...here.
25674         * tests/test-getdate.c: Move...
25675         * tests/test-get_date.c: ...here.
25676         * doc/posix-functions/getdate.texi (getdate): Update name.
25677         * NEWS: Mention the change.
25678
25679 2010-09-29  Bruno Haible  <bruno@clisp.org>
25680
25681         Separate the module 'waitpid' from the module 'sys_wait'.
25682         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
25683         present.
25684         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
25685         gl_MODULE_INDICATOR_FOR_TESTS.
25686         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
25687         * modules/sys_wait (Depends-on): Remove waitpid.
25688         (Makefile.am): Substitute GNULIB_WAITPID.
25689         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
25690         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
25691         signature only if the 'waitpid' module is present.
25692         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
25693         * NEWS: Mention the change.
25694         * modules/grantpt (Depends-on): Add waitpid.
25695         * modules/wait-process (Depends-on): Likewise.
25696
25697 2010-09-29  Bruno Haible  <bruno@clisp.org>
25698
25699         More tests for module 'sys_wait'.
25700         * modules/sys_wait-c++-tests: New file.
25701         * tests/test-sys_wait-c++.cc: New file.
25702         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
25703         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25704
25705 2010-09-29  Bruno Haible  <bruno@clisp.org>
25706
25707         New module 'waitpid'.
25708         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
25709         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
25710         Don't include <process.h>.
25711         (waitpid): Declare only, using modern idiom.
25712         * m4/waitpid.m4: New file.
25713         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
25714         * modules/waitpid: New file.
25715         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
25716         (Makefile.am): Update.
25717         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25718
25719 2010-09-28  Bruno Haible  <bruno@clisp.org>
25720
25721         poll: Assume ANSI C.
25722         * lib/poll.c (poll): Use an ANSI C declaration.
25723
25724 2010-09-28  Bruno Haible  <bruno@clisp.org>
25725
25726         poll-h: Create poll.h on all platforms.
25727         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
25728         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
25729         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
25730         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
25731         (gl_REPLACE_POLL_H): Don't set POLL_H.
25732         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
25733         * modules/poll-h (Depends-on): Add include_next.
25734         (Makefile.am): Create poll.h unconditionally. Substitute also
25735         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
25736
25737 2010-09-28  Bruno Haible  <bruno@clisp.org>
25738
25739         Tests for module 'poll-h'.
25740         * modules/poll-h-c++-tests: New file.
25741         * tests/test-poll-h-c++.cc: New file.
25742
25743         Tests for module 'poll-h'.
25744         * modules/poll-h-tests: New file.
25745         * tests/test-poll-h.c: New file.
25746
25747 2010-09-28  Bruno Haible  <bruno@clisp.org>
25748
25749         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
25750         * modules/poll-h (Depends-on): Add 'extensions'.
25751
25752 2010-09-28  Bruno Haible  <bruno@clisp.org>
25753
25754         New module 'poll-h'.
25755         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
25756         (poll): Use modern idiom.
25757         * modules/poll-h: New file.
25758         * modules/poll (Files): Remove lib/poll.in.h.
25759         (Depends-on): Add poll-h.
25760         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
25761         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
25762         * m4/poll_h.m4: New file.
25763         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
25764         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
25765         and invoke gl_REPLACE_POLL_H.
25766         * lib/poll.c: Use common idiom.
25767         * tests/test-poll.c: Likewise.
25768         * doc/posix-headers/poll.texi: Mention the poll-h module.
25769         Suggested by Eric Blake.
25770
25771 2010-09-26  Bruno Haible  <bruno@clisp.org>
25772
25773         sys_wait: Implement WSTOPSIG.
25774         * lib/sys_wait.in.h (WSTOPSIG): New macro.
25775         Reported by Simon Josefsson.
25776
25777 2010-09-26  Simon Josefsson  <simon@josefsson.org>
25778
25779         stdlib, sys_wait: Avoid compilation error on mingw.
25780         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
25781
25782 2010-09-26  Bruno Haible  <bruno@clisp.org>
25783
25784         stdlib tests: Avoid code duplication.
25785         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
25786         * modules/sys_wait-tests (Files): Likewise.
25787         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
25788         * tests/test-stdlib.c: Include test-sys_wait.h.
25789         (main): Invoke test_sys_wait_macros.
25790         * tests/test-sys_wait.c: Include test-sys_wait.h.
25791         (main): Invoke test_sys_wait_macros.
25792
25793 2010-09-25  Simon Josefsson  <simon@josefsson.org>
25794
25795         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
25796         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
25797         sure Windows sockets are working before calling getaddrinfo.
25798         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
25799         * doc/gnulib.texi (Windows sockets): Fix typo.
25800
25801 2010-09-25  Bruno Haible  <bruno@clisp.org>
25802
25803         Tests for module 'regex-quote'.
25804         * modules/regex-quote-tests: New file.
25805         * tests/test-regex-quote.c: New file.
25806
25807         New module 'regex-quote'.
25808         * lib/regex-quote.h: New file.
25809         * lib/regex-quote.c: New file.
25810         * modules/regex-quote: New file.
25811         Suggested by Reuben Thomas <rrt@sc3d.org>.
25812
25813 2010-09-24  Bruno Haible  <bruno@clisp.org>
25814
25815         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
25816         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
25817
25818 2010-09-23  Bruno Haible  <bruno@clisp.org>
25819
25820         setenv: Relax license.
25821         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
25822         Blake.
25823         Requested by Eric Blake.
25824
25825 2010-09-22  Bruno Haible  <bruno@clisp.org>
25826
25827         termios: Relax license.
25828         * modules/termios (License): Change to LGPLv2+.
25829         Requested by Eric Blake.
25830
25831 2010-09-22  Bruno Haible  <bruno@clisp.org>
25832
25833         threadlib: Allow the package to change the default to 'no'.
25834         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
25835         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
25836         Reported by Paul Eggert.
25837
25838 2010-09-22  Pádraig Brady  <P@draigbrady.com>
25839             Bruno Haible  <bruno@clisp.org>
25840
25841         Fix endless loop in mbmemcasecoll.
25842         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
25843         byte.
25844         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
25845
25846 2010-09-22  Bruno Haible  <bruno@clisp.org>
25847
25848         Tests for module 'memcoll'.
25849         * modules/memcoll-tests: New file.
25850         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
25851
25852         memcoll, xmemcoll: Clarify size vs. length.
25853         * modules/memcoll.c (memcoll0): Clarify specification.
25854         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
25855         passed to collate_error.
25856
25857 2010-09-22  Bruno Haible  <bruno@clisp.org>
25858
25859         Tests for module 'memcasecmp'.
25860         * modules/memcasecmp-tests: New file.
25861         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
25862
25863 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25864
25865         * lib/pthread.in.h: Add split double-inclusion guard, and include
25866         system <pthread.h> if there is one.  Use @@-style as in other
25867         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
25868         pthread.h doesn't.
25869         (pthread_mutexattr_destroy, pthread_mutexattr_init):
25870         (pthread_mutexattr_settype, pthread_mutex_trylock):
25871         New static inline functions, if there's no system <pthread.h>.
25872         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
25873         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
25874         Approximate with mutexes if the system lacks spinlocks, as in
25875         MacOS.
25876         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
25877         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
25878         @@-style.  Check for spinlocks separately.
25879         (gl_PTHREAD_DEFAULTS): New macro.
25880         * modules/pthread: Redo to use a more typical style for in.h files.
25881
25882 2010-09-21  Eric Blake  <eblake@redhat.com>
25883
25884         net_if: enhance tests
25885         * tests/test-net_if.c (main): Move signature checks earlier.
25886         Print failures to stderr.
25887         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
25888         Document the bug that we do not yet fix.
25889
25890 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25891
25892         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
25893         about gnulib, not GSS.
25894
25895 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25896
25897         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
25898         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
25899         for Emacs.
25900         * build-aux/pmccabe2html: Make Makefile.am example code more
25901         cut-and-paste friendly.
25902
25903 2010-09-21  Simon Josefsson  <simon@josefsson.org>
25904
25905         * tests/test-net_if.c: New file.
25906         * modules/net_if-tests: New file.
25907
25908 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
25909
25910         pthread: add pthread_spin_destroy
25911         * lib/pthread.in.h (pthread_spin_destroy): New function.
25912
25913 2010-09-19  Bruno Haible  <bruno@clisp.org>
25914
25915         gnulib-tool: Fix --help output.
25916         * gnulib-tool (func_usage): Fix help message.
25917         Reported by Reuben Thomas <rrt@sc3d.org>.
25918
25919 2010-09-18  Jim Meyering  <meyering@redhat.com>
25920
25921         maint.mk: avoid unexpanded \n in two diagnostics
25922         * top/maint.mk (sc_prohibit_always_true_header_tests):
25923         Don't use a literal \n in a halt=... assignment.  It would not be
25924         expanded, and the two \n bytes would appear in the diagnostic output
25925         rather than the desired newline.  Use halt=$$(printf ... instead.
25926         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25927
25928 2010-09-18  Bruno Haible  <bruno@clisp.org>
25929
25930         netinet_in: Doc tweak.
25931         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
25932         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25933
25934 2010-09-18  Jim Meyering  <meyering@redhat.com>
25935
25936         init.sh: correct an outdated comment
25937         * tests/init.sh (create_exe_shims_):  s/function/alias/
25938
25939         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
25940         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
25941         a file named "*.exe" is removed between the glob expansion and the
25942         processing of that oddly named file.
25943
25944 2010-09-17  Eric Blake  <eblake@redhat.com>
25945
25946         mirbsd: add some more support
25947         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
25948         in BSD family.
25949         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
25950         devices as OpenBSD.
25951         * m4/host-os.m4 (mirbsd): Add MirBSD.
25952
25953         tests: fix unportable assumption on sys/wait.h
25954         * tests/test-sys_wait.c (main): Relax test.
25955         * tests/test-stdlib.c (main): Likewise.
25956
25957         init.sh: accomodate directory with no .exes
25958         * tests/init.sh: Accomodate directory containing only scripts.
25959
25960         tests: avoid compiler warning
25961         * tests/test-stdlib.c (main): Use the variable.
25962
25963         fdutimens, fdutimensat: update signature, again
25964         * lib/utimens.h (gl_futimens): Delete, and move signature...
25965         (fdutimens): ...here.
25966         (fdutimensat): Rearrange signature.
25967         (lutimensat): Rename variable for clarity.
25968         * lib/fdutimensat.c (fdutimensat): Update signature.
25969         * lib/utimens.c (fdutimens): Likewise.
25970         (gl_futimens): Delete.
25971         (utimens, lutimens): Update callers.
25972         * lib/futimens.c (futimens): Likewise.
25973         * tests/test-fdutimensat.c: Likewise.
25974         * tests/test-utimens.c: Likewise.
25975         * tests/test-futimens.h: Update comment.
25976         * NEWS: Mention this.
25977         Suggested by Paul Eggert.
25978
25979 2010-09-17  Bruno Haible  <bruno@clisp.org>
25980
25981         Take over the maintenance of some older macros from Autoconf.
25982         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
25983         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
25984         GNU Autoconf.
25985         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
25986         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
25987
25988 2010-09-17  Eric Blake  <eblake@redhat.com>
25989
25990         fdutimensat: drop atflag validation
25991         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
25992         with valid fd, to close a race scenario where futimens is
25993         unsupported and FILE was replaced by a symlink.
25994         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
25995         accordingly.
25996         Suggested by Paul Eggert.
25997
25998 2010-09-16  Bruno Haible  <bruno@clisp.org>
25999
26000         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
26001         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
26002
26003 2010-09-16  Bruno Haible  <bruno@clisp.org>
26004
26005         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
26006         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
26007         login_tty exists.
26008         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26009
26010 2010-09-16  Bruno Haible  <bruno@clisp.org>
26011
26012         login_tty: Make the replacement code work on BSD systems.
26013         * lib/login_tty.c: Include <sys/ioctl.h>.
26014         (login_tty): Use ioctl TIOCSCTTY when available.
26015         * modules/login_tty (Depends-on): Add sys_ioctl.
26016         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26017
26018 2010-09-16  Bruno Haible  <bruno@clisp.org>
26019
26020         login_tty: Stricter unit test.
26021         * modules/login_tty-tests (Depends-on): Add tcgetsid.
26022         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
26023         and tcgetsid() after login_tty.
26024         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26025
26026 2010-09-16  Bruno Haible  <bruno@clisp.org>
26027
26028         New module 'tcgetsid'.
26029         * lib/tcgetsid.c: New file.
26030         * m4/tcgetsid.m4: New file.
26031         * modules/tcgetsid: New file.
26032         * modules/termios (Depends-on): Add c++defs, warn-on-use.
26033         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
26034         GNULIB_TCGETSID, HAVE_TCGETSID.
26035         * lib/termios.in.h: Include <sys/types.h>.
26036         (tcgetsid): New declaration.
26037         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
26038         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
26039         * doc/posix-functions/tcgetsid.texi: Mention the new module.
26040         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
26041
26042 2010-09-16  Bruno Haible  <bruno@clisp.org>
26043
26044         Tests for module 'termios'.
26045         * modules/termios-c++-tests: New file.
26046         * modules/termios-tests: New file.
26047         * tests/test-termios-c++.cc: New file.
26048         * tests/test-termios.c: New file.
26049
26050         New module 'termios'.
26051         * modules/termios: New file.
26052         * lib/termios.in.h: New file.
26053         * m4/termios_h.m4: New file.
26054         * doc/posix-headers/termios.texi: Mention the new module.
26055
26056 2010-09-16  Eric Blake  <eblake@redhat.com>
26057
26058         fdutimensat: add an atflag parameter
26059         * lib/fdutimensat.c (fdutimensat): Add new parameter.
26060         * lib/utimens.h (fdutimensat): Update prototype.
26061         * tests/test-fdutimensat.c: Adjust test to match.
26062         * NEWS: Document the change.
26063         Suggested by Paul Eggert.
26064
26065 2010-09-16  Bruno Haible  <bruno@clisp.org>
26066
26067         Fix typos in comments.
26068         * lib/striconveh.h: Fix typo in comment.
26069         * lib/login_tty.c (login_tty): Likewise.
26070
26071 2010-09-15  Bruno Haible  <bruno@clisp.org>
26072
26073         stdlib: clarify MirBSD WEXITSTATUS bug
26074         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
26075         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26076
26077 2010-09-15  Eric Blake  <eblake@redhat.com>
26078
26079         stdlib: work around MirBSD WEXITSTATUS bug
26080         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
26081         * modules/stdlib (Depends-on): Add sys_wait.
26082         * tests/test-sys_wait.c (main): Enhance test.
26083         * tests/test-stdlib.c (main): Likewise.
26084         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
26085
26086         docs: mention MacOS issue with WEXITSTATUS(constant)
26087         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
26088         issue.
26089         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26090
26091         strnlen: add tests
26092         * modules/strnlen-tests: New file.
26093         * tests/test-strnlen.c: Likewise.
26094
26095 2010-09-14  Bruno Haible  <bruno@clisp.org>
26096
26097         unistr/base: Avoid link errors when module 'libunistring' is also used.
26098         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
26099         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
26100         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
26101         Declare also when HAVE_LIBUNISTRING is set.
26102         Reported by Pádraig Brady <P@draigbrady.com>.
26103
26104 2010-09-14  Eric Blake  <eblake@redhat.com>
26105
26106         test-rawmemchr: make more robust
26107         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
26108         (Depends-on, configure.ac): Add needed prerequisites to use it.
26109         * modules/memchr-tests (Files, Depends-on, configure.ac):
26110         Likewise, to avoid implicit reliance on memchr module prereqs.
26111         * tests/test-memchr.c (main): Ensure proper masking.
26112         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
26113         reads.
26114
26115         memchr: detect glibc Alpha bug
26116         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
26117         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
26118         Alpha.
26119         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
26120         * tests/test-memchr.c (main): Enhance test.
26121         Reported by Nelson H. F. Beebe.
26122
26123 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26124
26125         fts, getcwd, glob: audit for dirfd returning -1
26126         * lib/fts.c (opendir): Remove #define; no longer used.
26127         (opendirat): New arg PDIR_FD.  All callers changed.
26128         (fts_build, _opendir2): Use new opendirat to avoid the need for
26129         dirfd, or for checking whether dirfd returns a negative value.
26130         Don't use opendir; always use openat followed by fdopendir.
26131         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
26132         it.
26133         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
26134         returns -1 here.
26135         * modules/fts (Depends-on): Remove dirfd.
26136         * modules/getcwd (Depends-on): Likewise.
26137
26138 2010-09-13  Eric Blake  <eblake@redhat.com>
26139
26140         float: fix broken MirBSD header
26141         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
26142         * doc/posix-headers/float.texi (float.h): Document it.
26143
26144 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26145
26146         fts: use O_NOFOLLOW to avoid race condition when opening a directory
26147         * lib/fts.c (opendirat): New arg extra_flags.
26148         (__opendir2): Use it to avoid following symlinks when opening
26149         a directory, if symlinks are not supposed to be followed.  See
26150         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
26151
26152         fdopendir: preserve argument fd before returning
26153         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
26154         (fdopendir_with_dup, fd_clone_opendir): New static functions.
26155         (fdopendir): Use them, arranging for FD to be open to the same
26156         directory that it was when it started.  (It might be temporarily
26157         closed while fdopendir is running, so this not thread- or
26158         signal-safe.)  Be careful to do the right thing even when file
26159         descriptors are scarce and dup fails with errno == EMFILE.  See
26160         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
26161
26162 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
26163
26164         regex: Pass the system regex if its only problem is 32-bit regoff_t.
26165         * NEWS: Document change.
26166         * m4/regex.m4: Disable test for regoff_t size.
26167
26168 2010-09-13  Jim Meyering  <meyering@redhat.com>
26169
26170         fts: don't operate on an invalid file descriptor after failed dup
26171         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
26172         negative file descriptor.
26173
26174 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
26175
26176         savedir: add streamsavedir, deprecate fdsavedir
26177         * NEWS: Mention deprecation of fdsavedir.
26178         * lib/savedir.c (streamsavedir): New extern function, whose name
26179         ends in "savedir" to be consistent with the others.  This differs
26180         from savedirstream in that it doesn't close its argument.  The
26181         next version of GNU tar will use this instead of fdsavedir, to
26182         avoid some race conditions and conserve file descriptors.
26183         (savedirstream): Reimplement as a wrapper around streamsavedir.
26184         (fdsavedir): Add a comment deprecating this function.  As far as
26185         I know, only GNU tar used it, and GNU tar doesn't need it any more.
26186         * lib/savedir.h (streamsavedir): New decl.
26187         (fdsavedir): Add a comment deprecating this.
26188
26189 2010-09-10  Bruno Haible  <bruno@clisp.org>
26190
26191         langinfo: Fix last commit.
26192         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
26193         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
26194         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26195
26196 2010-09-10  Bruno Haible  <bruno@clisp.org>
26197
26198         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
26199         * lib/progreloc.c (O_EXEC): Define fallback.
26200
26201 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
26202
26203         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
26204         * NEWS: Document recent changes to fcntl-h.
26205         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
26206         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
26207         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
26208         Similarly for O_SEARCH; this last was already true, but not documented.
26209         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
26210         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
26211         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
26212         Likewise.
26213         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
26214         is zero, not whether it is defined.
26215         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
26216         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
26217         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
26218
26219 2010-09-10  Bruno Haible  <bruno@clisp.org>
26220
26221         langinfo, nl_langinfo: Fix for IRIX 5.3.
26222         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
26223         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
26224         HAVE_LANGINFO_YESEXPR.
26225         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
26226         HAVE_LANGINFO_YESEXPR.
26227         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
26228         HAVE_LANGINFO_T_FMT_AMPM is 0.
26229         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
26230         HAVE_LANGINFO_YESEXPR is 0.
26231         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
26232         NOEXPR.
26233         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
26234         * doc/posix-functions/nl_langinfo.texi: Likewise.
26235         Reported by Eric Blake.
26236
26237 2010-09-10  Bruno Haible  <bruno@clisp.org>
26238
26239         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
26240         * doc/glibc-functions/login_tty.texi: Mention the include file problem
26241         on FreeBSD 8.0 and OpenBSD 4.6.
26242         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
26243         * m4/pty_h.m4 (gl_PTY_H): Likewise.
26244         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
26245         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
26246         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
26247         ac_includes_default.
26248         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26249
26250 2010-09-09  Eric Blake  <eblake@redhat.com>
26251
26252         strsignal: work around NetBSD bug
26253         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
26254         * lib/string.in.h (includes): Likewise.
26255         * doc/posix-functions/strsignal.texi (strsignal): Document the
26256         bug.
26257         Reported by Nelson H. F. Beebe.
26258
26259         gnulib-tool: work with NetBSD /bin/sh
26260         * gnulib-tool (func_cache_var, func_cache_lookup_module)
26261         (func_get_description, func_get_comment, func_get_status)
26262         (func_get_notice, func_get_applicability, func_get_filelist)
26263         (func_get_dependencies, func_get_autoconf_early_snippet)
26264         (func_get_autoconf_snippet, func_get_automake_snippet)
26265         (func_get_include_directive, func_get_link_directive)
26266         (func_get_license, func_get_maintainer, func_import): Avoid
26267         shell syntax errors from parsing syntax extensions.
26268
26269 2010-09-09  Bruno Haible  <bruno@clisp.org>
26270
26271         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26272         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
26273         a reliable way to determine whether the 'alias' command works.
26274
26275 2010-09-08  Jim Meyering  <meyering@redhat.com>
26276
26277         init.sh: penalize a set-x-impaired shell; don't disqualify it
26278         * tests/init.sh: Too many shells corrupt application stderr when
26279         you set -x, so we can't afford to disqualify them, since at least
26280         on Irix-6.5, that would disqualify all bourne shells.
26281         Instead, use a two-pass approach.
26282         On the first pass, try to find a shell that meets the stricter
26283         condition that set -x does not corrupt stderr.
26284         If no shell meets the stricter condition, retest each candidate
26285         shell, but without that extra condition.  Finally, when
26286         VERBOSE=yes is requested and set -x might cause trouble, simply
26287         issue a warning and refrain from enabling debug output.
26288
26289 2010-09-08  Eric Blake  <eblake@redhat.com>
26290
26291         unsetenv: fix OpenBSD bug
26292         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
26293         * doc/posix-functions/unsetenv.texi (unsetenv): Update
26294         documentation.
26295         Reported by Jim Meyering.
26296
26297         strtod: work around IRIX 6.5 bug
26298         * lib/strtod.c (strtod): Reparse number on shorter string if
26299         exponent parse was invalid.
26300         * tests/test-strtod.c (main): Add check for "0x1p 2".
26301         Reported by Tom G. Christensen.
26302
26303         getopt: optimize previous patch
26304         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
26305         empty variable.  Speed up awk script.
26306         Reported by Paolo Bonzini.
26307
26308 2010-09-08  Jim Meyering  <meyering@redhat.com>
26309
26310         test.sh: disqualify shells for which set -x corrupts stderr
26311         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
26312         and OpenBSD 4.7.  They make it so with "set -x", environment settings
26313         appear in stderr output.  For example, this command:
26314             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
26315         prints "P=1" on those two systems:
26316
26317 2010-09-08  Bruno Haible  <bruno@clisp.org>
26318
26319         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26320         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
26321         commands, because some shells ignore redirections when there is an
26322         error in the command lookup.
26323         Reported by Eric Blake.
26324
26325 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
26326
26327         * lib/regex.h: Fix a mention of `regex_compile' (should be
26328         `re_compile_pattern').
26329         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
26330         (re_set_registers): Correct name of parameter in comment.
26331
26332         * doc/regex.texi: Add documentation for missing syntax flags.
26333         Remove commented-out documentation of defunct syntax option
26334         RE_NO_EMPTY_ALTS.
26335         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
26336         Add documentation of re_set_registers.
26337         Document trick to re-use a pattern buffer by setting fastmap manually.
26338         Update documentation of struct re_pattern_buffer per public members.
26339         Uncomment documentation of equivalence class operators and
26340         collating symbol operators, since they are now implemented,
26341         Explain leftmost-longest matching in relation to alternatives.
26342         Tidy documentation of substring matching.
26343         Remove POSIX documentation, which is done better in
26344         glibc, and refer the reader there. Keep BSD API documentation, as
26345         that is not readily available elsewhere.
26346
26347 2010-09-07  Eric Blake  <eblake@redhat.com>
26348
26349         getopt: handle POSIXLY_CORRECT set but not exported
26350         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
26351         export state of POSIXLY_CORRECT, due to bash set -o posix.
26352         Reported by Dustin J. Mitchell.
26353
26354 2010-09-05  Bruno Haible  <bruno@clisp.org>
26355
26356         gnulib-tool: Highlight the changed options.
26357         * gnulib-tool (func_usage): Display the --import, --add-import,
26358         --remove-import explanations in bold font.
26359
26360 2010-09-06  Karl Berry  <karl@gnu.org>
26361
26362         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
26363
26364 2010-09-05  Bruno Haible  <bruno@clisp.org>
26365
26366         uniwidth/width: Update comment.
26367         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
26368         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
26369
26370 2010-09-05  Bruno Haible  <bruno@clisp.org>
26371
26372         isinf, isnan: Relax license.
26373         * modules/isinf (License): Change from GPL to LGPL, with consent from
26374         Ben Pfaff.
26375         * modules/isnan (License): Likewise.
26376         Requested by Ludovic Courtès.
26377
26378 2010-09-04  Bruno Haible  <bruno@clisp.org>
26379
26380         gnulib-tool: Help migration from --import to --add-import or --update.
26381         * gnulib-tool: Emit a verbose error message when --import is used
26382         without any module name.
26383
26384 2010-09-04  Bruno Haible  <bruno@clisp.org>
26385
26386         Update doc about gnulib-tool.
26387         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
26388         'gnulib-tool --update' in more detail.
26389         Reported by Eric Blake.
26390
26391 2010-09-04  Bruno Haible  <bruno@clisp.org>
26392
26393         gnulib-tool: Change --import. New options --add/remove-import.
26394         * gnulib-tool: New options --add-import, --remove-import.
26395         (func_usage): Document them.
26396         (have_associative): Define always.
26397         (func_import): In import mode, don't merge the specified settings with
26398         the cached settings. Implement remove-import mode.
26399         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
26400         Explain when to use them versus --import.
26401         (Simple update): Use --add-import instead of --import.
26402         * NEWS: Mention the change.
26403
26404 2010-09-04  Bruno Haible  <bruno@clisp.org>
26405
26406         * doc/gnulib-tool.texi (Initial import): Update paragraph about
26407         separate gnulib.mk.
26408
26409 2010-09-04  Bruno Haible  <bruno@clisp.org>
26410
26411         gnulib-tool: Don't talk about CVS any more.
26412         * gnulib-tool (func_usage, func_import): Write "version control"
26413         instead of CVS.
26414
26415 2010-09-04  Jim Meyering  <meyering@redhat.com>
26416
26417         maint.mk: avoid obscure sc_copyright_check failure in coreutils
26418         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
26419         false positives (whose names may be ill-chosen) when searching
26420         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
26421         would cause a false-positive.
26422
26423         avoid coreutils "make distcheck" failure
26424         Coreutils tests with an absolute build directory name that contains
26425         a space.  Not quoting this directory name caused a failure.
26426         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
26427         * tests/test-vc-list-files-cvs.sh: Likewise.
26428
26429 2010-09-04  Bruno Haible  <bruno@clisp.org>
26430
26431         gnulib-tool: Avoid error when run in a package without Makefile.am.
26432         * gnulib-tool: When collecting the m4dirs in a package that does not
26433         have a Makefile.am, eliminate those directories that contain no
26434         gnulib-cache.m4. Fix expression that counts these directories.
26435
26436 2010-09-04  Bruno Haible  <bruno@clisp.org>
26437
26438         update-copyright test: Improve output when perl is missing or too old.
26439         * tests/test-update-copyright.sh: Move test of Perl version down after
26440         the test whether Perl exists. Provide an explanation relating Perl's
26441         error message to Automake's SKIP: message.
26442
26443 2010-09-04  Bruno Haible  <bruno@clisp.org>
26444
26445         Don't augment PATH in TESTS_ENVIRONMENT.
26446         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
26447         set abs_aux_dir instead of augmenting PATH.
26448         * modules/vc-list-files-tests (Makefile.am): Likewise.
26449         * tests/test-update-copyright.sh: Augment PATH here.
26450         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
26451         path_prepend_.
26452         * tests/test-vc-list-files-git.sh: Likewise.
26453
26454 2010-09-04  Jim Meyering  <meyering@redhat.com>
26455
26456         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
26457         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
26458
26459 2010-09-04  Bruno Haible  <bruno@clisp.org>
26460
26461         strdup: Fix compilation error in C++ mode.
26462         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
26463         the macro.
26464
26465 2010-09-04  Bruno Haible  <bruno@clisp.org>
26466
26467         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
26468         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
26469         macro into a function.
26470         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26471
26472 2010-09-04  Bruno Haible  <bruno@clisp.org>
26473
26474         Set PATH_SEPARATOR the same way autoconf does.
26475         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
26476         the value of PATH_SEPARATOR the same way autoconf-generated configure
26477         scripts do.
26478         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
26479         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
26480
26481 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
26482
26483         Set PATH_SEPARATOR the same way autoconf does.
26484         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
26485         the same way autoconf-generated configure scripts do.
26486         * posix-modules: Likewise.
26487
26488 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
26489
26490         hash: fix safe_hasher const typo
26491         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
26492         const; otherwise, there is a type error later.
26493
26494 2010-09-02  Jim Meyering  <meyering@redhat.com>
26495
26496         test-update-copyright.sh: require perl 5.8.0
26497         * tests/test-update-copyright.sh: Require 5.8.0,
26498         which Tom G. Christensen has confirmed is adequate,
26499         while 5.6.1 is not.
26500
26501 2010-09-02  Eric Blake  <eblake@redhat.com>
26502
26503         tests: init.sh improvements for re-exec'ing with zsh
26504         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
26505         -vx through shell re-exec.
26506         Reported by Tom G. Christensen.
26507
26508         wctype: fix typo in previous commit
26509         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
26510         Reported by Ludovic Courtès.
26511
26512 2010-09-02  Jim Meyering  <meyering@redhat.com>
26513
26514         test-update-copyright.sh: skip test if Perl is too old
26515         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
26516         Reported by Tom G. Christensen.
26517
26518 2010-09-02  Bruno Haible  <bruno@clisp.org>
26519
26520         wctype: Avoid compilation error on IRIX 6.5.30.
26521         * lib/wctype.in.h (iswblank): Declare with a replacement if
26522         REPLACE_ISWBLANK is set.
26523         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
26524         declared. Set REPLACE_ISWBLANK.
26525         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
26526         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
26527         * doc/posix-headers/wctype.texi: Likewise.
26528         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26529
26530 2010-09-01  Bruno Haible  <bruno@clisp.org>
26531
26532         New module 'socketlib'.
26533         * modules/socketlib: New file.
26534         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
26535         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
26536         * modules/sockets (Depends-on): Add socketlib.
26537         Suggested by Sam Steingold <sds@gnu.org>.
26538
26539 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
26540
26541         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
26542
26543         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
26544         when one needs search access to a directory but not read access.
26545         On systems where it is available, it works in some cases where
26546         O_RDONLY does not, namely on directories that are searchable but
26547         not readable, and which need only to be searchable.  If O_SEARCH
26548         is not available, fall back to the traditional method of using
26549         O_RDONLY.
26550
26551         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
26552         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
26553         when opening a directory that needs only to be searchable.
26554         * lib/chdir-safer.c (chdir_no_follow): Likewise.
26555         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
26556         * lib/openat-proc.c (openat_proc_name): Likewise.
26557         * lib/openat.c (openat_needs_fchdir): Likewise.
26558         * lib/save-cwd.c (save_cwd): Likewise.
26559         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
26560
26561 2010-08-28  Bruno Haible  <bruno@clisp.org>
26562
26563         New module 'host-cpu-c-abi'.
26564         * modules/host-cpu-c-abi: New file.
26565         * m4/host-cpu-c-abi.m4: New file, based on part of
26566         clisp/src/m4/general.m4.
26567         Requested by Sam Steingold <sds@gnu.org>.
26568
26569 2010-08-31  Eric Blake  <eblake@redhat.com>
26570         and Jim Meyering  <meyering@redhat.com>
26571
26572         hash: factor, and guard against misbehaving hasher function
26573         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
26574         of table->hasher's return value.  Also protect against a hash value
26575         so large that adding it to table->bucket results in a NULL pointer.
26576         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
26577         Use it in place of open-coded check-and-abort.
26578
26579 2010-08-30  Bruno Haible  <bruno@clisp.org>
26580
26581         hash: silence spurious clang warning
26582         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
26583         Reported by Eric Blake.
26584
26585 2010-08-30  Eric Blake  <eblake@redhat.com>
26586
26587         strstr, memmem, strcasestr: avoid leaked shell message
26588         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
26589         FreeBSD.
26590         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26591         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26592
26593         tests: silence clang warning
26594         * tests/test-malloca.c (do_allocation): Avoid dead store.
26595
26596 2010-08-29  Bruno Haible  <bruno@clisp.org>
26597
26598         gettext: Fix recent mistake.
26599         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
26600
26601 2010-08-29  Bruno Haible  <bruno@clisp.org>
26602
26603         selinux-h: Offer a --without-selinux option.
26604         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
26605         --without-selinux was specified, skip all tests and define
26606         HAVE_SELINUX_SELINUX_H to 0.
26607         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
26608         set LIB_SELINUX to empty.
26609         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
26610         gl_LIBSELINUX. If --without-selinux was specified, replace
26611         selinux/context.h.
26612         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
26613
26614 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26615             Bruno Haible  <bruno@clisp.org>
26616
26617         Make the module 'realloc-gnu' work again on AIX and OSF/1.
26618         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
26619         of HAVE_REALLOC.
26620         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
26621         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
26622         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
26623         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26624
26625 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26626             Bruno Haible  <bruno@clisp.org>
26627
26628         Make the module 'calloc-gnu' work again on AIX and OSF/1.
26629         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
26630         HAVE_CALLOC.
26631         * lib/xmalloc.c: Update accordingly.
26632         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
26633         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
26634         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
26635
26636 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26637             Bruno Haible  <bruno@clisp.org>
26638
26639         Make the module 'malloc-gnu' work again on AIX and OSF/1.
26640         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
26641         HAVE_MALLOC.
26642         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
26643         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
26644         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26645
26646 2010-08-29  Bruno Haible  <bruno@clisp.org>
26647
26648         Update modules list.
26649         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
26650         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
26651         (String handling <string.h>): Add astrxfrm.
26652         (File system functions): Add readlinkat.
26653
26654 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26655
26656         Tests for module 'realloc-gnu'.
26657         * modules/realloc-gnu-tests: New file.
26658         * tests/test-realloc-gnu.c: New file.
26659
26660         Tests for module 'calloc-gnu'.
26661         * modules/calloc-gnu-tests: New file.
26662         * tests/test-calloc-gnu.c: New file.
26663
26664         Tests for module 'malloc-gnu'.
26665         * modules/malloc-gnu-tests: New file.
26666         * tests/test-malloc-gnu.c: New file.
26667
26668 2010-08-28  Bruno Haible  <bruno@clisp.org>
26669
26670         Rename module 'realloc' -> 'realloc-gnu'.
26671         * modules/realloc-gnu: New file, copied from modules/realloc.
26672         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
26673         obsolete.
26674         * modules/mgetgroups (Depends-on): Update.
26675         * doc/posix-functions/realloc.texi: Update.
26676         * NEWS: Mention the change.
26677
26678         Rename module 'calloc' -> 'calloc-gnu'.
26679         * modules/calloc-gnu: New file, copied from modules/calloc.
26680         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
26681         obsolete.
26682         * doc/posix-functions/calloc.texi: Update.
26683         * NEWS: Mention the change.
26684
26685         Rename module 'malloc' -> 'malloc-gnu'.
26686         * modules/malloc-gnu: New file, copied from modules/malloc.
26687         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
26688         obsolete.
26689         * modules/argp (Depends-on): Update.
26690         * modules/regex (Depends-on): Update.
26691         * doc/posix-functions/malloc.texi: Update.
26692         * NEWS: Mention the change.
26693
26694 2010-08-28  Eric Blake  <eblake@redhat.com>
26695
26696         pread, pwrite: add missing dependency
26697         * modules/pread (Depends-on): Add extensions.
26698         * modules/pwrite (Depends-on): Likewise.
26699
26700 2010-08-28  Bruno Haible  <bruno@clisp.org>
26701
26702         unistr/u*-strchr: Fix tests dependencies.
26703         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
26704         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
26705         Reported by Ian Beckwith <ianb@erislabs.net>.
26706
26707 2010-08-28  Bruno Haible  <bruno@clisp.org>
26708
26709         read-file: Don't occupy too much unused memory.
26710         * lib/read-file.c (fread_file): Shrink the buffer at the end.
26711
26712 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
26713             Eric Blake  <eblake@redhat.com>
26714             Bruno Haible  <bruno@clisp.org>
26715
26716         read-file: Avoid memory reallocations with regular files.
26717         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
26718         (fread_file): With regular files, use the remaining length as the
26719         initial buffer size.  Check against overflow.
26720         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
26721         sys_stat.
26722
26723 2010-08-28  Bruno Haible  <bruno@clisp.org>
26724
26725         ftello: Relax license.
26726         * modules/ftello (License): Relax to LGPLv2+.
26727         Reported by Eric Blake.
26728
26729 2010-08-28  Bruno Haible  <bruno@clisp.org>
26730
26731         Avoid relocwrapper link errors due to gnulib replacement functions.
26732         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
26733         function.
26734         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26735
26736 2010-08-28  Bruno Haible  <bruno@clisp.org>
26737
26738         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
26739         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
26740         defined.
26741         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
26742         Suggested by Eric Blake.
26743
26744 2010-08-28  Bruno Haible  <bruno@clisp.org>
26745
26746         sys_socket, netdb: Ensure socklen_t gets defined.
26747         * modules/sys_socket (Depends-on): Add socklen.
26748         * modules/netdb (Depends-on): Likewise.
26749         * modules/getaddrinfo (Depends-on): Remove socklen.
26750         * modules/getsockopt (Depends-on): Likewise.
26751         * modules/setsockopt (Depends-on): Likewise.
26752         * tests/test-sys_socket.c: Check that socklen_t is defined.
26753         * tests/test-netdb.c: Likewise.
26754         * m4/socklen.m4: Update comments.
26755         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26756
26757 2010-08-27  Eric Blake  <eblake@redhat.com>
26758
26759         login_tty: add missing dependency
26760         * modules/login_tty (Depends-on): Add pty.
26761
26762 2010-08-26  Eric Blake  <eblake@redhat.com>
26763
26764         lib-symbol-versions: fix m4 quoting
26765         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
26766         format for AC_LINK_IFELSE.
26767
26768         glob: fix compile test
26769         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
26770
26771         btowc: fix missing file
26772         * modules/btowc (Files): Also ship locale-fr.m4.
26773
26774         lseek: fix link test
26775         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
26776         AC_LINK_IFELSE.
26777
26778         include_next: silence autoconf 2.68 warning
26779         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
26780         AC_COMPILE_IFELSE as special.
26781         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
26782         autoconf < 2.68.
26783
26784         acl: fix compilation test
26785         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
26786         AC_COMPILE_IFELSE.
26787
26788 2010-08-26  Bruno Haible  <bruno@clisp.org>
26789
26790         Modernize AC_TRY_RUN invocations.
26791         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
26792         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
26793         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
26794         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
26795         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
26796         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26797         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26798         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26799         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26800         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26801         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26802         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26803         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26804         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26805         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26806         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26807         gl_MBRLEN_NUL_RETVAL): Likewise.
26808         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26809         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
26810         Likewise.
26811         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26812         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26813         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26814         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26815         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
26816         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
26817         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
26818         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
26819         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
26820         Likewise.
26821         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
26822         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
26823         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26824         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26825         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26826         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26827         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26828         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
26829         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26830         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26831
26832 2010-08-26  Bruno Haible  <bruno@clisp.org>
26833
26834         Modernize AC_TRY_LINK invocations.
26835         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
26836         AC_TRY_LINK.
26837         * m4/argp.m4 (gl_ARGP): Likewise.
26838         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
26839         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26840         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
26841         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26842         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26843         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
26844         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
26845         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
26846         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26847         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
26848         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26849         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
26850         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
26851         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26852         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
26853         * m4/hostent.m4 (gl_HOSTENT): Likewise.
26854         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26855         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
26856         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
26857         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
26858         Likewise.
26859         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
26860         Likewise.
26861         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
26862         Likewise.
26863         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
26864         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
26865         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
26866         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
26867         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
26868         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26869         * m4/servent.m4 (gl_SERVENT): Likewise.
26870         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
26871         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
26872         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
26873         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
26874         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26875         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
26876         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26877         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26878         * modules/tsearch-tests (configure.ac): Likewise.
26879
26880 2010-08-26  Bruno Haible  <bruno@clisp.org>
26881
26882         Modernize AC_TRY_COMPILE invocations.
26883         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
26884         AC_TRY_COMPILE.
26885         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
26886         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
26887         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
26888         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
26889         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
26890         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
26891         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26892         * m4/lock.m4 (gl_LOCK): Likewise.
26893         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
26894         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26895         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
26896         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
26897         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
26898         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
26899         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
26900         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
26901         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
26902         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
26903         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
26904         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
26905         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
26906         extraneous semicolon.
26907
26908 2010-08-26  Jim Meyering  <meyering@redhat.com>
26909
26910         stat-time: relax license LGPL
26911         * modules/stat-time (License): Change from GPL to LGPL,
26912         with consent from all contributors, for use in libguile.
26913         Requested by Ludovic Courtès.
26914
26915 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
26916
26917         poll: return immediately on POLLHUP.
26918         * lib/poll.c (poll): Always set timeout before wait_timeout is
26919         computed.
26920
26921 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26922
26923         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
26924         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
26925         rmdir ("dir/.//"), unlinkat.
26926
26927 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26928
26929         stdbool: avoid spurious failure with modern xlc
26930         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26931
26932 2010-08-24  Bruno Haible  <bruno@clisp.org>
26933
26934         getloadavg: simplify code
26935         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
26936         gl_have_func. Update comments.
26937
26938 2010-08-24  Eric Blake  <eblake@redhat.com>
26939
26940         getloadavg: don't define SVR4 on cygwin
26941         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
26942         only define SVR4 when -lkvm is required.
26943         Reported by Yaakov Selkowitz.
26944
26945 2010-08-24  Bruno Haible  <bruno@clisp.org>
26946
26947         priv-set: fix comment
26948         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
26949
26950 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26951
26952         priv-set: fix comments
26953         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
26954         to match code, as suggested by David Bartley in:
26955         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
26956
26957 2010-08-23  Eric Blake  <eblake@redhat.com>
26958
26959         stdbool: avoid rejecting clang
26960         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26961         * tests/test-stdbool.c: Enable more tests if using the system
26962         <stdbool.h> instead of the gnulib replacement.
26963         (main): Move xlc bug test to a runtime test for all compilers.
26964         Reported by Anders Kaseorg.
26965
26966         argz: fix shell quoting issue
26967         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
26968         Reported by Charles Wilson.
26969
26970 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
26971             Erik Faye-Lund <kusmabite@gmail.com>
26972
26973         poll, select: handle ERROR_BROKEN_PIPE.
26974         * lib/poll.c (win32_compute_revents): Return POLLHUP when
26975         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26976         * lib/select.c (win32_compute_revents): Do not mark a pipe
26977         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26978
26979 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
26980
26981         fts: allow compilation with C++
26982         * lib/fts_.h: Specify extern "C" linkage with C++.
26983
26984 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26985
26986         Fix gnulib-tool sed script de-commentation for AIX sed.
26987         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
26988         sed.
26989
26990 2010-08-17  Eric Blake  <eblake@redhat.com>
26991
26992         test-stddef: test for (some) offsetof bugs
26993         * tests/test-stddef.c: Enhance test to ensure correct type of
26994         offsetof.
26995         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
26996         that we are not fixing at this time.
26997
26998 2010-08-15  Bruno Haible  <bruno@clisp.org>
26999
27000         stpncpy: Allow stpncpy to be defined as a macro.
27001         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
27002         if it's already correctly declared.
27003         * lib/string.in.h (stpncpy): Undefine before redefining.
27004         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
27005
27006 2010-08-14  Bruno Haible  <bruno@clisp.org>
27007
27008         Rename module 'memxfrm' to 'amemxfrm'.
27009         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
27010         (amemxfrm): Renamed from memxfrm.
27011         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
27012         (amemxfrm): Renamed from memxfrm.
27013         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
27014         * NEWS: Mention the change.
27015         * MODULES.html.sh (String handling <string.h>): Update.
27016         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
27017         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
27018         * lib/unicase/u16-casexfrm.c: Likewise.
27019         * lib/unicase/u32-casexfrm.c: Likewise.
27020         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
27021         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
27022         * lib/uninorm/u16-normxfrm.c: Likewise.
27023         * lib/uninorm/u32-normxfrm.c: Likewise.
27024         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
27025         memxfrm.
27026         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
27027         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
27028         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
27029         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
27030         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
27031         Suggested by Paul Eggert.
27032
27033 2010-08-14  Bruno Haible  <bruno@clisp.org>
27034
27035         Tests for module 'astrxfrm'.
27036         * modules/astrxfrm-tests: New file.
27037         * tests/test-astrxfrm.c: New file.
27038
27039         New module 'astrxfrm'.
27040         * lib/astrxfrm.h: New file.
27041         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
27042         * modules/astrxfrm: New file.
27043
27044 2010-08-14  Reuben Thomas <rrt@sc3d.org>
27045
27046         regex: Tweak doc.
27047         * doc/regex.texi (Overview): Don't mention regex.c.
27048         (GNU Regular Expression Compiling): Likewise.
27049         (Match-end-of-line Operator): Mention 'not_eol'.
27050
27051 2010-08-14  Brian Gough  <bjg@gnu.org>
27052             Bruno Haible  <bruno@clisp.org>
27053
27054         git-merge-changelog: add doc relating to use with bzr and hg.
27055         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
27056
27057 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
27058
27059         pthread: fix pthread.h creation for srcdir != builddir
27060         * modules/pthread (Makefile.am): Fix the rule to work also in a
27061         non-srcdir build.
27062
27063 2010-08-13  Karl Berry  <karl@gnu.org>
27064
27065         * doc/regex.texi (Predefined Syntaxes): @smallexample.
27066         * doc/posix-*/*: force line break before @url of POSIX
27067         specifications.
27068         Suggested by Werner Lemberg.
27069
27070 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
27071
27072         strtod: fix const diagnostic
27073         * lib/strtod.c (strtod): Don't assign const char * to char *,
27074         as this elicits a warning from GCC when warnings are enabled.
27075
27076 2010-08-10  Pádraig Brady <P@draigbrady.com>
27077         and Eric Blake  <eblake@redhat.com>
27078
27079         copy-acl: ignore ENOTSUP on HP-UX
27080         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
27081         so that it is available for HP-UX.
27082         * lib/copy-acl.c (qcopy_acl): Use it.
27083         Reported by Patrick M. Callahan.
27084
27085 2010-08-10  Eric Blake  <eblake@redhat.com>
27086
27087         open, chown: relax license
27088         * modules/open (License): Change to LGPLv2+, with consent by all
27089         authors, for use in augeas.
27090         * modules/chown (License): Likewise.
27091         * modules/lchown (Likewise): Likewise.
27092         Requested by Adam Stokes.
27093
27094 2010-08-09  Karl Berry  <karl@gnu.org>
27095
27096         * build-aux/ar-lib: new file, import from Automake.
27097         * config/srclist.txt: autocheck for updates.
27098
27099 2010-08-09  Eric Blake  <eblake@redhat.com>
27100
27101         readlinkat: adjust client modules
27102         * modules/areadlinkat (Depends-on): Use readlinkat, not
27103         symlinkat.
27104         * modules/areadlinkat-with-size (Depends-on): Likewise.
27105
27106         mknod: be more vocal about danger of running tests as root
27107         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
27108         root, since that is just asking for problems.
27109         Suggested by Bruno Haible, based on a report by Rainer Tammer.
27110
27111         readlinkat: split into its own module
27112         * modules/symlinkat: Split readlinkat...
27113         * modules/readlinkat: ...into separate module.
27114         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
27115         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
27116         * lib/symlinkat.c (readlinkat): Move...
27117         * lib/readlinkat.c: ...into new file.
27118         * modules/symlinkat-tests: Split readlinkat test...
27119         * modules/readlinkat-tests: ...into separate module.
27120         * tests/test-symlinkat.c: Split...
27121         * tests/test-readlinkat.c: ...into new file.
27122         * NEWS: Document the split.
27123         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27124         * lib/unistd.in.h (readlinkat): Likewise.
27125         Suggested by Bruno Haible.
27126
27127 2010-08-08  Bruno Haible  <bruno@clisp.org>
27128
27129         memxfrm: Speed up.
27130         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
27131         that usually only one call to strxfrm is necessary for each string
27132         part.
27133         Reported by Paul Eggert <eggert@cs.ucla.edu>.
27134
27135 2010-08-07  Karl Berry  <karl@gnu.org>
27136
27137         * doc/posix-headers/limits.texi,
27138         * doc/posix-functions/malloc.texi,
27139         * doc/posix-functions/strsignal.texi: missing @item.
27140         * doc/ld-version-script.texi: spurious leading i.
27141         * doc/regex.texi (Interval Operators): no commas inside @var.
27142
27143 2010-08-01  Bruno Haible  <bruno@clisp.org>
27144
27145         Integrate the regex documentation.
27146         * doc/gnulib.texi: Define 'cn' index.
27147         (Regular expressions): New a chapter that includes regex.texi and
27148         regexprops-generic.texi.
27149         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
27150         syntax.
27151
27152         Whitespace cleanup.
27153         * doc/regex.texi: Remove trailing spaces.
27154
27155         Add regex documentation.
27156         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
27157         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
27158         Written by Kathy A. Hargreaves and Karl Berry.
27159
27160 2010-08-01  Bruno Haible  <bruno@clisp.org>
27161
27162         link: Update documentation.
27163         * doc/posix-functions/link.texi: Update regarding Solaris.
27164
27165 2010-07-31  Bruno Haible  <bruno@clisp.org>
27166
27167         Update modules list.
27168         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
27169         (String handling <string.h>): Add memcmp2, memxfrm.
27170         (Container data structures): Add xlist, xsublist, xoset.
27171         (Core language properties): Add alignof, unused-parameter.
27172         (Process control, Numeric conversion functions <stdlib.h>): Renamed
27173         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
27174         (Unibyte characters <ctype.h>): New section.
27175         (String handling <string.h>): New section.
27176         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
27177         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
27178         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
27179         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
27180         tan, tanh, tanl, y0, y1, yn.
27181         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
27182         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
27183         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
27184         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
27185         unlockpt, vdprintf, vdprintf-posix.
27186         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
27187         (File system functions): Add concat-filename, sys_file, sys_ioctl,
27188         xconcat-filename.
27189         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
27190         getdtablesize, pipe2, pipe2-safer.
27191         (Security): New section.
27192         (Networking functions): Add accept4.
27193         (Signal handling): Add sigpipe.
27194         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
27195         mbmemcasecoll.
27196         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
27197         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
27198         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
27199         pipe-filter-ii.
27200         (Misc): Add argp-version-etc, login_tty, parse-duration.
27201
27202 2010-07-31  Bruno Haible  <bruno@clisp.org>
27203
27204         Improve doc in MODULES.html.
27205         * modules/linkat (Description): Add the word "function".
27206         * modules/mkfifo (Description): Likewise.
27207         * modules/mknod (Description): Likewise.
27208         * modules/remove (Description): Likewise.
27209         * modules/renameat (Description): Likewise.
27210         * modules/stat (Description): Likewise.
27211         * modules/symlink (Description): Likewise.
27212         * modules/unlink (Description): Likewise.
27213
27214 2010-07-31  Bruno Haible  <bruno@clisp.org>
27215
27216         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
27217         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
27218         option --enable/disable-c++ instead of --enable/disable-cxx.
27219         * NEWS: Mention the change.
27220
27221 2010-07-31  Bruno Haible  <bruno@clisp.org>
27222
27223         readlink, areadlink: Relax test a bit.
27224         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
27225         alternative to ENOTDIR.
27226         * tests/test-areadlink.h (test_areadlink): Likewise.
27227         Reported by Rainer Tammer.
27228
27229 2010-07-31  Bruno Haible  <bruno@clisp.org>
27230
27231         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
27232         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
27233         character, perform the search using U_STRCHR.
27234         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
27235         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
27236         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
27237         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
27238         Suggested by Paolo Bonzini.
27239
27240 2010-07-31  Bruno Haible  <bruno@clisp.org>
27241
27242         unistr/u*-strstr: Fix dependencies.
27243         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
27244         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
27245         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
27246
27247 2010-07-31  Bruno Haible  <bruno@clisp.org>
27248
27249         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
27250         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
27251         the beginning of the loop.
27252         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
27253         cases in 'switch' statement.
27254
27255         unistr/u8-strchr: Fix several bugs.
27256         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
27257         the string. When not found, return NULL, not a pointer near the end.
27258
27259         More tests for unistr/u8-strchr.
27260         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
27261         that the function does not read past the first occurrence of the byte
27262         being searched.
27263         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
27264         * tests/unistr/test-u16-strchr.c (main): New function.
27265         * tests/unistr/test-u32-strchr.c (main): New function.
27266
27267 2010-07-31  Bruno Haible  <bruno@clisp.org>
27268
27269         posix-modules: Ignore backup files of documentation files.
27270         * posix-modules: grep only through files named *.texi.
27271
27272 2010-07-31  Bruno Haible  <bruno@clisp.org>
27273
27274         symlinkat: Fix documentation.
27275         * doc/posix-functions/readlinkat.texi: Fix module name.
27276
27277 2010-07-31  Bruno Haible  <bruno@clisp.org>
27278
27279         fchownat: Replace also when chown has the trailing slash bug.
27280         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
27281         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
27282         introduced on 2010-04-10.
27283         Reported by Rainer Tammer.
27284
27285 2010-07-31  Bruno Haible  <bruno@clisp.org>
27286
27287         linkat: Work around AIX 7.1 bug.
27288         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
27289         whether linkat handles trailing slash correctly. If not, replace linkat
27290         and define LINKAT_TRAILING_SLASH_BUG.
27291         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
27292         check whether (fd1,file1) points to a directory if file1 or file2 ends
27293         in a slash. Code taken from lib/link.c.
27294         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
27295         Reported by Rainer Tammer.
27296
27297 2010-07-31  Bruno Haible  <bruno@clisp.org>
27298
27299         Correctly determine whether pow is available in libc on AIX 7 with xlc.
27300         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
27301         This disables an xlc optimization that was causing wrong test results.
27302         Reported by Rainer Tammer.
27303
27304 2010-07-31  Bruno Haible  <bruno@clisp.org>
27305
27306         iconv: Work around AIX 6.1..7.1 bug.
27307         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
27308         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
27309         cross-compiling, guess no on all versions of AIX.
27310         Reported by Rainer Tammer.
27311
27312 2010-07-31  Bruno Haible  <bruno@clisp.org>
27313
27314         readlink: Relax test a bit.
27315         * tests/test-readlink.h (test_readlink): Allow different errno value
27316         when readlink is called with a file name that ends in / and refers to
27317         a file.
27318         Suggested by Eric Blake.
27319         Reported by Rainer Tammer.
27320
27321 2010-07-31  Bruno Haible  <bruno@clisp.org>
27322
27323         copysign: Does not require -lm on glibc systems.
27324         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
27325         gl_COMMON_DOUBLE_MATHFUNC.
27326         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
27327
27328 2010-07-31  Bruno Haible  <bruno@clisp.org>
27329
27330         duplocale: Work around AIX 7.1 bug.
27331         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
27332         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
27333         * lib/duplocale.c (rpl_duplocale): Update comment.
27334         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
27335         Reported by Rainer Tammer.
27336
27337 2010-07-30  Bruno Haible  <bruno@clisp.org>
27338
27339         dirfd: Avoid link error on AIX 7.1.
27340         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
27341         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
27342         exist, set REPLACE_DIRFD.
27343         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
27344         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
27345         * doc/posix-functions/dirfd.texi: Update.
27346         Reported by Rainer Tammer.
27347
27348 2010-07-30  Eric Blake  <eblake@redhat.com>
27349
27350         strtod: next round of AIX fixes
27351         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
27352         exponent.
27353         * tests/test-strtod.c (main): Enhance tests.
27354         * doc/posix-functions/strtod.texi (strtod): Document next bug.
27355         Reported by Rainer Tammer.
27356
27357         futimens: fix configure check
27358         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
27359         Reported by Bruno Haible.
27360
27361 2010-07-30  Bruno Haible  <bruno@clisp.org>
27362
27363         getline: Update regarding AIX.
27364         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
27365         Reported by Rainer Tammer.
27366
27367 2010-07-30  Bruno Haible  <bruno@clisp.org>
27368
27369         wcwidth: Drop replacement on AIX 7.
27370         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
27371         AIX 7.
27372         Reported by Rainer Tammer.
27373
27374 2010-07-30  Bruno Haible  <bruno@clisp.org>
27375
27376         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
27377         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
27378         a 'char *'.
27379         Reported by Rainer Tammer.
27380
27381 2010-07-30  Bruno Haible  <bruno@clisp.org>
27382
27383         unlink: Update regarding AIX.
27384         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
27385         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
27386         Reported by Rainer Tammer.
27387
27388 2010-07-30  Bruno Haible  <bruno@clisp.org>
27389
27390         symlink: Update regarding AIX.
27391         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
27392         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
27393         Reported by Rainer Tammer.
27394
27395 2010-07-30  Bruno Haible  <bruno@clisp.org>
27396
27397         strndup: Update regarding AIX.
27398         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
27399         AIX 7.
27400         Reported by Rainer Tammer.
27401
27402 2010-07-30  Bruno Haible  <bruno@clisp.org>
27403
27404         stat: Update regarding AIX.
27405         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
27406         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
27407         Reported by Rainer Tammer.
27408
27409 2010-07-30  Bruno Haible  <bruno@clisp.org>
27410
27411         truncl: Fix autoconf test.
27412         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
27413         whether truncl works.
27414         Reported by Rainer Tammer.
27415
27416 2010-07-30  Bruno Haible  <bruno@clisp.org>
27417
27418         round: Update regarding AIX.
27419         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
27420         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
27421         Reported by Rainer Tammer.
27422
27423 2010-07-30  Bruno Haible  <bruno@clisp.org>
27424
27425         rename: Update regarding AIX.
27426         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
27427         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
27428         Reported by Rainer Tammer.
27429
27430 2010-07-30  Bruno Haible  <bruno@clisp.org>
27431
27432         printf.m4: Update regarding AIX.
27433         * m4/printf.m4: Update comments regarding AIX.
27434         Reported by Rainer Tammer.
27435
27436 2010-07-30  Bruno Haible  <bruno@clisp.org>
27437
27438         iconv: Update regarding AIX.
27439         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
27440         AIX 7.
27441         Reported by Rainer Tammer.
27442
27443 2010-07-30  Bruno Haible  <bruno@clisp.org>
27444
27445         getopt: Update regarding AIX.
27446         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
27447         no on AIX.
27448         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
27449         Reported by Rainer Tammer.
27450
27451 2010-07-30  Bruno Haible  <bruno@clisp.org>
27452
27453         ldexpl; Update regarding AIX.
27454         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
27455         on AIX 7.
27456         Reported by Rainer Tammer.
27457
27458 2010-07-30  Bruno Haible  <bruno@clisp.org>
27459
27460         frexpl: Update regarding AIX.
27461         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
27462         on AIX 7.
27463         Reported by Rainer Tammer.
27464
27465 2010-07-30  Bruno Haible  <bruno@clisp.org>
27466
27467         open, fopen: Update regarding AIX.
27468         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
27469         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
27470         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
27471         * doc/posix-functions/fopen.texi: Likewise.
27472         Reported by Rainer Tammer.
27473
27474 2010-07-30  Bruno Haible  <bruno@clisp.org>
27475
27476         chown: Update doc regarding AIX.
27477         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
27478         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
27479         Reported by Rainer Tammer.
27480
27481 2010-07-30  Eric Blake  <eblake@redhat.com>
27482
27483         strtod: fix bug in replacement function on AIX
27484         * lib/strtod.c (strtod): Special case broken "0x" parse in
27485         underlying strtod.
27486         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
27487         * doc/posix-functions/strtod.texi (strtod): Likewise.
27488         Reported by Rainer Tammer.
27489
27490 2010-07-30  Bruno Haible  <bruno@clisp.org>
27491
27492         mbrlen: Fix cross-compilation guess for AIX.
27493         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
27494         guess. Leftover from 2008-12-22.
27495
27496 2010-07-30  Bruno Haible  <bruno@clisp.org>
27497
27498         mbrtowc: Fix cross-compilation guess for AIX.
27499         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
27500         guess. Leftover from 2008-12-21.
27501
27502 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
27503
27504         init.sh: work around trap limitation of some shells
27505         * tests/init.sh (setup_): Move exit trap outside of shell function.
27506
27507 2010-07-29  Eric Blake  <eblake@redhat.com>
27508
27509         strtod: aid debugging
27510         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
27511         understanding why strtod is rejected.
27512
27513 2010-07-28  Bruno Haible  <bruno@clisp.org>
27514
27515         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
27516         * lib/unistr/u8-chr.c: Include <string.h>.
27517         * tests/unistr/test-u8-chr.c: Likewise.
27518         * tests/unistr/test-u16-chr.c: Likewise.
27519         * tests/unistr/test-u32-chr.c: Likewise.
27520         * tests/unistr/test-u8-strchr.c: Likewise.
27521         * tests/unistr/test-u16-strchr.c: Likewise.
27522         * tests/unistr/test-u32-strchr.c: Likewise.
27523         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
27524         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
27525         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
27526         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
27527
27528 2010-07-28  Bruno Haible  <bruno@clisp.org>
27529
27530         Use spaces for indentation, not tabs.
27531         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
27532
27533 2010-07-27  Bruno Haible  <bruno@clisp.org>
27534
27535         mbspcasecmp: Fix function specification.
27536         * lib/string.in.h (mbspcasecmp): Fix specification comment.
27537         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
27538         Reported by Eric Blake <eblake@redhat.com>.
27539
27540 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
27541
27542         timespec: use cast and not conditional, as truncation isn't possible
27543         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
27544         instead of a conditional.  Comment about the situation in more detail.
27545         This undoes most of the 2009-10-29 patch.
27546
27547 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
27548
27549         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
27550         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
27551         * lib/unistr/u8-strchr.c: Likewise.
27552         * modules/unistr/u8-chr: Depend on memchr.
27553
27554         unistr/u*-strchr: add tests
27555         * modules/unistr/u8-strchr-tests: New file.
27556         * modules/unistr/u16-strchr-tests: New file.
27557         * modules/unistr/u32-strchr-tests: New file.
27558         * tests/unistr/test-strchr.h: New file.
27559         * tests/unistr/test-u8-strchr.c: New file.
27560         * tests/unistr/test-u16-strchr.c: New file.
27561         * tests/unistr/test-u32-strchr.c: New file.
27562
27563         unistr/u*-chr: test multibyte sequences more
27564         * tests/unistr/test-chr.h: Do complete testing of the characters in the
27565         test vector.
27566         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
27567         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
27568         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
27569
27570         unistr/u*-chr: test multibyte sequences
27571         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
27572
27573         unistr/u*-chr: prepare for multibyte tests
27574         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
27575         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
27576         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
27577         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
27578         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
27579         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
27580
27581 2010-07-18  Bruno Haible  <bruno@clisp.org>
27582
27583         unistr/u8-strchr: Optimize non-ASCII argument case.
27584         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
27585         because the first byte often matches anyway.
27586         Reported by Pádraig Brady <P@draigbrady.com>.
27587
27588 2010-07-15  Karl Berry  <karl@gnu.org>
27589
27590         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
27591
27592 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
27593
27594         getcwd: on Solaris, work better if ancestors are inaccessible
27595         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
27596         buffer and size, try again with a large buffer.  This works better
27597         on Solaris, since its getcwd succeeds even if the path to the root
27598         is inaccessible, and this is helpful in common cases such as .zfs
27599         hidden directories.  Problem reported by J Chapman Flack in
27600         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
27601         Use system getcwd if it's declared, not merely if it's partly
27602         working; use the partly-working test only to avoid needless effort
27603         if the system getcwd fails.
27604         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
27605         comment that was already obsolete and is now even more obsolete.
27606         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
27607         now might call strdup.
27608
27609 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
27610
27611         pthread: Add enough so that coreutils/src/sort.c compiles.
27612         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
27613         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
27614         gnulib. Include <sched.h> and <time.h>, as per POSIX.
27615         Include <sys/types.h>, in case it defines pthread_t.
27616         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
27617         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
27618         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
27619         (pthread_rwlockattr_t, pthread_spinlock_t):
27620         New typedefs, if HAVE_PTHREAD_T is not defined.
27621         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
27622         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
27623         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
27624         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
27625         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
27626         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
27627         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
27628         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
27629         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
27630         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
27631         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
27632         New macros.
27633         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
27634         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
27635         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
27636         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
27637         (pthread_spin_unlock): New dummy functions.
27638         (pthread_create): Return EAGAIN; don't set errno.
27639         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
27640         require AC_C_INLINE.
27641         * modules/pthread (Depends-on): Add sched, time.
27642         (pthread.h): Use AM_V_GEN.
27643
27644 2010-07-13  Bruno Haible  <bruno@clisp.org>
27645
27646         striconveh: Don't malloc memory if the result buffer is sufficient.
27647         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
27648         buffer if its size is sufficient.
27649         Reported by Ludovic Courtès <ludo@gnu.org>.
27650
27651 2010-07-13  Bruno Haible  <bruno@clisp.org>
27652
27653         strtod: Add safety check.
27654         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
27655
27656 2010-07-12  Bruno Haible  <bruno@clisp.org>
27657
27658         Unify tests that set gl_cv_func_ldexpl_no_libm.
27659         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
27660         gl_FUNC_LDEXPL.
27661         (gl_FUNC_LDEXPL): Invoke it.
27662         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27663
27664 2010-07-12  Bruno Haible  <bruno@clisp.org>
27665
27666         Unify tests that set gl_cv_func_ldexp_no_libm.
27667         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
27668         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
27669         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
27670         (configure.ac): Simply invoke gl_FUNC_LDEXP.
27671         * modules/strtod (Files): Add m4/ldexp.m4.
27672
27673 2010-07-12  Bruno Haible  <bruno@clisp.org>
27674
27675         Unify tests that set gl_cv_func_frexpl_no_libm.
27676         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
27677         gl_FUNC_FREXPL_NO_LIBM.
27678         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
27679         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27680
27681 2010-07-12  Bruno Haible  <bruno@clisp.org>
27682
27683         Unify tests that set gl_cv_func_frexp_no_libm.
27684         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
27685         gl_FUNC_FREXP_NO_LIBM.
27686         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
27687         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
27688
27689 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27690
27691         memcoll: clarify sizes versus lengths, document better, and tweak perf
27692         * lib/memcoll.c (strcoll_loop, memcoll0):
27693         Improve quality of descriptive comments.  Name variables
27694         consistently as to whether they are lengths (which do not include
27695         terminating null) versus sizes (which do).
27696         * lib/xmemcoll.c (xmemcoll0): Likewise.
27697         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
27698         returned when s1size == 0; this is easier to compile and saves
27699         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
27700
27701 2010-07-12  Bruno Haible  <bruno@clisp.org>
27702
27703         Tests for module '_Exit'.
27704         * modules/_Exit-tests: New file.
27705         * tests/test-_Exit.sh: New file.
27706         * tests/test-_Exit.c: New file.
27707
27708         New module '_Exit'.
27709         * lib/stdlib.in.h (__attribute__): New macro.
27710         (_Exit): New declaration.
27711         * lib/_Exit.c: New file.
27712         * m4/_Exit.m4: New file.
27713         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
27714         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
27715         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
27716         * modules/_Exit: New file.
27717         * tests/test-stdlib-c++.cc (_Exit): Check signature.
27718         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
27719
27720 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27721
27722         strtod: make it more-accurate typically, and don't require libm
27723         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
27724         Include limits.h.  Don't include string.h.
27725         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
27726         (locale_isspace): New function, so that no casts are needed to
27727         check whether *s is a space.
27728         (ldexp): Provide an unused dummy if not available.
27729         (scale_radix_exp, parse_number, underlying_strtod): New functions.
27730         (strtod): Use them.  This implementation prefers to use the
27731         underlying strtod if available, falling back on our own code
27732         only to fix known bugs.  This is more likely to produce an
27733         accurate result.  Also, it avoids the use of libm functions.
27734         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
27735         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
27736         was absent, but it caused a test failure with coreutils.
27737         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
27738         with libm.
27739         * modules/strtod (Makefile.am, Link): libm is no longer needed.
27740         * modules/strtod-tests (Makefile.am): Likewise.
27741
27742 2010-07-11  Pádraig Brady  <P@draigBrady.com>
27743             Bruno Haible  <bruno@clisp.org>
27744
27745         unistr/u8-strchr: Optimize ASCII argument case.
27746         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
27747
27748 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
27749
27750         (x)memcoll: minor tweaks
27751         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
27752         is after the type that it qualifies.
27753         (memcoll0): Likewise.
27754         * lib/memcoll.h (memcoll0): Likewise.
27755         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
27756         * lib/xmemcoll.h (xmemcoll0): Likewise.
27757         * lib/memcoll.c (memcoll0): Correct the comment.  This function
27758         differs from memcoll in that the NUL byte is part of the argument.
27759         Omit the abort-checks, as performance is a real issue here.  Plus,
27760         the checks were wrong anyway (an off-by-one error).  Omit local
27761         variable 'diff', as it's a bit clearer that way.
27762         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
27763         no longer needed.
27764
27765 2010-07-08  Chen Guo <chenguo4@yahoo.com>
27766
27767         (x)memcoll: speedup when input is known to be NUL delimited
27768         * lib/memcoll.c: Include stdlib.
27769         (memcoll0): New function.
27770         (strcoll_loop): New function, refactored for use in both memcoll
27771         and memcoll0.
27772         * lib/memcoll.h (memcoll0): Add prototype.
27773         * lib/xmemcoll.c (xmemcoll0): New function.
27774         (collate_error): New function, refactored for use in both xmemcoll
27775         and xmemcoll0.
27776         * lib/xmemcoll.h (xmemcoll0): Add prototype.
27777         * m4/memcoll.m4: add inline invocation.
27778
27779 2010-07-06  Pádraig Brady  <P@draigBrady.com>
27780
27781         * build-aux/bootstrap: Remove any local translations
27782         from the translation project synchronization directory,
27783         so that local only translations are not distributed.
27784
27785 2010-07-04  Bruno Haible  <bruno@clisp.org>
27786
27787         fsusage: Clarify which code applies to which platforms.
27788         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
27789         platform.
27790         * lib/fsusage.c (get_fs_usage): Likewise.
27791
27792 2010-07-04  Bruno Haible  <bruno@clisp.org>
27793
27794         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
27795         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
27796         Reported by Martin Lambers <marlam@marlam.de>.
27797
27798 2010-07-04  Jim Meyering  <meyering@redhat.com>
27799
27800         hash: once again explicitly disallow insertion of NULL
27801         * lib/hash.c (hash_insert0): Reinstate just-removed test:
27802         inserting a NULL pointer cannot work with these functions.
27803         Add a comment with details.
27804         This reverts part of the 2010-07-01 commit, 5bef1a35
27805         "hash: extend module to deal with non-pointer keys".
27806
27807 2010-07-01  Bruno Haible  <bruno@clisp.org>
27808
27809         stdbool: Update doc.
27810         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
27811         Info from Christian Weisgerber <naddy@mips.inka.de>.
27812
27813 2010-07-01  Jim Meyering  <meyering@redhat.com>
27814
27815         hash: extend module to deal with non-pointer keys
27816         * lib/hash.c (hash_insert0): New interface, much like hash_insert
27817         but that allows insertion of non-pointer entries.
27818         Do not disallow an ENTRY value of NULL.
27819         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
27820         * lib/hash.h (hash_insert0): Declare.
27821
27822 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27823
27824         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
27825         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
27826         not present (i.e. with autoconf 2.59 and when using gettextize, not
27827         gnulib), require AC_GNU_SOURCE instead.
27828
27829 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
27830
27831         idpriv-drop: Fix tests.
27832         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
27833         not to the test-idpriv-droptemp program.
27834
27835 2010-06-29  Bruno Haible  <bruno@clisp.org>
27836
27837         string: Fix syntax error with g++ 2.96.
27838         * lib/string.in.h (__pure__): Remove definition.
27839         (_GL_ATTRIBUTE_PURE): New macro.
27840         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
27841         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
27842         Reported by Christian Weisgerber <naddy@mips.inka.de>.
27843
27844 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
27845
27846         unitypes: Fix bug introduced on 2010-05-18.
27847         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
27848
27849 2010-06-22  Eric Blake  <eblake@redhat.com>
27850
27851         memmem: slight optimization
27852         * lib/str-two-way.h (critical_factorization): Update comments.
27853         Reduce work during factorization phase.
27854         Reported by Carlos Bueno <carlos@bueno.org>.
27855
27856 2010-06-21  Bruno Haible  <bruno@clisp.org>
27857
27858         Fix HAVE_CALLOC_POSIX misnomer.
27859         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
27860         !HAVE_CALLOC_POSIX.
27861         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
27862         HAVE_CALLOC_POSIX.
27863         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
27864         instead of HAVE_CALLOC_POSIX.
27865         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
27866         HAVE_CALLOC_POSIX.
27867
27868         Use modern idiom for calloc() replacement.
27869         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
27870         AC_FUNC_CALLOC.
27871         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
27872         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
27873         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27874         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
27875         (gl_REPLACE_CALLOC): New macro.
27876
27877 2010-06-21  Bruno Haible  <bruno@clisp.org>
27878
27879         Fix HAVE_REALLOC_POSIX misnomer.
27880         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
27881         !HAVE_REALLOC_POSIX.
27882         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
27883         HAVE_REALLOC_POSIX.
27884         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
27885         instead of HAVE_REALLOC_POSIX.
27886         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
27887         HAVE_REALLOC_POSIX.
27888
27889         Use modern idiom for realloc() replacement.
27890         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
27891         AC_FUNC_REALLOC.
27892         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
27893         Autoconf's AC_FUNC_REALLOC.
27894         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27895         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
27896         (gl_REPLACE_REALLOC): New macro.
27897         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27898
27899 2010-06-21  Bruno Haible  <bruno@clisp.org>
27900
27901         Fix HAVE_MALLOC_POSIX misnomer.
27902         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
27903         !HAVE_MALLOC_POSIX.
27904         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
27905         HAVE_MALLOC_POSIX.
27906         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
27907         instead of HAVE_MALLOC_POSIX.
27908         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
27909         HAVE_MALLOC_POSIX.
27910
27911         Use modern idiom for malloc() replacement.
27912         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
27913         AC_FUNC_MALLOC.
27914         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
27915         Autoconf's AC_FUNC_MALLOC.
27916         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27917         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
27918         (gl_REPLACE_MALLOC): New macro.
27919         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27920
27921 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
27922
27923         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
27924         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
27925         This macro takes 3 arguments, not 4.
27926
27927 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
27928
27929         ipv6: fix detection under mingw
27930         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
27931         in6_addr.
27932
27933 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
27934
27935         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
27936         that strtod() works when cross-compiling to a glibc version known
27937         to work.
27938
27939 2010-06-15  Bruno Haible  <bruno@clisp.org>
27940
27941         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
27942
27943 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
27944
27945         select: Correct timeout.
27946         * lib/select.c (rpl_select): Compute wait_timeout correctly.
27947
27948 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27949
27950         git-version-gen: init shell var to avoid env var influence
27951         * build-aux/git-version-gen (v): Init shell var to empty.
27952
27953 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
27954
27955         priv-set: Don't assume that priv.h exists merely because getppriv does.
27956         See Jan Andersen's bug report about AIX 5L in
27957         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
27958         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
27959         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
27960         * lib/priv-set.h: Likewise.
27961         * tests/test-priv-set.c: Likewise.
27962
27963 2010-06-13  Bruno Haible  <bruno@clisp.org>
27964
27965         relocatable: Make it easier to test whether to install wrappers.
27966         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
27967         RELOCATABLE_VIA_WRAPPER.
27968
27969 2010-06-13  Bruno Haible  <bruno@clisp.org>
27970
27971         gnulib-tool: Display specified modules and dependencies differently.
27972         * gnulib-tool (func_show_module_list): New function.
27973         (func_import, func_create_testdir): Invoke it.
27974         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27975
27976 2010-06-13  Bruno Haible  <bruno@clisp.org>
27977
27978         gnulib-tool: Align code of func_import and func_create_testdir.
27979         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
27980         specified_modules.
27981
27982 2010-06-12  Jim Meyering  <meyering@redhat.com>
27983
27984         test-inttostr: avoid spurious failure on Solaris 9
27985         * tests/test-inttostr.c (main): Skip the test when snprintf fails
27986         to accept "%ju".  Reported by Bruno Haible.
27987
27988 2010-06-11  Jim Meyering  <meyering@redhat.com>
27989
27990         test-sys_socket: mark variables as used more readably
27991         * tests/test-sys_socket.c (main): Mark otherwise unused variables
27992         as "used" explicitly via (void) statement casts.  This is more
27993         readable than using them in an artificial return expression.
27994         Suggestion from Bruno Haible.
27995
27996 2010-06-11  Bruno Haible  <bruno@clisp.org>
27997
27998         Avoid some more warnings from "gcc -Wwrite-strings".
27999         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
28000         to 'const char *'.
28001         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
28002         * tests/test-c-strcasestr.c (main): Likewise.
28003         * tests/test-mbscasestr1.c (main): Likewise.
28004         * tests/test-mbscasestr2.c (main): Likewise.
28005         * tests/test-memmem.c (main): Likewise.
28006         * tests/test-strstr.c (main): Likewise.
28007         * tests/test-strcasestr.c (main): Likewise.
28008
28009 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28010
28011         init.sh: change framework_failure_ to fail with status 99, not 1
28012         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
28013         automake's parallel-tests rule that this is an unexpected failure,
28014         even if the test is listed in XFAIL_TESTS.
28015
28016 2010-06-11  Jim Meyering  <meyering@redhat.com>
28017
28018         test-inttostr: avoid warnings about 4-6KB literal strings
28019         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
28020         Include "macros.h", for its definition of ASSERT.
28021         (CK): s/assert/ASSERT/
28022         * modules/inttostr-tests (Files): Add macros.h.
28023
28024         init.sh: don't use $ME_ or skip_ before they are defined
28025         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
28026         their first uses.  Also hoist their companions: warn_, fail_,
28027         framework_failure_, $stderr_fileno.  Prompted by a patch from
28028         Stefano Lattarini.
28029
28030         test-sys_socket: avoid set-but-not-used warnings from gcc
28031         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
28032         avoid warning about set-but-not-used variables.
28033
28034         test-xvasprintf: avoid 'const' discard warnings
28035         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
28036         "const" when assigning from literal strings.
28037         (test_xasprintf): Add "void" in function argument list to placate
28038         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
28039
28040         tests: avoid compilation warnings in argmatch and exclude tests...
28041         in packages that define ARGMATCH_DIE_DECL, like coreutils.
28042         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
28043         Since it always exits, declare with the "noreturn" attribute.
28044         * tests/test-argmatch.c: Likewise.
28045
28046         tests: avoid 'const' discard warnings in mbsstr tests
28047         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
28048         * tests/test-mbsstr2.c (main): Likewise.
28049
28050         test-verify: avoid warning from gcc's -Wmissing-declarations
28051         * tests/test-verify.c (function): Declare to be static.
28052
28053         test-inttostr.c: include <string.h> for use of strcmp
28054         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
28055
28056         test-linkat: avoid failed assertion on "other" architectures
28057         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
28058         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
28059         sparc: https://bugs.launchpad.net/bugs/591968
28060
28061 2010-06-11  Jim Meyering  <meyering@redhat.com>
28062
28063         printf.m4: avoid autoconf's "Expanded Before Required" warning
28064         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
28065         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
28066         autoconf warning.
28067
28068 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
28069
28070         Replacement header templates are now named with ".in", not "_".
28071         * doc/gnulib-intro.texi: Correct.
28072
28073 2010-06-10  Jim Meyering  <meyering@redhat.com>
28074
28075         inttostr-tests: depend on snprintf, not snprintf-posix
28076         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
28077         snprintf-posix, to avoid this aclocal failure:
28078           missing file gnulib-tests/vasnprintf.c
28079           configure.ac:45: error: expected source file, required through \
28080           AC_LIBSOURCES, not found
28081
28082 2010-06-10  Jim Meyering  <meyering@redhat.com>
28083
28084         inttostr: add a new function, inttostr, and tests
28085         The namesake function was not available.  The existence of the
28086         template file, inttostr.c makes its addition nontrivial.
28087         * lib/anytostr.c: Rename from inttostr.c.
28088         (anytostr): Rename from inttostr.
28089         * lib/inttostr.c: New file.
28090         * modules/inttostr (Files): Add anytostr.c.
28091         (Makefile.am): Set lib_SOURCES instead of ...
28092         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
28093         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
28094         * lib/offtostr.c: Likewise.
28095         * lib/uinttostr.c: Likewise.
28096         * lib/umaxtostr.c: Likewise.
28097         * modules/inttostr-tests: New file.
28098         * tests/test-inttostr.c: New file.  Test these functions.
28099
28100 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
28101             Bruno Haible  <bruno@clisp.org>
28102
28103         Add "Extending Gnulib" chapter to manual.
28104         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
28105         chapter.
28106         (Extending Gnulib): New chapter.
28107         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
28108         chapter.
28109
28110 2010-06-09  Bruno Haible  <bruno@clisp.org>
28111
28112         Avoid relocwrapper link errors due to gnulib replacement functions.
28113         * lib/areadlink.c: Use the system's malloc, realloc functions.
28114         (areadlink): Set errno to ENOMEM explicitly.
28115         * modules/areadlink (Depends-on): Remove malloc-posix.
28116         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28117
28118 2010-06-09  Bruno Haible  <bruno@clisp.org>
28119
28120         Avoid relocwrapper link errors due to gnulib replacement functions.
28121         * lib/canonicalize-lgpl.c: Use the system's malloc function.
28122         * lib/malloca.c: Likewise.
28123         * lib/relocatable.c: Likewise.
28124         * lib/progreloc.c: Use the system's malloc, sprintf functions.
28125         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
28126         * lib/setenv.c: Use the system's malloc, realloc functions.
28127         * lib/strerror.c: Use the system's sprintf function.
28128         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28129
28130 2010-06-04  Bruno Haible  <bruno@clisp.org>
28131
28132         Prefer documented low-level autoconf macro names.
28133         * m4/lib-link.m4: Use m4_translit instead of translit.
28134         * m4/environ.m4: Likewise.
28135         * m4/mathfunc.m4: Likewise.
28136         * m4/onceonly.m4: Likewise.
28137         * m4/stdint.m4: Likewise.
28138         Suggested by Eric Blake.
28139
28140 2010-06-04  Martin Lambers  <marlam@marlam.de>
28141             Bruno Haible  <bruno@clisp.org>
28142
28143         havelib: Allow library names with '+' characters.
28144         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
28145         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
28146
28147 2010-06-09  Bruno Haible  <bruno@clisp.org>
28148
28149         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
28150         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
28151         realloc failed.
28152
28153 2010-06-08  Peter Simons  <simons@cryp.to>
28154
28155         maint.mk: make the news-check rule more configurable
28156         * top/maint.mk (news-check-lines-spec): New variable.
28157         (news-check): Use "sed -n 1,10p" in place of "head".
28158
28159 2010-06-07  Jim Meyering  <meyering@redhat.com>
28160
28161         do-release-commit-and-tag: fix typo in --help
28162         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
28163
28164         regex: avoid new dead-code warning with gcc-4.6.0
28165         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
28166         if-block containing a while-loop.  It's been unused for at least
28167         5 years.
28168
28169 2010-06-05  Bruno Haible  <bruno@clisp.org>
28170
28171         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
28172         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
28173
28174 2010-06-04  Bruno Haible  <bruno@clisp.org>
28175
28176         Update to GNU gettext 0.18.1.
28177         * modules/gettext (configure.ac): Require gettext infrastructure from
28178         version 0.18.1.
28179
28180 2010-06-03  Bruno Haible  <bruno@clisp.org>
28181
28182         Don't use AC_LIBOBJ with file names in subdirectories.
28183         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
28184         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
28185         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
28186         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
28187         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
28188         gl_LIBUNISTRING_LIBSOURCE.
28189         (Makefile.am): Augment lib_SOURCES here, conditionally.
28190         * NEWS: Drop requirement for Automake option 'subdir-objects'.
28191
28192 2010-06-03  Bruno Haible  <bruno@clisp.org>
28193
28194         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
28195         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
28196         expansion does not end with a newline.
28197         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
28198         unnecessary newline.
28199
28200 2010-06-03  Bruno Haible  <bruno@clisp.org>
28201
28202         Reduce dependencies.
28203         * tests/test-quotearg.h: New file, extracted from
28204         tests/test-quotearg.c.
28205         * tests/test-quotearg-simple.c: New file, extracted from
28206         tests/test-quotearg.c.
28207         * tests/test-quotearg.c: Don't include <ctype.h>.
28208         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
28209         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
28210         use_quote_double_quotes, use_quotearg_colon): Moved to
28211         tests/test-quotearg.h.
28212         (results_g, flag_results, custom_quotes, custom_results): Moved
28213         to tests/test-quotearg-simple.c.
28214         (main): Moved the part that does not depend on gettext to
28215         tests/test-quotearg-simple.c. Return 77 if the test cannot be
28216         performed.
28217         * modules/quotearg-simple: New file.
28218         * modules/quotearg-simple-tests: New file.
28219         * modules/quotearg (Depends-on): Add quotearg-simple.
28220         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
28221         (Files): Add tests/test-quotearg.h.
28222         Reported by Paolo Bonzini.
28223
28224 2010-06-03  Bruno Haible  <bruno@clisp.org>
28225
28226         Reduce dependencies.
28227         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
28228
28229 2010-06-03  Bruno Haible  <bruno@clisp.org>
28230
28231         time: Undefine more broken macros.
28232         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
28233         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
28234         Reported by Eric Blake.
28235
28236 2010-06-03  Bruno Haible  <bruno@clisp.org>
28237
28238         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
28239         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
28240         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
28241         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
28242         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
28243         Reported by Ludovic Courtès <ludo@gnu.org>.
28244
28245 2010-06-02  Eric Blake  <eblake@redhat.com>
28246
28247         time: work with mingw + pthreads-win32 library
28248         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
28249         if timespec is defined only in pthread.h.
28250         * modules/time (Makefile.am): Substitute it.
28251         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
28252         <pthread.h>, when needed.
28253         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
28254         from the library.
28255
28256 2010-05-31  Bruno Haible  <bruno@clisp.org>
28257
28258         Avoid expanding two macros in the wrong order.
28259         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
28260         gl_LIBUNISTRING if it is defined.
28261         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
28262         autoconf >= 2.64.
28263         Reported by Ludovic Courtès <ludo@gnu.org>.
28264
28265 2010-05-27  Jim Meyering  <meyering@redhat.com>
28266
28267         maint.mk: also prohibit "#undef" of always-defined symbols
28268         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
28269         Allow more than one space before the symbol name.
28270         (sc_prohibit_always-defined_macros): Use grep's -E, now that
28271         the regexp uses alternation.
28272
28273 2010-05-26  Eric Blake  <eblake@redhat.com>
28274
28275         maint.mk: avoid echo -e
28276         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
28277         Convert all uses of echo -* to printf.
28278         Reported by Matthias Bolte.
28279
28280 2010-05-25  Bruno Haible  <bruno@clisp.org>
28281
28282         Update to GNU gettext 0.18, part 2.
28283         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
28284         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
28285
28286 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28287
28288         Add missing include in test-pwrite.c.
28289         * tests/test-pwrite.c: Include string.h, for strcmp.
28290
28291 2010-05-24  Bruno Haible  <bruno@clisp.org>
28292
28293         * NEWS: Mention requirement for Automake option 'subdir-objects'.
28294
28295 2010-05-24  Bruno Haible  <bruno@clisp.org>
28296
28297         Don't use conversion with transliteration in u{8,16,32}_strcoll.
28298         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
28299         iconveh_error argument.
28300         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
28301         U_STRCONV_TO_LOCALE.
28302         * lib/unistr/u16-strcoll.c: Likewise.
28303         * lib/unistr/u32-strcoll.c: Likewise.
28304         * modules/unistr/u8-strcoll (Depends-on): Add
28305         uniconv/u8-strconv-to-enc, localcharset. Remove
28306         uniconv/u8-strconv-to-locale.
28307         (configure.ac): Bump version number.
28308         * modules/unistr/u16-strcoll (Depends-on): Add
28309         uniconv/u16-strconv-to-enc, localcharset. Remove
28310         uniconv/u16-strconv-to-locale.
28311         (configure.ac): Bump version number.
28312         * modules/unistr/u32-strcoll (Depends-on): Add
28313         uniconv/u32-strconv-to-enc, localcharset. Remove
28314         uniconv/u32-strconv-to-locale.
28315         (configure.ac): Bump version number.
28316
28317 2010-05-24  Bruno Haible  <bruno@clisp.org>
28318
28319         Avoid a test failure on NetBSD 5.0.
28320         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
28321         an iconv() bug.
28322
28323 2010-05-24  Bruno Haible  <bruno@clisp.org>
28324
28325         Adjust #include directive style.
28326         * modules/regex (Includes): Recommend to write <regex.h>.
28327
28328 2010-05-24  Bruno Haible  <bruno@clisp.org>
28329
28330         regex: Don't require alloca.
28331         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
28332         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
28333         only inside if (0).
28334
28335 2010-05-23  Jim Meyering  <meyering@redhat.com>
28336
28337         test-renameat.c: include <sys/stat.h>
28338         * tests/test-renameat.c: Include <sys/stat.h>; required for
28339         definition of S_IS* macros.
28340
28341 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
28342
28343         Update maintainer documentation for 'relocatable-prog' module.
28344         * doc/relocatable-maint.texi: Update.
28345         Comments by Bruno Haible.
28346
28347 2010-05-23  Bruno Haible  <bruno@clisp.org>
28348
28349         git-merge-changelog: Enable --split-merged-entry by default.
28350         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
28351         (usage): Don't mention this option any more.
28352         Reported by Ralf Wildenhues.
28353
28354 2010-05-23  Jim Meyering  <meyering@redhat.com>
28355
28356         test-pwrite: do not leave behind a test file named "out"
28357         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
28358         The trivial-looking use of init.sh is really necessary.
28359         It ensures that the temporary file, "out", is created in
28360         a temporary directory, and removed upon termination.
28361         * tests/test-pwrite.sh: Re-add file.
28362         * modules/pwrite-tests: Reference it.
28363
28364 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28365
28366         Fix output redirection buglet in init.sh.
28367         * tests/init.sh: Fix redirection of stderr.
28368
28369 2010-05-20  Simon Josefsson  <simon@josefsson.org>
28370
28371         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
28372
28373 2010-05-17  Simon Josefsson  <simon@josefsson.org>
28374
28375         * modules/valgrind-tests: New file.
28376         * m4/valgrind-tests.m4: New file.
28377         * doc/valgrind-tests.texi: New file.
28378         * doc/gnulib.texi (Running self-tests under valgrind): New
28379         section.
28380
28381 2010-05-19  Bruno Haible  <bruno@clisp.org>
28382
28383         Clean up dead code in recent commit.
28384         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
28385         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
28386         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
28387         Suggested by Paolo Bonzini.
28388
28389 2010-05-19  Bruno Haible  <bruno@clisp.org>
28390
28391         Avoid valgrind error reports from libunistring.
28392         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
28393         * modules/libunistring (Files): Add it.
28394         * modules/libunistring-optional (Files): Likewise.
28395
28396 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
28397             Bruno Haible  <bruno@clisp.org>
28398
28399         New module 'libunistring-optional'.
28400         * modules/libunistring-optional: New file.
28401         * m4/libunistring-base.m4: New file.
28402         * m4/libunistring-optional.m4: New file.
28403         * lib/unicase.in.h: Renamed from lib/unicase.h.
28404         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
28405         * lib/unictype.in.h: Renamed from lib/unictype.h.
28406         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
28407         * lib/uniname.in.h: Renamed from lib/uniname.h.
28408         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
28409         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
28410         * lib/unistr.in.h: Renamed from lib/unistr.h.
28411         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
28412         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
28413         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
28414         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
28415         gl_LIBUNISTRING. If the library was found, determine the installed
28416         version and set LIBUNISTRING_VERSION.
28417         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
28418         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
28419         handle a configuration option --with-included-libunistring.
28420         * modules/libunistring (Files): Add m4/absolute-header.m4.
28421         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
28422         Add m4/libunistring-base.m4.
28423         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28424         (Makefile.am): Build unicase.h from unicase.in.h.
28425         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
28426         Add m4/libunistring-base.m4.
28427         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28428         (Makefile.am): Build uniconv.h from uniconv.in.h.
28429         * modules/unictype/base (Files): Use unictype.in.h instead of
28430         unictype.h. Add m4/libunistring-base.m4.
28431         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28432         (Makefile.am): Build unictype.h from unictype.in.h.
28433         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
28434         Add m4/libunistring-base.m4.
28435         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28436         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
28437         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
28438         Add m4/libunistring-base.m4.
28439         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28440         (Makefile.am): Build uniname.h from uniname.in.h.
28441         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
28442         Add m4/libunistring-base.m4.
28443         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28444         (Makefile.am): Build uninorm.h from uninorm.in.h.
28445         * modules/unistdio/base (Files): Use unistdio.in.h instead of
28446         unistdio.h. Add m4/libunistring-base.m4.
28447         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28448         (Makefile.am): Build unistdio.h from unistdio.in.h.
28449         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
28450         Add m4/libunistring-base.m4.
28451         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28452         (Makefile.am): Build unistr.h from unistr.in.h.
28453         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
28454         Add m4/libunistring-base.m4.
28455         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28456         (Makefile.am): Build unitypes.h from unitypes.in.h.
28457         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
28458         Add m4/libunistring-base.m4.
28459         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28460         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
28461         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
28462         uniwidth.h. Add m4/libunistring-base.m4.
28463         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28464         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
28465         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
28466         instead of augmenting lib_SOURCES.
28467         * modules/unicase/empty-suffix-context: Likewise.
28468         * modules/unicase/locale-language: Likewise.
28469         * modules/unicase/tolower: Likewise.
28470         * modules/unicase/totitle: Likewise.
28471         * modules/unicase/toupper: Likewise.
28472         * modules/unicase/u8-casecmp: Likewise.
28473         * modules/unicase/u8-casecoll: Likewise.
28474         * modules/unicase/u8-casefold: Likewise.
28475         * modules/unicase/u8-casexfrm: Likewise.
28476         * modules/unicase/u8-ct-casefold: Likewise.
28477         * modules/unicase/u8-ct-tolower: Likewise.
28478         * modules/unicase/u8-ct-totitle: Likewise.
28479         * modules/unicase/u8-ct-toupper: Likewise.
28480         * modules/unicase/u8-is-cased: Likewise.
28481         * modules/unicase/u8-is-casefolded: Likewise.
28482         * modules/unicase/u8-is-lowercase: Likewise.
28483         * modules/unicase/u8-is-titlecase: Likewise.
28484         * modules/unicase/u8-is-uppercase: Likewise.
28485         * modules/unicase/u8-prefix-context: Likewise.
28486         * modules/unicase/u8-suffix-context: Likewise.
28487         * modules/unicase/u8-tolower: Likewise.
28488         * modules/unicase/u8-totitle: Likewise.
28489         * modules/unicase/u8-toupper: Likewise.
28490         * modules/unicase/u16-casecmp: Likewise.
28491         * modules/unicase/u16-casecoll: Likewise.
28492         * modules/unicase/u16-casefold: Likewise.
28493         * modules/unicase/u16-casexfrm: Likewise.
28494         * modules/unicase/u16-ct-casefold: Likewise.
28495         * modules/unicase/u16-ct-tolower: Likewise.
28496         * modules/unicase/u16-ct-totitle: Likewise.
28497         * modules/unicase/u16-ct-toupper: Likewise.
28498         * modules/unicase/u16-is-cased: Likewise.
28499         * modules/unicase/u16-is-casefolded: Likewise.
28500         * modules/unicase/u16-is-lowercase: Likewise.
28501         * modules/unicase/u16-is-titlecase: Likewise.
28502         * modules/unicase/u16-is-uppercase: Likewise.
28503         * modules/unicase/u16-prefix-context: Likewise.
28504         * modules/unicase/u16-suffix-context: Likewise.
28505         * modules/unicase/u16-tolower: Likewise.
28506         * modules/unicase/u16-totitle: Likewise.
28507         * modules/unicase/u16-toupper: Likewise.
28508         * modules/unicase/u32-casecmp: Likewise.
28509         * modules/unicase/u32-casecoll: Likewise.
28510         * modules/unicase/u32-casefold: Likewise.
28511         * modules/unicase/u32-casexfrm: Likewise.
28512         * modules/unicase/u32-ct-casefold: Likewise.
28513         * modules/unicase/u32-ct-tolower: Likewise.
28514         * modules/unicase/u32-ct-totitle: Likewise.
28515         * modules/unicase/u32-ct-toupper: Likewise.
28516         * modules/unicase/u32-is-cased: Likewise.
28517         * modules/unicase/u32-is-casefolded: Likewise.
28518         * modules/unicase/u32-is-lowercase: Likewise.
28519         * modules/unicase/u32-is-titlecase: Likewise.
28520         * modules/unicase/u32-is-uppercase: Likewise.
28521         * modules/unicase/u32-prefix-context: Likewise.
28522         * modules/unicase/u32-suffix-context: Likewise.
28523         * modules/unicase/u32-tolower: Likewise.
28524         * modules/unicase/u32-totitle: Likewise.
28525         * modules/unicase/u32-toupper: Likewise.
28526         * modules/unicase/ulc-casecmp: Likewise.
28527         * modules/unicase/ulc-casecoll: Likewise.
28528         * modules/unicase/ulc-casexfrm: Likewise.
28529         * modules/uniconv/u8-conv-from-enc: Likewise.
28530         * modules/uniconv/u8-conv-to-enc: Likewise.
28531         * modules/uniconv/u8-strconv-from-enc: Likewise.
28532         * modules/uniconv/u8-strconv-from-locale: Likewise.
28533         * modules/uniconv/u8-strconv-to-enc: Likewise.
28534         * modules/uniconv/u8-strconv-to-locale: Likewise.
28535         * modules/uniconv/u16-conv-from-enc: Likewise.
28536         * modules/uniconv/u16-conv-to-enc: Likewise.
28537         * modules/uniconv/u16-strconv-from-enc: Likewise.
28538         * modules/uniconv/u16-strconv-from-locale: Likewise.
28539         * modules/uniconv/u16-strconv-to-enc: Likewise.
28540         * modules/uniconv/u16-strconv-to-locale: Likewise.
28541         * modules/uniconv/u32-conv-from-enc: Likewise.
28542         * modules/uniconv/u32-conv-to-enc: Likewise.
28543         * modules/uniconv/u32-strconv-from-enc: Likewise.
28544         * modules/uniconv/u32-strconv-from-locale: Likewise.
28545         * modules/uniconv/u32-strconv-to-enc: Likewise.
28546         * modules/uniconv/u32-strconv-to-locale: Likewise.
28547         * modules/unictype/bidicategory-byname: Likewise.
28548         * modules/unictype/bidicategory-name: Likewise.
28549         * modules/unictype/bidicategory-of: Likewise.
28550         * modules/unictype/bidicategory-test: Likewise.
28551         * modules/unictype/block-list: Likewise.
28552         * modules/unictype/block-test: Likewise.
28553         * modules/unictype/category-C: Likewise.
28554         * modules/unictype/category-Cc: Likewise.
28555         * modules/unictype/category-Cf: Likewise.
28556         * modules/unictype/category-Cn: Likewise.
28557         * modules/unictype/category-Co: Likewise.
28558         * modules/unictype/category-Cs: Likewise.
28559         * modules/unictype/category-L: Likewise.
28560         * modules/unictype/category-Ll: Likewise.
28561         * modules/unictype/category-Lm: Likewise.
28562         * modules/unictype/category-Lo: Likewise.
28563         * modules/unictype/category-Lt: Likewise.
28564         * modules/unictype/category-Lu: Likewise.
28565         * modules/unictype/category-M: Likewise.
28566         * modules/unictype/category-Mc: Likewise.
28567         * modules/unictype/category-Me: Likewise.
28568         * modules/unictype/category-Mn: Likewise.
28569         * modules/unictype/category-N: Likewise.
28570         * modules/unictype/category-Nd: Likewise.
28571         * modules/unictype/category-Nl: Likewise.
28572         * modules/unictype/category-No: Likewise.
28573         * modules/unictype/category-P: Likewise.
28574         * modules/unictype/category-Pc: Likewise.
28575         * modules/unictype/category-Pd: Likewise.
28576         * modules/unictype/category-Pe: Likewise.
28577         * modules/unictype/category-Pf: Likewise.
28578         * modules/unictype/category-Pi: Likewise.
28579         * modules/unictype/category-Po: Likewise.
28580         * modules/unictype/category-Ps: Likewise.
28581         * modules/unictype/category-S: Likewise.
28582         * modules/unictype/category-Sc: Likewise.
28583         * modules/unictype/category-Sk: Likewise.
28584         * modules/unictype/category-Sm: Likewise.
28585         * modules/unictype/category-So: Likewise.
28586         * modules/unictype/category-Z: Likewise.
28587         * modules/unictype/category-Zl: Likewise.
28588         * modules/unictype/category-Zp: Likewise.
28589         * modules/unictype/category-Zs: Likewise.
28590         * modules/unictype/category-and: Likewise.
28591         * modules/unictype/category-and-not: Likewise.
28592         * modules/unictype/category-byname: Likewise.
28593         * modules/unictype/category-name: Likewise.
28594         * modules/unictype/category-none: Likewise.
28595         * modules/unictype/category-of: Likewise.
28596         * modules/unictype/category-or: Likewise.
28597         * modules/unictype/category-test: Likewise.
28598         * modules/unictype/combining-class: Likewise.
28599         * modules/unictype/ctype-alnum: Likewise.
28600         * modules/unictype/ctype-alpha: Likewise.
28601         * modules/unictype/ctype-blank: Likewise.
28602         * modules/unictype/ctype-cntrl: Likewise.
28603         * modules/unictype/ctype-digit: Likewise.
28604         * modules/unictype/ctype-graph: Likewise.
28605         * modules/unictype/ctype-lower: Likewise.
28606         * modules/unictype/ctype-print: Likewise.
28607         * modules/unictype/ctype-punct: Likewise.
28608         * modules/unictype/ctype-space: Likewise.
28609         * modules/unictype/ctype-upper: Likewise.
28610         * modules/unictype/ctype-xdigit: Likewise.
28611         * modules/unictype/decimal-digit: Likewise.
28612         * modules/unictype/digit: Likewise.
28613         * modules/unictype/mirror: Likewise.
28614         * modules/unictype/numeric: Likewise.
28615         * modules/unictype/property-alphabetic: Likewise.
28616         * modules/unictype/property-ascii-hex-digit: Likewise.
28617         * modules/unictype/property-bidi-arabic-digit: Likewise.
28618         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
28619         * modules/unictype/property-bidi-block-separator: Likewise.
28620         * modules/unictype/property-bidi-boundary-neutral: Likewise.
28621         * modules/unictype/property-bidi-common-separator: Likewise.
28622         * modules/unictype/property-bidi-control: Likewise.
28623         * modules/unictype/property-bidi-embedding-or-override: Likewise.
28624         * modules/unictype/property-bidi-eur-num-separator: Likewise.
28625         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
28626         * modules/unictype/property-bidi-european-digit: Likewise.
28627         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
28628         * modules/unictype/property-bidi-left-to-right: Likewise.
28629         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
28630         * modules/unictype/property-bidi-other-neutral: Likewise.
28631         * modules/unictype/property-bidi-pdf: Likewise.
28632         * modules/unictype/property-bidi-segment-separator: Likewise.
28633         * modules/unictype/property-bidi-whitespace: Likewise.
28634         * modules/unictype/property-byname: Likewise.
28635         * modules/unictype/property-combining: Likewise.
28636         * modules/unictype/property-composite: Likewise.
28637         * modules/unictype/property-currency-symbol: Likewise.
28638         * modules/unictype/property-dash: Likewise.
28639         * modules/unictype/property-decimal-digit: Likewise.
28640         * modules/unictype/property-default-ignorable-code-point: Likewise.
28641         * modules/unictype/property-deprecated: Likewise.
28642         * modules/unictype/property-diacritic: Likewise.
28643         * modules/unictype/property-extender: Likewise.
28644         * modules/unictype/property-format-control: Likewise.
28645         * modules/unictype/property-grapheme-base: Likewise.
28646         * modules/unictype/property-grapheme-extend: Likewise.
28647         * modules/unictype/property-grapheme-link: Likewise.
28648         * modules/unictype/property-hex-digit: Likewise.
28649         * modules/unictype/property-hyphen: Likewise.
28650         * modules/unictype/property-id-continue: Likewise.
28651         * modules/unictype/property-id-start: Likewise.
28652         * modules/unictype/property-ideographic: Likewise.
28653         * modules/unictype/property-ids-binary-operator: Likewise.
28654         * modules/unictype/property-ids-trinary-operator: Likewise.
28655         * modules/unictype/property-ignorable-control: Likewise.
28656         * modules/unictype/property-iso-control: Likewise.
28657         * modules/unictype/property-join-control: Likewise.
28658         * modules/unictype/property-left-of-pair: Likewise.
28659         * modules/unictype/property-line-separator: Likewise.
28660         * modules/unictype/property-logical-order-exception: Likewise.
28661         * modules/unictype/property-lowercase: Likewise.
28662         * modules/unictype/property-math: Likewise.
28663         * modules/unictype/property-non-break: Likewise.
28664         * modules/unictype/property-not-a-character: Likewise.
28665         * modules/unictype/property-numeric: Likewise.
28666         * modules/unictype/property-other-alphabetic: Likewise.
28667         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
28668         * modules/unictype/property-other-grapheme-extend: Likewise.
28669         * modules/unictype/property-other-id-continue: Likewise.
28670         * modules/unictype/property-other-id-start: Likewise.
28671         * modules/unictype/property-other-lowercase: Likewise.
28672         * modules/unictype/property-other-math: Likewise.
28673         * modules/unictype/property-other-uppercase: Likewise.
28674         * modules/unictype/property-paired-punctuation: Likewise.
28675         * modules/unictype/property-paragraph-separator: Likewise.
28676         * modules/unictype/property-pattern-syntax: Likewise.
28677         * modules/unictype/property-pattern-white-space: Likewise.
28678         * modules/unictype/property-private-use: Likewise.
28679         * modules/unictype/property-punctuation: Likewise.
28680         * modules/unictype/property-quotation-mark: Likewise.
28681         * modules/unictype/property-radical: Likewise.
28682         * modules/unictype/property-sentence-terminal: Likewise.
28683         * modules/unictype/property-soft-dotted: Likewise.
28684         * modules/unictype/property-space: Likewise.
28685         * modules/unictype/property-terminal-punctuation: Likewise.
28686         * modules/unictype/property-test: Likewise.
28687         * modules/unictype/property-titlecase: Likewise.
28688         * modules/unictype/property-unassigned-code-value: Likewise.
28689         * modules/unictype/property-unified-ideograph: Likewise.
28690         * modules/unictype/property-uppercase: Likewise.
28691         * modules/unictype/property-variation-selector: Likewise.
28692         * modules/unictype/property-white-space: Likewise.
28693         * modules/unictype/property-xid-continue: Likewise.
28694         * modules/unictype/property-xid-start: Likewise.
28695         * modules/unictype/property-zero-width: Likewise.
28696         * modules/unictype/scripts: Likewise.
28697         * modules/unictype/syntax-c-ident: Likewise.
28698         * modules/unictype/syntax-c-whitespace: Likewise.
28699         * modules/unictype/syntax-java-ident: Likewise.
28700         * modules/unictype/syntax-java-whitespace: Likewise.
28701         * modules/unilbrk/u8-possible-linebreaks: Likewise.
28702         * modules/unilbrk/u8-width-linebreaks: Likewise.
28703         * modules/unilbrk/u16-possible-linebreaks: Likewise.
28704         * modules/unilbrk/u16-width-linebreaks: Likewise.
28705         * modules/unilbrk/u32-possible-linebreaks: Likewise.
28706         * modules/unilbrk/u32-width-linebreaks: Likewise.
28707         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
28708         * modules/unilbrk/ulc-width-linebreaks: Likewise.
28709         * modules/uniname/uniname: Likewise.
28710         * modules/uninorm/canonical-decomposition: Likewise.
28711         * modules/uninorm/composition: Likewise.
28712         * modules/uninorm/decomposing-form: Likewise.
28713         * modules/uninorm/decomposition: Likewise.
28714         * modules/uninorm/filter: Likewise.
28715         * modules/uninorm/nfc: Likewise.
28716         * modules/uninorm/nfd: Likewise.
28717         * modules/uninorm/nfkc: Likewise.
28718         * modules/uninorm/nfkd: Likewise.
28719         * modules/uninorm/u8-normalize: Likewise.
28720         * modules/uninorm/u8-normcmp: Likewise.
28721         * modules/uninorm/u8-normcoll: Likewise.
28722         * modules/uninorm/u8-normxfrm: Likewise.
28723         * modules/uninorm/u16-normalize: Likewise.
28724         * modules/uninorm/u16-normcmp: Likewise.
28725         * modules/uninorm/u16-normcoll: Likewise.
28726         * modules/uninorm/u16-normxfrm: Likewise.
28727         * modules/uninorm/u32-normalize: Likewise.
28728         * modules/uninorm/u32-normcmp: Likewise.
28729         * modules/uninorm/u32-normcoll: Likewise.
28730         * modules/uninorm/u32-normxfrm: Likewise.
28731         * modules/unistdio/u8-asnprintf: Likewise.
28732         * modules/unistdio/u8-asprintf: Likewise.
28733         * modules/unistdio/u8-snprintf: Likewise.
28734         * modules/unistdio/u8-sprintf: Likewise.
28735         * modules/unistdio/u8-u8-asnprintf: Likewise.
28736         * modules/unistdio/u8-u8-asprintf: Likewise.
28737         * modules/unistdio/u8-u8-snprintf: Likewise.
28738         * modules/unistdio/u8-u8-sprintf: Likewise.
28739         * modules/unistdio/u8-u8-vasnprintf: Likewise.
28740         * modules/unistdio/u8-u8-vasprintf: Likewise.
28741         * modules/unistdio/u8-u8-vsnprintf: Likewise.
28742         * modules/unistdio/u8-u8-vsprintf: Likewise.
28743         * modules/unistdio/u8-vasnprintf: Likewise.
28744         * modules/unistdio/u8-vasprintf: Likewise.
28745         * modules/unistdio/u8-vsnprintf: Likewise.
28746         * modules/unistdio/u8-vsprintf: Likewise.
28747         * modules/unistdio/u16-asnprintf: Likewise.
28748         * modules/unistdio/u16-asprintf: Likewise.
28749         * modules/unistdio/u16-snprintf: Likewise.
28750         * modules/unistdio/u16-sprintf: Likewise.
28751         * modules/unistdio/u16-u16-asnprintf: Likewise.
28752         * modules/unistdio/u16-u16-asprintf: Likewise.
28753         * modules/unistdio/u16-u16-snprintf: Likewise.
28754         * modules/unistdio/u16-u16-sprintf: Likewise.
28755         * modules/unistdio/u16-u16-vasnprintf: Likewise.
28756         * modules/unistdio/u16-u16-vasprintf: Likewise.
28757         * modules/unistdio/u16-u16-vsnprintf: Likewise.
28758         * modules/unistdio/u16-u16-vsprintf: Likewise.
28759         * modules/unistdio/u16-vasnprintf: Likewise.
28760         * modules/unistdio/u16-vasprintf: Likewise.
28761         * modules/unistdio/u16-vsnprintf: Likewise.
28762         * modules/unistdio/u16-vsprintf: Likewise.
28763         * modules/unistdio/u32-asnprintf: Likewise.
28764         * modules/unistdio/u32-asprintf: Likewise.
28765         * modules/unistdio/u32-snprintf: Likewise.
28766         * modules/unistdio/u32-sprintf: Likewise.
28767         * modules/unistdio/u32-u32-asnprintf: Likewise.
28768         * modules/unistdio/u32-u32-asprintf: Likewise.
28769         * modules/unistdio/u32-u32-snprintf: Likewise.
28770         * modules/unistdio/u32-u32-sprintf: Likewise.
28771         * modules/unistdio/u32-u32-vasnprintf: Likewise.
28772         * modules/unistdio/u32-u32-vasprintf: Likewise.
28773         * modules/unistdio/u32-u32-vsnprintf: Likewise.
28774         * modules/unistdio/u32-u32-vsprintf: Likewise.
28775         * modules/unistdio/u32-vasnprintf: Likewise.
28776         * modules/unistdio/u32-vasprintf: Likewise.
28777         * modules/unistdio/u32-vsnprintf: Likewise.
28778         * modules/unistdio/u32-vsprintf: Likewise.
28779         * modules/unistdio/ulc-asnprintf: Likewise.
28780         * modules/unistdio/ulc-asprintf: Likewise.
28781         * modules/unistdio/ulc-fprintf: Likewise.
28782         * modules/unistdio/ulc-snprintf: Likewise.
28783         * modules/unistdio/ulc-sprintf: Likewise.
28784         * modules/unistdio/ulc-vasnprintf: Likewise.
28785         * modules/unistdio/ulc-vasprintf: Likewise.
28786         * modules/unistdio/ulc-vfprintf: Likewise.
28787         * modules/unistdio/ulc-vsnprintf: Likewise.
28788         * modules/unistdio/ulc-vsprintf: Likewise.
28789         * modules/unistr/u8-check: Likewise.
28790         * modules/unistr/u8-chr: Likewise.
28791         * modules/unistr/u8-cmp: Likewise.
28792         * modules/unistr/u8-cmp2: Likewise.
28793         * modules/unistr/u8-cpy: Likewise.
28794         * modules/unistr/u8-cpy-alloc: Likewise.
28795         * modules/unistr/u8-endswith: Likewise.
28796         * modules/unistr/u8-mblen: Likewise.
28797         * modules/unistr/u8-mbsnlen: Likewise.
28798         * modules/unistr/u8-mbtouc: Likewise.
28799         * modules/unistr/u8-mbtouc-unsafe: Likewise.
28800         * modules/unistr/u8-mbtoucr: Likewise.
28801         * modules/unistr/u8-move: Likewise.
28802         * modules/unistr/u8-next: Likewise.
28803         * modules/unistr/u8-prev: Likewise.
28804         * modules/unistr/u8-set: Likewise.
28805         * modules/unistr/u8-startswith: Likewise.
28806         * modules/unistr/u8-stpcpy: Likewise.
28807         * modules/unistr/u8-stpncpy: Likewise.
28808         * modules/unistr/u8-strcat: Likewise.
28809         * modules/unistr/u8-strchr: Likewise.
28810         * modules/unistr/u8-strcmp: Likewise.
28811         * modules/unistr/u8-strcoll: Likewise.
28812         * modules/unistr/u8-strcpy: Likewise.
28813         * modules/unistr/u8-strcspn: Likewise.
28814         * modules/unistr/u8-strdup: Likewise.
28815         * modules/unistr/u8-strlen: Likewise.
28816         * modules/unistr/u8-strmblen: Likewise.
28817         * modules/unistr/u8-strmbtouc: Likewise.
28818         * modules/unistr/u8-strncat: Likewise.
28819         * modules/unistr/u8-strncmp: Likewise.
28820         * modules/unistr/u8-strncpy: Likewise.
28821         * modules/unistr/u8-strnlen: Likewise.
28822         * modules/unistr/u8-strpbrk: Likewise.
28823         * modules/unistr/u8-strrchr: Likewise.
28824         * modules/unistr/u8-strspn: Likewise.
28825         * modules/unistr/u8-strstr: Likewise.
28826         * modules/unistr/u8-strtok: Likewise.
28827         * modules/unistr/u8-to-u16: Likewise.
28828         * modules/unistr/u8-to-u32: Likewise.
28829         * modules/unistr/u8-uctomb: Likewise.
28830         * modules/unistr/u16-check: Likewise.
28831         * modules/unistr/u16-chr: Likewise.
28832         * modules/unistr/u16-cmp: Likewise.
28833         * modules/unistr/u16-cmp2: Likewise.
28834         * modules/unistr/u16-cpy: Likewise.
28835         * modules/unistr/u16-cpy-alloc: Likewise.
28836         * modules/unistr/u16-endswith: Likewise.
28837         * modules/unistr/u16-mblen: Likewise.
28838         * modules/unistr/u16-mbsnlen: Likewise.
28839         * modules/unistr/u16-mbtouc: Likewise.
28840         * modules/unistr/u16-mbtouc-unsafe: Likewise.
28841         * modules/unistr/u16-mbtoucr: Likewise.
28842         * modules/unistr/u16-move: Likewise.
28843         * modules/unistr/u16-next: Likewise.
28844         * modules/unistr/u16-prev: Likewise.
28845         * modules/unistr/u16-set: Likewise.
28846         * modules/unistr/u16-startswith: Likewise.
28847         * modules/unistr/u16-stpcpy: Likewise.
28848         * modules/unistr/u16-stpncpy: Likewise.
28849         * modules/unistr/u16-strcat: Likewise.
28850         * modules/unistr/u16-strchr: Likewise.
28851         * modules/unistr/u16-strcmp: Likewise.
28852         * modules/unistr/u16-strcoll: Likewise.
28853         * modules/unistr/u16-strcpy: Likewise.
28854         * modules/unistr/u16-strcspn: Likewise.
28855         * modules/unistr/u16-strdup: Likewise.
28856         * modules/unistr/u16-strlen: Likewise.
28857         * modules/unistr/u16-strmblen: Likewise.
28858         * modules/unistr/u16-strmbtouc: Likewise.
28859         * modules/unistr/u16-strncat: Likewise.
28860         * modules/unistr/u16-strncmp: Likewise.
28861         * modules/unistr/u16-strncpy: Likewise.
28862         * modules/unistr/u16-strnlen: Likewise.
28863         * modules/unistr/u16-strpbrk: Likewise.
28864         * modules/unistr/u16-strrchr: Likewise.
28865         * modules/unistr/u16-strspn: Likewise.
28866         * modules/unistr/u16-strstr: Likewise.
28867         * modules/unistr/u16-strtok: Likewise.
28868         * modules/unistr/u16-to-u32: Likewise.
28869         * modules/unistr/u16-to-u8: Likewise.
28870         * modules/unistr/u16-uctomb: Likewise.
28871         * modules/unistr/u32-check: Likewise.
28872         * modules/unistr/u32-chr: Likewise.
28873         * modules/unistr/u32-cmp: Likewise.
28874         * modules/unistr/u32-cmp2: Likewise.
28875         * modules/unistr/u32-cpy: Likewise.
28876         * modules/unistr/u32-cpy-alloc: Likewise.
28877         * modules/unistr/u32-endswith: Likewise.
28878         * modules/unistr/u32-mblen: Likewise.
28879         * modules/unistr/u32-mbsnlen: Likewise.
28880         * modules/unistr/u32-mbtouc: Likewise.
28881         * modules/unistr/u32-mbtouc-unsafe: Likewise.
28882         * modules/unistr/u32-mbtoucr: Likewise.
28883         * modules/unistr/u32-move: Likewise.
28884         * modules/unistr/u32-next: Likewise.
28885         * modules/unistr/u32-prev: Likewise.
28886         * modules/unistr/u32-set: Likewise.
28887         * modules/unistr/u32-startswith: Likewise.
28888         * modules/unistr/u32-stpcpy: Likewise.
28889         * modules/unistr/u32-stpncpy: Likewise.
28890         * modules/unistr/u32-strcat: Likewise.
28891         * modules/unistr/u32-strchr: Likewise.
28892         * modules/unistr/u32-strcmp: Likewise.
28893         * modules/unistr/u32-strcoll: Likewise.
28894         * modules/unistr/u32-strcpy: Likewise.
28895         * modules/unistr/u32-strcspn: Likewise.
28896         * modules/unistr/u32-strdup: Likewise.
28897         * modules/unistr/u32-strlen: Likewise.
28898         * modules/unistr/u32-strmblen: Likewise.
28899         * modules/unistr/u32-strmbtouc: Likewise.
28900         * modules/unistr/u32-strncat: Likewise.
28901         * modules/unistr/u32-strncmp: Likewise.
28902         * modules/unistr/u32-strncpy: Likewise.
28903         * modules/unistr/u32-strnlen: Likewise.
28904         * modules/unistr/u32-strpbrk: Likewise.
28905         * modules/unistr/u32-strrchr: Likewise.
28906         * modules/unistr/u32-strspn: Likewise.
28907         * modules/unistr/u32-strstr: Likewise.
28908         * modules/unistr/u32-strtok: Likewise.
28909         * modules/unistr/u32-to-u16: Likewise.
28910         * modules/unistr/u32-to-u8: Likewise.
28911         * modules/unistr/u32-uctomb: Likewise.
28912         * modules/uniwbrk/u8-wordbreaks: Likewise.
28913         * modules/uniwbrk/u16-wordbreaks: Likewise.
28914         * modules/uniwbrk/u32-wordbreaks: Likewise.
28915         * modules/uniwbrk/ulc-wordbreaks: Likewise.
28916         * modules/uniwbrk/wordbreak-property: Likewise.
28917         * modules/uniwidth/u8-strwidth: Likewise.
28918         * modules/uniwidth/u8-width: Likewise.
28919         * modules/uniwidth/u16-strwidth: Likewise.
28920         * modules/uniwidth/u16-width: Likewise.
28921         * modules/uniwidth/u32-strwidth: Likewise.
28922         * modules/uniwidth/u32-width: Likewise.
28923         * modules/uniwidth/width: Likewise.
28924         * modules/unicase/cased-tests (Makefile.am): Link all test programs
28925         with $(LIBUNISTRING).
28926         * modules/unicase/ignorable-tests: Likewise.
28927         * modules/unicase/locale-language-tests: Likewise.
28928         * modules/unicase/tolower-tests: Likewise.
28929         * modules/unicase/totitle-tests: Likewise.
28930         * modules/unicase/toupper-tests: Likewise.
28931         * modules/unicase/u8-casecmp-tests: Likewise.
28932         * modules/unicase/u8-casecoll-tests: Likewise.
28933         * modules/unicase/u8-casefold-tests: Likewise.
28934         * modules/unicase/u8-is-cased-tests: Likewise.
28935         * modules/unicase/u8-is-casefolded-tests: Likewise.
28936         * modules/unicase/u8-is-lowercase-tests: Likewise.
28937         * modules/unicase/u8-is-titlecase-tests: Likewise.
28938         * modules/unicase/u8-is-uppercase-tests: Likewise.
28939         * modules/unicase/u8-tolower-tests: Likewise.
28940         * modules/unicase/u8-totitle-tests: Likewise.
28941         * modules/unicase/u8-toupper-tests: Likewise.
28942         * modules/unicase/u16-casecmp-tests: Likewise.
28943         * modules/unicase/u16-casecoll-tests: Likewise.
28944         * modules/unicase/u16-casefold-tests: Likewise.
28945         * modules/unicase/u16-is-cased-tests: Likewise.
28946         * modules/unicase/u16-is-casefolded-tests: Likewise.
28947         * modules/unicase/u16-is-lowercase-tests: Likewise.
28948         * modules/unicase/u16-is-titlecase-tests: Likewise.
28949         * modules/unicase/u16-is-uppercase-tests: Likewise.
28950         * modules/unicase/u16-tolower-tests: Likewise.
28951         * modules/unicase/u16-totitle-tests: Likewise.
28952         * modules/unicase/u16-toupper-tests: Likewise.
28953         * modules/unicase/u32-casecmp-tests: Likewise.
28954         * modules/unicase/u32-casecoll-tests: Likewise.
28955         * modules/unicase/u32-casefold-tests: Likewise.
28956         * modules/unicase/u32-is-cased-tests: Likewise.
28957         * modules/unicase/u32-is-casefolded-tests: Likewise.
28958         * modules/unicase/u32-is-lowercase-tests: Likewise.
28959         * modules/unicase/u32-is-titlecase-tests: Likewise.
28960         * modules/unicase/u32-is-uppercase-tests: Likewise.
28961         * modules/unicase/u32-tolower-tests: Likewise.
28962         * modules/unicase/u32-totitle-tests: Likewise.
28963         * modules/unicase/u32-toupper-tests: Likewise.
28964         * modules/unicase/ulc-casecmp-tests: Likewise.
28965         * modules/unicase/ulc-casecoll-tests: Likewise.
28966         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
28967         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
28968         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
28969         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
28970         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
28971         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
28972         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
28973         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
28974         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
28975         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
28976         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
28977         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
28978         * modules/unictype/bidicategory-byname-tests: Likewise.
28979         * modules/unictype/bidicategory-name-tests: Likewise.
28980         * modules/unictype/bidicategory-of-tests: Likewise.
28981         * modules/unictype/bidicategory-test-tests: Likewise.
28982         * modules/unictype/block-list-tests: Likewise.
28983         * modules/unictype/block-of-tests: Likewise.
28984         * modules/unictype/block-test-tests: Likewise.
28985         * modules/unictype/category-C-tests: Likewise.
28986         * modules/unictype/category-Cc-tests: Likewise.
28987         * modules/unictype/category-Cf-tests: Likewise.
28988         * modules/unictype/category-Cn-tests: Likewise.
28989         * modules/unictype/category-Co-tests: Likewise.
28990         * modules/unictype/category-Cs-tests: Likewise.
28991         * modules/unictype/category-L-tests: Likewise.
28992         * modules/unictype/category-Ll-tests: Likewise.
28993         * modules/unictype/category-Lm-tests: Likewise.
28994         * modules/unictype/category-Lo-tests: Likewise.
28995         * modules/unictype/category-Lt-tests: Likewise.
28996         * modules/unictype/category-Lu-tests: Likewise.
28997         * modules/unictype/category-M-tests: Likewise.
28998         * modules/unictype/category-Mc-tests: Likewise.
28999         * modules/unictype/category-Me-tests: Likewise.
29000         * modules/unictype/category-Mn-tests: Likewise.
29001         * modules/unictype/category-N-tests: Likewise.
29002         * modules/unictype/category-Nd-tests: Likewise.
29003         * modules/unictype/category-Nl-tests: Likewise.
29004         * modules/unictype/category-No-tests: Likewise.
29005         * modules/unictype/category-P-tests: Likewise.
29006         * modules/unictype/category-Pc-tests: Likewise.
29007         * modules/unictype/category-Pd-tests: Likewise.
29008         * modules/unictype/category-Pe-tests: Likewise.
29009         * modules/unictype/category-Pf-tests: Likewise.
29010         * modules/unictype/category-Pi-tests: Likewise.
29011         * modules/unictype/category-Po-tests: Likewise.
29012         * modules/unictype/category-Ps-tests: Likewise.
29013         * modules/unictype/category-S-tests: Likewise.
29014         * modules/unictype/category-Sc-tests: Likewise.
29015         * modules/unictype/category-Sk-tests: Likewise.
29016         * modules/unictype/category-Sm-tests: Likewise.
29017         * modules/unictype/category-So-tests: Likewise.
29018         * modules/unictype/category-Z-tests: Likewise.
29019         * modules/unictype/category-Zl-tests: Likewise.
29020         * modules/unictype/category-Zp-tests: Likewise.
29021         * modules/unictype/category-Zs-tests: Likewise.
29022         * modules/unictype/category-and-not-tests: Likewise.
29023         * modules/unictype/category-and-tests: Likewise.
29024         * modules/unictype/category-byname-tests: Likewise.
29025         * modules/unictype/category-name-tests: Likewise.
29026         * modules/unictype/category-none-tests: Likewise.
29027         * modules/unictype/category-of-tests: Likewise.
29028         * modules/unictype/category-or-tests: Likewise.
29029         * modules/unictype/category-test-withtable-tests: Likewise.
29030         * modules/unictype/combining-class-tests: Likewise.
29031         * modules/unictype/ctype-alnum-tests: Likewise.
29032         * modules/unictype/ctype-alpha-tests: Likewise.
29033         * modules/unictype/ctype-blank-tests: Likewise.
29034         * modules/unictype/ctype-cntrl-tests: Likewise.
29035         * modules/unictype/ctype-digit-tests: Likewise.
29036         * modules/unictype/ctype-graph-tests: Likewise.
29037         * modules/unictype/ctype-lower-tests: Likewise.
29038         * modules/unictype/ctype-print-tests: Likewise.
29039         * modules/unictype/ctype-punct-tests: Likewise.
29040         * modules/unictype/ctype-space-tests: Likewise.
29041         * modules/unictype/ctype-upper-tests: Likewise.
29042         * modules/unictype/ctype-xdigit-tests: Likewise.
29043         * modules/unictype/decimal-digit-tests: Likewise.
29044         * modules/unictype/digit-tests: Likewise.
29045         * modules/unictype/mirror-tests: Likewise.
29046         * modules/unictype/numeric-tests: Likewise.
29047         * modules/unictype/property-alphabetic-tests: Likewise.
29048         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
29049         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
29050         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
29051         * modules/unictype/property-bidi-block-separator-tests: Likewise.
29052         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
29053         * modules/unictype/property-bidi-common-separator-tests: Likewise.
29054         * modules/unictype/property-bidi-control-tests: Likewise.
29055         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
29056         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
29057         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
29058         * modules/unictype/property-bidi-european-digit-tests: Likewise.
29059         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
29060         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
29061         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
29062         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
29063         * modules/unictype/property-bidi-pdf-tests: Likewise.
29064         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
29065         * modules/unictype/property-bidi-whitespace-tests: Likewise.
29066         * modules/unictype/property-byname-tests: Likewise.
29067         * modules/unictype/property-combining-tests: Likewise.
29068         * modules/unictype/property-composite-tests: Likewise.
29069         * modules/unictype/property-currency-symbol-tests: Likewise.
29070         * modules/unictype/property-dash-tests: Likewise.
29071         * modules/unictype/property-decimal-digit-tests: Likewise.
29072         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
29073         * modules/unictype/property-deprecated-tests: Likewise.
29074         * modules/unictype/property-diacritic-tests: Likewise.
29075         * modules/unictype/property-extender-tests: Likewise.
29076         * modules/unictype/property-format-control-tests: Likewise.
29077         * modules/unictype/property-grapheme-base-tests: Likewise.
29078         * modules/unictype/property-grapheme-extend-tests: Likewise.
29079         * modules/unictype/property-grapheme-link-tests: Likewise.
29080         * modules/unictype/property-hex-digit-tests: Likewise.
29081         * modules/unictype/property-hyphen-tests: Likewise.
29082         * modules/unictype/property-id-continue-tests: Likewise.
29083         * modules/unictype/property-id-start-tests: Likewise.
29084         * modules/unictype/property-ideographic-tests: Likewise.
29085         * modules/unictype/property-ids-binary-operator-tests: Likewise.
29086         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
29087         * modules/unictype/property-ignorable-control-tests: Likewise.
29088         * modules/unictype/property-iso-control-tests: Likewise.
29089         * modules/unictype/property-join-control-tests: Likewise.
29090         * modules/unictype/property-left-of-pair-tests: Likewise.
29091         * modules/unictype/property-line-separator-tests: Likewise.
29092         * modules/unictype/property-logical-order-exception-tests: Likewise.
29093         * modules/unictype/property-lowercase-tests: Likewise.
29094         * modules/unictype/property-math-tests: Likewise.
29095         * modules/unictype/property-non-break-tests: Likewise.
29096         * modules/unictype/property-not-a-character-tests: Likewise.
29097         * modules/unictype/property-numeric-tests: Likewise.
29098         * modules/unictype/property-other-alphabetic-tests: Likewise.
29099         * modules/unictype/property-other-default-ignorable-code-point-tests:
29100         Likewise.
29101         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
29102         * modules/unictype/property-other-id-continue-tests: Likewise.
29103         * modules/unictype/property-other-id-start-tests: Likewise.
29104         * modules/unictype/property-other-lowercase-tests: Likewise.
29105         * modules/unictype/property-other-math-tests: Likewise.
29106         * modules/unictype/property-other-uppercase-tests: Likewise.
29107         * modules/unictype/property-paired-punctuation-tests: Likewise.
29108         * modules/unictype/property-paragraph-separator-tests: Likewise.
29109         * modules/unictype/property-pattern-syntax-tests: Likewise.
29110         * modules/unictype/property-pattern-white-space-tests: Likewise.
29111         * modules/unictype/property-private-use-tests: Likewise.
29112         * modules/unictype/property-punctuation-tests: Likewise.
29113         * modules/unictype/property-quotation-mark-tests: Likewise.
29114         * modules/unictype/property-radical-tests: Likewise.
29115         * modules/unictype/property-sentence-terminal-tests: Likewise.
29116         * modules/unictype/property-soft-dotted-tests: Likewise.
29117         * modules/unictype/property-space-tests: Likewise.
29118         * modules/unictype/property-terminal-punctuation-tests: Likewise.
29119         * modules/unictype/property-test-tests: Likewise.
29120         * modules/unictype/property-titlecase-tests: Likewise.
29121         * modules/unictype/property-unassigned-code-value-tests: Likewise.
29122         * modules/unictype/property-unified-ideograph-tests: Likewise.
29123         * modules/unictype/property-uppercase-tests: Likewise.
29124         * modules/unictype/property-variation-selector-tests: Likewise.
29125         * modules/unictype/property-white-space-tests: Likewise.
29126         * modules/unictype/property-xid-continue-tests: Likewise.
29127         * modules/unictype/property-xid-start-tests: Likewise.
29128         * modules/unictype/property-zero-width-tests: Likewise.
29129         * modules/unictype/scripts-tests: Likewise.
29130         * modules/unictype/syntax-c-ident-tests: Likewise.
29131         * modules/unictype/syntax-c-whitespace-tests: Likewise.
29132         * modules/unictype/syntax-java-ident-tests: Likewise.
29133         * modules/unictype/syntax-java-whitespace-tests: Likewise.
29134         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
29135         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
29136         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
29137         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
29138         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
29139         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
29140         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
29141         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
29142         * modules/uniname/uniname-tests: Likewise.
29143         * modules/uninorm/canonical-decomposition-tests: Likewise.
29144         * modules/uninorm/compat-decomposition-tests: Likewise.
29145         * modules/uninorm/composition-tests: Likewise.
29146         * modules/uninorm/decomposing-form-tests: Likewise.
29147         * modules/uninorm/decomposition-tests: Likewise.
29148         * modules/uninorm/filter-tests: Likewise.
29149         * modules/uninorm/nfc-tests: Likewise.
29150         * modules/uninorm/nfd-tests: Likewise.
29151         * modules/uninorm/nfkc-tests: Likewise.
29152         * modules/uninorm/nfkd-tests: Likewise.
29153         * modules/uninorm/u8-normcmp-tests: Likewise.
29154         * modules/uninorm/u8-normcoll-tests: Likewise.
29155         * modules/uninorm/u16-normcmp-tests: Likewise.
29156         * modules/uninorm/u16-normcoll-tests: Likewise.
29157         * modules/uninorm/u32-normcmp-tests: Likewise.
29158         * modules/uninorm/u32-normcoll-tests: Likewise.
29159         * modules/unistdio/u8-asnprintf-tests: Likewise.
29160         * modules/unistdio/u8-vasnprintf-tests: Likewise.
29161         * modules/unistdio/u8-vasprintf-tests: Likewise.
29162         * modules/unistdio/u8-vsnprintf-tests: Likewise.
29163         * modules/unistdio/u8-vsprintf-tests: Likewise.
29164         * modules/unistdio/u16-asnprintf-tests: Likewise.
29165         * modules/unistdio/u16-vasnprintf-tests: Likewise.
29166         * modules/unistdio/u16-vasprintf-tests: Likewise.
29167         * modules/unistdio/u16-vsnprintf-tests: Likewise.
29168         * modules/unistdio/u16-vsprintf-tests: Likewise.
29169         * modules/unistdio/u32-asnprintf-tests: Likewise.
29170         * modules/unistdio/u32-vasnprintf-tests: Likewise.
29171         * modules/unistdio/u32-vasprintf-tests: Likewise.
29172         * modules/unistdio/u32-vsnprintf-tests: Likewise.
29173         * modules/unistdio/u32-vsprintf-tests: Likewise.
29174         * modules/unistdio/ulc-asnprintf-tests: Likewise.
29175         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
29176         * modules/unistdio/ulc-vasprintf-tests: Likewise.
29177         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
29178         * modules/unistdio/ulc-vsprintf-tests: Likewise.
29179         * modules/unistr/u8-check-tests: Likewise.
29180         * modules/unistr/u8-chr-tests: Likewise.
29181         * modules/unistr/u8-cmp-tests: Likewise.
29182         * modules/unistr/u8-cmp2-tests: Likewise.
29183         * modules/unistr/u8-cpy-alloc-tests: Likewise.
29184         * modules/unistr/u8-cpy-tests: Likewise.
29185         * modules/unistr/u8-mblen-tests: Likewise.
29186         * modules/unistr/u8-mbsnlen-tests: Likewise.
29187         * modules/unistr/u8-mbtouc-tests: Likewise.
29188         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
29189         * modules/unistr/u8-mbtoucr-tests: Likewise.
29190         * modules/unistr/u8-move-tests: Likewise.
29191         * modules/unistr/u8-next-tests: Likewise.
29192         * modules/unistr/u8-prev-tests: Likewise.
29193         * modules/unistr/u8-set-tests: Likewise.
29194         * modules/unistr/u8-stpcpy-tests: Likewise.
29195         * modules/unistr/u8-stpncpy-tests: Likewise.
29196         * modules/unistr/u8-strcat-tests: Likewise.
29197         * modules/unistr/u8-strcmp-tests: Likewise.
29198         * modules/unistr/u8-strcoll-tests: Likewise.
29199         * modules/unistr/u8-strcpy-tests: Likewise.
29200         * modules/unistr/u8-strdup-tests: Likewise.
29201         * modules/unistr/u8-strlen-tests: Likewise.
29202         * modules/unistr/u8-strmblen-tests: Likewise.
29203         * modules/unistr/u8-strmbtouc-tests: Likewise.
29204         * modules/unistr/u8-strncat-tests: Likewise.
29205         * modules/unistr/u8-strncmp-tests: Likewise.
29206         * modules/unistr/u8-strncpy-tests: Likewise.
29207         * modules/unistr/u8-strnlen-tests: Likewise.
29208         * modules/unistr/u8-to-u16-tests: Likewise.
29209         * modules/unistr/u8-to-u32-tests: Likewise.
29210         * modules/unistr/u8-uctomb-tests: Likewise.
29211         * modules/unistr/u16-check-tests: Likewise.
29212         * modules/unistr/u16-chr-tests: Likewise.
29213         * modules/unistr/u16-cmp-tests: Likewise.
29214         * modules/unistr/u16-cmp2-tests: Likewise.
29215         * modules/unistr/u16-cpy-alloc-tests: Likewise.
29216         * modules/unistr/u16-cpy-tests: Likewise.
29217         * modules/unistr/u16-mblen-tests: Likewise.
29218         * modules/unistr/u16-mbsnlen-tests: Likewise.
29219         * modules/unistr/u16-mbtouc-tests: Likewise.
29220         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
29221         * modules/unistr/u16-mbtoucr-tests: Likewise.
29222         * modules/unistr/u16-move-tests: Likewise.
29223         * modules/unistr/u16-next-tests: Likewise.
29224         * modules/unistr/u16-prev-tests: Likewise.
29225         * modules/unistr/u16-set-tests: Likewise.
29226         * modules/unistr/u16-stpcpy-tests: Likewise.
29227         * modules/unistr/u16-stpncpy-tests: Likewise.
29228         * modules/unistr/u16-strcat-tests: Likewise.
29229         * modules/unistr/u16-strcmp-tests: Likewise.
29230         * modules/unistr/u16-strcoll-tests: Likewise.
29231         * modules/unistr/u16-strcpy-tests: Likewise.
29232         * modules/unistr/u16-strdup-tests: Likewise.
29233         * modules/unistr/u16-strlen-tests: Likewise.
29234         * modules/unistr/u16-strmblen-tests: Likewise.
29235         * modules/unistr/u16-strmbtouc-tests: Likewise.
29236         * modules/unistr/u16-strncat-tests: Likewise.
29237         * modules/unistr/u16-strncmp-tests: Likewise.
29238         * modules/unistr/u16-strncpy-tests: Likewise.
29239         * modules/unistr/u16-strnlen-tests: Likewise.
29240         * modules/unistr/u16-to-u32-tests: Likewise.
29241         * modules/unistr/u16-to-u8-tests: Likewise.
29242         * modules/unistr/u16-uctomb-tests: Likewise.
29243         * modules/unistr/u32-check-tests: Likewise.
29244         * modules/unistr/u32-chr-tests: Likewise.
29245         * modules/unistr/u32-cmp-tests: Likewise.
29246         * modules/unistr/u32-cmp2-tests: Likewise.
29247         * modules/unistr/u32-cpy-alloc-tests: Likewise.
29248         * modules/unistr/u32-cpy-tests: Likewise.
29249         * modules/unistr/u32-mblen-tests: Likewise.
29250         * modules/unistr/u32-mbsnlen-tests: Likewise.
29251         * modules/unistr/u32-mbtouc-tests: Likewise.
29252         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
29253         * modules/unistr/u32-mbtoucr-tests: Likewise.
29254         * modules/unistr/u32-move-tests: Likewise.
29255         * modules/unistr/u32-next-tests: Likewise.
29256         * modules/unistr/u32-prev-tests: Likewise.
29257         * modules/unistr/u32-set-tests: Likewise.
29258         * modules/unistr/u32-stpcpy-tests: Likewise.
29259         * modules/unistr/u32-stpncpy-tests: Likewise.
29260         * modules/unistr/u32-strcat-tests: Likewise.
29261         * modules/unistr/u32-strcmp-tests: Likewise.
29262         * modules/unistr/u32-strcoll-tests: Likewise.
29263         * modules/unistr/u32-strcpy-tests: Likewise.
29264         * modules/unistr/u32-strdup-tests: Likewise.
29265         * modules/unistr/u32-strlen-tests: Likewise.
29266         * modules/unistr/u32-strmblen-tests: Likewise.
29267         * modules/unistr/u32-strmbtouc-tests: Likewise.
29268         * modules/unistr/u32-strncat-tests: Likewise.
29269         * modules/unistr/u32-strncmp-tests: Likewise.
29270         * modules/unistr/u32-strncpy-tests: Likewise.
29271         * modules/unistr/u32-strnlen-tests: Likewise.
29272         * modules/unistr/u32-to-u16-tests: Likewise.
29273         * modules/unistr/u32-to-u8-tests: Likewise.
29274         * modules/unistr/u32-uctomb-tests: Likewise.
29275         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
29276         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
29277         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
29278         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
29279         * modules/uniwidth/u8-strwidth-tests: Likewise.
29280         * modules/uniwidth/u8-width-tests: Likewise.
29281         * modules/uniwidth/u16-strwidth-tests: Likewise.
29282         * modules/uniwidth/u16-width-tests: Likewise.
29283         * modules/uniwidth/u32-strwidth-tests: Likewise.
29284         * modules/uniwidth/u32-width-tests: Likewise.
29285         * modules/uniwidth/width-tests: Likewise.
29286
29287 2010-05-18  Richard Jones  <rjones@redhat.com>
29288
29289         doc: users.txt: list hivex
29290         * users.txt: Add hivex.
29291
29292 2010-05-18  Richard Jones  <rjones@redhat.com>
29293
29294         doc: users.txt: list febootstrap
29295         * users.txt: Add febootstrap.
29296
29297 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
29298
29299         bootstrap: fix an error when gnulib is not used as a git submodule
29300         * build-aux/bootstrap (gnulib_path): If its length is zero then
29301         assign "gnulib" to it.
29302         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
29303
29304 2010-05-16  Bruno Haible  <bruno@clisp.org>
29305
29306         Avoid autoconf warnings about AM_ICONV.
29307         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
29308         2.64.
29309
29310 2010-05-16  Bruno Haible  <bruno@clisp.org>
29311
29312         absolute-header: Make the macro usable in more situations.
29313         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
29314         from gl_ABSOLUTE_HEADER.
29315         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
29316
29317 2010-05-16  James Youngman  <jay@gnu.org>
29318
29319         doc: update users.txt
29320         * users.txt: Add CSSC.
29321
29322 2010-05-16  Jim Meyering  <meyering@redhat.com>
29323
29324         init.sh: fix an error in the previous change; add more comments
29325         * tests/init.sh: Compare exit code in loop against 9, not 2.
29326         Patch by Bruno Haible.
29327         Make the two tests more similar by adding an empty "then" clause.
29328         Add comments.
29329
29330         init.sh: avoid unnecessary shell re-exec
29331         * tests/init.sh: Improve the re-exec-required check to first test the
29332         current shell.  If it passes the test, do not search for a shell that
29333         does pass, and do not re-exec.  This test is particularly contorted to
29334         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
29335         of $(...) evokes a syntax error and causes immediate shell exit with
29336         status 2.  Bruno Haible reported that the re-exec made it impossible
29337         to single-step through any init.sh-using script.
29338
29339 2010-05-16  Bruno Haible  <bruno@clisp.org>
29340
29341         Fix collision between gnulib's and libintl's printf replacements.
29342         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
29343         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
29344         (printf): When using GNU C, map the __printf__ function to rpl_printf
29345         via __asm__. When not using GNU C, define rpl_printf instead of
29346         __printf__.
29347         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
29348         commit.
29349         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
29350         commit.
29351         * m4/asm-underscore.m4: New file.
29352         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
29353         * modules/stdio (Files): Add m4/asm-underscore.m4.
29354         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
29355         Reported by Ben Pfaff.
29356
29357 2010-05-16  Bruno Haible  <bruno@clisp.org>
29358
29359         verify: Avoid skipping the test on openSUSE 11.0.
29360         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
29361
29362 2010-05-13  Bruno Haible  <bruno@clisp.org>
29363
29364         Avoid useless warnings from G++.
29365         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
29366         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
29367         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29368
29369 2010-05-11  Jim Meyering  <meyering@redhat.com>
29370
29371         maint.mk: tweak preceding change
29372         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
29373         regexps tighter by anchoring at EOL, and make the new group "shy"
29374         for slightly decreased overhead.
29375
29376 2010-05-11  Eric Blake  <eblake@redhat.com>
29377
29378         maint.mk: gnulib doesn't guarantee NSIG
29379         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
29380
29381 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29382
29383         test-pwrite.c: Remove unused variable declaration.
29384         * tests/test-pwrite.c (main): Remove read_buf declaration.
29385
29386         Remove useless test-pwrite.sh file.
29387         * tests/test-pwrite.sh: Delete file.
29388         * modules/pwrite-tests: Remove references.
29389         Reported by Bruno Haible.
29390
29391 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29392
29393         init.sh: fix a typo
29394         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
29395
29396 2010-05-10  Jim Meyering  <meyering@redhat.com>
29397
29398         maint.mk: avoid using a temporary file in the always-defined-macros check
29399         * top/maint.mk (.re-defmac): Remove rule.
29400         (gl_trap_): Remove definition.
29401         (sc_prohibit_always-defined_macros): Rewrite not to create and
29402         depend on a temporary file.  Instead, depend on GNU grep's ability
29403         to read a list of regular expressions from stdin when given "-f -".
29404
29405 2010-05-09  Bruno Haible  <bruno@clisp.org>
29406
29407         Update to GNU gettext 0.18, part 1.
29408         * m4/gettext.m4: Update to GNU gettext 0.18.
29409         * m4/intl.m4: Likewise.
29410         * m4/po.m4: Likewise.
29411         * modules/gettext (Files): Add m4/fcntl-o.m4.
29412         (configure.ac): Require gettext infrastructure from version 0.18.
29413
29414 2010-05-09  Jim Meyering  <meyering@redhat.com>
29415
29416         init.sh: enable MALLOC_PERTURB_
29417         * tests/init.sh: Enable glibc's malloc-perturbing option.
29418
29419         maint.mk: improve sc_cross_check_PATH_usage_in_tests
29420         With my recent change in init.sh from the two-line form:
29421             -#   : ${srcdir=.}
29422             -#   . "$srcdir/init.sh"; path_prepend_ .
29423             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
29424         I noticed that using the one-line form would cause this test
29425         to fail with a false-positive, or to stop working altogether,
29426         depending on whether help-version changed or all the tests did.
29427         * top/maint.mk (_hv_regex): Remove this definition.
29428         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
29429         (_hv_regex_strong): Use a stronger regex to check for conformance.
29430         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
29431         Give a separate diagnostic for lack of conforming use.
29432
29433         maint.mk: prohibit definition of symbols defined by gnulib
29434         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
29435         definition of symbols defined by gnulib.
29436
29437 2010-05-09  Bruno Haible  <bruno@clisp.org>
29438
29439         acl: Avoid test failure on Cygwin-hosted mingw.
29440         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
29441
29442 2010-05-09  Bruno Haible  <bruno@clisp.org>
29443
29444         error: Use system's fcntl function.
29445         * lib/error.c (fcntl): Undefine.
29446
29447 2010-05-09  Jim Meyering  <meyering@redhat.com>
29448
29449         verify: adjust formatting to be more consistent
29450         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
29451         argument-list '('s, and after one comma.
29452
29453 2010-05-09  Bruno Haible  <bruno@clisp.org>
29454
29455         error: More reliable output on mingw.
29456         * lib/error.c: Include <windows.h>.
29457         (is_open): New function.
29458         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
29459         defined.
29460
29461 2010-05-09  Bruno Haible  <bruno@clisp.org>
29462
29463         vasnprintf: Fix syntax errors in libintl build on mingw.
29464         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
29465         pad_ourselves and prec_ourselves after use.
29466
29467 2010-05-08  Bruno Haible  <bruno@clisp.org>
29468
29469         * lib/config.charset: Update comments for Cygwin 1.7.
29470         * lib/localcharset.c: Likewise.
29471
29472 2010-05-07  Jim Meyering  <meyering@redhat.com>
29473
29474         init.sh: improve comments
29475         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
29476         . "${srcdir=.}/init.sh"; path_prepend_ .
29477         Add a note about path_prepend_ and the alternative of using
29478         TESTS_ENVIRONMENT.
29479
29480 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
29481
29482         exclude: Unescape hashed patterns in wildcard mode.
29483         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
29484         to the hash list.
29485         * tests/test-exclude8.sh: New test case.
29486         * modules/exclude-tests: Add new test.
29487
29488 2010-05-05  Eric Blake  <eblake@redhat.com>
29489
29490         verify: automate tests
29491         * modules/verify-tests: New module.
29492         * tests/test-verify.sh: New file.
29493         * tests/test-verify.c: Guard each negative test with a unique id.
29494         Also avoid warning about unused left hand of comma expressions.
29495
29496 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
29497
29498         Further improvements to verify.h, suggested by Eric Blake.
29499         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
29500         the GL_* versions, to avoid collision with OpenGL.
29501         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
29502         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
29503         than testing merely whether it's defined.
29504
29505         Modify verify.h to pacify gcc -Wredundant_decls.
29506         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
29507         These use the prefix "GL_" since they're likely to be useful elsewhere.
29508         We may need to break them out into a different .h file.
29509         (__COUNTER__): Define to 0 if the compiler doesn't support it.
29510         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
29511         of verify_function__.
29512
29513 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29514
29515         Tests for module pwrite.
29516         * modules/pwrite-tests: New file.
29517         * tests/test-pwrite.sh: New file.
29518         * tests/test-pwrite.c: New file.
29519
29520         New module pwrite.
29521         * lib/unistd.in.h (pwrite): New declaration.
29522         * lib/pwrite.c: New file, from glibc with modifications.
29523         * m4/pwrite.m4: New file.
29524         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
29525         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
29526         REPLACE_PWRITE.
29527         * modules/pwrite: New file.
29528         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
29529         REPLACE_PWRITE.
29530         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
29531         * doc/posix-functions/pwrite.texi: Mention the new module.
29532
29533 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29534
29535         pread: Update documentation.
29536         * doc/posix-functions/pread.texi: Mention the 'pread' module.
29537
29538 2010-05-04  Eric Blake  <eblake@redhat.com>
29539
29540         docs: update cygwin progress
29541         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
29542         this bug.
29543         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
29544         Added in cygwin 1.7.2.
29545         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
29546         Likewise.
29547         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
29548         Likewise.
29549         * doc/glibc-functions/dup3.texi (dup3): Likewise.
29550         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
29551         * doc/glibc-functions/accept4.texi (accept4): Likewise.
29552         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
29553         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
29554         Mention nproc module.
29555         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
29556         bug in cygwin 1.7.5 addition.
29557         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
29558         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
29559         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
29560         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
29561         1.7.5.
29562         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
29563         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
29564         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
29565         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
29566         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
29567         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
29568         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
29569         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
29570         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
29571         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
29572         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
29573         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
29574         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
29575         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
29576         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
29577         Likewise.
29578         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
29579         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
29580         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
29581         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
29582         Likewise.
29583         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
29584         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
29585         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
29586         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
29587         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
29588         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
29589         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
29590         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
29591         Likewise.
29592         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
29593         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
29594         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
29595         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
29596         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
29597         Likewise.
29598         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
29599         Likewise.
29600         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
29601         Likewise.
29602         * doc/glibc-functions/xdrrec_endofrecord.texi
29603         (xdrrec_endofrecord): Likewise.
29604         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
29605         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
29606         Likewise.
29607         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
29608         Likewise.
29609
29610 2010-05-04  Jim Meyering  <meyering@redhat.com>
29611
29612         gendocs.sh: make its "-s FILE" option more useful
29613         * build-aux/gendocs.sh: When honoring the -s FILE option, update
29614         $PACKAGE to reflect the probably-different basename of "FILE".
29615
29616 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
29617
29618         bootstrap: don't ignore download_po_files failure
29619         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
29620         failure.
29621
29622 2010-05-03  Jim Meyering  <meyering@redhat.com>
29623
29624         maint.mk: allow to pass options to gendocs.sh
29625         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
29626         (gendocs_options_): New overridable variable.
29627
29628         gnu-web-doc-update: don't ignore configure or build failure
29629         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
29630
29631         announce-gen: backslash-escape '@'s in --help output
29632         * build-aux/announce-gen: Fix syntax errors.
29633
29634         maint.mk, announce-gen: allow project-specific announcement mail headers
29635         * top/maint.mk (translation_project_): Define default.
29636         (announcement_Cc_, announcement_mail_headers_): Likewise.
29637         (announcement): Invoke announce-gen with new --mail-headers option.
29638         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
29639
29640         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
29641         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
29642         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
29643         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
29644         line in the "err2" output file when running "make check" in verbose
29645         mode (i.e., with set -x enabled).
29646
29647 2010-05-03  Bruno Haible  <bruno@clisp.org>
29648
29649         wctob: Fix for weird platforms.
29650         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
29651         argument value.
29652
29653 2010-05-03  Jim Meyering  <meyering@redhat.com>
29654
29655         maint.mk: prohibit unwarranted use of <strings.h>
29656         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
29657         strings.h in a file that does not also use strcasecmp, strncasecmp,
29658         ffs or ffsll.
29659
29660         maint.mk: remove obsolete comments
29661         * top/maint.mk: Remove stale, commented-out rules.
29662
29663 2010-05-02  Bruno Haible  <bruno@clisp.org>
29664
29665         wcwidth: Declare also when it's aliased.
29666         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
29667         macro.
29668
29669 2010-05-02  Bruno Haible  <bruno@clisp.org>
29670
29671         Fix regression from 2010-04-25.
29672         * gnulib-tool (func_modules_transitive_closure): Check the status of
29673         all modules, not only of the tests that are of the form foo-tests where
29674         foo is a module.
29675
29676 2010-05-02  Bruno Haible  <bruno@clisp.org>
29677
29678         wctob: Work around nasty Cygwin 1.7.2 bug.
29679         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
29680         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
29681
29682 2010-05-01  Bruno Haible  <bruno@clisp.org>
29683
29684         fpurge: Sharper test.
29685         * tests/test-fpurge.c (main): Add one more ftell check.
29686         * modules/fpurge-tests (Depends-on): Add ftell.
29687         Suggested by Eric Blake.
29688
29689 2010-05-01  Bruno Haible  <bruno@clisp.org>
29690
29691         ftello: Another test.
29692         * tests/test-ftello3.c: New file.
29693         * modules/ftello-tests (Files): Add it.
29694         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29695         MOSTLYCLEANFILES.
29696
29697         ftell: Another test.
29698         * tests/test-ftell3.c: New file.
29699         * modules/ftell-tests (Files): Add it.
29700         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29701         MOSTLYCLEANFILES.
29702
29703 2010-05-01  Bruno Haible  <bruno@clisp.org>
29704
29705         ftell, ftello: Work around Solaris bug.
29706         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
29707         * lib/ftello.c: Include stdio-impl.h.
29708         (ftello): On Solaris, when _IOWRT is set, compute the result without
29709         looking at _IOREAD.
29710         * modules/ftello (Files): Add lib/stdio-impl.h.
29711         * doc/posix-functions/ftell.texi: Mention Solaris bug.
29712         * doc/posix-functions/ftello.texi: Likewise.
29713         Reported by Eric Blake.
29714
29715 2010-05-01  Bruno Haible  <bruno@clisp.org>
29716
29717         freading: Adapt to special meaning of _IOREAD flag on Solaris.
29718         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
29719         the _IOWRT flag is also set.
29720
29721 2010-05-01  Bruno Haible  <bruno@clisp.org>
29722
29723         Fix doc about a HP-UX stdio bug.
29724         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
29725         * doc/posix-functions/ftello.texi: Likewise.
29726
29727 2010-05-01  Bruno Haible  <bruno@clisp.org>
29728
29729         lseek test: Fix failure on Solaris.
29730         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
29731         output.
29732
29733 2010-04-30  Jim Meyering  <meyering@redhat.com>
29734
29735         bootstrap: don't ignore failure to generate po*/Makevars
29736         * build-aux/bootstrap (with_gettext): Don't ignore failure
29737         to create po/Makevars or runtime-po/Makevars.
29738
29739 2010-04-29  Eric Blake  <eblake@redhat.com>
29740
29741         headers: relax license to LGPLv2+
29742         * modules/fcntl-h (License): Relax license.
29743         * modules/getopt-posix (License): Likewise.
29744         * modules/locale (License): Likewise.
29745         * modules/math (License): Likewise.
29746         * modules/pty (License): Likewise.
29747         * modules/sched (License): Likewise.
29748         * modules/search (License): Likewise.
29749         * modules/spawn (License): Likewise.
29750         * modules/stdarg (License): Likewise.
29751         * modules/sysexits (License): Likewise.
29752
29753 2010-04-29  Jim Meyering  <meyering@redhat.com>
29754
29755         inttypes: relax license to LGPLv2+
29756         * modules/inttypes (License): Relax license.
29757
29758 2010-04-29  Simon Josefsson  <simon@josefsson.org>
29759
29760         * top/maint.mk (indent): Run twice to produce idempotent results.
29761
29762 2010-04-28  Bruno Haible  <bruno@clisp.org>
29763
29764         getdate: Generate getdate.c in the source directory.
29765         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
29766         MOSTLYCLEANFILES.
29767         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
29768
29769 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
29770
29771         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
29772         is not declared as a const *; avoid warnings in that case.
29773
29774 2010-04-28  Eric Blake  <eblake@redhat.com>
29775
29776         canonicalize-lgpl: avoid compiler warning
29777         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
29778         declaration' / 'extraneous semicolon' warning with some compilers.
29779         Reported by Andreas Gruenbacher.
29780
29781 2010-04-28  Jim Meyering  <meyering@redhat.com>
29782
29783         init.sh: ensure a more reliable exit status when exiting via trap
29784         * tests/init.sh (setup_): Don't rely on $? in signal handler.
29785         Inspired by patches from Dmitry V. Levin.
29786         Also trap on signal 3 (SIGQUIT).
29787
29788 2010-04-27  Bruno Haible  <bruno@clisp.org>
29789
29790         Update doc about utimes().
29791         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
29792         'utimens' module.
29793         Reported by Andreas Gruenbacher <agruen@suse.de>.
29794
29795 2010-04-27  Eric Blake  <eblake@redhat.com>
29796
29797         full-read, full-write: relax license
29798         * modules/full-read (License): Drop to LGPLv2+.
29799         * modules/full-write (License): Likewise.
29800         * modules/safe-read (License): Likewise.
29801         * modules/safe-write (License): Likewise.
29802
29803         pthread: mention library for linking
29804         * modules/pthread (Link): Mention $(LIB_PTHREAD).
29805
29806 2010-04-27  Jim Meyering  <meyering@redhat.com>
29807
29808         maint.mk: fix a bug introduced in last change
29809         * top/maint.mk (gl_assured_headers_): Now that all names are on
29810         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
29811         is not anchored to end of word, it should be adequate.
29812
29813         maint.mk: avoid side-effect in latest syntax-check
29814         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
29815         to run commands via $(shell...), and hence to incur cost only when
29816         the new rule is actually run.
29817
29818         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
29819         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
29820         and use that to create a regexp used to detect all #if HAVE_..._H uses.
29821         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
29822         (gl_assured_headers_, az_, AZ_): Define.
29823         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
29824
29825 2010-04-26  Jim Meyering  <jim@meyering.net>
29826             Bruno Haible  <bruno@clisp.org>
29827
29828         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
29829         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
29830         Prompted by an exchange with Gilles Espinasse.
29831
29832 2010-04-26  Jim Meyering  <meyering@redhat.com>
29833
29834         git-version-gen: aesthetic tweak
29835         * build-aux/git-version-gen: Use "$nl" rather than a literal,
29836         so that the command remains on a single line.
29837
29838 2010-04-26  Eric Blake  <eblake@redhat.com>
29839
29840         git-version-gen: allow use on EBCDIC hosts
29841         * build-aux/git-version-gen (dirty): Use literal rather than tying
29842         ourselves to ascii.
29843         Reported by Steve Goetze.
29844
29845 2010-04-25  Bruno Haible  <bruno@clisp.org>
29846
29847         netdb: Add support for GNULIB_POSIXCHECK.
29848         * lib/netdb.in.h: Include warn-on-use.h.
29849         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
29850         functions are used when GNULIB_POSIXCHECK is defined and the
29851         getaddrinfo module is not in use.
29852         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
29853         freeaddrinfo, gai_strerror, getnameinfo are declared.
29854         * modules/netdb (Depends-on): Add warn-on-use.
29855         (Makefile.am): Include warn-on-use.h in netdb.h.
29856
29857 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
29858
29859         build: avoid "make check" failure without .git/ directory
29860         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
29861         there is no .git/ directory.
29862
29863 2010-04-25  Bruno Haible  <bruno@clisp.org>
29864
29865         ptsname: Fix misuse of ttyname_r.
29866         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
29867         of errno.
29868
29869 2010-04-25  Bruno Haible  <bruno@clisp.org>
29870
29871         ttyname_r: Make it work on Solaris 10.
29872         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
29873         if the system function has the POSIX declaration. Test whether the
29874         function fails if the buffer is less than 128 bytes large.
29875         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
29876         system's ttyname_r function. Provide a reasonably large buffer.
29877         * modules/ttyname_r (Depends-on): Add extensions.
29878         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
29879
29880 2010-04-25  Bruno Haible  <bruno@clisp.org>
29881
29882         Use the 'extensions' module for some more functions on Solaris.
29883         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
29884         module.
29885         * doc/posix-functions/ctime_r.texi: Likewise.
29886         * doc/posix-functions/getgrgid_r.texi: Likewise.
29887         * doc/posix-functions/getgrnam_r.texi: Likewise.
29888         * doc/posix-functions/getpwnam_r.texi: Likewise.
29889         * doc/posix-functions/getpwuid_r.texi: Likewise.
29890         * doc/posix-functions/readdir_r.texi: Likewise.
29891         * doc/posix-functions/sigwait.texi: Likewise.
29892         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
29893         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
29894
29895 2010-04-25  Bruno Haible  <bruno@clisp.org>
29896
29897         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
29898         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
29899         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
29900         * lib/ttyname_r.c: Include <limits.h>.
29901         (ttyname_r): Define using the system's ttyname_r function, if it exists
29902         and not on Solaris.
29903         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
29904         set.
29905         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
29906         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
29907         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
29908         Reported by Simon Josefsson.
29909
29910 2010-04-25  Bruno Haible  <bruno@clisp.org>
29911
29912         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
29913         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
29914         * doc/posix-functions/ctime_r.texi: Likewise.
29915         * doc/posix-functions/getgrgid_r.texi: Likewise.
29916         * doc/posix-functions/getgrnam_r.texi: Likewise.
29917         * doc/posix-functions/getlogin_r.texi: Likewise.
29918         * doc/posix-functions/getpwnam_r.texi: Likewise.
29919         * doc/posix-functions/getpwuid_r.texi: Likewise.
29920         * doc/posix-functions/readdir_r.texi: Likewise.
29921         * doc/posix-functions/sigwait.texi: Likewise.
29922         * doc/posix-functions/ttyname_r.texi: Likewise.
29923         Reported by Simon Josefsson.
29924
29925 2010-04-25  Bruno Haible  <bruno@clisp.org>
29926
29927         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
29928         * gnulib-tool (func_usage): Document that --with-*-tests options apply
29929         also to --create-testdir.
29930         (func_acceptable): Don't consider the status of *-tests modules here.
29931         (func_modules_transitive_closure): Consider it here, before including a
29932         test module.
29933         (func_import, func_create_testdir): Set inc_all_direct_tests,
29934         inc_all_indirect_tests.
29935         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
29936         --create-testdir and --create-megatestdir.
29937
29938 2010-04-25  Bruno Haible  <bruno@clisp.org>
29939
29940         gnulib-tool: Add --without-*-tests options.
29941         * gnulib-tool (func_usage): Document the --without-*-tests options.
29942         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
29943         excl_unportable_tests): New variables.
29944         Fail if they are specified with --import or --update.
29945         (func_acceptable): Respect the excl_*_tests variables.
29946         (func_import): Set the excl_*_tests variables to empty.
29947
29948 2010-04-25  Simon Josefsson  <simon@josefsson.org>
29949             Bruno Haible  <bruno@clisp.org>
29950
29951         Work around a MacOS X 10.4 bug with openpty.
29952         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
29953         * tests/test-openpty.c (main): Close the master side explicitly.
29954
29955 2010-04-25  Bruno Haible  <bruno@clisp.org>
29956
29957         strnlen: Fix a C++ test error on MacOS X and Solaris.
29958         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
29959         the function is not declared.
29960         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
29961         Simon Josefsson.
29962
29963 2010-04-24  Bruno Haible  <bruno@clisp.org>
29964
29965         Avoid a gcc warning.
29966         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
29967         of correct type for %08lx directive.
29968         Reported by Eric Blake.
29969
29970 2010-04-24  Bruno Haible  <bruno@clisp.org>
29971
29972         vasnprintf: Correct errno value in case of out-of-memory.
29973         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
29974         or sprintf. Use the errno value from SNPRINTF or sprintf.
29975         Reported by Ian Beckwith <ianb@erislabs.net>.
29976
29977 2010-04-24  Bruno Haible  <bruno@clisp.org>
29978
29979         ansi-c++-opt: Find correct compiler when cross-compiling.
29980         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
29981         AC_CHECK_PROGS.
29982         Reported by Simon Josefsson.
29983
29984 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
29985
29986         vc-list-files: Add support for subversion
29987         * build-aux/vc-list-files: Use "svn list" to generate the list of
29988         files controlled by subversion.
29989
29990 2010-04-23  Jim Meyering  <meyering@redhat.com>
29991
29992         vc-list-files tests: convert to use init.sh
29993         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
29994         path_prepend_.
29995         Use Exit, not exit.
29996         Use skip_ rather than open coding it.
29997         Remove trap set-up and compare definitions.
29998         * tests/test-vc-list-files-git.sh: Likewise.
29999         * modules/vc-list-files-tests (Files): Add tests/init.sh.
30000
30001 2010-04-22  Simon Josefsson  <simon@josefsson.org>
30002
30003         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
30004         backup files.
30005
30006 2010-04-21  Simon Josefsson  <simon@josefsson.org>
30007
30008         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
30009
30010 2010-04-20  Eric Blake  <eblake@redhat.com>
30011
30012         tests: be robust to ignored SIGPIPE
30013         * tests/test-select-in.sh: Consume all output.
30014         * tests/test-lseek.sh: Check correct exit status, while avoiding
30015         EPIPE.
30016
30017 2010-04-20  Simon Josefsson  <simon@josefsson.org>
30018             Bruno Haible  <bruno@clisp.org>
30019
30020         visibility: Don't use -fvisibility if it leads to a warning.
30021         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
30022         yes, don't pretend that visibility works if it leads to a warning.
30023         Reported by Mike Gran <spk121@yahoo.com>.
30024
30025 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
30026
30027         * build-aux/bootstrap: Use "git -h" for testing for supported options
30028         instead of "git --help".  The short-form option only shows a summary,
30029         and doesn't layout the full man page.  Grep for the full option name
30030         in the summary, too.
30031
30032 2010-04-19  Bruno Haible  <bruno@clisp.org>
30033
30034         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
30035         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
30036         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
30037         mention of RELOCATABLE_STRIP.
30038         Reported by Sylvain Beucler <beuc@beuc.net>.
30039
30040 2010-04-19  Bruno Haible  <bruno@clisp.org>
30041
30042         * lib/diffseq.h: Fix typo in comment.
30043         Reported by Eric Blake.
30044
30045 2010-04-19  Bruno Haible  <bruno@clisp.org>
30046
30047         ioctl: Move autoconf macro to a .m4 file.
30048         * m4/ioctl.m4: New file, extracted from modules/ioctl.
30049         * modules/ioctl (Files): Add it.
30050         (configure.ac): Simply invoke gl_FUNC_IOCTL.
30051         Reported by Ian Beckwith <ianb@erislabs.net>.
30052
30053 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
30054             Bruno Haible  <bruno@clisp.org>
30055
30056         diffseq: Accommodate use-case with abstract arrays.
30057         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
30058         is not defined.
30059         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
30060         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
30061
30062 2010-04-18  Bruno Haible  <bruno@clisp.org>
30063
30064         * doc/posix-headers/stdbool.texi: More precise wording.
30065
30066 2010-04-17  Jim Meyering  <meyering@redhat.com>
30067
30068         maint.mk: use gnu-style indentation in an embedded perl script
30069         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
30070         Rename variable: s/two/last_two_bytes/
30071
30072 2010-04-16  Eric Blake  <eblake@redhat.com>
30073
30074         test-stdbool: skip test that fails with Solaris CC
30075         * tests/test-stdbool.c (f): Skip test that causes compilation
30076         error under buggy C++ compiler.
30077         * lib/stdbool.in.h: Document the limitation.
30078         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
30079
30080         setenv: allow compilation with C++
30081         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
30082         register keyword.
30083
30084         stdint: allow test to pass with C++
30085         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
30086
30087         getopt: allow compilation with C++
30088         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
30089         struct.
30090         * lib/getopt.c (_getopt_internal_r): Use correct type.
30091         Reported by Dagobert Michelson, via Joel E. Denny.
30092
30093 2010-04-16  Bruno Haible  <bruno@clisp.org>
30094
30095         Override netdb.h always.
30096         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
30097         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
30098         Reported by Ludovic Courtès <ludo@gnu.org>.
30099
30100 2010-04-15  Bruno Haible  <bruno@clisp.org>
30101
30102         openpty: Fix mistake from 2010-03-21.
30103         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
30104         Reported by Simon Josefsson.
30105
30106 2010-04-15  Eric Blake  <eblake@redhat.com>
30107
30108         test-forkpty: fix expected signature
30109         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
30110         Reported by Simon Josefsson.
30111
30112 2010-04-15  Jim Meyering  <meyering@redhat.com>
30113
30114         maint.mk: texinfo_suffix_re_: correct the default regexp
30115         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
30116
30117         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
30118         make it configurable via texinfo_suffix_re_.
30119
30120 2010-04-14  Eric Blake  <eblake@redhat.com>
30121
30122         strtok_r: relax license to LGPLv2+
30123         * modules/strtok_r (License): Relax license.
30124         Reported by Matthias Bolte.
30125
30126 2010-04-14  Simon Josefsson  <simon@josefsson.org>
30127
30128         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
30129         version 1.4.4 by default instead of requiring the libgcrypt
30130         version used during build.  This makes it possible to use the
30131         application with older but still binary compatible libgcrypt
30132         versions.
30133
30134 2010-04-13  Eric Blake  <eblake@redhat.com>
30135
30136         getopt-gnu: match recent glibc fixes and posix ruling
30137         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
30138         '+' handling, when requesting extensions.
30139         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
30140         'W;' handling.
30141         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
30142         * doc/posix-functions/getopt.texi (getopt): Document this.
30143         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
30144         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30145         Likewise.
30146
30147         getopt: merge bug fixes from glibc
30148         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
30149         diagnostics.  Honor '+:' correctly.  Reject ';'.
30150
30151         getopt-posix: detect MacOS bug
30152         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
30153         optind when missing a required argument.
30154         * doc/posix-functions/getopt.texi (getopt): Document the bug.
30155         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
30156         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30157         Likewise.
30158
30159         getopt-posix: avoid spurious failure on Solaris
30160         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
30161         an indicator that setting optind=1 is sufficient for reset.
30162
30163         getopt-posix: avoid spurious failure on FreeBSD
30164         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
30165         in POSIX mode, since the m4 test uses it.
30166
30167         gnulib-tool: silence warning on BSD sh
30168         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
30169
30170 2010-04-13  Jim Meyering  <meyering@redhat.com>
30171
30172         doc: users.txt: GNU patch now uses gnulib
30173         * users.txt: Add patch.
30174
30175 2010-04-12  Jim Meyering  <meyering@redhat.com>
30176
30177         maint.mk: generate more concise timing data for syntax-check rules
30178         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
30179         " done" from each line that reports a syntax-check test duration.
30180
30181 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
30182
30183         git-version-gen: use "git update-index..." rather than "git status"
30184         * build-aux/git-version-gen: Use git update-index --refresh, not
30185         "git status".  With some versions of git, "git status" would fail
30186         to update the index and result in an unwarranted "-dirty" suffix.
30187
30188 2010-04-11  Jim Meyering  <meyering@redhat.com>
30189
30190         openat: correct formatting (no semantic change)
30191         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
30192         Suggested by Bruno Haible.
30193
30194 2010-04-11  Bruno Haible  <bruno@clisp.org>
30195
30196         Stricter declaration checking in testdirs.
30197         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30198         If for_tests is true, augment AM_CPPFLAGS to define
30199         GNULIB_STRICT_CHECKING.
30200         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
30201         GNULIB_STRICT_CHECKING is defined, verify that the function is
30202         declared.
30203
30204 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
30205             Bruno Haible  <bruno@clisp.org>
30206
30207         libunistring: Improve configure output.
30208         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
30209         Don't say "consider installing GNU libunistring" when checking again
30210         with libiconv.
30211
30212 2010-04-11  Bruno Haible  <bruno@clisp.org>
30213
30214         libunistring: Correct value of $LTLIBUNISTRING.
30215         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
30216         correct the value of $LTLIBUNISTRING.
30217
30218 2010-04-11  Bruno Haible  <bruno@clisp.org>
30219
30220         havelib: Add static libraries to LIBS in the right order.
30221         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
30222         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
30223
30224 2010-04-11  Bruno Haible  <bruno@clisp.org>
30225
30226         libunistring: Detect libunistring also when it depends on libiconv.
30227         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
30228         the second AC_LIB_HAVE_LINKFLAGS invocation.
30229
30230 2010-04-11  James Youngman  <jay@gnu.org>
30231
30232         close-stream: declare local scalars to be "const"
30233         * lib/close-stream.c (close_stream): Make boolean variables const
30234         to document the fact that we set but do not change them.
30235
30236 2010-04-11  Bruno Haible  <bruno@clisp.org>
30237
30238         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
30239
30240 2010-04-11  Jim Meyering  <meyering@redhat.com>
30241
30242         maint.mk: don't include dist-check.mk
30243         * top/maint.mk: Remove bogus include directive.
30244
30245         maint.mk: improve empty-line-at-EOF check
30246         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
30247         solution, rather than tail+Perl-based one.  The latter would read
30248         a few kilobytes from the end of each file, and did not handle empty
30249         files properly.
30250
30251         maint.mk: print the elapsed time for each syntax-check rule
30252         * top/maint.mk (sc_m_rules_): Save start time in a file.
30253         (sc_z_rules_): New rules: remove temp file and print elapsed time.
30254         (local-check): Interpose the .z rules
30255
30256 2010-04-11  Jim Meyering  <meyering@redhat.com>
30257
30258         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
30259         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
30260         empty file with one that ends in an empty line.
30261
30262 2010-04-10  Bruno Haible  <bruno@clisp.org>
30263
30264         mkdir: Make it work on mingw64.
30265         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
30266         * lib/mkdir.c: Update comment.
30267         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
30268
30269 2010-04-10  Bruno Haible  <bruno@clisp.org>
30270
30271         Don't override improved macro from newer autoconf.
30272         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
30273         autoconf >= 2.62.
30274         Reported by Joel E. Denny <jdenny@clemson.edu>.
30275
30276 2010-04-10  Jim Meyering  <meyering@redhat.com>
30277
30278         maint.mk: new syntax-check rule: prohibit empty lines at end of file
30279         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
30280
30281         maint.mk: correct a diagnostic
30282         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
30283         in diagnostic; now use $prohibit.
30284
30285 2010-04-10  Bruno Haible  <address@hidden>
30286
30287         fchownat: Fix a C++ test error on Solaris 8.
30288         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
30289         the function does not exist.
30290
30291 2010-04-10  Bruno Haible  <bruno@clisp.org>
30292
30293         vasnprintf: Add more tests.
30294         * tests/test-vasnprintf-posix.c: Include <errno.h>.
30295         (test_function): Test converting an invalid wide string.
30296
30297         vasnprintf: Correct handling of unconvertible wide string arguments.
30298         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
30299         VASNPRINTF.
30300         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
30301         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
30302         smaller than the expected maximum need for the directive. Set errno to
30303         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
30304         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
30305         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
30306         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
30307         * modules/vasnprintf (Files): Add m4/printf.m4.
30308         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30309
30310 2010-04-10  Bruno Haible  <bruno@clisp.org>
30311
30312         vasnprintf: Fix crash in %ls directive.
30313         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
30314         string is passed as argument to %ls, with no precision and no width.
30315         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30316
30317 2010-04-10  Bruno Haible  <bruno@clisp.org>
30318
30319         vasnprintf: Fix multiple test failures on mingw.
30320         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
30321         _snprintf, or snwprintf, not _snwprintf.
30322
30323 2010-04-10  Bruno Haible  <bruno@clisp.org>
30324
30325         write: Fix a C++ test error on mingw.
30326         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
30327
30328 2010-04-10  Bruno Haible  <bruno@clisp.org>
30329
30330         vasnprintf test: Reduce code duplication.
30331         * tests/test-vasnprintf.c (test_function): New function, extracted from
30332         test_vasnprintf.
30333         (test_vasnprintf, test_asnprintf): Invoke it.
30334
30335 2010-04-10  Bruno Haible  <bruno@clisp.org>
30336
30337         strnlen: Fix warning in C++ mode on MacOS X.
30338         * lib/string.in.h (strnlen): Use the modern idiom.
30339         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
30340         defining strnlen as a macro already in <config.h>.
30341         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30342         REPLACE_STRNLEN.
30343         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
30344         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30345
30346 2010-04-08  James Youngman  <jay@gnu.org>
30347
30348         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
30349         the example.
30350
30351 2010-04-09  Jim Meyering  <meyering@redhat.com>
30352
30353         maint.mk: print better diagnostic when there is no $(_hv_file)
30354         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
30355         announce that when $(_hv_file) (aka help-version) does not exist.
30356
30357         init.sh: run tr in the "C" locale to avoid multibyte interpretation
30358         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
30359         not try to interpret its random input bytes.  Jarno Rajahalme reported
30360         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
30361         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
30362         (mktempd_): Likewise, just in case.
30363
30364         ftruncate: add two years to projected module removal date: 2012
30365         * m4/ftruncate.m4: Adjust comments.
30366
30367         ftruncate: mark module as obsolete; even MinGW provides it, now
30368         * modules/ftruncate (Status): Obsolete.
30369         (Notice): Say that.
30370         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
30371         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
30372
30373 2010-04-08  Bruno Haible  <bruno@clisp.org>
30374
30375         Fix side effects from tests-related modules.
30376         * modules/dprintf-posix (Comment): New section.
30377         * modules/fprintf-posix (Comment): Likewise.
30378         * modules/obstack-printf-posix (Comment): Likewise.
30379         * modules/printf-posix (Comment): Likewise.
30380         * modules/snprintf-posix (Comment): Likewise.
30381         * modules/sprintf-posix (Comment): Likewise.
30382         * modules/vasnprintf-posix (Comment): Likewise.
30383         * modules/vasprintf-posix (Comment): Likewise.
30384         * modules/vdprintf-posix (Comment): Likewise.
30385         * modules/vfprintf-posix (Comment): Likewise.
30386         * modules/vprintf-posix (Comment): Likewise.
30387         * modules/vsnprintf-posix (Comment): Likewise.
30388         * modules/vsprintf-posix (Comment): Likewise.
30389         * modules/xprintf-posix (Comment): Likewise.
30390         * modules/xvasprintf-posix (Comment): Likewise.
30391         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
30392         * modules/floorf-tests (Depends-on): Likewise.
30393         * modules/round-tests (Depends-on): Likewise.
30394         * modules/roundf-tests (Depends-on): Likewise.
30395         * modules/trunc-tests (Depends-on): Likewise.
30396         * modules/truncf-tests (Depends-on): Likewise.
30397         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
30398         'fprintf-posix' module is not present.
30399         * tests/test-floorf2.c (check): Likewise.
30400         * tests/test-trunc2.c (check): Likewise.
30401         * tests/test-truncf2.c (check): Likewise.
30402         * tests/test-round2.c (equal): Likewise.
30403         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30404
30405 2010-04-07  Karl Berry  <karl@gnu.org>
30406
30407         * config/srclist.txt,
30408         * config/srclistvars.sh,
30409         * config/srclist-update: doc fixes.
30410
30411 2010-04-07  Jim Meyering  <meyering@redhat.com>
30412
30413         maint.mk: add a PATH crosschecking syntax-check rule
30414         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
30415         Useful if you use a test like the one in help-version (coreutils,
30416         diffutils, grep, gzip) that ensures $(VERSION) matches what is
30417         printed by prog --version.
30418
30419 2010-04-06  Bruno Haible  <bruno@clisp.org>
30420
30421         Fix link error on mingw.
30422         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
30423         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
30424
30425 2010-04-06  Bruno Haible  <bruno@clisp.org>
30426
30427         Assume rmdir exists.
30428         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
30429
30430 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
30431
30432         doc: update users.txt
30433         * users.txt: Add gcal.
30434
30435 2010-04-06  Jim Meyering  <meyering@redhat.com>
30436
30437         init.sh: simply unset TMPDIR rather than risking env -i
30438         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
30439         although it probably works fine on all Unix-based systems, some
30440         systems (Cygwin?) cannot tolerate a totally cleared environment.
30441         Suggestion from Eric Blake.
30442
30443 2010-04-06  Jim Meyering  <meyering@redhat.com>
30444
30445         init.sh: portability fix: use env's POSIX-specified -i option not -u
30446         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
30447         than unportable env -u.  Solaris 5.11's env lacks support for -u.
30448
30449 2010-04-05  Bruno Haible  <bruno@clisp.org>
30450
30451         btowc: Work around Cygwin 1.7.2 bug.
30452         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
30453         does not map NUL to 0.
30454         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
30455
30456 2010-04-05  Bruno Haible  <bruno@clisp.org>
30457
30458         Make the multithread modules work on Cygwin 1.7.2.
30459         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
30460         imported symbols can be declared weak, so that it returns "no" on
30461         Cygwin 1.7.2.
30462
30463 2010-04-05  Bruno Haible  <bruno@clisp.org>
30464
30465         Use the module 'strncat'.
30466         * modules/unistr/u8-strncat (Depends-on): Add strncat.
30467
30468         Tests for module 'strncat'.
30469         * modules/strncat-tests: New file.
30470         * tests/test-strncat.c: New file.
30471
30472         New module 'strncat'.
30473         * lib/string.in.h (strncat): New declaration.
30474         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
30475         * m4/strncat.m4: New file, based on m4/memchr.m4.
30476         * modules/strncat: New file.
30477         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
30478         is declared.
30479         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
30480         REPLACE_STRNCAT.
30481         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
30482         REPLACE_STRNCAT.
30483         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
30484         module.
30485         * tests/test-string-c++.cc: Check signature of strncat.
30486
30487 2010-04-05  Jim Meyering  <meyering@redhat.com>
30488
30489         xstrtoumax-tests: convert to use init.sh
30490         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
30491         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30492         Use Exit, not exit.
30493         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30494
30495         xstrtoimax-tests: convert to use init.sh
30496         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
30497         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30498         Use Exit, not exit.
30499         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30500
30501 2010-04-05  Bruno Haible  <bruno@clisp.org>
30502
30503         sys_socket: Avoid #define replacements in C++ mode.
30504         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
30505         warning to the function if possible, rather than #defining the symbol
30506         to a dysfunctional alias.
30507
30508 2010-04-05  Bruno Haible  <bruno@clisp.org>
30509
30510         fseeko: Fix C++ test error on mingw.
30511         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
30512         gl_FUNC_FSEEKO.
30513         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
30514         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
30515         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
30516         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
30517
30518 2010-04-05  Bruno Haible  <bruno@clisp.org>
30519
30520         duplocale: Improve test output.
30521         * tests/test-duplocale.c (main): Print reason for skipped test.
30522
30523 2010-04-05  Bruno Haible  <bruno@clisp.org>
30524
30525         Assume rmdir exists.
30526         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
30527         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
30528
30529 2010-04-05  Bruno Haible  <bruno@clisp.org>
30530
30531         Fix link error on Solaris 8 with cc.
30532         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
30533
30534 2010-04-05  Bruno Haible  <bruno@clisp.org>
30535
30536         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30537         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
30538
30539 2010-04-05  Bruno Haible  <bruno@clisp.org>
30540
30541         vasprintf: Update documentation.
30542         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
30543
30544 2010-04-05  Bruno Haible  <bruno@clisp.org>
30545
30546         ptsname: Improve test.
30547         * tests/test-ptsname.c (main): Also try the various master names of BSD
30548         systems.
30549
30550 2010-04-05  Bruno Haible  <bruno@clisp.org>
30551
30552         memchr: Avoid a possible C++ test error.
30553         * lib/string.in.h (memchr): Provide declaration if function is missing.
30554         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
30555         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
30556         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
30557         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
30558
30559 2010-04-05  Bruno Haible  <bruno@clisp.org>
30560
30561         strtok_r: Improve idiom.
30562         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
30563         AC_LIBOBJ is used.
30564
30565 2010-04-05  Bruno Haible  <bruno@clisp.org>
30566
30567         strdup: Improve idiom.
30568         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
30569         AC_LIBOBJ is used.
30570         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
30571         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
30572         when AC_LIBOBJ is used.
30573
30574 2010-04-05  Bruno Haible  <bruno@clisp.org>
30575
30576         mbsinit, mbrtowc, wcrtomb: Improve idioms.
30577         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
30578         don't set REPLACE_MBSINIT to 1.
30579         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
30580         don't set REPLACE_MBRTOWC to 1.
30581         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
30582         exist, don't set REPLACE_MBSRTOWCS to 1.
30583         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
30584         exist, don't set REPLACE_MBSNRTOWCS to 1.
30585         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
30586         don't set REPLACE_WCRTOMB to 1.
30587         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
30588         exist, don't set REPLACE_WCSRTOMBS to 1.
30589         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
30590         exist, don't set REPLACE_WCSNRTOMBS to 1.
30591
30592 2010-04-05  Bruno Haible  <bruno@clisp.org>
30593
30594         ldexpl: Improve idiom.
30595         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
30596         make sure to set HAVE_DECL_LDEXPL to 0.
30597
30598 2010-04-05  Jim Meyering  <meyering@redhat.com>
30599
30600         xstrtol-tests: convert to use init.sh
30601         * modules/xstrtol-tests (Files): Add tests/init.sh.
30602         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30603         Use Exit, not exit.
30604         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30605
30606         atexit-tests: convert to use init.sh
30607         * modules/atexit-tests (Files): Add tests/init.sh.
30608         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30609         Use Exit, not exit.
30610         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30611
30612         init.sh: fix typo
30613         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
30614
30615         init.sh: make it easier for a test script to write to the tty, ...
30616         when using automake's parallel-tests mode.
30617         * tests/init.sh (stderr_fileno_): Define overridable variable.
30618         (warn_): New function, to use it.
30619         (fail_, skip_, framework_failure_): Use warn_.
30620
30621 2010-04-04  Bruno Haible  <bruno@clisp.org>
30622
30623         btowc: Avoid warning.
30624         * lib/btowc.c: Include <stdlib.h>.
30625         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
30626
30627 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30628             Bruno Haible  <bruno@clisp.org>
30629
30630         wchar: Port to NetBSD 1.5.
30631         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
30632         * lib/wctype.in.h (WEOF): Likewise.
30633
30634 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30635             Bruno Haible  <bruno@clisp.org>
30636
30637         Port extended stdio to NetBSD 1.5.
30638         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
30639         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
30640         older.
30641
30642 2010-04-04  Bruno Haible  <bruno@clisp.org>
30643
30644         string: Remove unused substitution.
30645         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
30646         HAVE_DECL_STRERROR.
30647         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
30648
30649 2010-04-04  Bruno Haible  <bruno@clisp.org>
30650
30651         strtod: Avoid a possible C++ test error.
30652         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
30653         set REPLACE_STRTOD.
30654
30655 2010-04-04  Bruno Haible  <bruno@clisp.org>
30656
30657         strerror: Update documentation.
30658         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
30659
30660 2010-04-04  Bruno Haible  <bruno@clisp.org>
30661
30662         stdio: Fix some C++ test errors on Solaris 8 with GCC.
30663         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
30664         _GL_CXXALIAS_SYS_CAST.
30665
30666 2010-04-04  Bruno Haible  <bruno@clisp.org>
30667
30668         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30669         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
30670         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
30671         REPLACE_FREXPL to 1.
30672         * doc/posix-functions/frexpl.texi: Update documentation.
30673
30674 2010-04-04  Bruno Haible  <bruno@clisp.org>
30675
30676         math: Fix some C++ test errors on Solaris 8 and Cygwin.
30677         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
30678
30679 2010-04-04  Bruno Haible  <bruno@clisp.org>
30680
30681         Implement nanosleep for native Windows.
30682         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
30683
30684 2010-04-04  Bruno Haible  <bruno@clisp.org>
30685
30686         math: Fix some C++ test errors on Solaris 8.
30687         * lib/math.in.h (truncf, trunc): Use simpler idiom.
30688
30689 2010-04-04  Bruno Haible  <bruno@clisp.org>
30690
30691         math: Fix some C++ test errors on Cygwin.
30692         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
30693         truncl): Provide declaration if the system does not have it.
30694         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
30695         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
30696         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
30697         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
30698         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
30699         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
30700         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
30701         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
30702         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
30703         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
30704         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
30705         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
30706         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
30707         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
30708         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
30709         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
30710         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
30711         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30712         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30713         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
30714         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30715         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30716
30717 2010-04-04  Bruno Haible  <bruno@clisp.org>
30718
30719         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
30720         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
30721         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
30722         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30723         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
30724         * m4/isinf.m4 (gl_ISINF): Likewise.
30725         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30726
30727 2010-04-04  Bruno Haible  <bruno@clisp.org>
30728
30729         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
30730         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30731
30732 2010-04-04  Bruno Haible  <bruno@clisp.org>
30733
30734         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
30735         * modules/tmpfile (configure.ac): Update.
30736
30737         tmpfile: Fix C++ test error on mingw.
30738         * lib/stdio.in.h (tmpfile): New declaration.
30739         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
30740         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
30741         * modules/tmpfile (Depends-on): Add stdio.
30742         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
30743         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
30744         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
30745         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
30746         REPLACE_TMPFILE.
30747         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
30748
30749 2010-04-04  Bruno Haible  <bruno@clisp.org>
30750
30751         ioctl: Fix C++ test error on mingw.
30752         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
30753         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
30754         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
30755
30756 2010-04-03  Bruno Haible  <bruno@clisp.org>
30757
30758         wcwidth: Fix C++ test error on mingw.
30759         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
30760         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
30761         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
30762
30763 2010-04-03  Bruno Haible  <bruno@clisp.org>
30764
30765         nanosleep: Fix C++ test error on mingw.
30766         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
30767         * lib/time.in.h (nanosleep): Use modern idiom.
30768         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
30769         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
30770         REPLACE_NANOSLEEP to 1.
30771         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
30772         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
30773
30774 2010-04-03  Bruno Haible  <bruno@clisp.org>
30775
30776         strptime: Fix C++ test error on mingw.
30777         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
30778         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
30779         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
30780         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
30781         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
30782         not REPLACE_STRPTIME.
30783         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
30784         REPLACE_STRPTIME.
30785
30786 2010-04-03  Bruno Haible  <bruno@clisp.org>
30787
30788         timegm: Fix C++ test error on mingw.
30789         * lib/time.in.h (timegm): Use modern idiom.
30790         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
30791         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
30792         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
30793         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
30794
30795 2010-04-03  Bruno Haible  <bruno@clisp.org>
30796
30797         timegm: Assume declaration if function exists.
30798         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
30799         if it exists. Don't clobber ac_cv_func_timegm.
30800
30801 2010-04-03  Bruno Haible  <bruno@clisp.org>
30802
30803         time_r: Fix C++ test error on mingw.
30804         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
30805         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
30806         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
30807         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
30808         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
30809
30810 2010-04-03  Bruno Haible  <bruno@clisp.org>
30811
30812         time_r: Minor updates.
30813         * modules/time_r (Description): Mention the provided functions.
30814         * lib/time_r.c: Don't include <string.h>.
30815         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
30816         * doc/posix-functions/localtime_r.texi: Likewise.
30817
30818 2010-04-03  Bruno Haible  <bruno@clisp.org>
30819
30820         time: Fix regression introduced on 2010-03-08.
30821         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
30822         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
30823
30824 2010-04-03  Jim Meyering  <meyering@redhat.com>
30825
30826         maint.mk: don't silently disable project-specific syntax-check rules
30827         * top/maint.mk (_prohibit_regexp): Define, to help people realize
30828         that they need to convert their project-specific syntax-check rules
30829         to use the new _sc_search_regexp.
30830
30831 2010-04-03  Bruno Haible  <bruno@clisp.org>
30832
30833         fchdir: Fix regression introduced on 2010-03-08.
30834         * lib/unistd.in.h (fchdir): Fix declaration.
30835         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
30836         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
30837         REPLACE_FCHDIR.
30838         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
30839         REPLACE_FCHDIR.
30840
30841 2010-04-03  Bruno Haible  <bruno@clisp.org>
30842
30843         getpagesize: Fix C++ test error on mingw.
30844         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
30845         system does not declare the function.
30846         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
30847         declared.
30848         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30849         HAVE_DECL_GETPAGESIZE.
30850         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
30851
30852 2010-04-03  Bruno Haible  <bruno@clisp.org>
30853
30854         stdio: Make C++ tests work on mingw.
30855         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
30856         does not declare the function.
30857
30858 2010-04-03  Bruno Haible  <bruno@clisp.org>
30859
30860         ftello: Fix C++ test error on mingw.
30861         * lib/stdio.in.h (ftello): Use modern idiom.
30862         * lib/ftello.c (ftello): Renamed from rpl_ftello.
30863         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
30864         is missing and that it needs to be replaced.
30865         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
30866         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
30867         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
30868
30869 2010-04-03  Bruno Haible  <bruno@clisp.org>
30870
30871         fseeko: Fix C++ test error on mingw.
30872         * lib/stdio.in.h (fseeko): Use modern idiom.
30873         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
30874         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
30875         is missing and that it needs to be replaced.
30876         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
30877         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
30878         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
30879
30880 2010-04-03  Bruno Haible  <bruno@clisp.org>
30881
30882         mkstemp: Fix C++ test error on mingw.
30883         * lib/stdlib.in.h (mkstemp): Use modern idiom.
30884         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
30885         function is missing and that it needs to be replaced.
30886         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
30887         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
30888
30889 2010-04-03  Bruno Haible  <bruno@clisp.org>
30890
30891         stpncpy: Fix C++ test error on mingw.
30892         * lib/string.in.h (stpncpy): Use modern idiom.
30893         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
30894         function is missing and that it needs to be replaced.
30895         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30896         REPLACE_STPNCPY.
30897         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
30898
30899 2010-04-03  Bruno Haible  <bruno@clisp.org>
30900
30901         sys_stat: Fix C++ test error on mingw.
30902         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
30903         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
30904
30905 2010-04-03  Bruno Haible  <bruno@clisp.org>
30906
30907         pty: Update doc.
30908         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
30909
30910 2010-04-03  Bruno Haible  <bruno@clisp.org>
30911
30912         unistd: Fix C++ test error on mingw.
30913         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
30914
30915 2010-04-03  Bruno Haible  <bruno@clisp.org>
30916
30917         Update doc regarding mingw.
30918         * doc/glibc-functions/openpty.texi: Update regarding mingw.
30919         * doc/glibc-functions/login_tty.texi: Likewise.
30920         * doc/glibc-functions/forkpty.texi: Likewise.
30921
30922 2010-04-03  Bruno Haible  <bruno@clisp.org>
30923
30924         stdlib: Avoid compilation failure of c-strtold on mingw.
30925         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
30926
30927 2010-04-03  Bruno Haible  <bruno@clisp.org>
30928
30929         locale: Make C++ tests work on Cygwin and mingw.
30930         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
30931         cannot provide the function.
30932         Reported by Simon Josefsson.
30933
30934 2010-04-03  Bruno Haible  <bruno@clisp.org>
30935
30936         localename: Port to MacOS X 10.6.
30937         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
30938         memory layout of the locales in MacOS X 10.6 as well.
30939         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
30940
30941 2010-04-02  Bruno Haible  <bruno@clisp.org>
30942
30943         gnulib-tool: Ensure that long-running tests are executed last.
30944         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
30945         running tests after the one for the other tests.
30946
30947 2010-04-02  Bruno Haible  <bruno@clisp.org>
30948
30949         gnulib-tool: Ensure the tests in the main directory are executed first.
30950         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
30951         start with the current directory.
30952
30953 2010-04-02  Bruno Haible  <bruno@clisp.org>
30954
30955         Tests for module 'havelib', moved here from GNU gettext.
30956         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
30957         modifications.
30958         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
30959         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
30960         with modifications.
30961         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
30962         modifications.
30963         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
30964         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
30965         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
30966         with modifications.
30967         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
30968         with modifications.
30969         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
30970         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
30971         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
30972         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
30973         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
30974         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
30975         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
30976         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
30977         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
30978         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
30979         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
30980         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
30981         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
30982         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
30983         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
30984         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
30985         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
30986         with modifications.
30987         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
30988         with modifications.
30989         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
30990         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
30991         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
30992         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
30993         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
30994         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
30995         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
30996         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
30997         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
30998         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
30999         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
31000         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
31001         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
31002         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
31003         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
31004         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
31005         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
31006         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
31007         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
31008         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
31009         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
31010         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
31011         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
31012         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
31013         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
31014         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
31015         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
31016         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
31017         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
31018         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
31019         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
31020         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
31021         * tests/havelib/rpathx/rpathx.c: New file, from
31022         gettext/autoconf-lib-link.
31023         * tests/havelib/rpathx/Makefile.am: New file, from
31024         gettext/autoconf-lib-link.
31025         * tests/havelib/rpathx/configure.ac: New file, from
31026         gettext/autoconf-lib-link with modifications.
31027         * tests/havelib/rpathy/rpathy.c: New file, from
31028         gettext/autoconf-lib-link.
31029         * tests/havelib/rpathy/Makefile.am: New file, from
31030         gettext/autoconf-lib-link.
31031         * tests/havelib/rpathy/configure.ac: New file, from
31032         gettext/autoconf-lib-link with modifications.
31033         * tests/havelib/rpathz/rpathz.c: New file, from
31034         gettext/autoconf-lib-link.
31035         * tests/havelib/rpathz/Makefile.am: New file, from
31036         gettext/autoconf-lib-link.
31037         * tests/havelib/rpathz/configure.ac: New file, from
31038         gettext/autoconf-lib-link with modifications.
31039         * tests/havelib/rpathlx/usex.c: New file, from
31040         gettext/autoconf-lib-link.
31041         * tests/havelib/rpathlx/Makefile.am: New file, from
31042         gettext/autoconf-lib-link.
31043         * tests/havelib/rpathlx/configure.ac: New file, from
31044         gettext/autoconf-lib-link with modifications.
31045         * tests/havelib/rpathly/usey.c: New file, from
31046         gettext/autoconf-lib-link.
31047         * tests/havelib/rpathly/Makefile.am: New file, from
31048         gettext/autoconf-lib-link.
31049         * tests/havelib/rpathly/configure.ac: New file, from
31050         gettext/autoconf-lib-link with modifications.
31051         * tests/havelib/rpathlz/usez.c: New file, from
31052         gettext/autoconf-lib-link.
31053         * tests/havelib/rpathlz/Makefile.am: New file, from
31054         gettext/autoconf-lib-link.
31055         * tests/havelib/rpathlz/configure.ac: New file, from
31056         gettext/autoconf-lib-link with modifications.
31057         * tests/havelib/rpathlyx/usey.c: New file, from
31058         gettext/autoconf-lib-link.
31059         * tests/havelib/rpathlyx/Makefile.am: New file, from
31060         gettext/autoconf-lib-link.
31061         * tests/havelib/rpathlyx/configure.ac: New file, from
31062         gettext/autoconf-lib-link with modifications.
31063         * tests/havelib/rpathlzyx/usez.c: New file, from
31064         gettext/autoconf-lib-link.
31065         * tests/havelib/rpathlzyx/Makefile.am: New file, from
31066         gettext/autoconf-lib-link.
31067         * tests/havelib/rpathlzyx/configure.ac: New file, from
31068         gettext/autoconf-lib-link with modifications.
31069         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
31070         with modifications.
31071
31072 2010-04-02  Bruno Haible  <bruno@clisp.org>
31073
31074         gnulib-tool: Create distributed built sources also for the tests.
31075         * gnulib-tool (func_create_testdir): Also generate distributed built
31076         sources in the tests directory.
31077
31078 2010-04-02  Bruno Haible  <bruno@clisp.org>
31079
31080         gnulib-tool: Obey user's environment variables.
31081         * gnulib-tool (func_create_testdir): When creating built sources,
31082         respect the environment variables for autoconf, automake, etc. given by
31083         the user.
31084
31085 2010-04-02  Bruno Haible  <bruno@clisp.org>
31086
31087         gnulib-tool: Provide the value of --m4-base to modules.
31088         * gnulib-tool (func_import, func_create_testdir): Emit a definition
31089         of gl_m4_base.
31090
31091 2010-04-02  Eric Blake  <eblake@redhat.com>
31092
31093         maint.mk: fix some fallout
31094         * NEWS: Document the incompatible change, and its effect on cfg.mk.
31095         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
31096
31097 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
31098
31099         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
31100         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
31101         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
31102         (sc_cast_of_x_alloc_return_value): Likewise.
31103         (sc_cast_of_alloca_return_value): Likewise.
31104         (sc_space_tab): Likewise.
31105         (sc_prohibit_atoi_atof): Likewise.
31106         (sc_prohibit_magic_number_exit): Likewise.
31107         (sc_error_exit_success): Likewise.
31108         (sc_file_system): Likewise.
31109         (sc_prohibit_have_config_h): Likewise.
31110         (sc_require_config_h): Likewise.
31111         (sc_prohibit_HAVE_MBRTOWC): Likewise.
31112         (sc_obsolete_symbols): Likewise.
31113         (sc_changelog): Likewise.
31114         (sc_program_name): Likewise.
31115         (sc_the_the): Likewise.
31116         (sc_trailing_blank): Likewise.
31117         (sc_two_space_separator_in_usage): Likewise.
31118         (sc_useless_cpp_parens): Likewise.
31119         (sc_GPL_version): Likewise.
31120         (sc_GFDL_version): Likewise.
31121         (sc_texinfo_acronym): Likewise.
31122         (sc_prohibit_cvs_keyword): Likewise.
31123         (sc_prohibit_stat_st_blocks): Likewise.
31124         (sc_prohibit_S_IS_definition): Likewise.
31125         (sc_redundant_const): Likewise.
31126         (sc_makefile_TAB_only_indentation): Likewise.
31127         (sc_m4_quote_check): Likewise.
31128         (sc_makefile_path_separator_check): Likewise.
31129         (sc_copyright_check): Likewise.
31130         (sc_Wundef_boolean): Likewise.
31131         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
31132
31133         maint.mk: match 0 or more whitespace-before-function-call '('
31134         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
31135         that have zero or two-and-more spaces between the function name
31136         and the open parenthesis.
31137         (sc_error_message_warn_fatal): Likewise.
31138         (sc_error_message_uppercase): Likewise.
31139         (sc_error_message_period): Likewise.
31140
31141 2010-03-31  Eric Blake  <eblake@redhat.com>
31142
31143         maint.mk: check for [ as well as test
31144         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
31145         Based on a libvirt report by Matthias Bolte.
31146
31147         gnumakefile: don't squelch _version output
31148         * top/GNUmakefile (_version): Create one-shot dependency rather
31149         than using $(shell) when version must be regenerated.
31150         (_autoreconf): Run verbosely, by default.
31151
31152         sys_time: avoid compiler warnings
31153         * lib/sys_time.in.h (includes): Ensure gcc pragma is
31154         unconditional, fixing regression from 2010-03-29.
31155         Reported by Simon Josefsson.
31156
31157 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
31158
31159         maint.mk: s/_header_without_use/_sc_header_without_use/
31160         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
31161         (sc_prohibit_assert_without_use): Use the new name.
31162         (sc_prohibit_close_stream_without_use): Likewise.
31163         (sc_prohibit_getopt_without_use): Likewise.
31164         (sc_prohibit_quotearg_without_use): Likewise.
31165         (sc_prohibit_quote_without_use): Likewise.
31166         (sc_prohibit_long_options_without_use): Likewise.
31167         (sc_prohibit_inttostr_without_use): Likewise.
31168         (sc_prohibit_ignore_value_without_use): Likewise.
31169         (sc_prohibit_error_without_use): Likewise.
31170         (sc_prohibit_xalloc_without_use): Likewise.
31171         (sc_prohibit_hash_without_use): Likewise.
31172         (sc_prohibit_hash_pjw_without_use): Likewise.
31173         (sc_prohibit_safe_read_without_use): Likewise.
31174         (sc_prohibit_argmatch_without_use): Likewise.
31175         (sc_prohibit_canonicalize_without_use): Likewise.
31176         (sc_prohibit_root_dev_ino_without_use): Likewise.
31177         (sc_prohibit_openat_without_use): Likewise.
31178         (sc_prohibit_c_ctype_without_use): Likewise.
31179         (sc_prohibit_signal_without_use): Likewise.
31180         (sc_prohibit_intprops_without_use): Likewise.
31181
31182 2010-03-30  Eric Blake  <eblake@redhat.com>
31183
31184         maint: improve module indicators
31185         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
31186         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
31187         columns, and avoid extra macro expansion.
31188
31189         fdopendir: work around FreeBSD bug
31190         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
31191         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
31192         * modules/dirent (Makefile.am): Substitute it.
31193         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
31194         declaration.
31195         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
31196         fix.
31197         Reported by Christian Weisgerber <naddy@mips.inka.de>.
31198
31199 2010-03-29  Bruno Haible  <bruno@clisp.org>
31200
31201         Emit #pragma system_header after the inclusion guard, not before.
31202         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
31203         guard that spans the entire file, not before. This enables an
31204         optimization in GCC's preprocessor.
31205         * lib/ctype.in.h: Likewise.
31206         * lib/dirent.in.h: Likewise.
31207         * lib/errno.in.h: Likewise.
31208         * lib/float.in.h: Likewise.
31209         * lib/getopt.in.h: Likewise.
31210         * lib/iconv.in.h: Likewise.
31211         * lib/langinfo.in.h: Likewise.
31212         * lib/locale.in.h: Likewise.
31213         * lib/math.in.h: Likewise.
31214         * lib/netdb.in.h: Likewise.
31215         * lib/netinet_in.in.h: Likewise.
31216         * lib/pty.in.h: Likewise.
31217         * lib/sched.in.h: Likewise.
31218         * lib/se-selinux.in.h: Likewise.
31219         * lib/search.in.h: Likewise.
31220         * lib/spawn.in.h: Likewise.
31221         * lib/stdarg.in.h: Likewise.
31222         * lib/stdint.in.h: Likewise.
31223         * lib/string.in.h: Likewise.
31224         * lib/strings.in.h: Likewise.
31225         * lib/sys_file.in.h: Likewise.
31226         * lib/sys_ioctl.in.h: Likewise.
31227         * lib/sys_time.in.h: Likewise.
31228         * lib/sys_times.in.h: Likewise.
31229         * lib/sys_utsname.in.h: Likewise.
31230         * lib/sys_wait.in.h: Likewise.
31231         * lib/sysexits.in.h: Likewise.
31232         * lib/wctype.in.h: Likewise.
31233
31234 2010-03-28  James Youngman  <jay@gnu.org>
31235
31236         save-cwd: don't leak a file descriptor when the caller execs.
31237         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
31238         saved file descriptor.
31239         * modules/save-cwd (Depends-on): Depend on cloexec.
31240
31241 2010-03-29  Bruno Haible  <bruno@clisp.org>
31242
31243         Remove vestiges of fts-lgpl module.
31244         * lib/fts_.h: Assume GNULIB_FTS is 1.
31245         * lib/fts.c: Likewise.
31246         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31247
31248 2010-03-28  Bruno Haible  <bruno@clisp.org>
31249
31250         Fix definition of tests witness macro.
31251         * gnulib-tool (func_import): Fix definition of witness macro.
31252
31253 2010-03-28  Bruno Haible  <bruno@clisp.org>
31254
31255         Fix ioctl's protoype on glibc systems.
31256         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
31257         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
31258         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
31259         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
31260         signature. If not, arrange to replace the ioctl function.
31261         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
31262         REPLACE_IOCTL.
31263         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
31264         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
31265         Reported by Ludovic Courtès <ludo@gnu.org>.
31266
31267 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
31268
31269         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
31270         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
31271         made it so grep -r --include=GLOB* ... did not work.
31272
31273 2010-03-26  Jim Meyering  <meyering@redhat.com>
31274             Eric Blake  <eblake@redhat.com>
31275
31276         maint.mk: prohibit use of test's -o and -a operators
31277         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
31278
31279 2010-03-28  Bruno Haible  <bruno@clisp.org>
31280
31281         Remove unused GNULIB_XYZ macro definitions.
31282         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
31283         invocation.
31284
31285 2010-03-28  Bruno Haible  <bruno@clisp.org>
31286
31287         Mark privileged tests modules.
31288         * modules/idpriv-drop-tests (Status): New section.
31289         * modules/idpriv-droptemp-tests (Status): New section.
31290
31291 2010-03-28  Bruno Haible  <bruno@clisp.org>
31292
31293         Split C++ tests into separate tests modules.
31294         * modules/dirent-c++-tests: New file, extracted from
31295         modules/dirent-tests.
31296         * modules/dirent-tests: Depend on it.
31297         * modules/fcntl-h-c++-tests: New file, extracted from
31298         modules/fcntl-h-tests.
31299         * modules/fcntl-h-tests: Depend on it.
31300         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
31301         * modules/glob-tests: Depend on it.
31302         * modules/iconv-h-c++-tests: New file, extracted from
31303         modules/iconv-h-tests.
31304         * modules/iconv-h-tests: Depend on it.
31305         * modules/langinfo-c++-tests: New file, extracted from
31306         modules/langinfo-tests.
31307         * modules/langinfo-tests: Depend on it.
31308         * modules/locale-c++-tests: New file, extracted from
31309         modules/locale-tests.
31310         * modules/locale-tests: Depend on it.
31311         * modules/math-c++-tests: New file, extracted from modules/math-tests.
31312         * modules/math-tests: Depend on it.
31313         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
31314         * modules/pty-tests: Depend on it.
31315         * modules/search-c++-tests: New file, extracted from
31316         modules/search-tests.
31317         * modules/search-tests: Depend on it.
31318         * modules/signal-c++-tests: New file, extracted from
31319         modules/signal-tests.
31320         * modules/signal-tests: Depend on it.
31321         * modules/spawn-c++-tests: New file, extracted from
31322         modules/spawn-tests.
31323         * modules/spawn-tests: Depend on it.
31324         * modules/stdio-c++-tests: New file, extracted from
31325         modules/stdio-tests.
31326         * modules/stdio-tests: Depend on it.
31327         * modules/stdlib-c++-tests: New file, extracted from
31328         modules/stdlib-tests.
31329         * modules/stdlib-tests: Depend on it.
31330         * modules/string-c++-tests: New file, extracted from
31331         modules/string-tests.
31332         * modules/string-tests: Depend on it.
31333         * modules/sys_ioctl-c++-tests: New file, extracted from
31334         modules/sys_ioctl-tests.
31335         * modules/sys_ioctl-tests: Depend on it.
31336         * modules/sys_select-c++-tests: New file, extracted from
31337         modules/sys_select-tests.
31338         * modules/sys_select-tests: Depend on it.
31339         * modules/sys_socket-c++-tests: New file, extracted from
31340         modules/sys_socket-tests.
31341         * modules/sys_socket-tests: Depend on it.
31342         * modules/sys_stat-c++-tests: New file, extracted from
31343         modules/sys_stat-tests.
31344         * modules/sys_stat-tests: Depend on it.
31345         * modules/sys_time-c++-tests: New file, extracted from
31346         modules/sys_time-tests.
31347         * modules/sys_time-tests: Depend on it.
31348         * modules/time-c++-tests: New file, extracted from modules/time-tests.
31349         * modules/time-tests: Depend on it.
31350         * modules/unistd-c++-tests: New file, extracted from
31351         modules/unistd-tests.
31352         * modules/unistd-tests: Depend on it.
31353         * modules/wchar-c++-tests: New file, extracted from
31354         modules/wchar-tests.
31355         * modules/wchar-tests: Depend on it.
31356         * modules/wctype-c++-tests: New file, extracted from
31357         modules/wctype-tests.
31358         * modules/wctype-tests: Depend on it.
31359         Reported by Simon Josefsson.
31360
31361 2010-03-28  Bruno Haible  <bruno@clisp.org>
31362
31363         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
31364         * gnulib-tool (func_exists_module): New function, extracted from
31365         func_verify_module.
31366         (func_verify_module): Use it.
31367         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
31368         'foo' only if 'foo' exists.
31369         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
31370         module.
31371
31372 2010-03-28  Bruno Haible  <bruno@clisp.org>
31373
31374         gnulib-tool: Add support for special categories of tests.
31375         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
31376         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
31377         (func_usage): Document them.
31378         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
31379         inc_unportable_tests, inc_all_tests): New variables.
31380         (func_acceptable): Consider these variables.
31381         (func_modules_transitive_closure): Make it work when the 'Status' field
31382         consists of multiple words.
31383         (func_import): Store and restore the values of inc_cxx_tests,
31384         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
31385         inc_all_tests in gnulib-comp.m4.
31386         (func_create_testdir): Set inc_all_tests to true.
31387         * doc/gnulib.texi (Extra tests modules): New section.
31388         Suggested by Jim Meyering.
31389
31390 2010-03-28  Bruno Haible  <bruno@clisp.org>
31391
31392         ansi-c++-opt: Allow turning off the C++ build by default.
31393         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
31394         gl_CXX_CHOICE_DEFAULT_NO is defined.
31395         Requested by Eric Blake.
31396
31397 2010-03-28  Bruno Haible  <bruno@clisp.org>
31398
31399         unistd: Avoid #define replacements in C++ mode.
31400         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
31401         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
31402         setsockopt, shutdown, select): In C++, attach a warning to the function
31403         if possible, rather than #defining the symbol to a dysfunctional alias.
31404         Reported by John W. Eaton <jwe@gnu.org>.
31405
31406 2010-03-28  Bruno Haible  <bruno@clisp.org>
31407
31408         Fix link errors on mingw.
31409         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
31410         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
31411         $(LIBSOCKET).
31412         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
31413         $(LIBSOCKET).
31414
31415 2010-03-28  Bruno Haible  <bruno@clisp.org>
31416             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31417
31418         lib-ignore: Determine different options for different compilers.
31419         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
31420         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
31421         Add comments.
31422         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
31423         * NEWS: Mention the change.
31424
31425 2010-03-27  Bruno Haible  <bruno@clisp.org>
31426
31427         Remove unused GNULIB_XYZ macro definitions.
31428         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31429         * modules/fseek (configure.ac): Likewise.
31430         * modules/ioctl (configure.ac): Likewise.
31431         * modules/open (configure.ac): Likewise.
31432         * modules/stdlib-safer (configure.ac): Likewise.
31433
31434 2010-03-27  Bruno Haible  <bruno@clisp.org>
31435
31436         Add a remark about certain modules.
31437         * modules/malloc (Comment): New section.
31438         * modules/realloc (Comment): Likewise.
31439         * modules/sigpipe (Comment): Likewise.
31440
31441 2010-03-27  Bruno Haible  <bruno@clisp.org>
31442
31443         Resolve conflict between the two kinds of module indicators.
31444         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
31445         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
31446         * modules/canonicalize (configure.ac): Invoke
31447         gl_MODULE_INDICATOR_FOR_TESTS.
31448         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
31449         GNULIB_XYZ.
31450         * tests/test-dirent-c++.cc: Likewise.
31451         * tests/test-dirent-safer.c: Likewise.
31452         * tests/test-dup2.c: Likewise.
31453         * tests/test-fchdir.c: Likewise.
31454         * tests/test-fcntl-h-c++.cc: Likewise.
31455         * tests/test-getopt.c: Likewise.
31456         * tests/test-getopt.h: Likewise.
31457         * tests/test-langinfo-c++.cc: Likewise.
31458         * tests/test-locale-c++.cc: Likewise.
31459         * tests/test-math-c++.cc: Likewise.
31460         * tests/test-pty-c++.cc: Likewise.
31461         * tests/test-search-c++.cc: Likewise.
31462         * tests/test-signal-c++.cc: Likewise.
31463         * tests/test-spawn-c++.cc: Likewise.
31464         * tests/test-stdio-c++.cc: Likewise.
31465         * tests/test-stdlib-c++.cc: Likewise.
31466         * tests/test-string-c++.cc: Likewise.
31467         * tests/test-sys_ioctl-c++.cc: Likewise.
31468         * tests/test-sys_select-c++.cc: Likewise.
31469         * tests/test-sys_socket-c++.cc: Likewise.
31470         * tests/test-sys_stat-c++.cc: Likewise.
31471         * tests/test-sys_time-c++.cc: Likewise.
31472         * tests/test-time-c++.cc: Likewise.
31473         * tests/test-unistd-c++.cc: Likewise.
31474         * tests/test-wchar-c++.cc: Likewise.
31475         * tests/uninorm/test-u8-nfc.c: Likewise.
31476         * tests/uninorm/test-u8-nfd.c: Likewise.
31477         * tests/uninorm/test-u8-nfkc.c: Likewise.
31478         * tests/uninorm/test-u8-nfkd.c: Likewise.
31479         * tests/uninorm/test-u16-nfc.c: Likewise.
31480         * tests/uninorm/test-u16-nfd.c: Likewise.
31481         * tests/uninorm/test-u16-nfkc.c: Likewise.
31482         * tests/uninorm/test-u16-nfkd.c: Likewise.
31483         * tests/uninorm/test-u32-nfc.c: Likewise.
31484         * tests/uninorm/test-u32-nfc-big.c: Likewise.
31485         * tests/uninorm/test-u32-nfd.c: Likewise.
31486         * tests/uninorm/test-u32-nfd-big.c: Likewise.
31487         * tests/uninorm/test-u32-nfkc.c: Likewise.
31488         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
31489         * tests/uninorm/test-u32-nfkd.c: Likewise.
31490         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
31491         * tests/uninorm/test-u32-normalize-big.c: Likewise.
31492
31493 2010-03-27  Bruno Haible  <bruno@clisp.org>
31494
31495         Distinguish two kinds of module indicators.
31496         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
31497         gl_MODULE_INDICATOR.
31498         (gl_MODULE_INDICATOR): New macro.
31499         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31500         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
31501         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31502         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31503         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31504         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31505         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31506         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31507         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31508         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31509         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31510         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31511         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31512         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31513         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31514         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31515         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31516         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31517         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31518         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31519         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31520         * modules/cloexec (configure.ac): Likewise.
31521         * modules/getopt-gnu (configure.ac): Likewise.
31522         * modules/uninorm/u8-normalize (configure.ac): Likewise.
31523         * modules/uninorm/u16-normalize (configure.ac): Likewise.
31524         * modules/uninorm/u32-normalize (configure.ac): Likewise.
31525         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
31526
31527 2010-03-27  Bruno Haible  <bruno@clisp.org>
31528
31529         New module description field 'Comment'.
31530         * gnulib-tool: New option --extract-comment.
31531         (func_usage): Document it.
31532         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
31533         (func_get_comment): New function.
31534         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
31535
31536 2010-03-27  Bruno Haible  <bruno@clisp.org>
31537
31538         Addendum to 2010-02-07 commit.
31539         * gnulib-tool (func_usage): Document --extract-applicability option.
31540
31541 2010-03-27  Bruno Haible  <bruno@clisp.org>
31542
31543         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
31544         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
31545         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
31546         rather than link errors.
31547
31548 2010-03-27  Bruno Haible  <bruno@clisp.org>
31549
31550         Avoid side effects from tests-related modules on the compilation of lib.
31551         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
31552         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
31553         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
31554         parameter. Emit into AM_CPPFLAGS a definition of the designated C
31555         macro.
31556         (func_import): Define a witness macro. Assign it a value that depends
31557         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
31558         tests-related modules.
31559         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
31560         Reported by Jim Meyering.
31561
31562 2010-03-27  Bruno Haible  <bruno@clisp.org>
31563
31564         Factorize common .m4 code.
31565         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
31566         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
31567         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
31568         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
31569         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31570         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
31571         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
31572         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31573         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31574         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31575         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
31576         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31577         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31578         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31579         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31580         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
31581         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31582         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31583         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31584         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
31585         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
31586         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31587         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31588         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31589         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31590         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31591         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
31592         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
31593         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
31594         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31595         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31596         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31597
31598 2010-03-27  Bruno Haible  <bruno@clisp.org>
31599
31600         Fix a compilation error on Cygwin with g++ >= 4.3.
31601         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
31602         if it is undefined or if we alias it to chmod.
31603         (lstat): Don't warn about the use of this function if it is undefined
31604         or if we alias it to stat.
31605         Reported by Simon Josefsson.
31606
31607 2010-03-27  Bruno Haible  <bruno@clisp.org>
31608
31609         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
31610         * modules/getlogin (configure.ac): Update.
31611
31612         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
31613         * modules/getlogin_r (configure.ac): Update.
31614
31615         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
31616         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
31617         * modules/inet_ntop (configure.ac): Update.
31618
31619         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
31620         * modules/inet_pton (configure.ac): Update.
31621
31622         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
31623         * modules/mbslen (configure.ac): Update.
31624
31625         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
31626         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
31627         * modules/forkpty (configure.ac): Update.
31628         * modules/openpty (configure.ac): Update.
31629
31630 2010-03-26  Simon Josefsson  <simon@josefsson.org>
31631
31632         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
31633         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
31634
31635 2010-03-25  Eric Blake  <eblake@redhat.com>
31636
31637         maint: use pragma consistently across replacement headers
31638         * lib/ctype.in.h (system_header): Hoist for consistent placement.
31639         * lib/dirent.in.h (system_header): Likewise.
31640         * lib/errno.in.h (system_header): Likewise.
31641         * lib/float.in.h (system_header): Likewise.
31642         * lib/getopt.in.h (system_header): Likewise.
31643         * lib/iconv.in.h (system_header): Likewise.
31644         * lib/inttypes.in.h (system_header): Likewise.
31645         * lib/langinfo.in.h (system_header): Likewise.
31646         * lib/locale.in.h (system_header): Likewise.
31647         * lib/math.in.h (system_header): Likewise.
31648         * lib/netdb.in.h (system_header): Likewise.
31649         * lib/netinet_in.in.h (system_header): Likewise.
31650         * lib/pty.in.h (system_header): Likewise.
31651         * lib/sched.in.h (system_header): Likewise.
31652         * lib/se-selinux.in.h (system_header): Likewise.
31653         * lib/search.in.h (system_header): Likewise.
31654         * lib/spawn.in.h (system_header): Likewise.
31655         * lib/stdarg.in.h (system_header): Likewise.
31656         * lib/stdint.in.h (system_header): Likewise.
31657         * lib/string.in.h (system_header): Likewise.
31658         * lib/strings.in.h (system_header): Likewise.
31659         * lib/sys_file.in.h (system_header): Likewise.
31660         * lib/sys_ioctl.in.h (system_header): Likewise.
31661         * lib/sys_socket.in.h (system_header): Likewise.
31662         * lib/sys_times.in.h (system_header): Likewise.
31663         * lib/sys_utsname.in.h (system_header): Likewise.
31664         * lib/sys_wait.in.h (system_header): Likewise.
31665         * lib/sysexits.in.h (system_header): Likewise.
31666         * lib/unistd.in.h (system_header): Likewise.
31667         * lib/wctype.in.h (system_header): Likewise.
31668
31669         arpa/inet: fix mingw compilation warning
31670         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
31671         Reported by Matthew Bolte.
31672
31673 2010-03-25  Bruno Haible  <bruno@clisp.org>
31674
31675         Avoid collision between gnulib wrapper and libintl wrapper.
31676         * lib/printf.c (printf): Don't define if a printf wrapper is already
31677         defined in intl/printf.c.
31678         Reported by Michel Boaventura <michel@michelboaventura.com>.
31679
31680 2010-03-25  Bruno Haible  <bruno@clisp.org>
31681
31682         Use ANSI C.
31683         * lib/readutmp.h (getutent): Provide ANSI C prototype.
31684
31685 2010-03-25  Bruno Haible  <bruno@clisp.org>
31686
31687         Minor formatting changes.
31688         * lib/acosl.c: Insert space before function argument list.
31689         * lib/argz.c: Likewise.
31690         * lib/asinl.c: Likewise.
31691         * lib/expl.c: Likewise.
31692         * lib/gen-uni-tables.c: Likewise.
31693         * lib/gettext.h: Likewise.
31694         * lib/glthread/lock.h: Likewise.
31695         * lib/tanl.c: Likewise.
31696         * lib/uniname/uniname.c: Likewise.
31697         * tests/test-idpriv-drop.c: Likewise.
31698         * tests/test-idpriv-droptemp.c: Likewise.
31699         * tests/test-lock.c: Likewise.
31700         * tests/test-tls.c: Likewise.
31701         * lib/argp-help.c: Insert space before function-like macro argument
31702         list.
31703         * lib/memcmp.c: Likewise.
31704         * tests/test-base64.c: Likewise.
31705         * lib/localename.c: Insert space before sizeof's argument list.
31706         * lib/safe-alloc.h: Likewise.
31707         * lib/file-set.h: Insert space before macro argument list.
31708         * tests/test-argp.c: Likewise.
31709         * lib/argp-namefrob.h: Insert space before function parameter list.
31710         * lib/getaddrinfo.c: Likewise.
31711         * lib/netdb.in.h: Likewise.
31712         * lib/parse-duration.h: Likewise.
31713         * lib/parse-duration.c: Likewise.
31714         * lib/poll.c: Likewise.
31715         * lib/select.c: Likewise.
31716         * lib/trim.h: Likewise.
31717         * tests/test-usleep.c: Likewise.
31718         * lib/ldexpl.c: Insert space before function parameter list and before
31719         function argument list.
31720         * lib/logl.c: Likewise.
31721         * lib/sqrtl.c: Likewise.
31722         * lib/trim.c: Likewise.
31723         * lib/cosl.c: Use GNU style indentation. Insert space before function
31724         argument list.
31725         * lib/sinl.c: Likewise.
31726         * lib/tsearch.c: Insert space after 'for'.
31727         Reported by Jim Meyering.
31728
31729 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
31730
31731         * maint.mk (sc_Wundef_boolean): Check for the presence of the
31732         config header before grepping, as it's not present before
31733         autoreconf/configure are run.  Reported by Simon Josefsson.
31734
31735 2010-03-23  Bruno Haible  <bruno@clisp.org>
31736
31737         pt_chown: Make it work with automake < 1.11.
31738         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
31739         Reported by Simon Josefsson.
31740
31741 2010-03-23  Bruno Haible  <bruno@clisp.org>
31742
31743         pt_chown: Don't depend on GPLed modules.
31744         * lib/pt_chown.c: Don't include idpriv.h.
31745         (main): Don't drop privileges.
31746         * modules/pt_chown (Depends-on): Remove idpriv-drop.
31747         Reported by Simon Josefsson.
31748
31749 2010-03-24  Simon Josefsson  <simon@josefsson.org>
31750
31751         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
31752         suggestions from karl@freefriends.org (Karl Berry).
31753
31754 2010-03-22  Eric Blake  <eblake@redhat.com>
31755
31756         gethostname: further tweaks
31757         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
31758         are overriding gethostname.
31759         Suggested by Bruno Haible.
31760
31761 2010-03-21  Bruno Haible  <bruno@clisp.org>
31762
31763         Fix comments.
31764         * lib/forkpty.c (rpl_forkpty): Fix comment.
31765         * lib/openpty.c (rpl_openpty): Likewise.
31766         Reported by Eric Blake.
31767
31768 2010-03-22  Eric Blake  <eblake@redhat.com>
31769
31770         gethostname: fix build on mingw
31771         * lib/unistd.in.h (includes): Work around fact that mingw
31772         <winsock2.h> re-includes <unistd.h>, by avoiding any
31773         redeclarations if we are being included by <winsock2.h>.
31774         Reported by Matthias Bolte.
31775
31776 2010-03-21  Bruno Haible  <bruno@clisp.org>
31777
31778         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31779         * lib/forkpty.c (forkpty): New replacement function, from glibc with
31780         modifications.
31781         * lib/pty.in.h (forkpty): Update declaration. Add comments.
31782         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
31783         provide the replacement.
31784         * modules/forkpty (Depends-on): Add openpty, login_tty.
31785         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
31786         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
31787         * doc/glibc-functions/forkpty.texi: More supported platforms.
31788         * config/srclist.txt: Add forkpty.c (commented).
31789
31790 2010-03-21  Bruno Haible  <bruno@clisp.org>
31791
31792         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
31793         (Makefile.am): Verify that PTY_LIB is defined.
31794
31795         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
31796
31797 2010-03-21  Bruno Haible  <bruno@clisp.org>
31798
31799         Tests for module 'login_tty'.
31800         * modules/login_tty-tests: New file.
31801         * tests/test-login_tty.c: New file.
31802
31803         New module 'login_tty'.
31804         * lib/login_tty.c: New file.
31805         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
31806         * modules/login_tty: New file.
31807         * doc/glibc-functions/login_tty.texi: Mention the new module.
31808
31809 2010-03-21  Bruno Haible  <bruno@clisp.org>
31810
31811         login_tty: Documentation.
31812         * doc/glibc-functions/login_tty.texi: New file.
31813         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
31814
31815 2010-03-21  Bruno Haible  <bruno@clisp.org>
31816
31817         pty: Consistent macro naming.
31818         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
31819         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
31820         * modules/pty (configure.ac): Update.
31821
31822 2010-03-21  Bruno Haible  <bruno@clisp.org>
31823
31824         Tests for openpty: Make stricter.
31825         * tests/test-openpty.c (main): Add test of canonical processing and
31826         erase.
31827         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
31828
31829         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31830         * lib/openpty.c (openpty): New replacement function.
31831         * lib/pty.in.h: Include <termios.h>.
31832         (openpty): Update declaration. Add comments.
31833         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
31834         is not declared, arrange to provide the replacement. Check for _getpty
31835         and posix_openpt.
31836         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
31837         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
31838         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
31839         * modules/pty-tests (test_pty_c___LDADD): New variable.
31840         * doc/glibc-functions/openpty.texi: More supported platforms.
31841
31842 2010-03-21  Bruno Haible  <bruno@clisp.org>
31843
31844         setenv: Tweaks.
31845         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
31846         the test program.
31847         * doc/posix-functions/setenv.texi: Update platforms list.
31848
31849 2010-03-21  Bruno Haible  <bruno@clisp.org>
31850
31851         New module 'unlockpt'.
31852         * lib/unlockpt.c: New file, from glibc with modifications.
31853         * m4/unlockpt.m4: New file.
31854         * modules/unlockpt: New file.
31855         * lib/stdlib.in.h (unlockpt): New declaration.
31856         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
31857         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
31858         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
31859         HAVE_UNLOCKPT.
31860         * doc/posix-functions/unlockpt.texi: Mention the new module.
31861         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
31862         * config/srclist.txt: Add unlockpt.c (commented).
31863
31864 2010-03-21  Jim Meyering  <meyering@redhat.com>
31865
31866         maint.mk: prohibit inclusion of "intprops.h" without use
31867         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
31868
31869 2010-03-21  Bruno Haible  <bruno@clisp.org>
31870
31871         New module 'grantpt'.
31872         * lib/grantpt.c: New file, from glibc with modifications.
31873         * m4/grantpt.m4: New file.
31874         * modules/grantpt: New file.
31875         * lib/stdlib.in.h (grantpt): New declaration.
31876         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
31877         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
31878         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
31879         HAVE_GRANTPT.
31880         * doc/posix-functions/grantpt.texi: Mention the new module.
31881         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
31882         * config/srclist.txt: Add grantpt.c (commented).
31883
31884 2010-03-21  Bruno Haible  <bruno@clisp.org>
31885
31886         New module 'pt_chown'.
31887         * lib/pt_chown.c: New file, from glibc with modifications.
31888         * lib/pty-private.h: New file, from glibc with modifications.
31889         * modules/pt_chown: New file.
31890         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
31891
31892 2010-03-21  Bruno Haible  <bruno@clisp.org>
31893
31894         Tests for module 'ptsname'.
31895         * modules/ptsname-tests: New file.
31896         * tests/test-ptsname.c: New file.
31897
31898         New module 'ptsname'.
31899         * lib/ptsname.c: New file, from glibc with modifications.
31900         * m4/ptsname.m4: New file.
31901         * modules/ptsname: New file.
31902         * lib/stdlib.in.h (ptsname): New declaration.
31903         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
31904         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
31905         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
31906         HAVE_PTSNAME.
31907         * doc/posix-functions/ptsname.texi: Mention the new module.
31908         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
31909         * config/srclist.txt: Add ptsname.c (commented).
31910
31911 2010-03-21  Bruno Haible  <bruno@clisp.org>
31912
31913         Tests for module 'ttyname_r'.
31914         * modules/ttyname_r-tests: New file.
31915         * tests/test-ttyname_r.c: New file.
31916
31917         New module 'ttyname_r'.
31918         * lib/ttyname_r.c: New file.
31919         * m4/ttyname_r.m4: New file.
31920         * modules/ttyname_r: New file.
31921         * lib/unistd.in.h (ttyname_r): New declaration.
31922         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
31923         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
31924         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
31925         HAVE_TTYNAME_R.
31926         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
31927         * doc/posix-functions/ttyname_r.texi: Mention the new module.
31928
31929 2010-03-20  Bruno Haible  <bruno@clisp.org>
31930
31931         signal: Undefine macro definitions in C++ mode.
31932         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
31933         sigfillset): Undefine macro definitions from the system header in C++
31934         mode.
31935         Reported by John W. Eaton <jwe@gnu.org>.
31936
31937 2010-03-20  Bruno Haible  <bruno@clisp.org>
31938
31939         Ensure no #include statements inside extern "C" { ... }.
31940         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
31941         contain #include statements.
31942         * lib/time.in.h: Likewise.
31943
31944 2010-03-20  Bruno Haible  <bruno@clisp.org>
31945
31946         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
31947         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
31948         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
31949         Reported by John W. Eaton <jwe@gnu.org>.
31950
31951 2010-03-20  Bruno Haible  <bruno@clisp.org>
31952
31953         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
31954         Reported by Jim Meyering.
31955
31956 2010-03-20  Bruno Haible  <bruno@clisp.org>
31957
31958         pipe: Set errno upon failure.
31959         * lib/pipe.h: Specify that when -1 is returned, errno is set.
31960         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
31961         errno value in error message.
31962
31963 2010-03-20  Bruno Haible  <bruno@clisp.org>
31964             Jim Meyering  <meyering@redhat.com>
31965
31966         lchown: Avoid "unused variable" warning.
31967         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
31968
31969 2010-03-20  Bruno Haible  <bruno@clisp.org>
31970
31971         Work around unlink() bug on MacOS X 10.5.6.
31972         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
31973         attempting to unlink a parent directory.
31974         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
31975         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
31976         activate for the replacement function.
31977         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
31978
31979 2010-03-20  Bruno Haible  <bruno@clisp.org>
31980
31981         Fix link errors on Solaris 8.
31982         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
31983         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
31984
31985 2010-03-19  Jim Meyering  <meyering@redhat.com>
31986
31987         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
31988         The _LIBC implementation of build_range_exp correctly honors the
31989         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
31990         However, the non-_LIBC implementation would ignore that syntax-bit
31991         flag and return REG_ERANGE unconditionally.
31992         This change makes it honor that flag.
31993         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
31994         Make two pointer parameters "const".
31995         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
31996         (parse_bracket_exp): Update caller.
31997
31998         regex.m4: correct the reversed range endpoint ([b-a]) test
31999         * m4/regex.m4: When requiring that [b-a] evoke failure,
32000         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
32001         test pass once again for x86-based systems.
32002
32003 2010-03-19  Bruno Haible  <bruno@clisp.org>
32004
32005         scandir: Fix link error on Solaris 8.
32006         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
32007         macros.
32008
32009 2010-03-19  Bruno Haible  <bruno@clisp.org>
32010
32011         getusershell: Fix documentation.
32012         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
32013         module.
32014         * doc/glibc-functions/setusershell.texi: Likewise.
32015
32016         getusershell: Provide declaration, missing on Solaris 9.
32017         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
32018         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
32019         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
32020         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
32021         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32022         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
32023         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
32024         HAVE_GETUSERSHELL.
32025         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
32026
32027 2010-03-19  Bruno Haible  <bruno@clisp.org>
32028
32029         wctype: Provide iswblank function.
32030         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
32031         exists and is fine.
32032         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
32033         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
32034         * tests/test-wctype.c (main): Re-enable the iswblank tests.
32035         * doc/posix-functions/iswblank.texi: Update.
32036
32037 2010-03-19  Bruno Haible  <bruno@clisp.org>
32038
32039         Tests of module 'pty' in C++ mode.
32040         * modules/pty-tests: New file.
32041         * tests/test-pty-c++.cc: New file.
32042         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32043
32044 2010-03-19  Eric Blake  <eblake@redhat.com>
32045
32046         logb: fix documentation
32047         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
32048         1.5 declaration bug.
32049
32050         forkpty, openpty: prefer glibc's const-safe prototype
32051         * lib/forkpty.c (rpl_forkpty): New file.
32052         * lib/openpty.c (rpl_openpty): Likewise.
32053         * modules/forkpty (Files): Distribute it.
32054         * modules/openpty (Files): Likewise.
32055         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
32056         check...
32057         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
32058         replacement for for non-const BSD signature.
32059         * modules/pty (Makefile.am): Substitute witnesses.
32060         * lib/pty.in.h (forkpty, openpty): Declare replacements.
32061         * tests/test-forkpty.c: Update signature check.
32062         * tests/test-openpty.c: Likewise.
32063         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
32064         * doc/glibc-functions/openpty.texi (openpty): Likewise.
32065
32066         forkpty, openpty: split functions into new modules
32067         * modules/pty (Makefile.am): Substitute new witnesses.
32068         (Libraries): Move library detection...
32069         * modules/forkpty: ...into new module.
32070         * modules/openpty: Another new module.
32071         * modules/pty-tests: Rename and split...
32072         * modules/forkpty-tests: ...to this...
32073         * modules/openpty-tests: ...and this.
32074         * tests/test-pty.c: Rename and split...
32075         * tests/test-forkpty.c: ...to this...
32076         * tests/test-openpty.c: ...and this.
32077         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
32078         (gl_PTY): Split library searching...
32079         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
32080         (gl_FORKPTY, gl_OPENPTY): New macros.
32081         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
32082         * NEWS: Mention the split.
32083         * MODULES.html.sh (Misc): Document the modules.
32084         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
32085         * doc/glibc-functions/openpty.texi (openpty): Likewise.
32086
32087         pty: improve replacement header
32088         * lib/pty.in.h: New file.
32089         * modules/pty (Files): Ship it.
32090         (Makefile.am): Always build replacement.
32091         * m4/pty.m4: Rename...
32092         * m4/pty_h.m4: ...to this.
32093         (gl_PTY): Modernize setting of witness macros; update check of
32094         forkpty to take proper advantage of cache.
32095         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
32096
32097         getopt: avoid compiler warning
32098         * lib/getopt.c (attribute_hidden): Remove unused macro.
32099
32100 2010-03-18  Bruno Haible  <bruno@clisp.org>
32101
32102         Fix link errors on Solaris 8.
32103         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
32104         * modules/search-tests (test_search_c___LDADD): Likewise.
32105         * modules/signal-tests (test_signal_c___LDADD): Likewise.
32106         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
32107         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
32108         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
32109         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
32110         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
32111         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
32112
32113 2010-03-18  Bruno Haible  <bruno@clisp.org>
32114
32115         Fix bug introduced on 2010-03-14.
32116         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
32117         (gl_SPAWN_H): Require it.
32118         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
32119         Reported by Simon Josefsson.
32120
32121 2010-03-18  Bruno Haible  <bruno@clisp.org>
32122
32123         Fix typo introduced on 2009-12-31.
32124         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
32125         posix_spawn_file_actions_adddup2.
32126
32127 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
32128         and Eric Blake  <eblake@redhat.com>
32129
32130         test-vc-list-files-git: make more robust
32131         * tests/test-vc-list-files-git.sh: Unset problematic environment
32132         variables.  Chain commands together.
32133
32134 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
32135
32136         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
32137         `AC_CHECK_DECL' invocation.
32138
32139 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
32140
32141         * lib/inttostr.c (inttostr): Make sure the invocation of verify
32142         appears before executable statements. Suggested by Petr Sumbera
32143         <Petr.Sumbera@Sun.COM>.
32144
32145 2010-03-14  Bruno Haible  <bruno@clisp.org>
32146
32147         * tests/test-flock.c (test_exclusive): Comment out a test that causes
32148         portability problems. Instead use a simpler test.
32149         (main): Check that invalid arguments are rejected only on Linux.
32150
32151 2010-03-14  Bruno Haible  <bruno@clisp.org>
32152
32153         Fix bug introduced on 2009-12-31.
32154         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
32155         gl_PREREQ_SYS_H_WINSOCK2 always.
32156         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
32157         SYS_SOCKET_H variable.
32158         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
32159         Update comments.
32160         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
32161         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
32162         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
32163         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
32164         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
32165
32166 2010-03-14  Bruno Haible  <bruno@clisp.org>
32167
32168         Fix values returned by sinl, cosl.
32169         * lib/trigl.h: Add specification comments.
32170         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
32171         that combines the values from the precomputed table with the values of
32172         the Chebyshev polynomials.
32173
32174 2010-03-14  Bruno Haible  <bruno@clisp.org>
32175
32176         Fix compilation error when modules 'posix_spawn[p]' are not used.
32177         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
32178         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
32179
32180 2010-03-14  Bruno Haible  <bruno@clisp.org>
32181
32182         Fix compilation error on mingw when module 'time_r' is not used.
32183         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
32184         is 1.
32185         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
32186         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
32187         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
32188         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
32189
32190 2010-03-14  Bruno Haible  <bruno@clisp.org>
32191
32192         Fix compilation error with Sun C.
32193         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
32194         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
32195         instead of GCC specific ULONG_LONG_MAX.
32196         * lib/xstrtoll.c: Likewise.
32197         * lib/xstrtoull.c: Likewise.
32198
32199 2010-03-13  Bruno Haible  <bruno@clisp.org>
32200
32201         Allow the user to disable C++ code and tests.
32202         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
32203         (gl_PROG_ANSI_CXX): Require it.
32204
32205 2010-03-13  Bruno Haible  <bruno@clisp.org>
32206
32207         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
32208         cases.
32209
32210 2010-03-13  Bruno Haible  <bruno@clisp.org>
32211
32212         Test that gnulib does not break the standard C++ headers.
32213         * tests/test-locale-c++2.cc: New file.
32214         * modules/locale-tests (Files): Add it.
32215         (Makefile.am): Compile it for test-locale-c++.
32216         * tests/test-math-c++2.cc: New file.
32217         * modules/math-tests (Files): Add it.
32218         (Makefile.am): Compile it for test-math-c++.
32219         * tests/test-signal-c++2.cc: New file.
32220         * modules/signal-tests (Files): Add it.
32221         (Makefile.am): Compile it for test-signal-c++.
32222         * tests/test-stdio-c++2.cc: New file.
32223         * modules/stdio-tests (Files): Add it.
32224         (Makefile.am): Compile it for test-stdio-c++.
32225         * tests/test-stdlib-c++2.cc: New file.
32226         * modules/stdlib-tests (Files): Add it.
32227         (Makefile.am): Compile it for test-stdlib-c++.
32228         * tests/test-string-c++2.cc: New file.
32229         * modules/string-tests (Files): Add it.
32230         (Makefile.am): Compile it for test-string-c++.
32231         * tests/test-time-c++2.cc: New file.
32232         * modules/time-tests (Files): Add it.
32233         (Makefile.am): Compile it for test-time-c++.
32234         Reported by John W. Eaton <jwe@gnu.org>.
32235
32236 2010-03-13  Bruno Haible  <bruno@clisp.org>
32237
32238         * gnulib-tool (func_usage): Clarify which options are available for
32239         --create-testdir and --create-megatestdir.
32240
32241 2010-03-13  Bruno Haible  <bruno@clisp.org>
32242
32243         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
32244         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
32245         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
32246         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
32247         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
32248         when appropriate.
32249         Reported by Jim Meyering.
32250
32251 2010-03-12  Simon Josefsson  <simon@josefsson.org>
32252
32253         * gnulib-tool (func_import): Explain origin of code.
32254
32255 2010-03-12  Bruno Haible  <bruno@clisp.org>
32256
32257         Fix problem with automake's definition of CXXLINK.
32258         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
32259         Reported by Simon Josefsson and Ludovic Courtès.
32260
32261 2010-03-12  Bruno Haible  <bruno@clisp.org>
32262
32263         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
32264         stable releases.
32265
32266 2010-03-11  Bruno Haible  <bruno@clisp.org>
32267
32268         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
32269         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
32270         whether the system provides one variant or multiple variants of the
32271         function.
32272         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
32273         C++ compilers.
32274         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
32275         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
32276         Reported by Jim Meyering.
32277
32278 2010-03-09  Simon Josefsson  <simon@josefsson.org>
32279
32280         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
32281
32282 2010-03-08  Bruno Haible  <bruno@clisp.org>
32283
32284         gnulib-tool: Add support for --libtool in --create-testdir.
32285         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
32286         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
32287
32288 2010-03-08  Eric Blake  <eblake@redhat.com>
32289
32290         gnulib-tool.texi: mention possibility of git submodule
32291         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
32292         submodules.
32293         * doc/.gitignore: Ignore another generated file.
32294
32295 2010-03-08  Karl Berry  <karl@gnu.org>
32296
32297         * doc/gnulib-tool.texi (VCS Issues): Mention third option
32298         of committing gnulib files while skipping others.
32299
32300 2010-03-07  Bruno Haible  <bruno@clisp.org>
32301
32302         Tests of module 'wctype' in C++ mode.
32303         * tests/test-wctype-c++.cc: New file.
32304         * modules/wctype-tests (Files): Add it and tests/signature.h.
32305         (Depends-on): Add ansi-c++-opt.
32306         (Makefile.am): Arrange to compile and run test-wctype-c++.
32307
32308         Tests of module 'wchar' in C++ mode.
32309         * tests/test-wchar-c++.cc: New file.
32310         * modules/wchar-tests (Files): Add it and tests/signature.h.
32311         (Depends-on): Add ansi-c++-opt.
32312         (Makefile.am): Arrange to compile and run test-wchar-c++.
32313         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
32314         gl_MODULE_INDICATOR.
32315
32316         Tests of module 'unistd' in C++ mode.
32317         * tests/test-unistd-c++.cc: New file.
32318         * modules/unistd-tests (Files): Add it and tests/signature.h.
32319         (Depends-on): Add ansi-c++-opt.
32320         (Makefile.am): Arrange to compile and run test-unistd-c++.
32321         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
32322         gl_MODULE_INDICATOR.
32323
32324         Tests of module 'time' in C++ mode.
32325         * tests/test-time-c++.cc: New file.
32326         * modules/time-tests (Files): Add it and tests/signature.h.
32327         (Depends-on): Add ansi-c++-opt.
32328         (Makefile.am): Arrange to compile and run test-time-c++.
32329         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32330
32331         Tests of module 'sys_time' in C++ mode.
32332         * tests/test-sys_time-c++.cc: New file.
32333         * modules/sys_time-tests (Files): Add it and tests/signature.h.
32334         (Depends-on): Add ansi-c++-opt.
32335         (Makefile.am): Arrange to compile and run test-sys_time-c++.
32336         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
32337         gl_MODULE_INDICATOR.
32338
32339         Tests of module 'sys_stat' in C++ mode.
32340         * tests/test-sys_stat-c++.cc: New file.
32341         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
32342         (Depends-on): Add ansi-c++-opt.
32343         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
32344         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
32345         gl_MODULE_INDICATOR.
32346
32347         Tests of module 'sys_socket' in C++ mode.
32348         * tests/test-sys_socket-c++.cc: New file.
32349         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
32350         (Depends-on): Add ansi-c++-opt.
32351         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
32352         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
32353         gl_MODULE_INDICATOR.
32354
32355         Tests of module 'sys_select' in C++ mode.
32356         * tests/test-sys_select-c++.cc: New file.
32357         * modules/sys_select-tests (Files): Add it and tests/signature.h.
32358         (Depends-on): Add ansi-c++-opt.
32359         (Makefile.am): Arrange to compile and run test-sys_select-c++.
32360         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
32361         gl_MODULE_INDICATOR.
32362
32363         Tests of module 'sys_ioctl' in C++ mode.
32364         * tests/test-sys_ioctl-c++.cc: New file.
32365         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
32366         (Depends-on): Add ansi-c++-opt.
32367         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
32368         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
32369         gl_MODULE_INDICATOR.
32370
32371         Tests of module 'string' in C++ mode.
32372         * tests/test-string-c++.cc: New file.
32373         * modules/string-tests (Files): Add it and tests/signature.h.
32374         (Depends-on): Add ansi-c++-opt.
32375         (Makefile.am): Arrange to compile and run test-string-c++.
32376         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
32377         gl_MODULE_INDICATOR.
32378
32379         Tests of module 'stdlib' in C++ mode.
32380         * tests/test-stdlib-c++.cc: New file.
32381         * modules/stdlib-tests (Files): Add it and tests/signature.h.
32382         (Depends-on): Add ansi-c++-opt.
32383         (Makefile.am): Arrange to compile and run test-stdlib-c++.
32384         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
32385         gl_MODULE_INDICATOR.
32386
32387         Tests of module 'stdio' in C++ mode.
32388         * tests/test-stdio-c++.cc: New file.
32389         * modules/stdio-tests (Files): Add it and tests/signature.h.
32390         (Depends-on): Add ansi-c++-opt.
32391         (Makefile.am): Arrange to compile and run test-stdio-c++.
32392         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
32393         gl_MODULE_INDICATOR.
32394
32395         Tests of module 'spawn' in C++ mode.
32396         * tests/test-spawn-c++.cc: New file.
32397         * modules/spawn-tests (Files): Add it and tests/signature.h.
32398         (Depends-on): Add ansi-c++-opt.
32399         (Makefile.am): Arrange to compile and run test-spawn-c++.
32400         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
32401         gl_MODULE_INDICATOR.
32402
32403         Tests of module 'signal' in C++ mode.
32404         * tests/test-signal-c++.cc: New file.
32405         * modules/signal-tests (Files): Add it and tests/signature.h.
32406         (Depends-on): Add ansi-c++-opt.
32407         (Makefile.am): Arrange to compile and run test-signal-c++.
32408         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
32409         gl_MODULE_INDICATOR.
32410
32411         Tests of module 'search' in C++ mode.
32412         * tests/test-search-c++.cc: New file.
32413         * modules/search-tests (Files): Add it and tests/signature.h.
32414         (Depends-on): Add ansi-c++-opt.
32415         (Makefile.am): Arrange to compile and run test-search-c++.
32416         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
32417         gl_MODULE_INDICATOR.
32418
32419         Tests of module 'math' in C++ mode.
32420         * tests/test-math-c++.cc: New file.
32421         * modules/math-tests (Files): Add it and tests/signature.h.
32422         (Depends-on): Add ansi-c++-opt.
32423         (Makefile.am): Arrange to compile and run test-math-c++.
32424         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32425
32426         Tests of module 'locale' in C++ mode.
32427         * tests/test-locale-c++.cc: New file.
32428         * modules/locale-tests (Files): Add it and tests/signature.h.
32429         (Depends-on): Add ansi-c++-opt.
32430         (Makefile.am): Arrange to compile and run test-locale-c++.
32431         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
32432         gl_MODULE_INDICATOR.
32433
32434         Tests of module 'langinfo' in C++ mode.
32435         * tests/test-langinfo-c++.cc: New file.
32436         * modules/langinfo-tests (Files): Add it and tests/signature.h.
32437         (Depends-on): Add ansi-c++-opt.
32438         (Makefile.am): Arrange to compile and run test-langinfo-c++.
32439         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
32440         gl_MODULE_INDICATOR.
32441
32442         Tests of module 'iconv-h' in C++ mode.
32443         * tests/test-iconv-h-c++.cc: New file.
32444         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
32445         (Depends-on): Add ansi-c++-opt.
32446         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
32447
32448         Tests of module 'glob' in C++ mode.
32449         * tests/test-glob-c++.cc: New file.
32450         * modules/glob-tests (Files): Add it.
32451         (Depends-on): Add ansi-c++-opt.
32452         (Makefile.am): Arrange to compile and run test-glob-c++.
32453
32454         Tests of module 'fcntl-h' in C++ mode.
32455         * tests/test-fcntl-h-c++.cc: New file.
32456         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
32457         (Depends-on): Add ansi-c++-opt.
32458         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
32459         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
32460         gl_MODULE_INDICATOR.
32461
32462         Tests of module 'dirent' in C++ mode.
32463         * tests/test-dirent-c++.cc: New file.
32464         * modules/dirent-tests (Files): Add it and tests/signature.h.
32465         (Depends-on): Add ansi-c++-opt.
32466         (Makefile.am): Arrange to compile and run test-dirent-c++.
32467         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
32468         gl_MODULE_INDICATOR.
32469
32470         New module 'ansi-c++-opt'.
32471         * modules/ansi-c++-opt: New file.
32472         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
32473
32474         Document C++ namespace mode.
32475         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
32476
32477         wctype: Avoid #define replacements in C++ mode.
32478         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
32479         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
32480         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
32481         In C++, define a namespaced alias symbol.
32482         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
32483         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
32484         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
32485         rule.
32486
32487         wchar: Avoid #define replacements in C++ mode.
32488         * lib/wchar.in.h: Include c++defs.h.
32489         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
32490         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
32491         symbol.
32492         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
32493         * modules/wchar (Depends-on): Add c++defs.
32494         (Makefile.am): Update wchar.h rule.
32495
32496         unistd: Avoid #define replacements in C++ mode.
32497         * lib/unistd.in.h: Include c++defs.h.
32498         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
32499         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
32500         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
32501         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
32502         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
32503         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
32504         symbol.
32505         (environ): Update.
32506         * modules/unistd (Depends-on): Add c++defs.
32507         (Makefile.am): Update unistd.h rule.
32508
32509         time: Avoid #define replacements in C++ mode.
32510         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
32511         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
32512         define a namespaced alias symbol.
32513         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
32514         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
32515         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
32516         * modules/time (Depends-on): Add c++defs, warn-on-use.
32517         (Makefile.am): Update time.h rule.
32518         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
32519         * modules/nanosleep (configure.ac): Likewise.
32520         * modules/strptime (configure.ac): Likewise.
32521         * modules/timegm (configure.ac): Likewise.
32522
32523         sys_time: Avoid #define replacements in C++ mode.
32524         * lib/sys_time.in.h: Include c++defs.h.
32525         (gettimeofday): In C++, define a namespaced alias symbol.
32526         * modules/sys_time (Depends-on): Add c++defs.
32527         (Makefile.am): Update sys/time.h rule.
32528
32529         sys_stat: Avoid #define replacements in C++ mode.
32530         * lib/sys_stat.in.h: Include c++defs.h.
32531         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
32532         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
32533         namespaced alias symbol.
32534         In C++, define a namespaced alias symbol.
32535         * modules/sys_stat (Depends-on): Add c++defs.
32536         (Makefile.am): Update sys/stat.h rule.
32537
32538         sys_socket: Avoid #define replacements in C++ mode.
32539         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
32540         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
32541         definitions also when the system has a <sys/socket.h>.
32542         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
32543         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
32544         In C++, define a namespaced alias symbol.
32545         * modules/sys_socket (Depends-on): Add c++defs.
32546         (Makefile.am): Update sys/socket.h rule.
32547
32548         sys_select: Avoid #define replacements in C++ mode.
32549         * lib/sys_select.in.h: Include c++defs.h. Enable the function
32550         definitions also when the system has a <sys/select.h>.
32551         (select): In C++, define a namespaced alias symbol.
32552         * modules/sys_select (Depends-on): Add c++defs.
32553         (Makefile.am): Update sys/select.h rule.
32554
32555         sys_ioctl: Avoid #define replacements in C++ mode.
32556         * lib/sys_ioctl.in.h: Include c++defs.h.
32557         (ioctl): In C++, define a namespaced alias symbol.
32558         * modules/sys_ioctl (Depends-on): Add c++defs.
32559         (Makefile.am): Update sys/ioctl.h rule.
32560
32561         string: Avoid #define replacements in C++ mode.
32562         * lib/string.in.h: Include c++defs.h.
32563         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
32564         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32565         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32566         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
32567         strsignal, strverscmp): In C++, define a namespaced alias symbol.
32568         * modules/string (Depends-on): Add c++defs.
32569         (Makefile.am): Update string.h rule.
32570
32571         stdlib: Avoid #define replacements in C++ mode.
32572         * lib/stdlib.in.h: Include c++defs.h.
32573         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
32574         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
32575         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
32576         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
32577         symbol.
32578         * modules/stdlib (Depends-on): Add c++defs.
32579         (Makefile.am): Update stdlib.h rule.
32580
32581         stdio: Avoid #define replacements in C++ mode.
32582         * lib/stdio.in.h: Include c++defs.h.
32583         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
32584         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
32585         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
32586         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
32587         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
32588         namespaced alias symbol.
32589         * modules/stdio (Depends-on): Add c++defs.
32590         (Makefile.am): Update stdio.h rule.
32591
32592         spawn: Avoid #define replacements in C++ mode.
32593         * lib/spawn.in.h: Include c++defs.h.
32594         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32595         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32596         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32597         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32598         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32599         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32600         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32601         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32602         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32603         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32604         In C++, define a namespaced alias symbol.
32605         * modules/spawn (Depends-on): Add c++defs.
32606         (Makefile.am): Update spawn.h rule.
32607
32608         signal: Avoid #define replacements in C++ mode.
32609         * lib/signal.in.h: Include c++defs.h.
32610         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32611         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
32612         namespaced alias symbol.
32613         * modules/signal (Depends-on): Add c++defs.
32614         (Makefile.am): Update signal.h rule.
32615
32616         search: Avoid #define replacements in C++ mode.
32617         * lib/search.in.h: Include c++defs.h.
32618         (_gl_search_compar_fn, _gl_search_action_fn): New types.
32619         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
32620         symbol.
32621         * modules/search (Depends-on): Add c++defs.
32622         (Makefile.am): Update search.h rule.
32623
32624         math: Avoid #define replacements in C++ mode.
32625         * lib/math.in.h: Include c++defs.h.
32626         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
32627         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
32628         trunc, truncl): In C++, define a namespaced alias symbol.
32629         * modules/math (Depends-on): Add c++defs.
32630         (Makefile.am): Update math.h rule.
32631
32632         locale: Avoid #define replacements in C++ mode.
32633         * lib/locale.in.h: Include c++defs.h.
32634         (duplocale): In C++, define a namespaced alias symbol.
32635         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
32636         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
32637         * modules/locale (Depends-on): Add c++defs.
32638         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
32639
32640         langinfo: Avoid #define replacements in C++ mode.
32641         * lib/langinfo.in.h: Include c++defs.h.
32642         (nl_langinfo): In C++, define a namespaced alias symbol.
32643         * modules/langinfo (Depends-on): Add c++defs.
32644         (Makefile.am): Update langinfo.h rule.
32645
32646         iconv-h: Avoid #define replacements in C++ mode.
32647         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
32648         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
32649         symbol.
32650         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
32651         whenever iconv is present.
32652         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
32653         (Makefile.am): Update iconv.h rule.
32654
32655         glob: Avoid #define replacements in C++ mode.
32656         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
32657         (_gl_glob_errfunc_fn): New type.
32658         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
32659         symbol.
32660         * modules/glob (Depends-on): Add c++defs, warn-on-use.
32661         (Makefile.am): Update glob.h rule.
32662
32663         fcntl-h: Avoid #define replacements in C++ mode.
32664         * lib/fcntl.in.h: Include c++defs.h.
32665         (fcntl, open, openat): In C++, define a namespaced alias symbol.
32666         * modules/fcntl-h (Depends-on): Add c++defs.
32667         (Makefile.am): Update fcntl.h rule.
32668
32669         dirent: Avoid #define replacements in C++ mode.
32670         * lib/dirent.in.h: Include c++defs.h.
32671         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
32672         namespaced alias symbol.
32673         (dirfd): Update declaration.
32674         * modules/dirent (Depends-on): Add c++defs.
32675         (Makefile.am): Update dirent.h rule.
32676
32677         ctype: Make it usable in C++ code.
32678         * lib/ctype.in.h: Include c++defs.h.
32679         (isblank): Declare as extern "C".
32680         * modules/ctype (Depends-on): Add c++defs.
32681         (Makefile.am): Update ctype.h rule.
32682
32683         New module 'c++defs'.
32684         * modules/c++defs: New file.
32685         * build-aux/c++defs.h: New file.
32686         Reported by John W. Eaton <jwe@gnu.org>.
32687
32688 2010-03-07  Bruno Haible  <bruno@clisp.org>
32689
32690         logb: Provide missing declaration for Cygwin.
32691         * lib/math.in.h (logb): New declaration.
32692         * m4/logb.m4: New file.
32693         * modules/logb (Files): Add m4/logb.m4.
32694         (Depends-on): Add math.
32695         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
32696         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
32697         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
32698         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
32699         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
32700
32701 2010-03-07  Bruno Haible  <bruno@clisp.org>
32702
32703         Fix test-cond link error.
32704         * tests/test-cond.c: Include <stdio.h>.
32705
32706 2010-03-07  Bruno Haible  <bruno@clisp.org>
32707
32708         Fix test-dirent-safer link error.
32709         * modules/dirent-safer-tests (Makefile.am): Define
32710         test_dirent_safer_LDADD.
32711
32712 2010-03-07  Bruno Haible  <bruno@clisp.org>
32713
32714         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
32715         among default module list.
32716
32717 2010-03-07  Bruno Haible  <bruno@clisp.org>
32718
32719         Fix link error on platforms with GNU libiconv.
32720         * modules/unistr/u8-strcoll-tests (Makefile): Define
32721         test_u8_strcoll_LDADD.
32722         * modules/unistr/u16-strcoll-tests (Makefile): Define
32723         test_u16_strcoll_LDADD.
32724         * modules/unistr/u32-strcoll-tests (Makefile): Define
32725         test_u32_strcoll_LDADD.
32726
32727 2010-03-07  Bruno Haible  <bruno@clisp.org>
32728
32729         Use POSIX declarations for socket functions.
32730         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
32731         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
32732         rpl_sendto): Change declaration to match POSIX.
32733         * lib/connect.c (rpl_connect): Likewise.
32734         * lib/accept.c (rpl_accept): Likewise.
32735         * lib/bind.c (rpl_bind): Likewise.
32736         * lib/getpeername.c (rpl_getpeername): Likewise.
32737         * lib/getsockname.c (rpl_getsockname): Likewise.
32738         * lib/recv.c (rpl_recv): Likewise.
32739         * lib/send.c (rpl_send): Likewise.
32740         * lib/recvfrom.c (rpl_recvfrom): Likewise.
32741         * lib/sendto.c (rpl_sendto): Likewise.
32742
32743 2010-03-06  Bruno Haible  <bruno@clisp.org>
32744
32745         Clarify access, euidaccess, faccessat.
32746         * doc/posix-functions/faccessat.texi: Mention security problem under
32747         "Other problems", not "Portability problems".
32748         * doc/posix-functions/access.texi: Likewise. Mention a related security
32749         problem.
32750         * doc/glibc-functions/euidaccess.texi: Mention security problems.
32751         * lib/euidaccess.c: Add comments about platforms.
32752         * lib/unistd.in.h (access, euidaccess): Add warnings.
32753
32754 2010-03-07  Bruno Haible  <bruno@clisp.org>
32755
32756         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
32757         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
32758         (POSIX_SPAWN_SETSCHEDULER): Likewise.
32759         (POSIX_SPAWN_USEVFORK): Define in a way that works when
32760         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32761         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
32762         declare when POSIX_SPAWN_SETSCHEDULER is zero.
32763         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
32764         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
32765         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
32766         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
32767         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
32768         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
32769         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
32770         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
32771         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
32772         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
32773         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
32774         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
32775         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
32776         Likewise.
32777         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
32778         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
32779         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
32780         Likewise.
32781         * tests/test-spawn.c (main): Make it work when
32782         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32783
32784 2010-03-07  Bruno Haible  <bruno@clisp.org>
32785
32786         Fix incorrect Makefile.am generation in German locale.
32787         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32788         Execute sed command with character range in C locale.
32789
32790 2010-03-06  Bruno Haible  <bruno@clisp.org>
32791
32792         Tests for module 'iconv-h'.
32793         * modules/iconv-h-tests: New file.
32794         * tests/test-iconv-h.c: New file.
32795
32796         New module 'iconv-h'.
32797         * modules/iconv-h: New file.
32798         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
32799         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
32800         (configure.ac): Remove gl_ICONV_H.
32801         (Makefile.am): Remove rule for iconv.h.
32802
32803 2010-03-06  Bruno Haible  <bruno@clisp.org>
32804
32805         More consistent naming of *.m4 files.
32806         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
32807         * modules/wctype (Files): Update.
32808
32809         More consistent naming of *.m4 files.
32810         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
32811         * modules/wchar (Files): Update.
32812
32813 2010-03-06  Jim Meyering  <meyering@redhat.com>
32814
32815         euidaccess: relax license to LGPLv2+
32816         * modules/euidaccess (License): Relax to LGPLv2+.
32817
32818 2010-03-06  Bruno Haible  <bruno@clisp.org>
32819
32820         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
32821         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
32822         (Makefile.am): Augment lib_SOURCES instead.
32823
32824 2010-03-04  Jim Meyering  <meyering@redhat.com>
32825
32826         utime: remove obsolete module
32827         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
32828         unnecessary for years, and has been marked as obsolete for 10 months.
32829         * modules/utime: Remove file.
32830         * lib/utime.c: Remove file.
32831         * m4/utime.m4: Remove file.
32832         * m4/utimes-null.m4: Remove file.
32833         * doc/posix-functions/utime.texi (utime): Remove reference to
32834         the module.  Move the sole "fixed by gnulib" item into the
32835         "problems not fixed by Gnulib" list.
32836         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
32837
32838 2010-03-05  Simon Josefsson  <simon@josefsson.org>
32839
32840         * modules/exit (License): Relax license to LGPLv2+.
32841         (Status): Mark as obsolete.
32842         * NEWS: Mention deprecated 'exit' module.
32843         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
32844         of now obsolete 'exit'.
32845
32846 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32847
32848         fts-lgpl: remove unused module
32849         * modules/fts-lgpl: Remove.
32850         * MODULES.html.sh (func_all_modules): Adjust.
32851         * check-module (find_included_lib_files): Adjust.
32852         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
32853
32854 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
32855
32856         copy-acl: enhance Solaris ACL error handling
32857         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
32858         * lib/set-mode-acl.c (qset_acl): Likewise.
32859
32860 2010-03-02  Bruno Haible  <bruno@clisp.org>
32861
32862         spawn: Don't override the system defined values on FreeBSD 8.
32863         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
32864         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
32865         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
32866         if HAVE_POSIX_SPAWN is 1.
32867         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
32868
32869 2010-03-01  Bruno Haible  <bruno@clisp.org>
32870
32871         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
32872         regarding Automake.
32873
32874 2010-02-25  Bruno Haible  <bruno@clisp.org>
32875
32876         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
32877         * gnulib-tool: Define 'echo' as a function only before the ksh alias
32878         setting, not afterwards.
32879         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
32880
32881 2010-02-24  Eric Blake  <eblake@redhat.com>
32882
32883         bootstrap, git-version-gen: use timestamp
32884         * build-aux/git-version-gen (scriptversion): Force UTC.
32885         * build-aux/bootstrap (scriptversion): New variable.
32886
32887         bootstrap: allow older git
32888         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
32889         older than 1.6.4.  Requested by the libvirt project.
32890
32891 2010-02-23  Eric Blake  <eblake@redhat.com>
32892
32893         warn-on-use: work with old autoconf
32894         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
32895         AS_VAR semantics of autoconf 2.60.
32896         Reported by Bruno Haible.
32897
32898         bootstrap: improve some comments
32899         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
32900         clarification comments.
32901
32902         gettimeofday: provide correct function
32903         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
32904         when replacement is declared, otherwise provide gettimeofday.
32905         Reported by Michael Goffioul.
32906
32907 2010-02-23  Jim Meyering  <meyering@redhat.com>
32908
32909         lib-ignore: relax license to "unlimited", not LGPLv2+
32910         * modules/lib-ignore (License): Relax to "unlimited".
32911
32912 2010-02-23  Jim Meyering  <meyering@redhat.com>
32913
32914         lib-ignore: relax license to LGPLv2+
32915         * modules/lib-ignore (License): Relax to LGPLv2+.
32916
32917 2010-02-22  Eric Blake  <eblake@redhat.com>
32918
32919         lseek: avoid bash 3.2 broken pipe bug
32920         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
32921         warning from bash 3.2.
32922         Reported by Ben Pfaff, with analysis from Bruno Haible.
32923
32924         bootstrap: support non-FSF copyright holder
32925         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
32926         bootstrap.conf override of COPYRIGHT_HOLDER.
32927         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
32928
32929         bootstrap: interoperate with gettext 0.14.1
32930         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
32931
32932         bootstrap: allow for alternate submodule location
32933         * build-aux/bootstrap (gnulib_path): New variable; use instead of
32934         hardcoding submodule location.
32935         (gnulib_mk): Allow direct use of Makefile.am.
32936
32937         bootstrap: use GNULIB_SRCDIR to reduce disk usage
32938         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
32939         rather than reconfiguring where the submodule points.
32940
32941         gettimeofday: restore support for platforms that lack function
32942         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
32943         replacement if function is missing.
32944         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
32945         * modules/sys_time (Makefile.am): Substitute it.
32946         * lib/sys_time.in.h (gettimeofday): Check it.
32947         Reported by Michael Goffioul.
32948
32949 2010-02-21  Bruno Haible  <bruno@clisp.org>
32950
32951         * lib/stdio.in.h (obstack_printf): Fix typo.
32952
32953 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
32954
32955         vc-list-files: use bzr ls's -R option
32956         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
32957         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
32958
32959 2010-02-21  Jim Meyering  <meyering@redhat.com>
32960
32961         init.sh: fix EXEEXT shims to work also for names like test-prog
32962         * tests/init.sh: Re-exec a better shell, when needed.
32963         If the current shell lacks support for posix $(...), an init.sh-using
32964         test will now try to find a shell that supports that.  If EXEEXT is
32965         nonempty, we also require support for hyphen-in-alias-name and shell
32966         substitutions like ${var#glob}.  Failure to find such a shell results
32967         in a skipped test.
32968
32969 2010-02-21  Bruno Haible  <bruno@clisp.org>
32970
32971         Really work around around "broken pipe" error message from bash 3.2.
32972         * gnulib-tool (func_reset_sigpipe): Remove function.
32973         (echo): In bash 3.2, define to a function that uses printf.
32974         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
32975
32976 2010-02-20  Bruno Haible  <bruno@clisp.org>
32977
32978         Restore support for automake 1.9.6 with autoconf 2.61.
32979         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
32980         Reported by James Youngman <jay@gnu.org>.
32981
32982 2010-02-20  Bruno Haible  <bruno@clisp.org>
32983
32984         Improve *printf warning condition.
32985         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
32986         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
32987         and the function is overridden due to SIGPIPE emulation.
32988
32989 2010-02-20  Bruno Haible  <bruno@clisp.org>
32990
32991         * lib/stdio.in.h: Tweak comments.
32992
32993 2010-02-19  Bruno Haible  <bruno@clisp.org>
32994
32995         Make it easier to find modules. New gnulib-tool option '--find'.
32996         * gnulib-tool: New option --find.
32997         (func_usage): Document it.
32998         (func_sanitize_modulelist): New function, extracted from
32999         func_all_modules.
33000         (func_all_modules): Invoke it.
33001         * doc/gnulib-tool.texi (Which modules?): New node.
33002
33003 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
33004
33005         * lib/sys_select.in.h: Provide select replacement even if
33006         sys/select.h exists on a system, for Interix.
33007
33008 2010-02-18  Jim Meyering  <meyering@redhat.com>
33009
33010         init.sh: don't use $(...) just yet
33011         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
33012         to accommodate e.g., Solaris' /bin/sh.
33013
33014 2010-02-17  Bruno Haible  <bruno@clisp.org>
33015
33016         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
33017         Reported by Ludovic Courtès <ludo@gnu.org>.
33018
33019 2010-02-16  Simon Josefsson  <simon@josefsson.org>
33020
33021         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
33022         linking with -lintl.
33023
33024 2010-02-17  Simon Josefsson  <simon@josefsson.org>
33025
33026         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
33027         if not provided by the system's netdb.h.  Reported by
33028         ludo@gnu.org (Ludovic Courtès).
33029
33030 2010-02-15  Jim Meyering  <meyering@redhat.com>
33031
33032         init.sh: improve portability and efficiency
33033         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
33034         "dummy" in a for loop.
33035         Use '!', not '^' to select the complement of a character set used
33036         in a "case" statement.
33037         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
33038         Suggestions from Eric Blake.
33039
33040         init.sh: automatically accommodate programs with the .exe suffix
33041         Automatically arrange for an invocation of "prog" to execute the
33042         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
33043         may use the simpler "prog", yet still work when built on a system
33044         that requires specifying the added suffix.
33045         Do this by constructing a function named "prog" that invokes
33046         "prog.exe" for each .exe file in selected directories.
33047         * tests/init.sh (find_exe_basenames_): New function.
33048         (create_exe_shim_functions_): New function.
33049         (path_prepend_): Use it.
33050
33051         maint.mk: mark syntax-check sc_*.m rules as .PHONY
33052         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
33053         "make -t syntax-check" doesn't create a ton of sc_*.m files.
33054
33055 2010-02-14  Jim Meyering  <meyering@redhat.com>
33056
33057         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
33058         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
33059         (sc_prohibit_hash_pjw_without_use): New rule.
33060
33061         maint.mk: allow the default upload destination dir to be overridden
33062         * top/maint.mk (upload_dest_dir_): Define with a default that
33063         preserves the status quo.
33064         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
33065         Reported by Peter Simons.
33066
33067         maint.mk: prohibit inclusion of "hash.h" without_use
33068         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
33069
33070 2010-02-10  Jim Meyering  <meyering@redhat.com>
33071
33072         maint.mk: prohibit inclusion of "ignore-value.h" without_use
33073         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
33074
33075 2010-02-09  Eric Blake  <ebb9@byu.net>
33076         and Bruno Haible  <bruno@clisp.org>
33077
33078         obstack-printf-posix: ensure declaration
33079         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
33080         extracted from gl_FUNC_OBSTACK_PRINTF.
33081         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
33082         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
33083         Likewise.
33084         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
33085         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
33086         0.
33087
33088 2010-02-08  Bruno Haible  <bruno@clisp.org>
33089
33090         gnulib-tool: Fix typo in 2010-02-07 commit.
33091         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
33092         Reported by Eric Blake.
33093
33094 2010-02-07  Bruno Haible  <bruno@clisp.org>
33095
33096         gnulib-tool: Fix up caching patches.
33097         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
33098         option --no-cache. Use associative arrays when supported by the shell.
33099         (sed_comments): New variable.
33100         (modcache): Renamed from do_cache.
33101         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
33102         abbreviate unnecessarily.
33103         (have_associative): New variable.
33104         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
33105         way also for ksh and zsh.
33106         (func_init_sed_convert_to_cache_statements): New function, extracted
33107         from func_cache_lookup_module. Add support for associative arrays.
33108         Don't set the c_MODULE_cached variable here. Ignore all lines before
33109         the first field header. Remove only the final newline, not all trailing
33110         newlines. Support empty fields correctly. Limit the use of 'eval' to
33111         assignments.
33112         (func_get_description, func_get_status, func_get_notice,
33113         func_get_applicability, func_get_filelist, func_get_dependencies,
33114         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
33115         func_get_automake_snippet, func_get_include_directive,
33116         func_get_link_directive, func_get_license, func_get_maintainer):
33117         Update documentation. List the unoptimized code first. Add support for
33118         associative arrays. Limit the use of 'eval' to assignments.
33119         (func_get_applicability): Undo stylistic pessimisations.
33120         (func_get_automake_snippet, func_get_include_directive): Reduce code
33121         duplication.
33122         (func_modules_transitive_closure, func_modules_add_dummy,
33123         func_modules_notice, func_modules_to_filelist, func_add_file,
33124         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
33125         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
33126         func_create_testdir, func_create_megatestdir): Update documentation.
33127
33128 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33129
33130         * gnulib-tool (func_cache_lookup_module): Store the module name
33131         belonging to the cache variable; error out if two different
33132         module names map to the same cache variable name.
33133
33134 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33135
33136         gnulib-tool: Make caching optional.
33137         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
33138         Update matching short versions of --no-changelog.
33139         (func_usage): Update.
33140         (sed_extract_cache_prog): Renamed from ...
33141         (sed_extract_prog): ... this; revert to old extraction script.
33142         (func_get_description, func_get_status)
33143         (func_get_notice, func_get_applicability, func_get_filelist)
33144         (func_get_dependencies, func_get_autoconf_early_snippet)
33145         (func_get_autoconf_snippet, func_get_automake_snippet)
33146         (func_get_include_directive, func_get_link_directive)
33147         (func_get_license, func_get_maintainer): If $do_cache is false,
33148         use old, non-caching extraction scripts.
33149         Suggestion by Bruno Haible.
33150
33151 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33152
33153         gnulib-tool: cache module metainformation.
33154         * gnulib-tool (sed_extract_prog): Match newline before each
33155         header, and rewrite header to a shell variable suffix.
33156         (func_cache_var, func_cache_lookup_module): New functions,
33157         to turn a module name into a cache variable prefix, and to
33158         look up and cache module metainformation.
33159         (func_get_description, func_get_status)
33160         (func_get_notice, func_get_applicability, func_get_filelist)
33161         (func_get_dependencies, func_get_autoconf_early_snippet)
33162         (func_get_autoconf_snippet, func_get_automake_snippet)
33163         (func_get_include_directive, func_get_link_directive)
33164         (func_get_license, func_get_maintainer): Use
33165         func_cache_lookup_module.
33166
33167 2010-02-07  Bruno Haible  <bruno@clisp.org>
33168
33169         fnctl: Fix missing dependency.
33170         * modules/fcntl (Depends-on): Add getdtablesize.
33171         Reported by John W. Eaton <jwe@gnu.org>.
33172
33173 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33174
33175         Argp: fix recognition of short alias options.
33176
33177         * lib/argp-parse.c (convert_options): Fix improper use of
33178         `|' between character values.
33179         * tests/test-argp.c (group1_option): New alias option
33180         --read (-r).
33181         (group1_parser): Special handling for 'r'.
33182         (test15): New test case.
33183         (test_fun): Add test15.
33184         * tests/test-argp-2.sh: Update expected --help and --usage
33185         outputs.
33186
33187 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33188
33189         * tests/test-argp.c: Fix indentation.
33190
33191 2010-02-04  Eric Blake  <ebb9@byu.net>
33192
33193         gettimeofday: expose type of second argument
33194         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
33195         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
33196         * tests/test-gettimeofday.c: Use it to silence warning.
33197         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
33198         the issue.
33199
33200 2010-02-03  Jim Meyering  <meyering@redhat.com>
33201
33202         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
33203         * lib/regcomp.c (TYPE_SIGNED): Define.
33204         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
33205
33206         regcomp.c: avoid a new -Wshadow warning
33207         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
33208
33209 2010-02-01  Jim Meyering  <meyering@redhat.com>
33210
33211         removing useless parentheses in cpp #define directives
33212         For motivation, see commit c0221df4, "define STREQ(a,b)
33213         consistently, removing useless parentheses"
33214         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
33215         * lib/mountlist.c (MNT_IGNORE): Likewise.
33216         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
33217
33218 2010-02-01  Eric Blake  <ebb9@byu.net>
33219
33220         sys_time: use link-warning
33221         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
33222         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
33223         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
33224         * modules/sys_time (Depends-on): Add warn-on-use.
33225         (Makefile.am): Always build replacement.
33226         (configure.ac): Update substitutions.
33227         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
33228         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
33229         bother with SYS_TIME_H.
33230         * modules/gettimeofday (configure.ac): Declare indicator.
33231         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
33232         in use.
33233
33234         closein-tests: silence compiler warning
33235         * tests/test-closein.c (main): Ignore fread result.
33236         * modules/closein-tests (Depends-on): Add ignore-value.
33237
33238         tests: silence warning about system return
33239         * tests/test-areadlink-with-size.c (main): Ignore system result.
33240         * tests/test-areadlink.c (main): Likewise.
33241         * tests/test-areadlinkat-with-size.c (main): Likewise.
33242         * tests/test-areadlinkat.c (main): Likewise.
33243         * tests/test-canonicalize-lgpl.c (main): Likewise.
33244         * tests/test-canonicalize.c (main): Likewise.
33245         * tests/test-chown.c (main): Likewise.
33246         * tests/test-fchownat.c (main): Likewise.
33247         * tests/test-fdutimensat.c (main): Likewise.
33248         * tests/test-fstatat.c (main): Likewise.
33249         * tests/test-futimens.c (main): Likewise.
33250         * tests/test-lchown.c (main): Likewise.
33251         * tests/test-link.c (main): Likewise.
33252         * tests/test-linkat.c (main): Likewise.
33253         * tests/test-lstat.c (main): Likewise.
33254         * tests/test-mkdir.c (main): Likewise.
33255         * tests/test-mkdirat.c (main): Likewise.
33256         * tests/test-mkfifo.c (main): Likewise.
33257         * tests/test-mkfifoat.c (main): Likewise.
33258         * tests/test-mknod.c (main): Likewise.
33259         * tests/test-readlink.c (main): Likewise.
33260         * tests/test-remove.c (main): Likewise.
33261         * tests/test-rename.c (main): Likewise.
33262         * tests/test-renameat.c (main): Likewise.
33263         * tests/test-rmdir.c (main): Likewise.
33264         * tests/test-symlink.c (main): Likewise.
33265         * tests/test-symlinkat.c (main): Likewise.
33266         * tests/test-unlink.c (main): Likewise.
33267         * tests/test-unlinkat.c (main): Likewise.
33268         * tests/test-utimens.c (main): Likewise.
33269         * tests/test-utimensat.c (main): Likewise.
33270         * modules/areadlink-tests (Depends-on): Add ignore-value.
33271         * modules/areadlink-with-size-tests (Depends-on): Likewise.
33272         * modules/areadlinkat-tests (Depends-on): Likewise.
33273         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
33274         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33275         * modules/canonicalize-tests (Depends-on): Likewise.
33276         * modules/chown-tests (Depends-on): Likewise.
33277         * modules/fdutimensat-tests (Depends-on): Likewise.
33278         * modules/futimens-tests (Depends-on): Likewise.
33279         * modules/lchown-tests (Depends-on): Likewise.
33280         * modules/link-tests (Depends-on): Likewise.
33281         * modules/linkat-tests (Depends-on): Likewise.
33282         * modules/lstat-tests (Depends-on): Likewise.
33283         * modules/mkdir-tests (Depends-on): Likewise.
33284         * modules/mkfifo-tests (Depends-on): Likewise.
33285         * modules/mkfifoat-tests (Depends-on): Likewise.
33286         * modules/mknod-tests (Depends-on): Likewise.
33287         * modules/openat-tests (Depends-on): Likewise.
33288         * modules/readlink-tests (Depends-on): Likewise.
33289         * modules/remove-tests (Depends-on): Likewise.
33290         * modules/rename-tests (Depends-on): Likewise.
33291         * modules/renameat-tests (Depends-on): Likewise.
33292         * modules/rmdir-tests (Depends-on): Likewise.
33293         * modules/symlink-tests (Depends-on): Likewise.
33294         * modules/symlinkat-tests (Depends-on): Likewise.
33295         * modules/unlink-tests (Depends-on): Likewise.
33296         * modules/utimens-tests (Depends-on): Likewise.
33297         * modules/utimensat-tests (Depends-on): Likewise.
33298
33299 2010-01-31  Bruno Haible  <bruno@clisp.org>
33300
33301         Perform the same test for many <math.h> functions.
33302         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
33303         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
33304         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
33305         of gl_MATHFUNC.
33306         * modules/acos (configure.ac): Likewise.
33307         * modules/asin (configure.ac): Likewise.
33308         * modules/atan (configure.ac): Likewise.
33309         * modules/atan2 (configure.ac): Likewise.
33310         * modules/cbrt (configure.ac): Likewise.
33311         * modules/copysign (configure.ac): Likewise.
33312         * modules/cos (configure.ac): Likewise.
33313         * modules/cosh (configure.ac): Likewise.
33314         * modules/erf (configure.ac): Likewise.
33315         * modules/erfc (configure.ac): Likewise.
33316         * modules/exp (configure.ac): Likewise.
33317         * modules/fmod (configure.ac): Likewise.
33318         * modules/hypot (configure.ac): Likewise.
33319         * modules/j0 (configure.ac): Likewise.
33320         * modules/j1 (configure.ac): Likewise.
33321         * modules/jn (configure.ac): Likewise.
33322         * modules/lgamma (configure.ac): Likewise.
33323         * modules/log (configure.ac): Likewise.
33324         * modules/log10 (configure.ac): Likewise.
33325         * modules/log1p (configure.ac): Likewise.
33326         * modules/pow (configure.ac): Likewise.
33327         * modules/remainder (configure.ac): Likewise.
33328         * modules/sin (configure.ac): Likewise.
33329         * modules/sinh (configure.ac): Likewise.
33330         * modules/tan (configure.ac): Likewise.
33331         * modules/tanh (configure.ac): Likewise.
33332         * modules/y0 (configure.ac): Likewise.
33333         * modules/y1 (configure.ac): Likewise.
33334         * modules/yn (configure.ac): Likewise.
33335         Suggested by Paolo Bonzini.
33336
33337 2010-01-31  Bruno Haible  <bruno@clisp.org>
33338
33339         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
33340
33341 2010-01-31  Bruno Haible  <bruno@clisp.org>
33342
33343         Work around getdelim() bug on FreeBSD 8.0.
33344         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
33345         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
33346         not work.
33347         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
33348         is 1.
33349         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
33350         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
33351         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
33352         a non-zero size.
33353         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
33354
33355 2010-01-31  Bruno Haible  <bruno@clisp.org>
33356
33357         Work around getline() bug on FreeBSD 8.0.
33358         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
33359         and a non-zero size.
33360         * tests/test-getline.c (main): Likewise.
33361         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
33362         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
33363
33364 2010-01-28  Eric Blake  <ebb9@byu.net>
33365
33366         regex: fix build failure
33367         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
33368         platforms.
33369
33370 2010-01-28  Jim Meyering  <meyering@redhat.com>
33371
33372         regex: do not ignore memory allocation failure
33373         * lib/regex_internal.c (create_cd_newstate): Detect
33374         re_node_set_init_copy failure.   Extracted from glibc commit
33375         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33376
33377         regex: sync more white-space changes from libc
33378         * lib/regex_internal.c: White-space only changes.
33379         * lib/regexec.c: Likewise.
33380
33381         regex: add many uses of __attribute_warn_unused_result__
33382         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
33383         * lib/regexec.c: Likewise.
33384         Extracted from a messy glibc commit.
33385
33386         regcomp.c: spelling and merge-artifact from glibc
33387         * lib/regcomp.c: Merge remainder of glibc's
33388         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33389
33390         regcomp.c: sync white-space changes from glibc
33391         * lib/regcomp.c: Merge to accommodate white space
33392         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33393
33394         regcomp.c: do not ignore internal return values
33395         * lib/regcomp.c: Do not ignore internal return values.
33396         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
33397         but without its white-space changes and spelling fixes.
33398
33399         regex_internal.h: define __attribute_warn_unused_result__
33400         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
33401
33402         maint: add a syntax-check rule to check for vulnerable Makefile.in
33403         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
33404
33405 2010-01-27  Jim Meyering  <meyering@redhat.com>
33406
33407         ncftpput-ftp: clean up spaces
33408         * build-aux/ncftpput-ftp: Make Copyright line consistent.
33409         Remove trailing blanks.
33410
33411 2010-01-27  Simon Josefsson  <simon@josefsson.org>
33412
33413         * build-aux/git-version-gen: Fix copyright statement.
33414         * build-aux/gnupload: Likewise.
33415         * tests/test-arcfour.c: Likewise.
33416         * tests/test-arctwo.c: Likewise.
33417         * tests/test-count-one-bits.c: Likewise.
33418         * tests/test-crc.c: Likewise.
33419         * tests/test-des.c: Likewise.
33420         * tests/test-gc-arcfour.c: Likewise.
33421         * tests/test-gc-arctwo.c: Likewise.
33422         * tests/test-gc-des.c: Likewise.
33423         * tests/test-gc-hmac-md5.c: Likewise.
33424         * tests/test-gc-hmac-sha1.c: Likewise.
33425         * tests/test-gc-md2.c: Likewise.
33426         * tests/test-gc-md4.c: Likewise.
33427         * tests/test-gc-md5.c: Likewise.
33428         * tests/test-gc-pbkdf2-sha1.c: Likewise.
33429         * tests/test-gc-rijndael.c: Likewise.
33430         * tests/test-gc-sha1.c: Likewise.
33431         * tests/test-gc.c: Likewise.
33432         * tests/test-gethostname.c: Likewise.
33433         * tests/test-gettimeofday.c: Likewise.
33434         * tests/test-hash.c: Likewise.
33435         * tests/test-hmac-md5.c: Likewise.
33436         * tests/test-hmac-sha1.c: Likewise.
33437         * tests/test-md2.c: Likewise.
33438         * tests/test-md4.c: Likewise.
33439         * tests/test-md5.c: Likewise.
33440         * tests/test-memchr.c: Likewise.
33441         * tests/test-memchr2.c: Likewise.
33442         * tests/test-memcmp.c: Likewise.
33443         * tests/test-memmem.c: Likewise.
33444         * tests/test-memrchr.c: Likewise.
33445         * tests/test-rawmemchr.c: Likewise.
33446         * tests/test-read-file.c: Likewise.
33447         * tests/test-rijndael.c: Likewise.
33448         * tests/test-sockets.c: Likewise.
33449         * tests/test-strchrnul.c: Likewise.
33450         * tests/test-strstr.c: Likewise.
33451         * tests/test-strtod.c: Likewise.
33452         * build-aux/ncftpput-ftp: Likewise.
33453
33454 2010-01-26  Eric Blake  <ebb9@byu.net>
33455
33456         ignore-value: update recommended header name
33457         * modules/ignore-value (Include): Only use <> for headers that
33458         exist in glibc.
33459
33460 2010-01-26  Jim Meyering  <meyering@redhat.com>
33461
33462         test-userspec.c: avoid compiler warnings
33463         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
33464         and "initialization discards qualifiers..." warnings.
33465         Put the first "uid" in its own scope, and make char* members "const".
33466
33467 2010-01-25  Bruno Haible  <bruno@clisp.org>
33468
33469         gnulib-tool: Make warning diagnostics consistent.
33470         * gnulib-tool (func_warning): New function.
33471         Use it everywhere where gnulib-tool produces output to stderr and it is
33472         not a fatal error.
33473
33474 2010-01-25  Bruno Haible  <bruno@clisp.org>
33475
33476         Fix test dependencies.
33477         * modules/xstrtol-tests (Depends-on): Add inttypes.
33478         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
33479
33480 2010-01-25 Pádraig Brady <P@draigBrady.com>
33481
33482         syntax-check: detect incorrect boolean macro values in config.h
33483         * modules/maintainer-makefile (configure.ac): Parameterize the location
33484         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
33485         The logic is from Eric Blake and the location indicated by Jim Meyering.
33486         Note the more natural CONFIG_HEADER name is prohibited by automake
33487         for backwards compatibility reasons.
33488         * top/maint.mk (sc_Wundef_boolean): New rule.
33489
33490 2010-01-25  Jim Meyering  <meyering@redhat.com>
33491
33492         bootstrap: detect MacOS 10.6's shasum, too
33493         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
33494         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
33495
33496 2010-01-23  Jim Meyering  <meyering@redhat.com>
33497
33498         xstrtoll: new module
33499         * modules/xstrtoll: New file.
33500         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
33501         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
33502         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
33503         ./configure fails if you use this module and lack "long long".
33504         * modules/xstrtoll-tests: New module.
33505         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
33506         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
33507         new init.sh-based test framework.
33508
33509 2010-01-24  Bruno Haible  <bruno@clisp.org>
33510
33511         Tests for module 'yn'.
33512         * modules/yn-tests: New file.
33513         * tests/test-yn.c: New file.
33514
33515         Tests for module 'y1'.
33516         * modules/y1-tests: New file.
33517         * tests/test-y1.c: New file.
33518
33519         Tests for module 'y0'.
33520         * modules/y0-tests: New file.
33521         * tests/test-y0.c: New file.
33522
33523         Tests for module 'tanh'.
33524         * modules/tanh-tests: New file.
33525         * tests/test-tanh.c: New file.
33526
33527         Tests for module 'tan'.
33528         * modules/tan-tests: New file.
33529         * tests/test-tan.c: New file.
33530
33531         Tests for module 'sqrt'.
33532         * modules/sqrt-tests: New file.
33533         * tests/test-sqrt.c: New file.
33534
33535         Tests for module 'sinh'.
33536         * modules/sinh-tests: New file.
33537         * tests/test-sinh.c: New file.
33538
33539         Tests for module 'sin'.
33540         * modules/sin-tests: New file.
33541         * tests/test-sin.c: New file.
33542
33543         Tests for module 'rint'.
33544         * modules/rint-tests: New file.
33545         * tests/test-rint.c: New file.
33546
33547         Tests for module 'remainder'.
33548         * modules/remainder-tests: New file.
33549         * tests/test-remainder.c: New file.
33550
33551         Tests for module 'pow'.
33552         * modules/pow-tests: New file.
33553         * tests/test-pow.c: New file.
33554
33555         Tests for module 'nextafter'.
33556         * modules/nextafter-tests: New file.
33557         * tests/test-nextafter.c: New file.
33558
33559         Tests for module 'modf'.
33560         * modules/modf-tests: New file.
33561         * tests/test-modf.c: New file.
33562
33563         Tests for module 'logb'.
33564         * modules/logb-tests: New file.
33565         * tests/test-logb.c: New file.
33566
33567         Tests for module 'log1p'.
33568         * modules/log1p-tests: New file.
33569         * tests/test-log1p.c: New file.
33570
33571         Tests for module 'log10'.
33572         * modules/log10-tests: New file.
33573         * tests/test-log10.c: New file.
33574
33575         Tests for module 'log'.
33576         * modules/log-tests: New file.
33577         * tests/test-log.c: New file.
33578
33579         Tests for module 'lgamma'.
33580         * modules/lgamma-tests: New file.
33581         * tests/test-lgamma.c: New file.
33582
33583         Tests for module 'ldexp'.
33584         * modules/ldexp-tests: New file.
33585         * tests/test-ldexp.c: New file.
33586
33587         Tests for module 'jn'.
33588         * modules/jn-tests: New file.
33589         * tests/test-jn.c: New file.
33590
33591         Tests for module 'j1'.
33592         * modules/j1-tests: New file.
33593         * tests/test-j1.c: New file.
33594
33595         Tests for module 'j0'.
33596         * modules/j0-tests: New file.
33597         * tests/test-j0.c: New file.
33598
33599         Tests for module 'hypot'.
33600         * modules/hypot-tests: New file.
33601         * tests/test-hypot.c: New file.
33602
33603         Tests for module 'fmod'.
33604         * modules/fmod-tests: New file.
33605         * tests/test-fmod.c: New file.
33606
33607         Tests for module 'fabs'.
33608         * modules/fabs-tests: New file.
33609         * tests/test-fabs.c: New file.
33610
33611         Tests for module 'exp'.
33612         * modules/exp-tests: New file.
33613         * tests/test-exp.c: New file.
33614
33615         Tests for module 'erfc'.
33616         * modules/erfc-tests: New file.
33617         * tests/test-erfc.c: New file.
33618
33619         Tests for module 'erf'.
33620         * modules/erf-tests: New file.
33621         * tests/test-erf.c: New file.
33622
33623         Tests for module 'cosh'.
33624         * modules/cosh-tests: New file.
33625         * tests/test-cosh.c: New file.
33626
33627         Tests for module 'cos'.
33628         * modules/cos-tests: New file.
33629         * tests/test-cos.c: New file.
33630
33631         Tests for module 'copysign'.
33632         * modules/copysign-tests: New file.
33633         * tests/test-copysign.c: New file.
33634
33635         Tests for module 'cbrt'.
33636         * modules/cbrt-tests: New file.
33637         * tests/test-cbrt.c: New file.
33638
33639         Tests for module 'atan2'.
33640         * modules/atan2-tests: New file.
33641         * tests/test-atan2.c: New file.
33642
33643         Tests for module 'atan'.
33644         * modules/atan-tests: New file.
33645         * tests/test-atan.c: New file.
33646
33647         Tests for module 'asin'.
33648         * modules/asin-tests: New file.
33649         * tests/test-asin.c: New file.
33650
33651         Tests for module 'acos'.
33652         * modules/acos-tests: New file.
33653         * tests/test-acos.c: New file.
33654
33655 2010-01-24  Bruno Haible  <bruno@clisp.org>
33656
33657         Fix tests for common <math.h> functions.
33658         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
33659         code snippet that references the function pointer, rather than merely
33660         calling the function. Substitute the FUNC_LIBM variable.
33661         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
33662         * modules/acos (configure.ac): Likewise.
33663         * modules/asin (configure.ac): Likewise.
33664         * modules/atan (configure.ac): Likewise.
33665         * modules/atan2 (configure.ac): Likewise.
33666         * modules/cbrt (configure.ac): Likewise.
33667         * modules/copysign (configure.ac): Likewise.
33668         * modules/cos (configure.ac): Likewise.
33669         * modules/cosh (configure.ac): Likewise.
33670         * modules/erf (configure.ac): Likewise.
33671         * modules/erfc (configure.ac): Likewise.
33672         * modules/exp (configure.ac): Likewise.
33673         * modules/fabs (configure.ac): Likewise.
33674         * modules/fmod (configure.ac): Likewise.
33675         * modules/hypot (configure.ac): Likewise.
33676         * modules/j0 (configure.ac): Likewise.
33677         * modules/j1 (configure.ac): Likewise.
33678         * modules/jn (configure.ac): Likewise.
33679         * modules/ldexp (configure.ac): Likewise.
33680         * modules/lgamma (configure.ac): Likewise.
33681         * modules/log (configure.ac): Likewise.
33682         * modules/log10 (configure.ac): Likewise.
33683         * modules/log1p (configure.ac): Likewise.
33684         * modules/logb (configure.ac): Likewise.
33685         * modules/modf (configure.ac): Likewise.
33686         * modules/nextafter (configure.ac): Likewise.
33687         * modules/pow (configure.ac): Likewise.
33688         * modules/remainder (configure.ac): Likewise.
33689         * modules/rint (configure.ac): Likewise.
33690         * modules/sin (configure.ac): Likewise.
33691         * modules/sinh (configure.ac): Likewise.
33692         * modules/tan (configure.ac): Likewise.
33693         * modules/tanh (configure.ac): Likewise.
33694         * modules/y0 (configure.ac): Likewise.
33695         * modules/y1 (configure.ac): Likewise.
33696         * modules/yn (configure.ac): Likewise.
33697
33698 2010-01-24  Bruno Haible  <bruno@clisp.org>
33699
33700         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
33701         * tests/test-acosl.c (x): New variable.
33702         (main): Store argument in x and fetch it from x.
33703         * tests/test-asinl.c (x): New variable.
33704         (main): Store argument in x and fetch it from x.
33705         * tests/test-atanl.c (x): New variable.
33706         (main): Store argument in x and fetch it from x.
33707         * tests/test-cosl.c (x): New variable.
33708         (main): Store argument in x and fetch it from x.
33709         * tests/test-expl.c (x): New variable.
33710         (main): Store argument in x and fetch it from x.
33711         * tests/test-logl.c (x): New variable.
33712         (main): Store argument in x and fetch it from x.
33713         * tests/test-sinl.c (x): New variable.
33714         (main): Store argument in x and fetch it from x.
33715         * tests/test-sqrtl.c (x): New variable.
33716         (main): Store argument in x and fetch it from x.
33717         * tests/test-tanl.c (x): New variable.
33718         (main): Store argument in x and fetch it from x.
33719
33720 2010-01-24  Bruno Haible  <bruno@clisp.org>
33721
33722         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
33723         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
33724         assignments to the initial TESTS_ENVIRONMENT.
33725         * doc/gnulib.texi (Unit test modules): Document it.
33726         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
33727         TESTS_ENVIRONMENT.
33728         * modules/btowc-tests (Makefile.am): Likewise.
33729         * modules/c-stack-tests (Makefile.am): Likewise.
33730         * modules/c-strcase-tests (Makefile.am): Likewise.
33731         * modules/copy-file-tests (Makefile.am): Likewise.
33732         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
33733         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
33734         * modules/mbrtowc-tests (Makefile.am): Likewise.
33735         * modules/mbscasecmp-tests (Makefile.am): Likewise.
33736         * modules/mbscasestr-tests (Makefile.am): Likewise.
33737         * modules/mbschr-tests (Makefile.am): Likewise.
33738         * modules/mbscspn-tests (Makefile.am): Likewise.
33739         * modules/mbsinit-tests (Makefile.am): Likewise.
33740         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
33741         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
33742         * modules/mbspbrk-tests (Makefile.am): Likewise.
33743         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
33744         * modules/mbsrchr-tests (Makefile.am): Likewise.
33745         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
33746         * modules/mbsspn-tests (Makefile.am): Likewise.
33747         * modules/mbsstr-tests (Makefile.am): Likewise.
33748         * modules/nl_langinfo-tests (Makefile.am): Likewise.
33749         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
33750         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
33751         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
33752         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
33753         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
33754         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
33755         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
33756         * modules/wcrtomb-tests (Makefile.am): Likewise.
33757         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
33758         * modules/wcsrtombs-tests (Makefile.am): Likewise.
33759         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
33760         assignments from TESTS_ENVIRONMENT.
33761         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
33762         augmentation.
33763         * modules/argp-version-etc-tests (Makefile.am): Likewise.
33764         * modules/atexit-tests (Makefile.am): Likewise.
33765         * modules/binary-io-tests (Makefile.am): Likewise.
33766         * modules/closein-tests (Makefile.am): Likewise.
33767         * modules/dprintf-posix-tests (Makefile.am): Likewise.
33768         * modules/exclude-tests (Makefile.am): Likewise.
33769         * modules/fflush-tests (Makefile.am): Likewise.
33770         * modules/fpending-tests (Makefile.am): Likewise.
33771         * modules/fprintf-posix-tests (Makefile.am): Likewise.
33772         * modules/freadahead-tests (Makefile.am): Likewise.
33773         * modules/freadptr-tests (Makefile.am): Likewise.
33774         * modules/freadseek-tests (Makefile.am): Likewise.
33775         * modules/fseek-tests (Makefile.am): Likewise.
33776         * modules/fseeko-tests (Makefile.am): Likewise.
33777         * modules/ftell-tests (Makefile.am): Likewise.
33778         * modules/ftello-tests (Makefile.am): Likewise.
33779         * modules/idpriv-drop-tests (Makefile.am): Likewise.
33780         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
33781         * modules/lseek-tests (Makefile.am): Likewise.
33782         * modules/parse-duration-tests (Makefile.am): Likewise.
33783         * modules/perror-tests (Makefile.am): Likewise.
33784         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
33785         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
33786         * modules/pipe-tests (Makefile.am): Likewise.
33787         * modules/pread-tests (Makefile.am): Likewise.
33788         * modules/printf-posix-tests (Makefile.am): Likewise.
33789         * modules/select-tests (Makefile.am): Likewise.
33790         * modules/sigpipe-tests (Makefile.am): Likewise.
33791         * modules/tsearch-tests (Makefile.am): Likewise.
33792         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
33793         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
33794         * modules/uniname/uniname-tests (Makefile.am): Likewise.
33795         * modules/uniwidth/width-tests (Makefile.am): Likewise.
33796         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
33797         * modules/version-etc-tests (Makefile.am): Likewise.
33798         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
33799         * modules/vprintf-posix-tests (Makefile.am): Likewise.
33800         * modules/xalloc-die-tests (Makefile.am): Likewise.
33801         * modules/xprintf-posix-tests (Makefile.am): Likewise.
33802         * modules/xstrtoimax-tests (Makefile.am): Likewise.
33803         * modules/xstrtol-tests (Makefile.am): Likewise.
33804         * modules/xstrtoumax-tests (Makefile.am): Likewise.
33805         * modules/yesno-tests (Makefile.am): Likewise.
33806         Suggested by Jim Meyering.
33807
33808 2010-01-24  Bruno Haible  <bruno@clisp.org>
33809
33810         More documentation.
33811         * doc/gnulib.texi (Writing modules): New chapter.
33812         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
33813         the new chapter.
33814
33815 2010-01-24  Jim Meyering  <meyering@redhat.com>
33816
33817         maint.mk: do not prepend "./" after filtering
33818         * top/maint.mk (_prepend_srcdir_prefix): New variable
33819         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
33820         "./" when $(srcdir) is ".".
33821
33822         define STREQ(a,b) consistently, removing useless parentheses
33823         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
33824         since the only risk is that "a" or "b" contains an unparenthesized
33825         comma, but if either did that, STREQ would have 3 or more arguments.
33826         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
33827         * lib/fts.c (STREQ): Remove unnecessary parentheses.
33828         * lib/hash-triple.c (STREQ): Likewise.
33829         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
33830         * lib/getugroups.c (STREQ): Likewise.
33831
33832 2010-01-23  Jim Meyering  <meyering@redhat.com>
33833
33834         maint.mk: fix syntax-check in a non-srcdir build directory
33835         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
33836         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
33837
33838 2010-01-22  Jim Meyering  <meyering@redhat.com>
33839
33840         userspec: add unit tests
33841         * tests/test-userspec.c: New file.
33842         * modules/userspec-tests: Likewise.
33843
33844 2010-01-21  Jim Meyering  <meyering@redhat.com>
33845
33846         maint.mk: handle source file names containing "." robustly
33847         * top/maint.mk (_dot_escaped_srcdir): Define.
33848         (VC_LIST): Use it in LHS of sed substitution.
33849
33850 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
33851
33852         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
33853         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
33854         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
33855         from a non-srcdir build.
33856
33857 2010-01-20  Eric Blake  <ebb9@byu.net>
33858
33859         warn-on-use: use instead of link-warning
33860         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
33861         * modules/unistd (Depends-on, Makefile.am): Likewise.
33862         * modules/arpa_inet (Depends-on): Replace link-warning with
33863         warn-on-use.
33864         (Makefile.am): Update rules accordingly.
33865         * modules/ctype (Depends-on, Makefile.am): Likewise.
33866         * modules/dirent (Depends-on, Makefile.am): Likewise.
33867         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
33868         * modules/inttypes (Depends-on, Makefile.am): Likewise.
33869         * modules/langinfo (Depends-on, Makefile.am): Likewise.
33870         * modules/locale (Depends-on, Makefile.am): Likewise.
33871         * modules/math (Depends-on, Makefile.am): Likewise.
33872         * modules/search (Depends-on, Makefile.am): Likewise.
33873         * modules/signal (Depends-on, Makefile.am): Likewise.
33874         * modules/spawn (Depends-on, Makefile.am): Likewise.
33875         * modules/stdlib (Depends-on, Makefile.am): Likewise.
33876         * modules/string (Depends-on, Makefile.am): Likewise.
33877         * modules/strings (Depends-on, Makefile.am): Likewise.
33878         * modules/sys_file (Depends-on, Makefile.am): Likewise.
33879         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
33880         * modules/sys_select (Depends-on, Makefile.am): Likewise.
33881         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
33882         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
33883         * modules/sys_times (Depends-on, Makefile.am): Likewise.
33884         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
33885         * modules/wchar (Depends-on, Makefile.am): Likewise.
33886         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
33887         should be poisoned.
33888         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
33889         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
33890         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
33891         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33892         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33893         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33894         * m4/math_h.m4 (gl_MATH_H): Likewise.
33895         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33896         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33897         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33898         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33899         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33900         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33901         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
33902         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
33903         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
33904         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33905         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33906         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33907         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33908         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33909         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33910         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33911         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
33912         GL_LINK_WARNING.
33913         * lib/ctype.in.h: Likewise.
33914         * lib/dirent.in.h: Likewise.
33915         * lib/fcntl.in.h: Likewise.
33916         * lib/inttypes.in.h: Likewise.
33917         * lib/langinfo.in.h: Likewise.
33918         * lib/locale.in.h: Likewise.
33919         * lib/math.in.h: Likewise.
33920         * lib/search.in.h: Likewise.
33921         * lib/signal.in.h: Likewise.
33922         * lib/spawn.in.h: Likewise.
33923         * lib/stdio.in.h: Likewise.
33924         * lib/stdlib.in.h: Likewise.
33925         * lib/string.in.h: Likewise.
33926         * lib/strings.in.h: Likewise.
33927         * lib/sys_file.in.h: Likewise.
33928         * lib/sys_ioctl.in.h: Likewise.
33929         * lib/sys_select.in.h: Likewise.
33930         * lib/sys_socket.in.h: Likewise.
33931         * lib/sys_stat.in.h: Likewise.
33932         * lib/sys_times.in.h: Likewise.
33933         * lib/sys_utsname.in.h: Likewise.
33934         * lib/unistd.in.h: Likewise.
33935         * lib/wchar.in.h: Likewise.
33936
33937 2010-01-20  Bruno Haible  <bruno@clisp.org>
33938
33939         Avoid duplicate -lm.
33940         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
33941         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
33942         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
33943         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
33944         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
33945         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
33946         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
33947         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
33948         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
33949         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
33950         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
33951         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
33952         Reported by Paolo Bonzini.
33953
33954 2010-01-19  Bruno Haible  <bruno@clisp.org>
33955
33956         langinfo, nl_langinfo: Relicense under LGPLv2+.
33957         * modules/langinfo (License): Change to LGPLv2+.
33958         * modules/nl_langinfo (License): Likewise.
33959         Patch by David Lutterkort <lutter@redhat.com>.
33960
33961 2010-01-19  Bruno Haible  <bruno@clisp.org>
33962
33963         Avoid compilation error with cc on OSF/1 5.1.
33964         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
33965         statement, not before.
33966         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33967
33968 2010-01-18  Bruno Haible  <bruno@clisp.org>
33969
33970         Avoid a link error due to the __printf__ symbol.
33971         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
33972         and 2.6.x.
33973         (__format__, __printf__): Remove definitions.
33974         * lib/argp-fmtstream.h: Likewise.
33975         * lib/argp.h: Likewise.
33976         * lib/error.h: Likewise.
33977         * lib/vasnprintf.h: Likewise.
33978         * lib/xprintf.h: Likewise.
33979         * lib/xvasprintf.h: Likewise.
33980         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33981
33982 2010-01-18  Bruno Haible  <bruno@clisp.org>
33983
33984         Tests for module 'tanl'.
33985         * modules/tanl-tests: New file.
33986         * tests/test-tanl.c: New file.
33987
33988         Tests for module 'sqrtl'.
33989         * modules/sqrtl-tests: New file.
33990         * tests/test-sqrtl.c: New file.
33991
33992         Tests for module 'sinl'.
33993         * modules/sinl-tests: New file.
33994         * tests/test-sinl.c: New file.
33995
33996         Tests for module 'logl'.
33997         * modules/logl-tests: New file.
33998         * tests/test-logl.c: New file.
33999
34000         Tests for module 'expl'.
34001         * modules/expl-tests: New file.
34002         * tests/test-expl.c: New file.
34003
34004         Tests for module 'cosl'.
34005         * modules/cosl-tests: New file.
34006         * tests/test-cosl.c: New file.
34007
34008         Tests for module 'atanl'.
34009         * modules/atanl-tests: New file.
34010         * tests/test-atanl.c: New file.
34011
34012         Tests for module 'asinl'.
34013         * modules/asinl-tests: New file.
34014         * tests/test-asinl.c: New file.
34015
34016         Tests for module 'acosl'.
34017         * modules/acosl-tests: New file.
34018         * tests/test-acosl.c: New file.
34019
34020         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
34021         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
34022         tanl): Use the standard gnulib idiom.
34023         * lib/cosl.c: Don't include trigl.c and sincosl.c.
34024         * lib/sinl.c: Likewise.
34025         * lib/tanl.c: Don't include trigl.c.
34026         (kernel_tanl): Make static.
34027         * lib/sincosl.c: Include trigl.h first.
34028         * lib/trigl.c: Likewise.
34029         * m4/acosl.m4: New file.
34030         * m4/asinl.m4: New file.
34031         * m4/atanl.m4: New file.
34032         * m4/cosl.m4: New file.
34033         * m4/expl.m4: New file.
34034         * m4/logl.m4: New file.
34035         * m4/sinl.m4: New file.
34036         * m4/sqrtl.m4: New file.
34037         * m4/tanl.m4: New file.
34038         * m4/mathl.m4: Remove file.
34039         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
34040         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
34041         Don't initialize GNULIB_MATHL.
34042         * modules/acosl: New file.
34043         * modules/asinl: New file.
34044         * modules/atanl: New file.
34045         * modules/cosl: New file.
34046         * modules/expl: New file.
34047         * modules/logl: New file.
34048         * modules/sinl: New file.
34049         * modules/sqrtl: New file.
34050         * modules/tanl: New file.
34051         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
34052         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
34053         substitute GNULIB_MATHL.
34054         * modules/mathl: Rewritten.
34055         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
34056         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
34057         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
34058         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
34059         * doc/posix-functions/expl.texi: Mention the 'expl' module.
34060         * doc/posix-functions/logl.texi: Mention the 'logl' module.
34061         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
34062         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
34063         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
34064
34065 2010-01-18  Bruno Haible  <bruno@clisp.org>
34066
34067         sqrt: Make gl_FUNC_SQRT requirable.
34068         * m4/sqrt.m4: New file.
34069         * modules/sqrt (Files): Add it.
34070         (configure.ac): Invoke gl_FUNC_SQRT.
34071
34072 2010-01-18  Bruno Haible  <bruno@clisp.org>
34073
34074         New modules for common <math.h> functions.
34075         * m4/mathfunc.m4: New file.
34076         * modules/acos: New file.
34077         * modules/asin: New file.
34078         * modules/atan: New file.
34079         * modules/atan2: New file.
34080         * modules/cbrt: New file.
34081         * modules/copysign: New file.
34082         * modules/cos: New file.
34083         * modules/cosh: New file.
34084         * modules/erf: New file.
34085         * modules/erfc: New file.
34086         * modules/exp: New file.
34087         * modules/fabs: New file.
34088         * modules/fmod: New file.
34089         * modules/hypot: New file.
34090         * modules/j0: New file.
34091         * modules/j1: New file.
34092         * modules/jn: New file.
34093         * modules/ldexp: New file.
34094         * modules/lgamma: New file.
34095         * modules/log: New file.
34096         * modules/log10: New file.
34097         * modules/log1p: New file.
34098         * modules/logb: New file.
34099         * modules/modf: New file.
34100         * modules/nextafter: New file.
34101         * modules/pow: New file.
34102         * modules/remainder: New file.
34103         * modules/rint: New file.
34104         * modules/sin: New file.
34105         * modules/sinh: New file.
34106         * modules/sqrt: New file.
34107         * modules/tan: New file.
34108         * modules/tanh: New file.
34109         * modules/y0: New file.
34110         * modules/y1: New file.
34111         * modules/yn: New file.
34112         * doc/posix-functions/acos.texi: Mention the 'acos' module.
34113         * doc/posix-functions/asin.texi: Mention the 'asin' module.
34114         * doc/posix-functions/atan.texi: Mention the 'atan' module.
34115         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
34116         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
34117         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
34118         * doc/posix-functions/cos.texi: Mention the 'cos' module.
34119         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
34120         * doc/posix-functions/erf.texi: Mention the 'erf' module.
34121         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
34122         * doc/posix-functions/exp.texi: Mention the 'exp' module.
34123         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
34124         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
34125         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
34126         * doc/posix-functions/j0.texi: Mention the 'j0' module.
34127         * doc/posix-functions/j1.texi: Mention the 'j1' module.
34128         * doc/posix-functions/jn.texi: Mention the 'jn' module.
34129         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
34130         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
34131         * doc/posix-functions/log.texi: Mention the 'log' module.
34132         * doc/posix-functions/log10.texi: Mention the 'log10' module.
34133         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
34134         * doc/posix-functions/logb.texi: Mention the 'logb' module.
34135         * doc/posix-functions/modf.texi: Mention the 'modf' module.
34136         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
34137         * doc/posix-functions/pow.texi: Mention the 'pow' module.
34138         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
34139         * doc/posix-functions/rint.texi: Mention the 'rint' module.
34140         * doc/posix-functions/sin.texi: Mention the 'sin' module.
34141         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
34142         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
34143         * doc/posix-functions/tan.texi: Mention the 'tan' module.
34144         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
34145         * doc/posix-functions/y0.texi: Mention the 'y0' module.
34146         * doc/posix-functions/y1.texi: Mention the 'y1' module.
34147         * doc/posix-functions/yn.texi: Mention the 'yn' module.
34148
34149 2010-01-18  Jim Meyering  <meyering@redhat.com>
34150
34151         ignore-value: relax license to LGPLv2+
34152         * modules/ignore-value (License): Relax to LGPLv2+.
34153
34154         getdate: don't leak when TZ contains two or more '"'s
34155         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
34156         double quote in TZ after the first one.
34157
34158         readtokens: do not leak internal token_lengths buffer
34159         * lib/readtokens.c (readtokens): Free the local, lengths,
34160         when the supplied "token_lengths" parameter is NULL.
34161
34162 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34163
34164         Fix a couple of missing LIBTHREAD link failures on AIX.
34165         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
34166         $(LIBTHREAD).
34167         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
34168
34169         Link test-poll against INET_PTON_LIB.
34170         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
34171         for inet_pton on Solaris 10.
34172
34173 2010-01-17  Bruno Haible  <bruno@clisp.org>
34174
34175         unistdio/*-sprintf: Fix typo in module description.
34176         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
34177         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
34178         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
34179         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
34180         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
34181         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
34182         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
34183         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34184
34185 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34186
34187         gnulib-tool: fix filelist for AIX, HP-UX ksh.
34188         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
34189         variables in shell case patterns, for AIX and HP-UX ksh.
34190
34191         Split large sed scripts, for HP-UX sed.
34192         * modules/stdio: Split sed scripts around 50 sed commands,
34193         to avoid HP-UX limit of 99 commands, in the near future.
34194         * modules/string: Likewise.
34195         * modules/unistd: Likewise.
34196
34197         gnulib-tool: avoid writing in the current directory.
34198         * gnulib-tool (func_emit_lib_Makefile_am)
34199         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
34200         not in the current directory, so concurrent gnulib-tool
34201         instances do not interfere.
34202
34203 2010-01-16  Jim Meyering  <meyering@redhat.com>
34204
34205         doc: update users.txt
34206         * users.txt: Add grep.
34207         (diffutils, gzip): Update URLs.
34208
34209 2010-01-12  Bruno Haible  <bruno@clisp.org>
34210
34211         posix_spawn: Avoid test failure on Cygwin.
34212         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
34213         characters.
34214         Reported by Simon Josefsson.
34215
34216 2010-01-12  Bruno Haible  <bruno@clisp.org>
34217
34218         * tests/test-cond.c (main): When skipping the test, show the reason.
34219
34220 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34221
34222         * lib/striconv.c (str_cd_iconv): Avoid if before free.
34223
34224 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34225
34226         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
34227         VC_LIST_ALWAYS_EXCLUDE_REGEX.
34228
34229 2010-01-12  Eric Blake  <ebb9@byu.net>
34230
34231         build: guarantee AS_VAR_IF
34232         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
34233         (gl_AS_VAR_IF): Move...
34234         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
34235         Reported by Simon Josefsson.
34236
34237 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34238
34239         * lib/stdio.in.h: Fix typo.
34240
34241 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34242
34243         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
34244         libgpg-error.
34245
34246 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34247
34248         * tests/test-xalloc-die.sh: Use $EXEEXT.
34249
34250 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34251             Bruno Haible  <bruno@clisp.org>
34252
34253         getlogin, getlogin_r: Avoid test failure.
34254         * tests/test-getlogin.c: Include <stdio.h>.
34255         (main): Skip the test when the function fails because stdin is not a
34256         tty.
34257         * tests/test-getlogin_r.c: Include <stdio.h>.
34258         (main): Skip the test when the function fails because stdin is not a
34259         tty.
34260
34261 2010-01-11  Eric Blake  <ebb9@byu.net>
34262
34263         tests: avoid more large file warnings
34264         * tests/test-fflush.c: Avoid warning about ftell use.
34265         * tests/test-fseek.c: Avoid warning about fseek use.
34266
34267 2010-01-10  Bruno Haible  <bruno@clisp.org>
34268
34269         nproc: Work better on Linux when /proc and /sys are not mounted.
34270         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
34271         as lower bound when, on glibc/Linux systems,
34272         sysconf (_SC_NPROCESSORS_CONF) returns 1.
34273         Suggested by Pádraig Brady <P@draigbrady.com>.
34274         Reported by Dmitry V. Levin <ldv@altlinux.org>.
34275
34276         nproc: Refactor.
34277         * lib/nproc.c (num_processors_via_affinity_mask): New function,
34278         extracted from num_processors.
34279         (num_processors): Call it.
34280
34281 2010-01-11  Jim Meyering  <meyering@redhat.com>
34282
34283         utimecmp: avoid new warning from upcoming gcc-4.5.0
34284         * lib/utimecmp.c (BILLION): Define using #define rather than an
34285         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
34286
34287 2010-01-11  Eric Blake  <ebb9@byu.net>
34288
34289         math: add portability warnings for classification macros
34290         * modules/math (Depends-on): Add warn-on-use.
34291         (Makefile.am): Provide new substitutions.
34292         * m4/math_h.m4 (gl_MATH_H): Require inline.
34293         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
34294         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
34295         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
34296         implement warnings.
34297
34298         unistd: warn on use of environ without module
34299         * modules/unistd (Depends-on): Add warn-on-use.
34300         (Makefile.am): Provide new substitutions.
34301         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
34302         * lib/unistd.in.h (environ): Wrap with a warning helper function.
34303
34304         stdio: warn on suspicious uses
34305         * modules/stdio (Depends-on): Add warn-on-use.
34306         (Makefile.am): Provide new substitutions.
34307         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
34308         fseeko.
34309         * lib/stdio.in.h (gets): Always warn on use.
34310         (fseek, ftell): Adjust when warnings are issued, and honor
34311         _GL_NO_LARGE_FILES as a way to silence the warning.
34312         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
34313         any warning about large file offsets.
34314         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
34315         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
34316         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
34317         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
34318         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
34319         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
34320         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
34321         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
34322
34323         warn-on-use: new module
34324         * modules/warn-on-use: New file.
34325         * build-aux/warn-on-use.h: Likewise.
34326         * m4/warn-on-use.m4: Likewise.
34327         * MODULES.html.sh (Support for building): Mention it.
34328
34329 2010-01-10  Bruno Haible  <bruno@clisp.org>
34330
34331         Tests for module 'unistr/u32-strdup'.
34332         * modules/unistr/u32-strdup-tests: New file.
34333         * tests/unistr/test-u32-strdup.c: New file.
34334
34335         Tests for module 'unistr/u16-strdup'.
34336         * modules/unistr/u16-strdup-tests: New file.
34337         * tests/unistr/test-u16-strdup.c: New file.
34338
34339         Tests for module 'unistr/u8-strdup'.
34340         * modules/unistr/u8-strdup-tests: New file.
34341         * tests/unistr/test-u8-strdup.c: New file.
34342         * tests/unistr/test-strdup.h: New file.
34343
34344         Tests for module 'unistr/u32-strncmp'.
34345         * modules/unistr/u32-strncmp-tests: New file.
34346         * tests/unistr/test-u32-strncmp.c: New file.
34347
34348         Tests for module 'unistr/u16-strncmp'.
34349         * modules/unistr/u16-strncmp-tests: New file.
34350         * tests/unistr/test-u16-strncmp.c: New file.
34351
34352         Tests for module 'unistr/u8-strncmp'.
34353         * modules/unistr/u8-strncmp-tests: New file.
34354         * tests/unistr/test-u8-strncmp.c: New file.
34355         * tests/unistr/test-strncmp.h: New file.
34356
34357         Tests for module 'unistr/u32-strcoll'.
34358         * modules/unistr/u32-strcoll-tests: New file.
34359         * tests/unistr/test-u32-strcoll.c: New file.
34360
34361         Tests for module 'unistr/u16-strcoll'.
34362         * modules/unistr/u16-strcoll-tests: New file.
34363         * tests/unistr/test-u16-strcoll.c: New file.
34364
34365         Tests for module 'unistr/u8-strcoll'.
34366         * modules/unistr/u8-strcoll-tests: New file.
34367         * tests/unistr/test-u8-strcoll.c: New file.
34368
34369         Tests for module 'unistr/u32-strcmp'.
34370         * modules/unistr/u32-strcmp-tests: New file.
34371         * tests/unistr/test-u32-strcmp.c: New file.
34372         * tests/unistr/test-u32-strcmp.h: New file.
34373
34374         Tests for module 'unistr/u16-strcmp'.
34375         * modules/unistr/u16-strcmp-tests: New file.
34376         * tests/unistr/test-u16-strcmp.c: New file.
34377         * tests/unistr/test-u16-strcmp.h: New file.
34378
34379         Tests for module 'unistr/u8-strcmp'.
34380         * modules/unistr/u8-strcmp-tests: New file.
34381         * tests/unistr/test-u8-strcmp.c: New file.
34382         * tests/unistr/test-u8-strcmp.h: New file.
34383         * tests/unistr/test-strcmp.h: New file.
34384
34385         Tests for module 'unistr/u32-strncat'.
34386         * modules/unistr/u32-strncat-tests: New file.
34387         * tests/unistr/test-u32-strncat.c: New file.
34388
34389         Tests for module 'unistr/u16-strncat'.
34390         * modules/unistr/u16-strncat-tests: New file.
34391         * tests/unistr/test-u16-strncat.c: New file.
34392
34393         Tests for module 'unistr/u8-strncat'.
34394         * modules/unistr/u8-strncat-tests: New file.
34395         * tests/unistr/test-u8-strncat.c: New file.
34396         * tests/unistr/test-strncat.h: New file.
34397
34398         Tests for module 'unistr/u32-strcat'.
34399         * modules/unistr/u32-strcat-tests: New file.
34400         * tests/unistr/test-u32-strcat.c: New file.
34401
34402         Tests for module 'unistr/u16-strcat'.
34403         * modules/unistr/u16-strcat-tests: New file.
34404         * tests/unistr/test-u16-strcat.c: New file.
34405
34406         Tests for module 'unistr/u8-strcat'.
34407         * modules/unistr/u8-strcat-tests: New file.
34408         * tests/unistr/test-u8-strcat.c: New file.
34409         * tests/unistr/test-strcat.h: New file.
34410
34411         Tests for module 'unistr/u32-stpncpy'.
34412         * modules/unistr/u32-stpncpy-tests: New file.
34413         * tests/unistr/test-u32-stpncpy.c: New file.
34414
34415         Tests for module 'unistr/u16-stpncpy'.
34416         * modules/unistr/u16-stpncpy-tests: New file.
34417         * tests/unistr/test-u16-stpncpy.c: New file.
34418
34419         Tests for module 'unistr/u8-stpncpy'.
34420         * modules/unistr/u8-stpncpy-tests: New file.
34421         * tests/unistr/test-u8-stpncpy.c: New file.
34422         * tests/unistr/test-stpncpy.h: New file.
34423
34424         Tests for module 'unistr/u32-strncpy'.
34425         * modules/unistr/u32-strncpy-tests: New file.
34426         * tests/unistr/test-u32-strncpy.c: New file.
34427
34428         Tests for module 'unistr/u16-strncpy'.
34429         * modules/unistr/u16-strncpy-tests: New file.
34430         * tests/unistr/test-u16-strncpy.c: New file.
34431
34432         Tests for module 'unistr/u8-strncpy'.
34433         * modules/unistr/u8-strncpy-tests: New file.
34434         * tests/unistr/test-u8-strncpy.c: New file.
34435         * tests/unistr/test-strncpy.h: New file.
34436
34437         Tests for module 'unistr/u32-stpcpy'.
34438         * modules/unistr/u32-stpcpy-tests: New file.
34439         * tests/unistr/test-u32-stpcpy.c: New file.
34440
34441         Tests for module 'unistr/u16-stpcpy'.
34442         * modules/unistr/u16-stpcpy-tests: New file.
34443         * tests/unistr/test-u16-stpcpy.c: New file.
34444
34445         Tests for module 'unistr/u8-stpcpy'.
34446         * modules/unistr/u8-stpcpy-tests: New file.
34447         * tests/unistr/test-u8-stpcpy.c: New file.
34448         * tests/unistr/test-stpcpy.h: New file.
34449
34450         Tests for module 'unistr/u32-strcpy'.
34451         * modules/unistr/u32-strcpy-tests: New file.
34452         * tests/unistr/test-u32-strcpy.c: New file.
34453
34454         Tests for module 'unistr/u16-strcpy'.
34455         * modules/unistr/u16-strcpy-tests: New file.
34456         * tests/unistr/test-u16-strcpy.c: New file.
34457
34458         Tests for module 'unistr/u8-strcpy'.
34459         * modules/unistr/u8-strcpy-tests: New file.
34460         * tests/unistr/test-u8-strcpy.c: New file.
34461         * tests/unistr/test-strcpy.h: New file.
34462
34463         Tests for module 'unistr/u32-strnlen'.
34464         * modules/unistr/u32-strnlen-tests: New file.
34465         * tests/unistr/test-u32-strnlen.c: New file.
34466
34467         Tests for module 'unistr/u16-strnlen'.
34468         * modules/unistr/u16-strnlen-tests: New file.
34469         * tests/unistr/test-u16-strnlen.c: New file.
34470
34471         Tests for module 'unistr/u8-strnlen'.
34472         * modules/unistr/u8-strnlen-tests: New file.
34473         * tests/unistr/test-u8-strnlen.c: New file.
34474         * tests/unistr/test-strnlen.h: New file.
34475
34476         Tests for module 'unistr/u32-strlen'.
34477         * modules/unistr/u32-strlen-tests: New file.
34478         * tests/unistr/test-u32-strlen.c: New file.
34479
34480         Tests for module 'unistr/u16-strlen'.
34481         * modules/unistr/u16-strlen-tests: New file.
34482         * tests/unistr/test-u16-strlen.c: New file.
34483
34484         Tests for module 'unistr/u8-strlen'.
34485         * modules/unistr/u8-strlen-tests: New file.
34486         * tests/unistr/test-u8-strlen.c: New file.
34487
34488         Tests for module 'unistr/u32-prev'.
34489         * modules/unistr/u32-prev-tests: New file.
34490         * tests/unistr/test-u32-prev.c: New file.
34491
34492         Tests for module 'unistr/u16-prev'.
34493         * modules/unistr/u16-prev-tests: New file.
34494         * tests/unistr/test-u16-prev.c: New file.
34495
34496         Tests for module 'unistr/u8-prev'.
34497         * modules/unistr/u8-prev-tests: New file.
34498         * tests/unistr/test-u8-prev.c: New file.
34499
34500         Tests for module 'unistr/u32-next'.
34501         * modules/unistr/u32-next-tests: New file.
34502         * tests/unistr/test-u32-next.c: New file.
34503
34504         Tests for module 'unistr/u16-next'.
34505         * modules/unistr/u16-next-tests: New file.
34506         * tests/unistr/test-u16-next.c: New file.
34507
34508         Tests for module 'unistr/u8-next'.
34509         * modules/unistr/u8-next-tests: New file.
34510         * tests/unistr/test-u8-next.c: New file.
34511
34512         Tests for module 'unistr/u32-strmbtouc'.
34513         * modules/unistr/u32-strmbtouc-tests: New file.
34514         * tests/unistr/test-u32-strmbtouc.c: New file.
34515
34516         Tests for module 'unistr/u16-strmbtouc'.
34517         * modules/unistr/u16-strmbtouc-tests: New file.
34518         * tests/unistr/test-u16-strmbtouc.c: New file.
34519
34520         Tests for module 'unistr/u8-strmbtouc'.
34521         * modules/unistr/u8-strmbtouc-tests: New file.
34522         * tests/unistr/test-u8-strmbtouc.c: New file.
34523
34524         Tests for module 'unistr/u32-strmblen'.
34525         * modules/unistr/u32-strmblen-tests: New file.
34526         * tests/unistr/test-u32-strmblen.c: New file.
34527
34528         Tests for module 'unistr/u16-strmblen'.
34529         * modules/unistr/u16-strmblen-tests: New file.
34530         * tests/unistr/test-u16-strmblen.c: New file.
34531
34532         Tests for module 'unistr/u8-strmblen'.
34533         * modules/unistr/u8-strmblen-tests: New file.
34534         * tests/unistr/test-u8-strmblen.c: New file.
34535
34536         Tests for module 'unistr/u32-cpy-alloc'.
34537         * modules/unistr/u32-cpy-alloc-tests: New file.
34538         * tests/unistr/test-u32-cpy-alloc.c: New file.
34539
34540         Tests for module 'unistr/u16-cpy-alloc'.
34541         * modules/unistr/u16-cpy-alloc-tests: New file.
34542         * tests/unistr/test-u16-cpy-alloc.c: New file.
34543
34544         Tests for module 'unistr/u8-cpy-alloc'.
34545         * modules/unistr/u8-cpy-alloc-tests: New file.
34546         * tests/unistr/test-u8-cpy-alloc.c: New file.
34547         * tests/unistr/test-cpy-alloc.h: New file.
34548
34549         Tests for module 'unistr/u32-mbsnlen'.
34550         * modules/unistr/u32-mbsnlen-tests: New file.
34551         * tests/unistr/test-u32-mbsnlen.c: New file.
34552
34553         Tests for module 'unistr/u16-mbsnlen'.
34554         * modules/unistr/u16-mbsnlen-tests: New file.
34555         * tests/unistr/test-u16-mbsnlen.c: New file.
34556
34557         Tests for module 'unistr/u8-mbsnlen'.
34558         * modules/unistr/u8-mbsnlen-tests: New file.
34559         * tests/unistr/test-u8-mbsnlen.c: New file.
34560
34561         Tests for module 'unistr/u32-chr'.
34562         * modules/unistr/u32-chr-tests: New file.
34563         * tests/unistr/test-u32-chr.c: New file.
34564
34565         Tests for module 'unistr/u16-chr'.
34566         * modules/unistr/u16-chr-tests: New file.
34567         * tests/unistr/test-u16-chr.c: New file.
34568
34569         Tests for module 'unistr/u8-chr'.
34570         * modules/unistr/u8-chr-tests: New file.
34571         * tests/unistr/test-u8-chr.c: New file.
34572         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
34573
34574         Tests for module 'unistr/u32-cmp2'.
34575         * modules/unistr/u32-cmp2-tests: New file.
34576         * tests/unistr/test-u32-cmp2.c: New file.
34577
34578         Tests for module 'unistr/u16-cmp2'.
34579         * modules/unistr/u16-cmp2-tests: New file.
34580         * tests/unistr/test-u16-cmp2.c: New file.
34581
34582         Tests for module 'unistr/u8-cmp2'.
34583         * modules/unistr/u8-cmp2-tests: New file.
34584         * tests/unistr/test-u8-cmp2.c: New file.
34585         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
34586
34587         Tests for module 'unistr/u32-cmp'.
34588         * modules/unistr/u32-cmp-tests: New file.
34589         * tests/unistr/test-u32-cmp.c: New file.
34590
34591         Tests for module 'unistr/u16-cmp'.
34592         * modules/unistr/u16-cmp-tests: New file.
34593         * tests/unistr/test-u16-cmp.c: New file.
34594
34595         Tests for module 'unistr/u8-cmp'.
34596         * modules/unistr/u8-cmp-tests: New file.
34597         * tests/unistr/test-u8-cmp.c: New file.
34598         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
34599
34600         Tests for module 'unistr/u32-set'.
34601         * modules/unistr/u32-set-tests: New file.
34602         * tests/unistr/test-u32-set.c: New file.
34603
34604         Tests for module 'unistr/u16-set'.
34605         * modules/unistr/u16-set-tests: New file.
34606         * tests/unistr/test-u16-set.c: New file.
34607
34608         Tests for module 'unistr/u8-set'.
34609         * modules/unistr/u8-set-tests: New file.
34610         * tests/unistr/test-u8-set.c: New file.
34611         * tests/unistr/test-set.h: New file.
34612
34613         Tests for module 'unistr/u32-move'.
34614         * modules/unistr/u32-move-tests: New file.
34615         * tests/unistr/test-u32-move.c: New file.
34616
34617         Tests for module 'unistr/u16-move'.
34618         * modules/unistr/u16-move-tests: New file.
34619         * tests/unistr/test-u16-move.c: New file.
34620
34621         Tests for module 'unistr/u8-move'.
34622         * modules/unistr/u8-move-tests: New file.
34623         * tests/unistr/test-u8-move.c: New file.
34624         * tests/unistr/test-move.h: New file.
34625
34626         Tests for module 'unistr/u32-cpy'.
34627         * modules/unistr/u32-cpy-tests: New file.
34628         * tests/unistr/test-u32-cpy.c: New file.
34629
34630         Tests for module 'unistr/u16-cpy'.
34631         * modules/unistr/u16-cpy-tests: New file.
34632         * tests/unistr/test-u16-cpy.c: New file.
34633
34634         Tests for module 'unistr/u8-cpy'.
34635         * modules/unistr/u8-cpy-tests: New file.
34636         * tests/unistr/test-u8-cpy.c: New file.
34637         * tests/unistr/test-cpy.h: New file.
34638
34639 2010-01-09  Bruno Haible  <bruno@clisp.org>
34640
34641         Tests for module 'unistr/u32-uctomb'.
34642         * modules/unistr/u32-uctomb-tests: New file.
34643         * tests/unistr/test-u32-uctomb.c: New file.
34644
34645         Tests for module 'unistr/u16-uctomb'.
34646         * modules/unistr/u16-uctomb-tests: New file.
34647         * tests/unistr/test-u16-uctomb.c: New file.
34648
34649         Tests for module 'unistr/u8-uctomb'.
34650         * modules/unistr/u8-uctomb-tests: New file.
34651         * tests/unistr/test-u8-uctomb.c: New file.
34652
34653         Tests for module 'unistr/u32-mbtoucr'.
34654         * modules/unistr/u32-mbtoucr-tests: New file.
34655         * tests/unistr/test-u32-mbtoucr.c: New file.
34656
34657         Tests for module 'unistr/u16-mbtoucr'.
34658         * modules/unistr/u16-mbtoucr-tests: New file.
34659         * tests/unistr/test-u16-mbtoucr.c: New file.
34660
34661         Tests for module 'unistr/u8-mbtoucr'.
34662         * modules/unistr/u8-mbtoucr-tests: New file.
34663         * tests/unistr/test-u8-mbtoucr.c: New file.
34664
34665         Tests for module 'unistr/u32-mbtouc'.
34666         * modules/unistr/u32-mbtouc-tests: New file.
34667         * tests/unistr/test-u32-mbtouc.c: New file.
34668
34669         Tests for module 'unistr/u16-mbtouc'.
34670         * modules/unistr/u16-mbtouc-tests: New file.
34671         * tests/unistr/test-u16-mbtouc.c: New file.
34672
34673         Tests for module 'unistr/u8-mbtouc'.
34674         * modules/unistr/u8-mbtouc-tests: New file.
34675         * tests/unistr/test-u8-mbtouc.c: New file.
34676
34677         Tests for module 'unistr/u32-mbtouc-unsafe'.
34678         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
34679         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
34680         * tests/unistr/test-u32-mbtouc.h: New file.
34681
34682         Tests for module 'unistr/u16-mbtouc-unsafe'.
34683         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
34684         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
34685         * tests/unistr/test-u16-mbtouc.h: New file.
34686
34687         Tests for module 'unistr/u8-mbtouc-unsafe'.
34688         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
34689         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
34690         * tests/unistr/test-u8-mbtouc.h: New file.
34691
34692         Tests for module 'unistr/u32-mblen'.
34693         * modules/unistr/u32-mblen-tests: New file.
34694         * tests/unistr/test-u32-mblen.c: New file.
34695
34696         Tests for module 'unistr/u16-mblen'.
34697         * modules/unistr/u16-mblen-tests: New file.
34698         * tests/unistr/test-u16-mblen.c: New file.
34699
34700         Tests for module 'unistr/u8-mblen'.
34701         * modules/unistr/u8-mblen-tests: New file.
34702         * tests/unistr/test-u8-mblen.c: New file.
34703
34704         Tests for module 'unistr/u32-to-u16'.
34705         * modules/unistr/u32-to-u16-tests: New file.
34706         * tests/unistr/test-u32-to-u16.c: New file.
34707
34708         Tests for module 'unistr/u32-to-u8'.
34709         * modules/unistr/u32-to-u8-tests: New file.
34710         * tests/unistr/test-u32-to-u8.c: New file.
34711
34712         Tests for module 'unistr/u16-to-u32'.
34713         * modules/unistr/u16-to-u32-tests: New file.
34714         * tests/unistr/test-u16-to-u32.c: New file.
34715
34716         Tests for module 'unistr/u16-to-u8'.
34717         * modules/unistr/u16-to-u8-tests: New file.
34718         * tests/unistr/test-u16-to-u8.c: New file.
34719
34720         Tests for module 'unistr/u8-to-u32'.
34721         * modules/unistr/u8-to-u32-tests: New file.
34722         * tests/unistr/test-u8-to-u32.c: New file.
34723
34724         Tests for module 'unistr/u8-to-u16'.
34725         * modules/unistr/u8-to-u16-tests: New file.
34726         * tests/unistr/test-u8-to-u16.c: New file.
34727
34728         Tests for module 'unistr/u32-check'.
34729         * modules/unistr/u32-check-tests: New file.
34730         * tests/unistr/test-u32-check.c: New file.
34731
34732         Tests for module 'unistr/u16-check'.
34733         * modules/unistr/u16-check-tests: New file.
34734         * tests/unistr/test-u16-check.c: New file.
34735
34736         Tests for module 'unistr/u8-check'.
34737         * modules/unistr/u8-check-tests: New file.
34738         * tests/unistr/test-u8-check.c: New file.
34739
34740         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
34741         (category_equals): New function.
34742         (main): Add more tests.
34743         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
34744
34745         * tests/unictype/test-bidi_byname.c (main): Add more tests.
34746
34747 2010-01-10  Bruno Haible  <bruno@clisp.org>
34748
34749         unistr/u*-strcoll: Try harder to distinguish different strings.
34750         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
34751         compare s1 and s2 to see if they are different.
34752
34753 2010-01-10  Bruno Haible  <bruno@clisp.org>
34754
34755         unistr/u*-stpncpy: Fix the return value.
34756         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
34757         description of the return value consistent with stpncpy in glibc.
34758         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
34759         written non-NUL unit.
34760
34761 2010-01-10  Bruno Haible  <bruno@clisp.org>
34762
34763         unistr/u*-next: Add missing dependencies.
34764         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
34765         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
34766         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
34767
34768 2010-01-10  Bruno Haible  <bruno@clisp.org>
34769
34770         unistr/u8-mbsnlen: Fix return value for incomplete character.
34771         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
34772         u8_mblen.
34773         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
34774         Remove unistr/u8-mblen.
34775         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
34776         u16_mblen.
34777         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
34778         Remove unistr/u16-mblen.
34779
34780 2010-01-10  Bruno Haible  <bruno@clisp.org>
34781
34782         wchar: Fix compilation error when <wchar.h> is used from coreutils.
34783         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
34784         Reported by Brian Gough <bjg@gnu.org> and
34785         Chris Clayton <chris2553@googlemail.com> via
34786         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
34787
34788 2010-01-09  Bruno Haible  <bruno@clisp.org>
34789
34790         unistr/u16-to-u32: Reject invalid input.
34791         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
34792         u16_mbtouc.
34793         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
34794         Remove unistr/u16-mbtouc.
34795
34796         unistr/u16-to-u8: Reject invalid input.
34797         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
34798         u16_mbtouc.
34799         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
34800         Remove unistr/u16-mbtouc.
34801
34802         unistr/u8-to-u32: Reject invalid input.
34803         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
34804         u8_mbtouc.
34805         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
34806         Remove unistr/u8-mbtouc.
34807
34808         unistr/u8-to-u16: Reject invalid input.
34809         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
34810         u8_mbtouc.
34811         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
34812         Remove unistr/u8-mbtouc.
34813
34814 2010-01-09  Bruno Haible  <bruno@clisp.org>
34815
34816         Tests for module 'getlogin'.
34817         * modules/getlogin-tests: New file.
34818         * tests/test-getlogin.c: New file.
34819
34820         New module 'getlogin'.
34821         * lib/unistd.in.h (getlogin): New declaration.
34822         * lib/getlogin.c: New file.
34823         * m4/getlogin.m4: New file.
34824         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
34825         HAVE_GETLOGIN.
34826         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
34827         HAVE_GETLOGIN.
34828         * modules/getlogin: New file.
34829         * doc/posix-functions/getlogin.texi: Mention the new module.
34830         Reported by John W. Eaton <jwe@gnu.org>.
34831
34832 2010-01-09  Bruno Haible  <bruno@clisp.org>
34833
34834         getlogin_r: Support for native Windows.
34835         * lib/getlogin_r.c: Include <windows.h>
34836         (getlogin_r): Implement for native Windows.
34837         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
34838         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
34839         via John W. Eaton <jwe@gnu.org>.
34840
34841 2010-01-09  Bruno Haible  <bruno@clisp.org>
34842
34843         getlogin_r: Small fixes.
34844         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
34845         succeeds.
34846         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
34847         before testing whether getlogin_r is declared. No need to set
34848         HAVE_DECL_GETLOGIN_R to 1.
34849         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
34850
34851 2010-01-09  Bruno Haible  <bruno@clisp.org>
34852
34853         * lib/unistd.in.h (getlogin_r): Add comment.
34854
34855 2010-01-09  Bruno Haible  <bruno@clisp.org>
34856
34857         Tests for module 'getlogin_r'.
34858         * modules/getlogin_r-tests: New file.
34859         * tests/test-getlogin_r.c: New file.
34860
34861 2010-01-09  Jim Meyering  <meyering@redhat.com>
34862
34863         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
34864         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
34865         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
34866
34867 2010-01-08  Simon Josefsson  <simon@josefsson.org>
34868
34869         * lib/dup2.c (rpl_dup2): Improve comment.
34870
34871 2010-01-08  Eric Blake  <ebb9@byu.net>
34872
34873         maint.mk: allow packages to add makefile @@ exceptions
34874         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
34875         (sc_makefile_check): Rename...
34876         (sc_makefile_at_at_check): ...to this, and use hook.
34877
34878         dup2: work around mingw bug
34879         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
34880         Reported by Simon Josefsson.
34881
34882 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
34883
34884         glob: Fix C++ compilation.
34885         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
34886         C++.
34887
34888 2010-01-07  Bruno Haible  <bruno@clisp.org>
34889
34890         Fix indentation of wctype.in.h, broken since 2007-01-06.
34891         * lib/wctype.in.h: Fix indentation of preprocessor directives.
34892
34893 2010-01-07  Bruno Haible  <bruno@clisp.org>
34894
34895         mbslen: Avoid collision with system function.
34896         * lib/string.in.h [MirBSD]: Include <wchar.h>.
34897         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
34898         * m4/mbslen.m4: New file.
34899         * modules/mbslen (Files): Add it.
34900         (configure.ac): Invoke gl_MBSLEN.
34901         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
34902         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
34903         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
34904         via Ian Beckwith <ianb@erislabs.net>.
34905
34906 2010-01-07  Bruno Haible  <bruno@clisp.org>
34907
34908         dirent: Document the last fix.
34909         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
34910
34911 2010-01-07  Bruno Haible  <bruno@clisp.org>
34912
34913         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
34914         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
34915         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
34916         va_list are defined.
34917         * doc/posix-headers/stdio.texi: Document the bug of missing types.
34918         Reported by Eric Blake.
34919
34920 2010-01-07  Bruno Haible  <bruno@clisp.org>
34921
34922         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
34923         * modules/xlist (Depends-on): Add 'list',
34924         * modules/xoset (Depends-on): Add 'oset'.
34925         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34926
34927 2010-01-07  Bruno Haible  <bruno@clisp.org>
34928
34929         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
34930         * doc/posix-functions/strncasecmp.texi: Likewise.
34931
34932 2010-01-07  Bruno Haible  <bruno@clisp.org>
34933
34934         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
34935
34936 2010-01-07  John W. Eaton  <jwe@octave.org>
34937
34938         wctype: allow C++ use
34939         * lib/wctype.in.h: Add extern "C" block for C++.
34940
34941 2010-01-06  Eric Blake  <ebb9@byu.net>
34942
34943         maint.mk: detect incorrect GFDL usage
34944         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
34945
34946 2010-01-06  Jim Meyering  <meyering@redhat.com>
34947         and Eric Blake  <ebb9@byu.net>
34948
34949         maint.mk: ignore multi-line copyright in NEWS
34950         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
34951
34952 2010-01-06  Eric Blake  <ebb9@byu.net>
34953
34954         select: add missing dependency
34955         * modules/select-tests (Depends-on): Move sockets dependency...
34956         * modules/select (Depends-on): ...here.
34957         Reported by Ian Beckwith.
34958
34959         doc: regenerate INSTALL
34960         * doc/INSTALL: Reflect recent autoconf update.
34961         * doc/INSTALL.ISO: Likewise.
34962         * doc/INSTALL.UTF-8: Likewise.
34963
34964         pread: fix compilation on glibc
34965         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
34966         Reported by Ralf Wildenhues.
34967
34968         dirent: fix test failure
34969         * lib/dirent.in.h (includes): Guarantee ino_t.
34970         Reported by Ralf Wildenhues.
34971
34972 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
34973
34974         linkat, renameat: avoid bad free
34975         * lib/at-func2.c (at_func2): Fix typo.
34976         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
34977
34978 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34979
34980         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
34981         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
34982         to avoid failure of symlink test later.
34983
34984 2010-01-06  Eric Blake  <ebb9@byu.net>
34985
34986         stdio, unistd: guarantee ssize_t
34987         * lib/unistd.in.h (includes): Ensure that types required by POSIX
34988         2008 are exposed when needed.
34989         * lib/stdio.in.h (includes): Likewise.
34990         Reported by Ralf Wildenhues.
34991
34992 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
34993
34994         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
34995         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
34996         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
34997
34998 2010-01-06  Jim Meyering  <meyering@redhat.com>
34999
35000         readtokens: this module *does* require xalloc.h
35001         It uses only functions that were omitted by the old syntax-check rule.
35002         * lib/readtokens.c: Include "xalloc.h" once again.
35003         * modules/readtokens (Depends-on): Add xalloc.
35004         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
35005
35006 2010-01-05  Eric Blake  <ebb9@byu.net>
35007
35008         maint: support 'make announcement' from a VPATH build
35009         * top/maint.mk (announcement): Look for correct NEWS file.
35010
35011 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
35012
35013         utimens (fdutimens): ignore a negative FD, per contract
35014         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
35015         when we have a valid file descriptor.  Otherwise, using a brand
35016         new glibc (with just-patched futimens that now fails with EBADF)
35017         would cause this function to fail with ENOSYS.
35018         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
35019         See also http://bugzilla.redhat.com/552320.
35020
35021 2010-01-05  Eric Blake  <ebb9@byu.net>
35022
35023         strcase: document what it provides
35024         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
35025         gnulib module.
35026         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
35027         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
35028
35029 2010-01-05  Jim Meyering  <meyering@redhat.com>
35030
35031         maint: remove useless inclusions of "xalloc.h"
35032         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
35033         * lib/readtokens.c: Likewise.
35034         * lib/same.c: Likewise.
35035         * modules/getloadavg (Depends-on): Remove xalloc.
35036         * modules/readtokens: Likewise.
35037         * modules/same: Likewise.
35038
35039         maint.mk: include 4 more function names in alloca.h-checking regexp
35040         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
35041         regexp.  Before, we would give a false-positive (saying alloca.h
35042         is included unnecessarily) when the only uses involved omitted symbols.
35043
35044         xalloc.h: use consistent formatting
35045         * lib/xalloc.h: Move declarations to start in the first column.
35046
35047 2010-01-05  Eric Blake  <ebb9@byu.net>
35048
35049         mkdir: avoid xalloc
35050         * lib/mkdir.c (includes): Drop unused header.
35051         Reported by John W. Eaton.
35052
35053 2010-01-04  Jim Meyering  <meyering@redhat.com>
35054
35055         nl_langinfo: avoid configure-time syntax error
35056         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
35057         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
35058         the empty string.  Don't let that provoke a shell syntax error.
35059
35060         regcomp, regexec, fnmatch: avoid array bounds read error
35061         * lib/regcomp.c (build_equiv_class): From glibc:
35062         Use only the low 24 bits of a findidx return value as an index
35063         into the weights array.  Patch by Ulrich Drepper:
35064         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
35065         * lib/regexec.c (check_node_accept_bytes): Likewise.
35066         * lib/fnmatch_loop.c (FCT): Likewise.
35067
35068         regcomp: skip collseq lookup when there are no rules
35069         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
35070         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
35071
35072         regcomp: recognize ill-formed { } expressions
35073         * lib/regcomp.c (parse_dup_op): From glibc:
35074         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
35075
35076         regcomp: fix typo in comment
35077         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
35078         s/satisfy/satisfies/.
35079
35080         regcomp: sync from glibc: remove dead store
35081         * lib/regcomp.c (duplicate_node_closure): Remove useless
35082         search_duplicated_node call and dead store.
35083
35084         regcomp: sync from glibc; always use nl_langinfo
35085         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
35086         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
35087         * modules/regex (Depends-on): Add nl_langinfo.
35088
35089 2010-01-04  Eric Blake  <ebb9@byu.net>
35090
35091         fdopendir: fix configure test
35092         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
35093
35094 2010-01-01  Bruno Haible  <bruno@clisp.org>
35095
35096         wchar: Remove unused configure check.
35097         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
35098
35099 2010-01-01  Eric Blake  <ebb9@byu.net>
35100
35101         headers: make check of system header explicit
35102         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
35103         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
35104         ourselves.
35105         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
35106         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35107         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
35108         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
35109         internals.
35110         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
35111         missing.
35112         Suggested by Bruno Haible.
35113
35114 2010-01-01  Jim Meyering  <meyering@redhat.com>
35115
35116         ChangeLog: tweak to eliminate unnecessary copyright line
35117         * ChangeLog: Remove a copyright line that was mistakenly updated
35118         by today's update-copyright run.  Reported by Eric Blake.
35119
35120         test-update-copyright: don't let envvar setting cause test failure
35121         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35122
35123 2010-01-01  Bruno Haible  <bruno@clisp.org>
35124
35125         localename: Avoid gcc warning.
35126         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
35127         function if it is not used.
35128
35129 2010-01-01  Jim Meyering  <meyering@redhat.com>
35130
35131         update nearly all FSF copyright year lists to include 2010
35132         Use the same procedure as for 2009, outlined in
35133         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
35134
35135         version-etc: set COPYRIGHT_YEAR to 2010
35136         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
35137
35138 2009-12-31  Eric Blake  <ebb9@byu.net>
35139
35140         doc: correct availability of cygwin 1.5.x getopt
35141         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
35142         variables.
35143         * doc/posix-functions/opterr.texi (opterr): Likewise.
35144         * doc/posix-functions/optind.texi (optind): Likewise.
35145         * doc/posix-functions/optopt.texi (optopt): Likewise.
35146         * doc/posix-functions/tzname.texi (tzname): Likewise.
35147
35148         openat: update maintainer
35149         * modules/openat (Maintainer): Add myself.
35150
35151         utimens: avoid shadowing warning
35152         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
35153         buffers into one, to avoid shadowing, as well as avoiding a
35154         redundant stat.
35155         Reported by Jim Meyering.
35156
35157         test-dup2: avoid compiler warning
35158         * tests/test-dup2.c (is_inheritable): Only define if used.
35159
35160 2010-01-01  Bruno Haible  <bruno@clisp.org>
35161
35162         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
35163         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
35164         defined, use wctomb instead of wcrtomb.
35165
35166 2010-01-01  Bruno Haible  <bruno@clisp.org>
35167
35168         iconv: Reject native Solaris iconv.
35169         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
35170         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
35171
35172 2009-12-31  Bruno Haible  <bruno@clisp.org>
35173
35174         * tests/test-signal.c (main): Remove test of 'SIG'.
35175
35176 2009-12-31  Bruno Haible  <bruno@clisp.org>
35177
35178         spawn: Fix incomplete fix.
35179         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
35180         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
35181         warnings for GNULIB_POSIXCHECK again.
35182         Reported by Eric Blake.
35183
35184 2009-12-31  Bruno Haible  <bruno@clisp.org>
35185
35186         Avoid namespace pollution on glibc systems.
35187         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
35188         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
35189         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
35190         glibc systems.
35191
35192 2009-12-31  Bruno Haible  <bruno@clisp.org>
35193
35194         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
35195         (gl_REPLACE_WCHAR_H): Turn into a no-op.
35196         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
35197         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
35198         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
35199         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
35200         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
35201
35202 2009-12-31  Bruno Haible  <bruno@clisp.org>
35203
35204         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
35205         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
35206         afterwards.
35207
35208 2009-12-31  Bruno Haible  <bruno@clisp.org>
35209
35210         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
35211         SYS_UTSNAME_H.
35212
35213 2009-12-31  Bruno Haible  <bruno@clisp.org>
35214
35215         spawn: Fix misapplied patch.
35216         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
35217         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
35218         warnings for GNULIB_POSIXCHECK.
35219
35220 2009-12-31  Bruno Haible  <bruno@clisp.org>
35221
35222         times: Update after sys_times changed.
35223         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
35224         * modules/times (Files): Add it.
35225         (configure.ac): Invoke gl_FUNC_TIMES.
35226
35227 2009-12-31  Bruno Haible  <bruno@clisp.org>
35228
35229         Use AC_C_INLINE where necessary.
35230         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
35231         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
35232         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
35233         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
35234         * m4/mbfile.m4 (gl_MBFILE): Likewise.
35235         * m4/mbiter.m4 (gl_MBITER): Likewise.
35236         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
35237         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35238         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
35239         * modules/u64 (configure.ac): Likewise.
35240
35241 2009-12-31  Bruno Haible  <bruno@clisp.org>
35242
35243         Use AC_C_INLINE instead of module 'inline' where possible.
35244         * modules/inline (Description): Clarify purpose.
35245         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
35246         * modules/count-one-bits (Depends-on): Remove inline.
35247         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
35248         * modules/openat (Depends-on): Remove inline.
35249         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
35250         instead of depending on module 'inline'.
35251         * modules/filevercmp (Depends-on, configure.ac): Likewise.
35252         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
35253         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
35254         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
35255         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
35256         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
35257         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
35258         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
35259         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
35260         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
35261         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
35262         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
35263         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
35264         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
35265         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
35266         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
35267         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
35268         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
35269         Likewise.
35270         * modules/unictype/property-ascii-hex-digit (Depends-on,
35271         configure.ac): Likewise.
35272         * modules/unictype/property-bidi-arabic-digit (Depends-on,
35273         configure.ac): Likewise.
35274         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
35275         configure.ac): Likewise.
35276         * modules/unictype/property-bidi-block-separator (Depends-on,
35277         configure.ac): Likewise.
35278         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
35279         configure.ac): Likewise.
35280         * modules/unictype/property-bidi-common-separator (Depends-on,
35281         configure.ac): Likewise.
35282         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
35283         Likewise.
35284         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
35285         configure.ac): Likewise.
35286         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
35287         configure.ac): Likewise.
35288         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
35289         configure.ac): Likewise.
35290         * modules/unictype/property-bidi-european-digit (Depends-on,
35291         configure.ac): Likewise.
35292         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
35293         configure.ac): Likewise.
35294         * modules/unictype/property-bidi-left-to-right (Depends-on,
35295         configure.ac): Likewise.
35296         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
35297         configure.ac): Likewise.
35298         * modules/unictype/property-bidi-other-neutral (Depends-on,
35299         configure.ac): Likewise.
35300         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
35301         Likewise.
35302         * modules/unictype/property-bidi-segment-separator (Depends-on,
35303         configure.ac): Likewise.
35304         * modules/unictype/property-bidi-whitespace (Depends-on,
35305         configure.ac): Likewise.
35306         * modules/unictype/property-combining (Depends-on, configure.ac):
35307         Likewise.
35308         * modules/unictype/property-composite (Depends-on, configure.ac):
35309         Likewise.
35310         * modules/unictype/property-currency-symbol (Depends-on,
35311         configure.ac): Likewise.
35312         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
35313         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
35314         Likewise.
35315         * modules/unictype/property-default-ignorable-code-point (Depends-on,
35316         configure.ac): Likewise.
35317         * modules/unictype/property-deprecated (Depends-on, configure.ac):
35318         Likewise.
35319         * modules/unictype/property-diacritic (Depends-on, configure.ac):
35320         Likewise.
35321         * modules/unictype/property-extender (Depends-on, configure.ac):
35322         Likewise.
35323         * modules/unictype/property-format-control (Depends-on, configure.ac):
35324         Likewise.
35325         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
35326         Likewise.
35327         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
35328         Likewise.
35329         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
35330         Likewise.
35331         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
35332         Likewise.
35333         * modules/unictype/property-hyphen (Depends-on, configure.ac):
35334         Likewise.
35335         * modules/unictype/property-id-continue (Depends-on, configure.ac):
35336         Likewise.
35337         * modules/unictype/property-id-start (Depends-on, configure.ac):
35338         Likewise.
35339         * modules/unictype/property-ideographic (Depends-on, configure.ac):
35340         Likewise.
35341         * modules/unictype/property-ids-binary-operator (Depends-on,
35342         configure.ac): Likewise.
35343         * modules/unictype/property-ids-trinary-operator (Depends-on,
35344         configure.ac): Likewise.
35345         * modules/unictype/property-ignorable-control (Depends-on,
35346         configure.ac): Likewise.
35347         * modules/unictype/property-iso-control (Depends-on, configure.ac):
35348         Likewise.
35349         * modules/unictype/property-join-control (Depends-on, configure.ac):
35350         Likewise.
35351         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
35352         Likewise.
35353         * modules/unictype/property-line-separator (Depends-on, configure.ac):
35354         Likewise.
35355         * modules/unictype/property-logical-order-exception (Depends-on,
35356         configure.ac): Likewise.
35357         * modules/unictype/property-lowercase (Depends-on, configure.ac):
35358         Likewise.
35359         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
35360         * modules/unictype/property-non-break (Depends-on, configure.ac):
35361         Likewise.
35362         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
35363         Likewise.
35364         * modules/unictype/property-numeric (Depends-on, configure.ac):
35365         Likewise.
35366         * modules/unictype/property-other-alphabetic (Depends-on,
35367         configure.ac): Likewise.
35368         * modules/unictype/property-other-default-ignorable-code-point
35369         (Depends-on, configure.ac): Likewise.
35370         * modules/unictype/property-other-grapheme-extend (Depends-on,
35371         configure.ac): Likewise.
35372         * modules/unictype/property-other-id-continue (Depends-on,
35373         configure.ac): Likewise.
35374         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
35375         Likewise.
35376         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
35377         Likewise.
35378         * modules/unictype/property-other-math (Depends-on, configure.ac):
35379         Likewise.
35380         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
35381         Likewise.
35382         * modules/unictype/property-paired-punctuation (Depends-on,
35383         configure.ac): Likewise.
35384         * modules/unictype/property-paragraph-separator (Depends-on,
35385         configure.ac): Likewise.
35386         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
35387         Likewise.
35388         * modules/unictype/property-pattern-white-space (Depends-on,
35389         configure.ac): Likewise.
35390         * modules/unictype/property-private-use (Depends-on, configure.ac):
35391         Likewise.
35392         * modules/unictype/property-punctuation (Depends-on, configure.ac):
35393         Likewise.
35394         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
35395         Likewise.
35396         * modules/unictype/property-radical (Depends-on, configure.ac):
35397         Likewise.
35398         * modules/unictype/property-sentence-terminal (Depends-on,
35399         configure.ac): Likewise.
35400         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
35401         Likewise.
35402         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
35403         * modules/unictype/property-terminal-punctuation (Depends-on,
35404         configure.ac): Likewise.
35405         * modules/unictype/property-titlecase (Depends-on, configure.ac):
35406         Likewise.
35407         * modules/unictype/property-unassigned-code-value (Depends-on,
35408         configure.ac): Likewise.
35409         * modules/unictype/property-unified-ideograph (Depends-on,
35410         configure.ac): Likewise.
35411         * modules/unictype/property-uppercase (Depends-on, configure.ac):
35412         Likewise.
35413         * modules/unictype/property-variation-selector (Depends-on,
35414         configure.ac): Likewise.
35415         * modules/unictype/property-white-space (Depends-on, configure.ac):
35416         Likewise.
35417         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
35418         Likewise.
35419         * modules/unictype/property-xid-start (Depends-on, configure.ac):
35420         Likewise.
35421         * modules/unictype/property-zero-width (Depends-on, configure.ac):
35422         Likewise.
35423         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
35424         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
35425         Likewise.
35426
35427 2009-12-31  Bruno Haible  <bruno@clisp.org>
35428
35429         Remove unnecessary AC_C_INLINE invocation.
35430         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
35431         since 2009-08-21.
35432
35433 2009-12-31  Jim Meyering  <meyering@redhat.com>
35434
35435         maint.mk: don't require explicit gpg_key_ID in cfg.mk
35436         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
35437         With this change, we can all remove the gpg_key_ID = ... definition
35438         from our respective cfg.mk files.
35439
35440         maint.mk: create announcement template in ~/, not in /tmp
35441         * top/maint.mk (emit_upload_commands): Adjust.
35442         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
35443         Remove temporary file, .ci-msg.
35444
35445 2009-12-31  Eric Blake  <ebb9@byu.net>
35446
35447         link-warning: always build headers with link warnings
35448         * modules/arpa_inet (Makefile.am): Always build replacement
35449         header.
35450         * modules/ctype (Makefile.am): Likewise.
35451         * modules/dirent (Makefile.am): Likewise.
35452         * modules/inttypes (Makefile.am): Likewise.
35453         * modules/langinfo (Makefile.am): Likewise.
35454         * modules/locale (Makefile.am): Likewise.
35455         * modules/spawn (Makefile.am): Likewise.
35456         * modules/sys_file (Makefile.am): Likewise.
35457         * modules/sys_ioctl (Makefile.am): Likewise.
35458         * modules/sys_select (Makefile.am): Likewise.
35459         * modules/sys_socket (Makefile.am): Likewise.
35460         * modules/sys_times (Makefile.am): Likewise.
35461         * modules/sys_utsname (Makefile.am): Likewise.
35462         * modules/sys_wait (Makefile.am): Likewise.
35463         * modules/wchar (Makefile.am): Likewise.
35464         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
35465         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
35466         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
35467         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
35468         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
35469         Likewise.
35470         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
35471         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35472         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
35473         Likewise.
35474         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
35475         Likewise.
35476         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
35477         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
35478         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
35479         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35480         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35481         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35482         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35483         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
35484         (gl_WCHAR_H_DEFAULTS): Likewise.
35485
35486 2009-12-31  Eric Blake  <ebb9@byu.net>
35487
35488         signal, spawn: use link warnings
35489         * lib/signal.in.h (sigset_t): Make unconditional.
35490         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
35491         (sigpending, sigprocmask, sigaction): Add link warnings.
35492         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
35493         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
35494         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
35495         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
35496         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
35497         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
35498         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
35499         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
35500         (posix_spawn_file_actions_destroy)
35501         (posix_spawn_file_actions_addopen)
35502         (posix_spawn_file_actions_addclose)
35503         (posix_spawn_file_actions_adddup2): Likewise.
35504         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
35505         * tests/test-signal.c (main): Enhance test.
35506
35507         spawn: improve wrapper support
35508         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
35509         (gl_SPAWN_H_DEFAULTS): New defaults.
35510         * modules/spawn (Makefile.am): Substitute them.
35511         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
35512         Only declare if missing or broken.
35513
35514         sys_times, sys_utsname: use include_next
35515         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
35516         header.
35517         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
35518         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35519         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35520         * modules/sys_times (Depends-on): Add include_next.
35521         (Makefile.am): Substitute additional values.
35522         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
35523         * lib/sys_times.in.h (includes): Include native header, if
35524         available.
35525         * lib/sys_utsname.in.h (includes): Likewise.
35526         * tests/test-sys_times.c (main): Enhance test.
35527
35528         fdutimensat: revert prior patch
35529         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
35530         utimens.h.
35531         Reported by Bruno Haible.
35532
35533 2009-12-30  Eric Blake  <ebb9@byu.net>
35534
35535         sys_wait: drop link-warning dependency
35536         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
35537         link-warning efforts.
35538         * lib/sys_wait.in.h: Likewise.
35539
35540         fdutimensat: remove bogus dependency
35541         * modules/fdutimensat (Depends-on): Drop inline.
35542
35543         unistd: fix typo
35544         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
35545
35546 2009-12-30  Bruno Haible  <bruno@clisp.org>
35547
35548         Fix compilation error with Solaris cc.
35549         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
35550         * lib/unicase/u16-is-invariant.c: Likewise.
35551         * lib/unicase/u32-is-invariant.c: Likewise.
35552         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
35553
35554 2009-12-30  Bruno Haible  <bruno@clisp.org>
35555
35556         Fix test crash.
35557         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
35558         locales.
35559         Reported by Simon Josefsson <simon@josefsson.org>.
35560
35561 2009-12-30  Bruno Haible  <bruno@clisp.org>
35562
35563         Fix compilation error on most platforms.
35564         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
35565         Reported by Simon Josefsson <simon@josefsson.org>
35566         and Nelson H. F. Beebe <beebe@math.utah.edu>.
35567
35568 2009-12-30  Eric Blake  <ebb9@byu.net>
35569
35570         futimens, utimensat: work around ntfs-3g bug
35571         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
35572         a ctime bug is present, and expand workaround to cover ntfs-3g.
35573         * lib/utimens.c (fdutimens, lutimens): Likewise.
35574         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
35575         (validate_timespec): Adjust return value.
35576         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
35577         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35578         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
35579
35580 2009-12-29  Eric Blake  <ebb9@byu.net>
35581
35582         link-warning: make usage consistent
35583         * modules/ctype (Depends-on): Add link-warning.
35584         (Makefile.am): Update rules accordingly.
35585         * modules/langinfo (Depends-on, Makefile.am): Likewise.
35586         * modules/locale (Depends-on, Makefile.am): Likewise.
35587         * modules/sys_file (Makefile.am): Likewise.
35588         * modules/getopt-posix (Makefile.am): Delete unused link warning
35589         efforts.
35590         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
35591         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
35592         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
35593         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
35594
35595         stdio: remove unused variables
35596         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
35597         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
35598         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
35599
35600         tests: test more substitute headers
35601         * modules/ctype-tests: New file.
35602         * modules/dirent-tests: Likewise.
35603         * modules/spawn-tests: Likewise.
35604         * modules/sys_file-tests: Likewise.
35605         * modules/sys_ioctl-tests: Likewise.
35606         * modules/sys_wait-tests: Likewise.
35607         * tests/test-ctype.c: Likewise.
35608         * tests/test-dirent.c: Likewise.
35609         * tests/test-spawn.c: Likewise.
35610         * tests/test-sys_file.c: Likewise.
35611         * tests/test-sys_ioctl.c: Likewise.
35612         * tests/test-sys_wait.c: Likewise.
35613         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
35614         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
35615         whether or not flock is in use.
35616
35617         tests: remove License section from module
35618         * modules/arpa_inet-tests: Remove unneeded section.
35619         * modules/byteswap-tests: Likewise.
35620         * modules/ceilf-tests: Likewise.
35621         * modules/ceill-tests: Likewise.
35622         * modules/crypto/des-tests: Likewise.
35623         * modules/crypto/gc-arcfour-tests: Likewise.
35624         * modules/crypto/gc-arctwo-tests: Likewise.
35625         * modules/crypto/gc-des-tests: Likewise.
35626         * modules/crypto/gc-hmac-md5-tests: Likewise.
35627         * modules/crypto/gc-hmac-sha1-tests: Likewise.
35628         * modules/crypto/gc-md2-tests: Likewise.
35629         * modules/crypto/gc-md4-tests: Likewise.
35630         * modules/crypto/gc-md5-tests: Likewise.
35631         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
35632         * modules/crypto/gc-rijndael-tests: Likewise.
35633         * modules/crypto/gc-sha1-tests: Likewise.
35634         * modules/crypto/gc-tests: Likewise.
35635         * modules/crypto/md2-tests: Likewise.
35636         * modules/crypto/md4-tests: Likewise.
35637         * modules/fcntl-h-tests: Likewise.
35638         * modules/floorf-tests: Likewise.
35639         * modules/floorl-tests: Likewise.
35640         * modules/frexp-nolibm-tests: Likewise.
35641         * modules/frexp-tests: Likewise.
35642         * modules/frexpl-nolibm-tests: Likewise.
35643         * modules/frexpl-tests: Likewise.
35644         * modules/getaddrinfo-tests: Likewise.
35645         * modules/inttypes-tests: Likewise.
35646         * modules/isfinite-tests: Likewise.
35647         * modules/isinf-tests: Likewise.
35648         * modules/ldexpl-tests: Likewise.
35649         * modules/locale-tests: Likewise.
35650         * modules/math-tests: Likewise.
35651         * modules/netdb-tests: Likewise.
35652         * modules/netinet_in-tests: Likewise.
35653         * modules/printf-frexp-tests: Likewise.
35654         * modules/printf-frexpl-tests: Likewise.
35655         * modules/priv-set-tests: Likewise.
35656         * modules/random_r-tests: Likewise.
35657         * modules/round-tests: Likewise.
35658         * modules/roundf-tests: Likewise.
35659         * modules/roundl-tests: Likewise.
35660         * modules/search-tests: Likewise.
35661         * modules/select-tests: Likewise.
35662         * modules/signal-tests: Likewise.
35663         * modules/stdbool-tests: Likewise.
35664         * modules/stddef-tests: Likewise.
35665         * modules/stdint-tests: Likewise.
35666         * modules/stdio-tests: Likewise.
35667         * modules/stdlib-tests: Likewise.
35668         * modules/string-tests: Likewise.
35669         * modules/strings-tests: Likewise.
35670         * modules/sys_select-tests: Likewise.
35671         * modules/sys_socket-tests: Likewise.
35672         * modules/sys_stat-tests: Likewise.
35673         * modules/sys_time-tests: Likewise.
35674         * modules/sys_utsname-tests: Likewise.
35675         * modules/sysexits-tests: Likewise.
35676         * modules/time-tests: Likewise.
35677         * modules/trunc-tests: Likewise.
35678         * modules/truncf-tests: Likewise.
35679         * modules/truncl-tests: Likewise.
35680         * modules/tsearch-tests: Likewise.
35681         * modules/unistd-tests: Likewise.
35682         * modules/wchar-tests: Likewise.
35683         * modules/wctype-tests: Likewise.
35684
35685         tests: fix license on several tests
35686         * tests/test-des.c: Update to GPLv3+.
35687         * tests/test-flock.c: Likewise.
35688         * tests/test-fsync.c: Likewise.
35689         * tests/test-futimens.h: Likewise.
35690         * tests/test-gc-arcfour.c: Likewise.
35691         * tests/test-gc-arctwo.c: Likewise.
35692         * tests/test-gc-des.c: Likewise.
35693         * tests/test-gc-hmac-md5.c: Likewise.
35694         * tests/test-gc-hmac-sha1.c: Likewise.
35695         * tests/test-gc-md2.c: Likewise.
35696         * tests/test-gc-md4.c: Likewise.
35697         * tests/test-gc-md5.c: Likewise.
35698         * tests/test-gc-pbkdf2-sha1.c: Likewise.
35699         * tests/test-gc-rijndael.c: Likewise.
35700         * tests/test-gc-sha1.c: Likewise.
35701         * tests/test-gc.c: Likewise.
35702         * tests/test-getcwd.c: Likewise.
35703         * tests/test-link.c: Likewise.
35704         * tests/test-link.h: Likewise.
35705         * tests/test-lutimens.h: Likewise.
35706         * tests/test-md2.c: Likewise.
35707         * tests/test-md4.c: Likewise.
35708         * tests/test-mkdir.h: Likewise.
35709         * tests/test-rename.c: Likewise.
35710         * tests/test-rename.h: Likewise.
35711         * tests/test-safe-alloc.c: Likewise.
35712         * tests/test-utimens-common.h: Likewise.
35713         * tests/test-utimens.h: Likewise.
35714
35715         maint: sync license texts
35716         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
35717         * doc/gpl-3.0.texi: Revert copyright year update.
35718         * doc/lgpl-3.0.texi: Likewise.
35719
35720 2009-12-29  Jim Meyering  <meyering@redhat.com>
35721
35722         update nearly all FSF copyright year lists to include 2009
35723         The files named by the following are exempted:
35724             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
35725               test -f "$dst" && { echo "$dst"; continue; }
35726               test -d "$dst" || continue
35727               echo "$dst"/$(basename "$src")
35728             done > exempt
35729             git ls-files tests/unictype >> exempt
35730         In the remaining files, convert to all-interval notation if
35731         - there is already at least one year interval like 2000-2003
35732         - the file is maintained by me
35733         - the file is in lib/uni*/, where that style already prevails
35734         Otherwise, use update-copyright's default.
35735
35736 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35737         and Eric Blake  <ebb9@byu.net>
35738
35739         tests: don't require debug system() to pass
35740         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
35741         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35742         * tests/test-unlink.h (test_unlink_func): Likewise.
35743         * tests/test-fstatat.c (main): ...into callers.
35744         * tests/test-lstat.c (main): Likewise.
35745         * tests/test-rmdir.c (main): Likewise.
35746         * tests/test-unlink.c (main): Likewise.
35747         * tests/test-unlinkat.c (main): Likewise.
35748         * tests/test-areadlink-with-size.c (main): Don't require a
35749         debug-only system call to pass, aiding cross-testing to mingw.
35750         * tests/test-areadlink.c (main): Likewise.
35751         * tests/test-areadlinkat-with-size.c (main): Likewise.
35752         * tests/test-areadlinkat.c (main): Likewise.
35753         * tests/test-canonicalize-lgpl.c (main): Likewise.
35754         * tests/test-canonicalize.c (main): Likewise.
35755         * tests/test-chown.c (main): Likewise.
35756         * tests/test-fchownat.c (main): Likewise.
35757         * tests/test-lchown.c (main): Likewise.
35758         * tests/test-fdutimensat.c (main): Likewise.
35759         * tests/test-futimens.c (main): Likewise.
35760         * tests/test-link.c (main): Likewise.
35761         * tests/test-linkat.c (main): Likewise.
35762         * tests/test-mkdir.c (main): Likewise.
35763         * tests/test-mkdirat.c (main): Likewise.
35764         * tests/test-mkfifo.c (main): Likewise.
35765         * tests/test-mkfifoat.c (main): Likewise.
35766         * tests/test-mknod.c (main): Likewise.
35767         * tests/test-readlink.c (main): Likewise.
35768         * tests/test-remove.c (main): Likewise.
35769         * tests/test-rename.c (main): Likewise.
35770         * tests/test-renameat.c (main): Likewise.
35771         * tests/test-symlink.c (main): Likewise.
35772         * tests/test-symlinkat.c (main): Likewise.
35773         * tests/test-utimens.c (main): Likewise.
35774         * tests/test-utimensat.c (main): Likewise.
35775
35776 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35777
35778         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
35779         on $(UNUSED_PARAMETER_H) to avoid build failure.
35780
35781 2009-12-28  Jim Meyering  <meyering@redhat.com>
35782
35783         update-copyright: you may specify a max. line length other than 72
35784         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35785
35786         maint: use consistent FSF copyright line syntax
35787         * lib/posixtm.c: Add missing comma in FSF copyright line.
35788         * lib/posixtm.h: Likewise.
35789         * lib/getugroups.c: Add missing ", Inc.".
35790
35791         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
35792         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
35793         FSF copyright line.  Remove trailing blanks.
35794
35795 2009-12-28  Eric Blake  <ebb9@byu.net>
35796
35797         test-dup2: reduce dependencies
35798         * modules/cloexec (Configure.ac): Set witness.
35799         * modules/dup2-tests (Depends-on): Drop cloexec.
35800         * tests/test-dup2.c (main): Skip portion of test if cloexec module
35801         not present.
35802         Suggested by Bruno Haible.
35803
35804 2009-12-26  Bruno Haible  <bruno@clisp.org>
35805
35806         Remove an unneeded dependency.
35807         * modules/fseterr (Depends-on): Remove dup2.
35808
35809 2009-12-26  Eric Blake  <ebb9@byu.net>
35810
35811         tests: use macros.h in more places
35812         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
35813         (ASSERT_STREAM): Provide default of stderr.
35814         * tests/test-dirent-safer.c: Include macros.h, using alternate
35815         stream for assertions.
35816         * tests/test-dup-safer.c: Likewise.
35817         * tests/test-freopen-safer.c: Likewise.
35818         * tests/test-getopt.c: Likewise.
35819         * tests/test-openat-safer.c: Likewise.
35820         * tests/test-pipe.c: Likewise.
35821         * tests/test-popen-safer.c: Likewise.
35822         * modules/dirent-safer-tests (Files): Include macros.h.
35823         * modules/unistd-safer-tests (Files): Likewise.
35824         * modules/freopen-safer-tests (Files): Likewise.
35825         * modules/getopt-posix-tests (Files): Likewise.
35826         * modules/openat-safer-tests (Files): Likewise.
35827         * modules/pipe-tests (Files): Likewise.
35828
35829 2009-12-26  Bruno Haible  <bruno@clisp.org>
35830
35831         javacomp: Portability fix.
35832         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
35833         that it also works on Solaris.
35834
35835 2009-12-26  Bruno Haible  <bruno@clisp.org>
35836
35837         localename: Fix storage allocation of gl_locale_name_thread's result.
35838         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
35839         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
35840         all platforms that have 'uselocale'.
35841         (gl_locale_name_thread_unsafe): New function, extracted from
35842         gl_locale_name_thread.
35843         (gl_locale_name_thread): Call struniq on all platforms that have
35844         'uselocale'.
35845         * tests/test-localename.c (test_locale_name_thread): Check that the
35846         resulting strings are permanently allocated.
35847         * modules/localename-tests (Depends-on): Add strdup.
35848
35849 2009-12-26  Bruno Haible  <bruno@clisp.org>
35850
35851         * tests/test-localename.c (categories): Fill in the strings.
35852
35853 2009-12-26  Jim Meyering  <meyering@redhat.com>
35854
35855         isdir: complete the removal of m4/isdir.m4
35856         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
35857
35858         isdir: clean up, since at least grep still uses it
35859         * lib/isdir.c: Include "isdir.h".
35860         (S_ISDIR): Remove now-unneeded definition.
35861         * modules/isdir (Files): Add lib/isdir.h.
35862         * lib/isdir.h: New file, with declaration.
35863         * m4/isdir.m4: Remove file -- unneeded.
35864
35865 2009-12-25  Bruno Haible  <bruno@clisp.org>
35866
35867         selinux-h: Make generated .h files standalone.
35868         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
35869         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
35870         * lib/se-selinux.in.h: Likewise.
35871         * modules/selinux-h (Depends-on): Add unused-parameter.
35872         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
35873         selinux/selinux.h and selinux/context.h.
35874         Suggested by Eric Blake.
35875
35876 2009-12-25  Bruno Haible  <bruno@clisp.org>
35877
35878         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
35879         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
35880         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
35881         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
35882         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
35883
35884 2009-12-24  Bruno Haible  <bruno@clisp.org>
35885
35886         openat: Fix warning.
35887         * lib/openat-proc.c: Include <unistd.h>.
35888
35889 2009-12-24  Bruno Haible  <bruno@clisp.org>
35890
35891         New module 'unused-parameter'.
35892         * build-aux/unused-parameter.h: New file, extracted from earlier
35893         gnulib-common.m4.
35894         * modules/unused-parameter: New file.
35895         * lib/unistr.h: Include unused-parameter.h.
35896         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
35897         _GL_UNUSED.
35898         * modules/unistr/base (Depends-on): Add unused-parameter.
35899
35900 2009-12-24  Bruno Haible  <bruno@clisp.org>
35901
35902         Add missing dependencies to 'extensions' module.
35903         * m4/extensions.m4: Add comment.
35904         * modules/accept4 (Depends-on): Add extensions.
35905         * modules/dup3 (Depends-on): Likewise.
35906         * modules/fcntl (Depends-on): Likewise.
35907         * modules/futimens (Depends-on): Likewise.
35908         * modules/mknod (Depends-on): Likewise.
35909         * modules/pipe2 (Depends-on): Likewise.
35910         * modules/stat-time (Depends-on): Likewise.
35911         * modules/strcasestr-simple (Depends-on): Likewise.
35912         * modules/strsignal (Depends-on): Likewise.
35913         * modules/utimensat (Depends-on): Likewise.
35914         * modules/localcharset (Depends-on): Likewise. Needed because of
35915         gl_FCNTL_O_FLAGS.
35916         * modules/wcrtomb (Depends-on): Likewise. Needed because of
35917         AC_TYPE_MBSTATE_T.
35918         * modules/wcsnrtombs (Depends-on): Likewise.
35919         * modules/wcsrtombs (Depends-on): Likewise.
35920
35921 2009-12-24  Bruno Haible  <bruno@clisp.org>
35922
35923         binary-io: Avoid gcc warning due to SET_BINARY.
35924         * lib/binary-io.h (SET_BINARY): Cast the result to void.
35925         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
35926
35927 2009-12-24  Bruno Haible  <bruno@clisp.org>
35928
35929         Avoid future namespace pollution on glibc systems.
35930         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
35931         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
35932         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
35933         glibc systems.
35934
35935 2009-12-24  Bruno Haible  <bruno@clisp.org>
35936
35937         Refactor common macros used in tests.
35938         * tests/macros.h: New file.
35939         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
35940         and/or <stdlib.h>, if appropriate.
35941         (ASSERT, SIZEOF): Remove macros.
35942         * tests/test-areadlink-with-size.c: Likewise.
35943         * tests/test-areadlinkat.c: Likewise.
35944         * tests/test-areadlinkat-with-size.c: Likewise.
35945         * tests/test-argmatch.c: Likewise.
35946         * tests/test-argv-iter.c: Likewise.
35947         * tests/test-array-mergesort.c: Likewise.
35948         * tests/test-array_list.c: Likewise.
35949         * tests/test-array_oset.c: Likewise.
35950         * tests/test-avltree_list.c: Likewise.
35951         * tests/test-avltree_oset.c: Likewise.
35952         * tests/test-avltreehash_list.c: Likewise.
35953         * tests/test-base64.c: Likewise.
35954         * tests/test-binary-io.c: Likewise.
35955         * tests/test-bitrotate.c: Likewise.
35956         * tests/test-btowc.c: Likewise.
35957         * tests/test-byteswap.c: Likewise.
35958         * tests/test-c-ctype.c: Likewise.
35959         * tests/test-c-stack.c: Likewise.
35960         * tests/test-c-strcasecmp.c: Likewise.
35961         * tests/test-c-strcasestr.c: Likewise.
35962         * tests/test-c-strncasecmp.c: Likewise.
35963         * tests/test-c-strstr.c: Likewise.
35964         * tests/test-canonicalize-lgpl.c: Likewise.
35965         * tests/test-canonicalize.c: Likewise.
35966         * tests/test-carray_list.c: Likewise.
35967         * tests/test-ceilf1.c: Likewise.
35968         * tests/test-ceilf2.c: Likewise.
35969         * tests/test-ceill.c: Likewise.
35970         * tests/test-chown.c: Likewise.
35971         * tests/test-cloexec.c: Likewise.
35972         * tests/test-copy-acl.c: Likewise.
35973         * tests/test-copy-file.c: Likewise.
35974         * tests/test-count-one-bits.c: Likewise.
35975         * tests/test-dprintf-posix.c: Likewise.
35976         * tests/test-dup2.c: Likewise.
35977         * tests/test-dup3.c: Likewise.
35978         * tests/test-duplocale.c: Likewise.
35979         * tests/test-fbufmode.c: Likewise.
35980         * tests/test-fchdir.c: Likewise.
35981         * tests/test-fchownat.c: Likewise.
35982         * tests/test-fcntl-safer.c: Likewise.
35983         * tests/test-fcntl.c: Likewise.
35984         * tests/test-fdopendir.c: Likewise.
35985         * tests/test-fdutimensat.c: Likewise.
35986         * tests/test-fflush2.c: Likewise.
35987         * tests/test-file-has-acl.c: Likewise.
35988         * tests/test-filevercmp.c: Likewise.
35989         * tests/test-flock.c: Likewise.
35990         * tests/test-floorf1.c: Likewise.
35991         * tests/test-floorf2.c: Likewise.
35992         * tests/test-floorl.c: Likewise.
35993         * tests/test-fnmatch.c: Likewise.
35994         * tests/test-fopen.h: Likewise.
35995         * tests/test-fpending.c: Likewise.
35996         * tests/test-fprintf-posix.c: Likewise.
35997         * tests/test-fpurge.c: Likewise.
35998         * tests/test-freadable.c: Likewise.
35999         * tests/test-freadahead.c: Likewise.
36000         * tests/test-freading.c: Likewise.
36001         * tests/test-freadptr.c: Likewise.
36002         * tests/test-freadptr2.c: Likewise.
36003         * tests/test-freadseek.c: Likewise.
36004         * tests/test-freopen.c: Likewise.
36005         * tests/test-frexp.c: Likewise.
36006         * tests/test-frexpl.c: Likewise.
36007         * tests/test-fseek.c: Likewise.
36008         * tests/test-fseeko.c: Likewise.
36009         * tests/test-fstatat.c: Likewise.
36010         * tests/test-fstrcmp.c: Likewise.
36011         * tests/test-fsync.c: Likewise.
36012         * tests/test-ftell.c: Likewise.
36013         * tests/test-ftello.c: Likewise.
36014         * tests/test-func.c: Likewise.
36015         * tests/test-futimens.c: Likewise.
36016         * tests/test-fwritable.c: Likewise.
36017         * tests/test-fwriting.c: Likewise.
36018         * tests/test-getcwd.c: Likewise.
36019         * tests/test-getdate.c: Likewise.
36020         * tests/test-getdelim.c: Likewise.
36021         * tests/test-getdtablesize.c: Likewise.
36022         * tests/test-getgroups.c: Likewise.
36023         * tests/test-getline.c: Likewise.
36024         * tests/test-getndelim2.c: Likewise.
36025         * tests/test-glob.c: Likewise.
36026         * tests/test-hash.c: Likewise.
36027         * tests/test-i-ring.c: Likewise.
36028         * tests/test-iconv-utf.c: Likewise.
36029         * tests/test-iconv.c: Likewise.
36030         * tests/test-idpriv-drop.c: Likewise.
36031         * tests/test-idpriv-droptemp.c: Likewise.
36032         * tests/test-inet_ntop.c: Likewise.
36033         * tests/test-inet_pton.c: Likewise.
36034         * tests/test-isblank.c: Likewise.
36035         * tests/test-isfinite.c: Likewise.
36036         * tests/test-isinf.c: Likewise.
36037         * tests/test-isnan.c: Likewise.
36038         * tests/test-isnand.h: Likewise.
36039         * tests/test-isnanf.h: Likewise.
36040         * tests/test-isnanl.h: Likewise.
36041         * tests/test-lchown.c: Likewise.
36042         * tests/test-ldexpl.c: Likewise.
36043         * tests/test-link.c: Likewise.
36044         * tests/test-linkat.c: Likewise.
36045         * tests/test-linked_list.c: Likewise.
36046         * tests/test-linkedhash_list.c: Likewise.
36047         * tests/test-localename.c: Likewise.
36048         * tests/test-lseek.c: Likewise.
36049         * tests/test-lstat.c: Likewise.
36050         * tests/test-mbmemcasecmp.c: Likewise.
36051         * tests/test-mbmemcasecoll.c: Likewise.
36052         * tests/test-mbrtowc.c: Likewise.
36053         * tests/test-mbscasecmp.c: Likewise.
36054         * tests/test-mbscasestr1.c: Likewise.
36055         * tests/test-mbscasestr2.c: Likewise.
36056         * tests/test-mbscasestr3.c: Likewise.
36057         * tests/test-mbscasestr4.c: Likewise.
36058         * tests/test-mbschr.c: Likewise.
36059         * tests/test-mbscspn.c: Likewise.
36060         * tests/test-mbsinit.c: Likewise.
36061         * tests/test-mbsncasecmp.c: Likewise.
36062         * tests/test-mbsnrtowcs.c: Likewise.
36063         * tests/test-mbspbrk.c: Likewise.
36064         * tests/test-mbspcasecmp.c: Likewise.
36065         * tests/test-mbsrchr.c: Likewise.
36066         * tests/test-mbsrtowcs.c: Likewise.
36067         * tests/test-mbsspn.c: Likewise.
36068         * tests/test-mbsstr1.c: Likewise.
36069         * tests/test-mbsstr2.c: Likewise.
36070         * tests/test-mbsstr3.c: Likewise.
36071         * tests/test-memchr.c: Likewise.
36072         * tests/test-memchr2.c: Likewise.
36073         * tests/test-memcmp.c: Likewise.
36074         * tests/test-memmem.c: Likewise.
36075         * tests/test-memrchr.c: Likewise.
36076         * tests/test-mkdir.c: Likewise.
36077         * tests/test-mkdirat.c: Likewise.
36078         * tests/test-mkfifo.c: Likewise.
36079         * tests/test-mkfifoat.c: Likewise.
36080         * tests/test-mknod.c: Likewise.
36081         * tests/test-nanosleep.c: Likewise.
36082         * tests/test-nl_langinfo.c: Likewise.
36083         * tests/test-obstack-printf.c: Likewise.
36084         * tests/test-open.c: Likewise.
36085         * tests/test-openat.c: Likewise.
36086         * tests/test-pipe-filter-gi1.c: Likewise.
36087         * tests/test-pipe-filter-gi2-main.c: Likewise.
36088         * tests/test-pipe-filter-ii1.c: Likewise.
36089         * tests/test-pipe-filter-ii2-main.c: Likewise.
36090         * tests/test-pipe2.c: Likewise.
36091         * tests/test-popen.h: Likewise.
36092         * tests/test-posixtm.c: Likewise.
36093         * tests/test-pread.c: Likewise.
36094         * tests/test-printf-frexp.c: Likewise.
36095         * tests/test-printf-frexpl.c: Likewise.
36096         * tests/test-printf-posix.c: Likewise.
36097         * tests/test-priv-set.c: Likewise.
36098         * tests/test-quotearg.c: Likewise.
36099         * tests/test-random_r.c: Likewise.
36100         * tests/test-rawmemchr.c: Likewise.
36101         * tests/test-rbtree_list.c: Likewise.
36102         * tests/test-rbtree_oset.c: Likewise.
36103         * tests/test-rbtreehash_list.c: Likewise.
36104         * tests/test-readlink.c: Likewise.
36105         * tests/test-remove.c: Likewise.
36106         * tests/test-rename.c: Likewise.
36107         * tests/test-renameat.c: Likewise.
36108         * tests/test-rmdir.c: Likewise.
36109         * tests/test-round1.c: Likewise.
36110         * tests/test-roundf1.c: Likewise.
36111         * tests/test-roundl.c: Likewise.
36112         * tests/test-safe-alloc.c: Likewise.
36113         * tests/test-sameacls.c: Likewise.
36114         * tests/test-set-mode-acl.c: Likewise.
36115         * tests/test-setenv.c: Likewise.
36116         * tests/test-sigaction.c: Likewise.
36117         * tests/test-signbit.c: Likewise.
36118         * tests/test-sleep.c: Likewise.
36119         * tests/test-snprintf-posix.c: Likewise.
36120         * tests/test-snprintf.c: Likewise.
36121         * tests/test-sprintf-posix.c: Likewise.
36122         * tests/test-stat-time.c: Likewise.
36123         * tests/test-stat.c: Likewise.
36124         * tests/test-strcasestr.c: Likewise.
36125         * tests/test-strchrnul.c: Likewise.
36126         * tests/test-strerror.c: Likewise.
36127         * tests/test-striconv.c: Likewise.
36128         * tests/test-striconveh.c: Likewise.
36129         * tests/test-striconveha.c: Likewise.
36130         * tests/test-strsignal.c: Likewise.
36131         * tests/test-strstr.c: Likewise.
36132         * tests/test-strtod.c: Likewise.
36133         * tests/test-strverscmp.c: Likewise.
36134         * tests/test-symlink.c: Likewise.
36135         * tests/test-symlinkat.c: Likewise.
36136         * tests/test-trunc1.c: Likewise.
36137         * tests/test-trunc2.c: Likewise.
36138         * tests/test-truncf1.c: Likewise.
36139         * tests/test-truncf2.c: Likewise.
36140         * tests/test-truncl.c: Likewise.
36141         * tests/test-uname.c: Likewise.
36142         * tests/test-unlink.c: Likewise.
36143         * tests/test-unlinkat.c: Likewise.
36144         * tests/test-unsetenv.c: Likewise.
36145         * tests/test-usleep.c: Likewise.
36146         * tests/test-utimens.c: Likewise.
36147         * tests/test-utimensat.c: Likewise.
36148         * tests/test-vasnprintf-posix.c: Likewise.
36149         * tests/test-vasnprintf-posix2.c: Likewise.
36150         * tests/test-vasnprintf.c: Likewise.
36151         * tests/test-vasprintf-posix.c: Likewise.
36152         * tests/test-vasprintf.c: Likewise.
36153         * tests/test-vdprintf-posix.c: Likewise.
36154         * tests/test-vfprintf-posix.c: Likewise.
36155         * tests/test-vprintf-posix.c: Likewise.
36156         * tests/test-vsnprintf-posix.c: Likewise.
36157         * tests/test-vsnprintf.c: Likewise.
36158         * tests/test-vsprintf-posix.c: Likewise.
36159         * tests/test-wcrtomb.c: Likewise.
36160         * tests/test-wcsnrtombs.c: Likewise.
36161         * tests/test-wcsrtombs.c: Likewise.
36162         * tests/test-wctype.c: Likewise.
36163         * tests/test-wcwidth.c: Likewise.
36164         * tests/test-xfprintf-posix.c: Likewise.
36165         * tests/test-xmemdup0.c: Likewise.
36166         * tests/test-xprintf-posix.c: Likewise.
36167         * tests/test-xvasprintf.c: Likewise.
36168         * tests/unicase/test-locale-language.c: Likewise.
36169         * tests/unicase/test-mapping-part1.h: Likewise.
36170         * tests/unicase/test-predicate-part1.h: Likewise.
36171         * tests/unicase/test-u8-casecmp.c: Likewise.
36172         * tests/unicase/test-u8-casecoll.c: Likewise.
36173         * tests/unicase/test-u8-casefold.c: Likewise.
36174         * tests/unicase/test-u8-is-cased.c: Likewise.
36175         * tests/unicase/test-u8-is-casefolded.c: Likewise.
36176         * tests/unicase/test-u8-is-lowercase.c: Likewise.
36177         * tests/unicase/test-u8-is-titlecase.c: Likewise.
36178         * tests/unicase/test-u8-is-uppercase.c: Likewise.
36179         * tests/unicase/test-u8-tolower.c: Likewise.
36180         * tests/unicase/test-u8-totitle.c: Likewise.
36181         * tests/unicase/test-u8-toupper.c: Likewise.
36182         * tests/unicase/test-u16-casecmp.c: Likewise.
36183         * tests/unicase/test-u16-casecoll.c: Likewise.
36184         * tests/unicase/test-u16-casefold.c: Likewise.
36185         * tests/unicase/test-u16-is-cased.c: Likewise.
36186         * tests/unicase/test-u16-is-casefolded.c: Likewise.
36187         * tests/unicase/test-u16-is-lowercase.c: Likewise.
36188         * tests/unicase/test-u16-is-titlecase.c: Likewise.
36189         * tests/unicase/test-u16-is-uppercase.c: Likewise.
36190         * tests/unicase/test-u16-tolower.c: Likewise.
36191         * tests/unicase/test-u16-totitle.c: Likewise.
36192         * tests/unicase/test-u16-toupper.c: Likewise.
36193         * tests/unicase/test-u32-casecmp.c: Likewise.
36194         * tests/unicase/test-u32-casecoll.c: Likewise.
36195         * tests/unicase/test-u32-casefold.c: Likewise.
36196         * tests/unicase/test-u32-is-cased.c: Likewise.
36197         * tests/unicase/test-u32-is-casefolded.c: Likewise.
36198         * tests/unicase/test-u32-is-lowercase.c: Likewise.
36199         * tests/unicase/test-u32-is-titlecase.c: Likewise.
36200         * tests/unicase/test-u32-is-uppercase.c: Likewise.
36201         * tests/unicase/test-u32-tolower.c: Likewise.
36202         * tests/unicase/test-u32-totitle.c: Likewise.
36203         * tests/unicase/test-u32-toupper.c: Likewise.
36204         * tests/unicase/test-ulc-casecmp.c: Likewise.
36205         * tests/unicase/test-ulc-casecoll.c: Likewise.
36206         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
36207         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
36208         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
36209         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
36210         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
36211         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
36212         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
36213         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
36214         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
36215         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
36216         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
36217         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
36218         * tests/unictype/test-bidi_byname.c: Likewise.
36219         * tests/unictype/test-bidi_name.c: Likewise.
36220         * tests/unictype/test-bidi_of.c: Likewise.
36221         * tests/unictype/test-bidi_test.c: Likewise.
36222         * tests/unictype/test-block_list.c: Likewise.
36223         * tests/unictype/test-block_of.c: Likewise.
36224         * tests/unictype/test-block_test.c: Likewise.
36225         * tests/unictype/test-categ_and.c: Likewise.
36226         * tests/unictype/test-categ_and_not.c: Likewise.
36227         * tests/unictype/test-categ_byname.c: Likewise.
36228         * tests/unictype/test-categ_name.c: Likewise.
36229         * tests/unictype/test-categ_none.c: Likewise.
36230         * tests/unictype/test-categ_of.c: Likewise.
36231         * tests/unictype/test-categ_or.c: Likewise.
36232         * tests/unictype/test-categ_test_withtable.c: Likewise.
36233         * tests/unictype/test-combining.c: Likewise.
36234         * tests/unictype/test-decdigit.c: Likewise.
36235         * tests/unictype/test-digit.c: Likewise.
36236         * tests/unictype/test-mirror.c: Likewise.
36237         * tests/unictype/test-numeric.c: Likewise.
36238         * tests/unictype/test-pr_byname.c: Likewise.
36239         * tests/unictype/test-pr_test.c: Likewise.
36240         * tests/unictype/test-predicate-part1.h: Likewise.
36241         * tests/unictype/test-scripts.c: Likewise.
36242         * tests/unictype/test-sy_c_ident.c: Likewise.
36243         * tests/unictype/test-sy_java_ident.c: Likewise.
36244         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
36245         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
36246         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
36247         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
36248         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
36249         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
36250         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
36251         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
36252         * tests/uninorm/test-canonical-decomposition.c: Likewise.
36253         * tests/uninorm/test-compat-decomposition.c: Likewise.
36254         * tests/uninorm/test-composition.c: Likewise.
36255         * tests/uninorm/test-decomposing-form.c: Likewise.
36256         * tests/uninorm/test-decomposition.c: Likewise.
36257         * tests/uninorm/test-u8-nfc.c: Likewise.
36258         * tests/uninorm/test-u8-nfd.c: Likewise.
36259         * tests/uninorm/test-u8-nfkc.c: Likewise.
36260         * tests/uninorm/test-u8-nfkd.c: Likewise.
36261         * tests/uninorm/test-u8-normcmp.c: Likewise.
36262         * tests/uninorm/test-u8-normcoll.c: Likewise.
36263         * tests/uninorm/test-u16-nfc.c: Likewise.
36264         * tests/uninorm/test-u16-nfd.c: Likewise.
36265         * tests/uninorm/test-u16-nfkc.c: Likewise.
36266         * tests/uninorm/test-u16-nfkd.c: Likewise.
36267         * tests/uninorm/test-u16-normcmp.c: Likewise.
36268         * tests/uninorm/test-u16-normcoll.c: Likewise.
36269         * tests/uninorm/test-u32-nfc.c: Likewise.
36270         * tests/uninorm/test-u32-nfd.c: Likewise.
36271         * tests/uninorm/test-u32-nfkc.c: Likewise.
36272         * tests/uninorm/test-u32-nfkd.c: Likewise.
36273         * tests/uninorm/test-u32-normalize-big.c: Likewise.
36274         * tests/uninorm/test-u32-normcmp.c: Likewise.
36275         * tests/uninorm/test-u32-normcoll.c: Likewise.
36276         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
36277         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
36278         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
36279         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
36280         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
36281         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
36282         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
36283         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
36284         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
36285         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
36286         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
36287         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
36288         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
36289         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
36290         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
36291         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
36292         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
36293         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
36294         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
36295         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
36296         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
36297         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
36298         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
36299         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
36300         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
36301         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
36302         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
36303         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
36304         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
36305         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
36306         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
36307         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
36308         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
36309         * tests/uniwidth/test-u8-strwidth.c: Likewise.
36310         * tests/uniwidth/test-u8-width.c: Likewise.
36311         * tests/uniwidth/test-u16-strwidth.c: Likewise.
36312         * tests/uniwidth/test-u16-width.c: Likewise.
36313         * tests/uniwidth/test-u32-strwidth.c: Likewise.
36314         * tests/uniwidth/test-u32-width.c: Likewise.
36315         * tests/uniwidth/test-uc_width.c: Likewise.
36316         * tests/uniwidth/test-uc_width2.c: Likewise.
36317         * modules/acl-tests (Files): Add tests/macros.h.
36318         * modules/areadlink-tests (Files): Likewise.
36319         * modules/areadlink-with-size-tests (Files): Likewise.
36320         * modules/areadlinkat-tests (Files): Likewise.
36321         * modules/areadlinkat-with-size-tests (Files): Likewise.
36322         * modules/argmatch-tests (Files): Likewise.
36323         * modules/argv-iter-tests (Files): Likewise.
36324         * modules/array-list-tests (Files): Likewise.
36325         * modules/array-mergesort-tests (Files): Likewise.
36326         * modules/array-oset-tests (Files): Likewise.
36327         * modules/avltree-list-tests (Files): Likewise.
36328         * modules/avltree-oset-tests (Files): Likewise.
36329         * modules/avltreehash-list-tests (Files): Likewise.
36330         * modules/base64-tests (Files): Likewise.
36331         * modules/binary-io-tests (Files): Likewise.
36332         * modules/bitrotate-tests (Files): Likewise.
36333         * modules/btowc-tests (Files): Likewise.
36334         * modules/byteswap-tests (Files): Likewise.
36335         * modules/c-ctype-tests (Files): Likewise.
36336         * modules/c-stack-tests (Files): Likewise.
36337         * modules/c-strcase-tests (Files): Likewise.
36338         * modules/c-strcasestr-tests (Files): Likewise.
36339         * modules/c-strstr-tests (Files): Likewise.
36340         * modules/canonicalize-lgpl-tests (Files): Likewise.
36341         * modules/canonicalize-tests (Files): Likewise.
36342         * modules/carray-list-tests (Files): Likewise.
36343         * modules/ceilf-tests (Files): Likewise.
36344         * modules/ceill-tests (Files): Likewise.
36345         * modules/chown-tests (Files): Likewise.
36346         * modules/cloexec-tests (Files): Likewise.
36347         * modules/copy-file-tests (Files): Likewise.
36348         * modules/count-one-bits-tests (Files): Likewise.
36349         * modules/dprintf-posix-tests (Files): Likewise.
36350         * modules/dup2-tests (Files): Likewise.
36351         * modules/dup3-tests (Files): Likewise.
36352         * modules/duplocale-tests (Files): Likewise.
36353         * modules/fbufmode-tests (Files): Likewise.
36354         * modules/fchdir-tests (Files): Likewise.
36355         * modules/fcntl-safer-tests (Files): Likewise.
36356         * modules/fcntl-tests (Files): Likewise.
36357         * modules/fdopendir-tests (Files): Likewise.
36358         * modules/fdutimensat-tests (Files): Likewise.
36359         * modules/fflush-tests (Files): Likewise.
36360         * modules/filevercmp-tests (Files): Likewise.
36361         * modules/flock-tests (Files): Likewise.
36362         * modules/floorf-tests (Files): Likewise.
36363         * modules/floorl-tests (Files): Likewise.
36364         * modules/fnmatch-tests (Files): Likewise.
36365         * modules/fopen-safer-tests (Files): Likewise.
36366         * modules/fopen-tests (Files): Likewise.
36367         * modules/fpending-tests (Files): Likewise.
36368         * modules/fprintf-posix-tests (Files): Likewise.
36369         * modules/fpurge-tests (Files): Likewise.
36370         * modules/freadable-tests (Files): Likewise.
36371         * modules/freadahead-tests (Files): Likewise.
36372         * modules/freading-tests (Files): Likewise.
36373         * modules/freadptr-tests (Files): Likewise.
36374         * modules/freadseek-tests (Files): Likewise.
36375         * modules/freopen-tests (Files): Likewise.
36376         * modules/frexp-nolibm-tests (Files): Likewise.
36377         * modules/frexp-tests (Files): Likewise.
36378         * modules/frexpl-nolibm-tests (Files): Likewise.
36379         * modules/frexpl-tests (Files): Likewise.
36380         * modules/fseek-tests (Files): Likewise.
36381         * modules/fseeko-tests (Files): Likewise.
36382         * modules/fstrcmp-tests (Files): Likewise.
36383         * modules/fsync-tests (Files): Likewise.
36384         * modules/ftell-tests (Files): Likewise.
36385         * modules/ftello-tests (Files): Likewise.
36386         * modules/func-tests (Files): Likewise.
36387         * modules/futimens-tests (Files): Likewise.
36388         * modules/fwritable-tests (Files): Likewise.
36389         * modules/fwriting-tests (Files): Likewise.
36390         * modules/getcwd-tests (Files): Likewise.
36391         * modules/getdate-tests (Files): Likewise.
36392         * modules/getdelim-tests (Files): Likewise.
36393         * modules/getdtablesize-tests (Files): Likewise.
36394         * modules/getgroups-tests (Files): Likewise.
36395         * modules/getline-tests (Files): Likewise.
36396         * modules/getndelim2-tests (Files): Likewise.
36397         * modules/glob-tests (Files): Likewise.
36398         * modules/hash-tests (Files): Likewise.
36399         * modules/i-ring-tests (Files): Likewise.
36400         * modules/iconv-tests (Files): Likewise.
36401         * modules/iconv_open-utf-tests (Files): Likewise.
36402         * modules/idpriv-drop-tests (Files): Likewise.
36403         * modules/idpriv-droptemp-tests (Files): Likewise.
36404         * modules/inet_ntop-tests (Files): Likewise.
36405         * modules/inet_pton-tests (Files): Likewise.
36406         * modules/isblank-tests (Files): Likewise.
36407         * modules/isfinite-tests (Files): Likewise.
36408         * modules/isinf-tests (Files): Likewise.
36409         * modules/isnan-tests (Files): Likewise.
36410         * modules/isnand-nolibm-tests (Files): Likewise.
36411         * modules/isnand-tests (Files): Likewise.
36412         * modules/isnanf-nolibm-tests (Files): Likewise.
36413         * modules/isnanf-tests (Files): Likewise.
36414         * modules/isnanl-nolibm-tests (Files): Likewise.
36415         * modules/isnanl-tests (Files): Likewise.
36416         * modules/lchown-tests (Files): Likewise.
36417         * modules/ldexpl-tests (Files): Likewise.
36418         * modules/link-tests (Files): Likewise.
36419         * modules/linkat-tests (Files): Likewise.
36420         * modules/linked-list-tests (Files): Likewise.
36421         * modules/linkedhash-list-tests (Files): Likewise.
36422         * modules/localename-tests (Files): Likewise.
36423         * modules/lseek-tests (Files): Likewise.
36424         * modules/lstat-tests (Files): Likewise.
36425         * modules/mbmemcasecmp-tests (Files): Likewise.
36426         * modules/mbmemcasecoll-tests (Files): Likewise.
36427         * modules/mbrtowc-tests (Files): Likewise.
36428         * modules/mbscasecmp-tests (Files): Likewise.
36429         * modules/mbscasestr-tests (Files): Likewise.
36430         * modules/mbschr-tests (Files): Likewise.
36431         * modules/mbscspn-tests (Files): Likewise.
36432         * modules/mbsinit-tests (Files): Likewise.
36433         * modules/mbsncasecmp-tests (Files): Likewise.
36434         * modules/mbsnrtowcs-tests (Files): Likewise.
36435         * modules/mbspbrk-tests (Files): Likewise.
36436         * modules/mbspcasecmp-tests (Files): Likewise.
36437         * modules/mbsrchr-tests (Files): Likewise.
36438         * modules/mbsrtowcs-tests (Files): Likewise.
36439         * modules/mbsspn-tests (Files): Likewise.
36440         * modules/mbsstr-tests (Files): Likewise.
36441         * modules/memchr-tests (Files): Likewise.
36442         * modules/memchr2-tests (Files): Likewise.
36443         * modules/memcmp-tests (Files): Likewise.
36444         * modules/memmem-tests (Files): Likewise.
36445         * modules/memrchr-tests (Files): Likewise.
36446         * modules/mkdir-tests (Files): Likewise.
36447         * modules/mkfifo-tests (Files): Likewise.
36448         * modules/mkfifoat-tests (Files): Likewise.
36449         * modules/mknod-tests (Files): Likewise.
36450         * modules/nanosleep-tests (Files): Likewise.
36451         * modules/nl_langinfo-tests (Files): Likewise.
36452         * modules/obstack-printf-tests (Files): Likewise.
36453         * modules/open-tests (Files): Likewise.
36454         * modules/openat-tests (Files): Likewise.
36455         * modules/pipe-filter-gi-tests (Files): Likewise.
36456         * modules/pipe-filter-ii-tests (Files): Likewise.
36457         * modules/pipe2-tests (Files): Likewise.
36458         * modules/popen-safer-tests (Files): Likewise.
36459         * modules/popen-tests (Files): Likewise.
36460         * modules/posixtm-tests (Files): Likewise.
36461         * modules/pread-tests (Files): Likewise.
36462         * modules/printf-frexp-tests (Files): Likewise.
36463         * modules/printf-frexpl-tests (Files): Likewise.
36464         * modules/printf-posix-tests (Files): Likewise.
36465         * modules/priv-set-tests (Files): Likewise.
36466         * modules/quotearg-tests (Files): Likewise.
36467         * modules/random_r-tests (Files): Likewise.
36468         * modules/rawmemchr-tests (Files): Likewise.
36469         * modules/rbtree-list-tests (Files): Likewise.
36470         * modules/rbtree-oset-tests (Files): Likewise.
36471         * modules/rbtreehash-list-tests (Files): Likewise.
36472         * modules/readlink-tests (Files): Likewise.
36473         * modules/remove-tests (Files): Likewise.
36474         * modules/rename-tests (Files): Likewise.
36475         * modules/renameat-tests (Files): Likewise.
36476         * modules/rmdir-tests (Files): Likewise.
36477         * modules/round-tests (Files): Likewise.
36478         * modules/roundf-tests (Files): Likewise.
36479         * modules/roundl-tests (Files): Likewise.
36480         * modules/safe-alloc-tests (Files): Likewise.
36481         * modules/setenv-tests (Files): Likewise.
36482         * modules/sigaction-tests (Files): Likewise.
36483         * modules/signbit-tests (Files): Likewise.
36484         * modules/sleep-tests (Files): Likewise.
36485         * modules/snprintf-posix-tests (Files): Likewise.
36486         * modules/snprintf-tests (Files): Likewise.
36487         * modules/sprintf-posix-tests (Files): Likewise.
36488         * modules/stat-tests (Files): Likewise.
36489         * modules/stat-time-tests (Files): Likewise.
36490         * modules/strcasestr-tests (Files): Likewise.
36491         * modules/strchrnul-tests (Files): Likewise.
36492         * modules/strerror-tests (Files): Likewise.
36493         * modules/striconv-tests (Files): Likewise.
36494         * modules/striconveh-tests (Files): Likewise.
36495         * modules/striconveha-tests (Files): Likewise.
36496         * modules/strsignal-tests (Files): Likewise.
36497         * modules/strstr-tests (Files): Likewise.
36498         * modules/strtod-tests (Files): Likewise.
36499         * modules/strverscmp-tests (Files): Likewise.
36500         * modules/symlink-tests (Files): Likewise.
36501         * modules/symlinkat-tests (Files): Likewise.
36502         * modules/trunc-tests (Files): Likewise.
36503         * modules/truncf-tests (Files): Likewise.
36504         * modules/truncl-tests (Files): Likewise.
36505         * modules/uname-tests (Files): Likewise.
36506         * modules/unicase/cased-tests (Files): Likewise.
36507         * modules/unicase/ignorable-tests (Files): Likewise.
36508         * modules/unicase/locale-language-tests (Files): Likewise.
36509         * modules/unicase/tolower-tests (Files): Likewise.
36510         * modules/unicase/totitle-tests (Files): Likewise.
36511         * modules/unicase/toupper-tests (Files): Likewise.
36512         * modules/unicase/u8-casecmp-tests (Files): Likewise.
36513         * modules/unicase/u8-casecoll-tests (Files): Likewise.
36514         * modules/unicase/u8-casefold-tests (Files): Likewise.
36515         * modules/unicase/u8-is-cased-tests (Files): Likewise.
36516         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
36517         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
36518         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
36519         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
36520         * modules/unicase/u8-tolower-tests (Files): Likewise.
36521         * modules/unicase/u8-totitle-tests (Files): Likewise.
36522         * modules/unicase/u8-toupper-tests (Files): Likewise.
36523         * modules/unicase/u16-casecmp-tests (Files): Likewise.
36524         * modules/unicase/u16-casecoll-tests (Files): Likewise.
36525         * modules/unicase/u16-casefold-tests (Files): Likewise.
36526         * modules/unicase/u16-is-cased-tests (Files): Likewise.
36527         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
36528         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
36529         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
36530         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
36531         * modules/unicase/u16-tolower-tests (Files): Likewise.
36532         * modules/unicase/u16-totitle-tests (Files): Likewise.
36533         * modules/unicase/u16-toupper-tests (Files): Likewise.
36534         * modules/unicase/u32-casecmp-tests (Files): Likewise.
36535         * modules/unicase/u32-casecoll-tests (Files): Likewise.
36536         * modules/unicase/u32-casefold-tests (Files): Likewise.
36537         * modules/unicase/u32-is-cased-tests (Files): Likewise.
36538         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
36539         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
36540         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
36541         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
36542         * modules/unicase/u32-tolower-tests (Files): Likewise.
36543         * modules/unicase/u32-totitle-tests (Files): Likewise.
36544         * modules/unicase/u32-toupper-tests (Files): Likewise.
36545         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
36546         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
36547         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
36548         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
36549         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
36550         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
36551         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
36552         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
36553         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
36554         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
36555         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
36556         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
36557         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
36558         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
36559         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
36560         * modules/unictype/bidicategory-name-tests (Files): Likewise.
36561         * modules/unictype/bidicategory-of-tests (Files): Likewise.
36562         * modules/unictype/bidicategory-test-tests (Files): Likewise.
36563         * modules/unictype/block-list-tests (Files): Likewise.
36564         * modules/unictype/block-of-tests (Files): Likewise.
36565         * modules/unictype/block-test-tests (Files): Likewise.
36566         * modules/unictype/category-C-tests (Files): Likewise.
36567         * modules/unictype/category-Cc-tests (Files): Likewise.
36568         * modules/unictype/category-Cf-tests (Files): Likewise.
36569         * modules/unictype/category-Cn-tests (Files): Likewise.
36570         * modules/unictype/category-Co-tests (Files): Likewise.
36571         * modules/unictype/category-Cs-tests (Files): Likewise.
36572         * modules/unictype/category-L-tests (Files): Likewise.
36573         * modules/unictype/category-Ll-tests (Files): Likewise.
36574         * modules/unictype/category-Lm-tests (Files): Likewise.
36575         * modules/unictype/category-Lo-tests (Files): Likewise.
36576         * modules/unictype/category-Lt-tests (Files): Likewise.
36577         * modules/unictype/category-Lu-tests (Files): Likewise.
36578         * modules/unictype/category-M-tests (Files): Likewise.
36579         * modules/unictype/category-Mc-tests (Files): Likewise.
36580         * modules/unictype/category-Me-tests (Files): Likewise.
36581         * modules/unictype/category-Mn-tests (Files): Likewise.
36582         * modules/unictype/category-N-tests (Files): Likewise.
36583         * modules/unictype/category-Nd-tests (Files): Likewise.
36584         * modules/unictype/category-Nl-tests (Files): Likewise.
36585         * modules/unictype/category-No-tests (Files): Likewise.
36586         * modules/unictype/category-P-tests (Files): Likewise.
36587         * modules/unictype/category-Pc-tests (Files): Likewise.
36588         * modules/unictype/category-Pd-tests (Files): Likewise.
36589         * modules/unictype/category-Pe-tests (Files): Likewise.
36590         * modules/unictype/category-Pf-tests (Files): Likewise.
36591         * modules/unictype/category-Pi-tests (Files): Likewise.
36592         * modules/unictype/category-Po-tests (Files): Likewise.
36593         * modules/unictype/category-Ps-tests (Files): Likewise.
36594         * modules/unictype/category-S-tests (Files): Likewise.
36595         * modules/unictype/category-Sc-tests (Files): Likewise.
36596         * modules/unictype/category-Sk-tests (Files): Likewise.
36597         * modules/unictype/category-Sm-tests (Files): Likewise.
36598         * modules/unictype/category-So-tests (Files): Likewise.
36599         * modules/unictype/category-Z-tests (Files): Likewise.
36600         * modules/unictype/category-Zl-tests (Files): Likewise.
36601         * modules/unictype/category-Zp-tests (Files): Likewise.
36602         * modules/unictype/category-Zs-tests (Files): Likewise.
36603         * modules/unictype/category-and-not-tests (Files): Likewise.
36604         * modules/unictype/category-and-tests (Files): Likewise.
36605         * modules/unictype/category-byname-tests (Files): Likewise.
36606         * modules/unictype/category-name-tests (Files): Likewise.
36607         * modules/unictype/category-none-tests (Files): Likewise.
36608         * modules/unictype/category-of-tests (Files): Likewise.
36609         * modules/unictype/category-or-tests (Files): Likewise.
36610         * modules/unictype/category-test-withtable-tests (Files): Likewise.
36611         * modules/unictype/combining-class-tests (Files): Likewise.
36612         * modules/unictype/ctype-alnum-tests (Files): Likewise.
36613         * modules/unictype/ctype-alpha-tests (Files): Likewise.
36614         * modules/unictype/ctype-blank-tests (Files): Likewise.
36615         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
36616         * modules/unictype/ctype-digit-tests (Files): Likewise.
36617         * modules/unictype/ctype-graph-tests (Files): Likewise.
36618         * modules/unictype/ctype-lower-tests (Files): Likewise.
36619         * modules/unictype/ctype-print-tests (Files): Likewise.
36620         * modules/unictype/ctype-punct-tests (Files): Likewise.
36621         * modules/unictype/ctype-space-tests (Files): Likewise.
36622         * modules/unictype/ctype-upper-tests (Files): Likewise.
36623         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
36624         * modules/unictype/decimal-digit-tests (Files): Likewise.
36625         * modules/unictype/digit-tests (Files): Likewise.
36626         * modules/unictype/mirror-tests (Files): Likewise.
36627         * modules/unictype/numeric-tests (Files): Likewise.
36628         * modules/unictype/property-alphabetic-tests (Files): Likewise.
36629         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
36630         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
36631         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
36632         Likewise.
36633         * modules/unictype/property-bidi-block-separator-tests (Files):
36634         Likewise.
36635         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
36636         Likewise.
36637         * modules/unictype/property-bidi-common-separator-tests (Files):
36638         Likewise.
36639         * modules/unictype/property-bidi-control-tests (Files): Likewise.
36640         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
36641         Likewise.
36642         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
36643         Likewise.
36644         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
36645         Likewise.
36646         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
36647         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
36648         Likewise.
36649         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
36650         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
36651         Likewise.
36652         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
36653         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
36654         * modules/unictype/property-bidi-segment-separator-tests (Files):
36655         Likewise.
36656         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
36657         * modules/unictype/property-byname-tests (Files): Likewise.
36658         * modules/unictype/property-combining-tests (Files): Likewise.
36659         * modules/unictype/property-composite-tests (Files): Likewise.
36660         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
36661         * modules/unictype/property-dash-tests (Files): Likewise.
36662         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
36663         * modules/unictype/property-default-ignorable-code-point-tests (Files):
36664         Likewise.
36665         * modules/unictype/property-deprecated-tests (Files): Likewise.
36666         * modules/unictype/property-diacritic-tests (Files): Likewise.
36667         * modules/unictype/property-extender-tests (Files): Likewise.
36668         * modules/unictype/property-format-control-tests (Files): Likewise.
36669         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
36670         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
36671         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
36672         * modules/unictype/property-hex-digit-tests (Files): Likewise.
36673         * modules/unictype/property-hyphen-tests (Files): Likewise.
36674         * modules/unictype/property-id-continue-tests (Files): Likewise.
36675         * modules/unictype/property-id-start-tests (Files): Likewise.
36676         * modules/unictype/property-ideographic-tests (Files): Likewise.
36677         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
36678         * modules/unictype/property-ids-trinary-operator-tests (Files):
36679         Likewise.
36680         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
36681         * modules/unictype/property-iso-control-tests (Files): Likewise.
36682         * modules/unictype/property-join-control-tests (Files): Likewise.
36683         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
36684         * modules/unictype/property-line-separator-tests (Files): Likewise.
36685         * modules/unictype/property-logical-order-exception-tests (Files):
36686         Likewise.
36687         * modules/unictype/property-lowercase-tests (Files): Likewise.
36688         * modules/unictype/property-math-tests (Files): Likewise.
36689         * modules/unictype/property-non-break-tests (Files): Likewise.
36690         * modules/unictype/property-not-a-character-tests (Files): Likewise.
36691         * modules/unictype/property-numeric-tests (Files): Likewise.
36692         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
36693         * modules/unictype/property-other-default-ignorable-code-point-tests
36694         (Files): Likewise.
36695         * modules/unictype/property-other-grapheme-extend-tests (Files):
36696         Likewise.
36697         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
36698         * modules/unictype/property-other-id-start-tests (Files): Likewise.
36699         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
36700         * modules/unictype/property-other-math-tests (Files): Likewise.
36701         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
36702         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
36703         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
36704         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
36705         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
36706         * modules/unictype/property-private-use-tests (Files): Likewise.
36707         * modules/unictype/property-punctuation-tests (Files): Likewise.
36708         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
36709         * modules/unictype/property-radical-tests (Files): Likewise.
36710         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
36711         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
36712         * modules/unictype/property-space-tests (Files): Likewise.
36713         * modules/unictype/property-terminal-punctuation-tests (Files):
36714         Likewise.
36715         * modules/unictype/property-test-tests (Files): Likewise.
36716         * modules/unictype/property-titlecase-tests (Files): Likewise.
36717         * modules/unictype/property-unassigned-code-value-tests (Files):
36718         Likewise.
36719         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
36720         * modules/unictype/property-uppercase-tests (Files): Likewise.
36721         * modules/unictype/property-variation-selector-tests (Files): Likewise.
36722         * modules/unictype/property-white-space-tests (Files): Likewise.
36723         * modules/unictype/property-xid-continue-tests (Files): Likewise.
36724         * modules/unictype/property-xid-start-tests (Files): Likewise.
36725         * modules/unictype/property-zero-width-tests (Files): Likewise.
36726         * modules/unictype/scripts-tests (Files): Likewise.
36727         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
36728         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
36729         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
36730         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
36731         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
36732         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
36733         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
36734         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
36735         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
36736         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
36737         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
36738         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
36739         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
36740         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
36741         * modules/uninorm/composition-tests (Files): Likewise.
36742         * modules/uninorm/decomposing-form-tests (Files): Likewise.
36743         * modules/uninorm/decomposition-tests (Files): Likewise.
36744         * modules/uninorm/filter-tests (Files): Likewise.
36745         * modules/uninorm/nfc-tests (Files): Likewise.
36746         * modules/uninorm/nfd-tests (Files): Likewise.
36747         * modules/uninorm/nfkc-tests (Files): Likewise.
36748         * modules/uninorm/nfkd-tests (Files): Likewise.
36749         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
36750         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
36751         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
36752         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
36753         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
36754         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
36755         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
36756         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
36757         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
36758         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
36759         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
36760         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
36761         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
36762         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
36763         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
36764         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
36765         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
36766         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
36767         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
36768         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
36769         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
36770         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
36771         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
36772         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
36773         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
36774         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
36775         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
36776         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
36777         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
36778         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
36779         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
36780         * modules/uniwidth/u8-width-tests (Files): Likewise.
36781         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
36782         * modules/uniwidth/u16-width-tests (Files): Likewise.
36783         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
36784         * modules/uniwidth/u32-width-tests (Files): Likewise.
36785         * modules/uniwidth/width-tests (Files): Likewise.
36786         * modules/unlink-tests (Files): Likewise.
36787         * modules/unsetenv-tests (Files): Likewise.
36788         * modules/usleep-tests (Files): Likewise.
36789         * modules/utimens-tests (Files): Likewise.
36790         * modules/utimensat-tests (Files): Likewise.
36791         * modules/vasnprintf-posix-tests (Files): Likewise.
36792         * modules/vasnprintf-tests (Files): Likewise.
36793         * modules/vasprintf-posix-tests (Files): Likewise.
36794         * modules/vasprintf-tests (Files): Likewise.
36795         * modules/vdprintf-posix-tests (Files): Likewise.
36796         * modules/vfprintf-posix-tests (Files): Likewise.
36797         * modules/vprintf-posix-tests (Files): Likewise.
36798         * modules/vsnprintf-posix-tests (Files): Likewise.
36799         * modules/vsnprintf-tests (Files): Likewise.
36800         * modules/vsprintf-posix-tests (Files): Likewise.
36801         * modules/wcrtomb-tests (Files): Likewise.
36802         * modules/wcsnrtombs-tests (Files): Likewise.
36803         * modules/wcsrtombs-tests (Files): Likewise.
36804         * modules/wctype-tests (Files): Likewise.
36805         * modules/wcwidth-tests (Files): Likewise.
36806         * modules/xmemdup0-tests (Files): Likewise.
36807         * modules/xprintf-posix-tests (Files): Likewise.
36808         * modules/xvasprintf-tests (Files): Likewise.
36809
36810 2009-12-24  Eric Blake  <ebb9@byu.net>
36811
36812         test-nanosleep: fix typo
36813         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
36814         patch.
36815         Reported by Bruno Haible.
36816
36817 2009-12-24  Bruno Haible  <bruno@clisp.org>
36818
36819         Reduce namespace pollution on glibc systems.
36820         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
36821         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
36822         systems.
36823         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
36824         <getopt.h> on glibc systems.
36825         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
36826         systems.
36827         * lib/fcntl.c: Include <unistd.h> here instead.
36828
36829 2009-12-24  Bruno Haible  <bruno@clisp.org>
36830
36831         * lib/stdlib.in.h (includes): Fix typo in today's commit.
36832
36833 2009-12-24  Eric Blake  <ebb9@byu.net>
36834
36835         tests: add signature checks
36836         * tests/signature.h (SIGNATURE_CHECK): New file.
36837         * modules/atexit-tests (Files): Use it.
36838         * modules/btowc-tests (Files): Likewise.
36839         * modules/canonicalize-lgpl-tests (Files): Likewise.
36840         * modules/ceilf-tests (Files): Likewise.
36841         * modules/ceill-tests (Files): Likewise.
36842         * modules/chown-tests (Files): Likewise.
36843         * modules/dprintf-posix-tests (Files): Likewise.
36844         * modules/dup2-tests (Files): Likewise.
36845         * modules/dup3-tests (Files): Likewise.
36846         * modules/duplocale-tests (Files): Likewise.
36847         * modules/fchdir-tests (Files): Likewise.
36848         * modules/fcntl-tests (Files): Likewise.
36849         * modules/fdopendir-tests (Files): Likewise.
36850         * modules/fflush-tests (Files): Likewise.
36851         * modules/flock-tests (Files): Likewise.
36852         * modules/floorf-tests (Files): Likewise.
36853         * modules/floorl-tests (Files): Likewise.
36854         * modules/fnmatch-tests (Files): Likewise.
36855         * modules/fopen-tests (Files): Likewise.
36856         * modules/fprintf-posix-tests (Files): Likewise.
36857         * modules/freopen-tests (Files): Likewise.
36858         * modules/frexp-nolibm-tests (Files): Likewise.
36859         * modules/frexp-tests (Files): Likewise.
36860         * modules/frexpl-nolibm-tests (Files): Likewise.
36861         * modules/frexpl-tests (Files): Likewise.
36862         * modules/fseek-tests (Files): Likewise.
36863         * modules/fseeko-tests (Files): Likewise.
36864         * modules/fsync-tests (Files): Likewise.
36865         * modules/ftell-tests (Files): Likewise.
36866         * modules/ftello-tests (Files): Likewise.
36867         * modules/futimens-tests (Files): Likewise.
36868         * modules/getaddrinfo-tests (Files): Likewise.
36869         * modules/getcwd-tests (Files): Likewise.
36870         * modules/getdelim-tests (Files): Likewise.
36871         * modules/getdtablesize-tests (Files): Likewise.
36872         * modules/getgroups-tests (Files): Likewise.
36873         * modules/gethostname-tests (Files): Likewise.
36874         * modules/getline-tests (Files): Likewise.
36875         * modules/getopt-posix-tests (Files): Likewise.
36876         * modules/gettimeofday-tests (Files): Likewise.
36877         * modules/glob-tests (Files): Likewise.
36878         * modules/iconv-tests (Files): Likewise.
36879         * modules/inet_ntop-tests (Files): Likewise.
36880         * modules/inet_pton-tests (Files): Likewise.
36881         * modules/isblank-tests (Files): Likewise.
36882         * modules/lchown-tests (Files): Likewise.
36883         * modules/ldexpl-tests (Files): Likewise.
36884         * modules/link-tests (Files): Likewise.
36885         * modules/linkat-tests (Files): Likewise.
36886         * modules/lseek-tests (Files): Likewise.
36887         * modules/lstat-tests (Files): Likewise.
36888         * modules/mbrtowc-tests (Files): Likewise.
36889         * modules/mbsinit-tests (Files): Likewise.
36890         * modules/mbsnrtowcs-tests (Files): Likewise.
36891         * modules/mbsrtowcs-tests (Files): Likewise.
36892         * modules/memchr-tests (Files): Likewise.
36893         * modules/memcmp-tests (Files): Likewise.
36894         * modules/memmem-tests (Files): Likewise.
36895         * modules/memrchr-tests (Files): Likewise.
36896         * modules/mkdir-tests (Files): Likewise.
36897         * modules/mkfifo-tests (Files): Likewise.
36898         * modules/mkfifoat-tests (Files): Likewise.
36899         * modules/mknod-tests (Files): Likewise.
36900         * modules/nanosleep-tests (Files): Likewise.
36901         * modules/nl_langinfo-tests (Files): Likewise.
36902         * modules/obstack-printf-tests (Files): Likewise.
36903         * modules/open-tests (Files): Likewise.
36904         * modules/openat-tests (Files): Likewise.
36905         * modules/perror-tests (Files): Likewise.
36906         * modules/pipe2-tests (Files): Likewise.
36907         * modules/poll-tests (Files): Likewise.
36908         * modules/popen-tests (Files): Likewise.
36909         * modules/posix_spawn-tests (Files): Likewise.
36910         * modules/posix_spawnp-tests (Files): Likewise.
36911         * modules/pread-tests (Files): Likewise.
36912         * modules/printf-posix-tests (Files): Likewise.
36913         * modules/pty-tests (Files): Likewise.
36914         * modules/random_r-tests (Files): Likewise.
36915         * modules/rawmemchr-tests (Files): Likewise.
36916         * modules/readlink-tests (Files): Likewise.
36917         * modules/remove-tests (Files): Likewise.
36918         * modules/rename-tests (Files): Likewise.
36919         * modules/renameat-tests (Files): Likewise.
36920         * modules/rmdir-tests (Files): Likewise.
36921         * modules/round-tests (Files): Likewise.
36922         * modules/roundf-tests (Files): Likewise.
36923         * modules/roundl-tests (Files): Likewise.
36924         * modules/select-tests (Files): Likewise.
36925         * modules/setenv-tests (Files): Likewise.
36926         * modules/sigaction-tests (Files): Likewise.
36927         * modules/sleep-tests (Files): Likewise.
36928         * modules/snprintf-posix-tests (Files): Likewise.
36929         * modules/snprintf-tests (Files): Likewise.
36930         * modules/sprintf-posix-tests (Files): Likewise.
36931         * modules/stat-tests (Files): Likewise.
36932         * modules/strcasestr-tests (Files): Likewise.
36933         * modules/strchrnul-tests (Files): Likewise.
36934         * modules/strerror-tests (Files): Likewise.
36935         * modules/strsignal-tests (Files): Likewise.
36936         * modules/strstr-tests (Files): Likewise.
36937         * modules/strtod-tests (Files): Likewise.
36938         * modules/strverscmp-tests (Files): Likewise.
36939         * modules/symlink-tests (Files): Likewise.
36940         * modules/symlinkat-tests (Files): Likewise.
36941         * modules/times-tests (Files): Likewise.
36942         * modules/trunc-tests (Files): Likewise.
36943         * modules/truncf-tests (Files): Likewise.
36944         * modules/truncl-tests (Files): Likewise.
36945         * modules/tsearch-tests (Files): Likewise.
36946         * modules/uname-tests (Files): Likewise.
36947         * modules/unlink-tests (Files): Likewise.
36948         * modules/unsetenv-tests (Files): Likewise.
36949         * modules/usleep-tests (Files): Likewise.
36950         * modules/utimensat-tests (Files): Likewise.
36951         * modules/vasprintf-tests (Files): Likewise.
36952         * modules/vdprintf-posix-tests (Files): Likewise.
36953         * modules/vfprintf-posix-tests (Files): Likewise.
36954         * modules/vprintf-posix-tests (Files): Likewise.
36955         * modules/vsnprintf-posix-tests (Files): Likewise.
36956         * modules/vsnprintf-tests (Files): Likewise.
36957         * modules/vsprintf-posix-tests (Files): Likewise.
36958         * modules/wcrtomb-tests (Files): Likewise.
36959         * modules/wcsnrtombs-tests (Files): Likewise.
36960         * modules/wcsrtombs-tests (Files): Likewise.
36961         * modules/wcwidth-tests (Files): Likewise.
36962         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
36963         * tests/test-isinf.c (isinf): Likewise.
36964         * tests/test-isnan.c (isnan): Likewise.
36965         * tests/test-signbit.c (signbit): Likewise.
36966         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
36967         declaration, either as macro or with correct signature.
36968         (select): Ensure function under test is declared with correct
36969         signature in correct header.
36970         * tests/test-atexit.c (atexit): Likewise.
36971         * tests/test-btowc.c (btowc): Likewise.
36972         * tests/test-canonicalize-lgpl.c (realpath)
36973         (canonicalize_file_name): Likewise.
36974         * tests/test-ceilf1.c (ceilf): Likewise.
36975         * tests/test-ceill.c (ceill): Likewise.
36976         * tests/test-chown.c (chown): Likewise.
36977         * tests/test-dprintf-posix.c (dprintf): Likewise.
36978         * tests/test-dup2.c (dup2): Likewise.
36979         * tests/test-dup3.c (dup3): Likewise.
36980         * tests/test-duplocale.c (duplocale): Likewise.
36981         * tests/test-fchdir.c (fchdir): Likewise.
36982         * tests/test-fchownat.c (fchownat): Likewise.
36983         * tests/test-fcntl.c (fcntl): Likewise.
36984         * tests/test-fdopendir.c (fdopendir): Likewise.
36985         * tests/test-fflush.c (fflush): Likewise.
36986         * tests/test-flock.c (flock): Likewise.
36987         * tests/test-floorf1.c (floorf): Likewise.
36988         * tests/test-floorl.c (floorl): Likewise.
36989         * tests/test-fnmatch.c (fnmatch): Likewise.
36990         * tests/test-fopen.c (fopen): Likewise.
36991         * tests/test-fprintf-posix.c (fprintf): Likewise.
36992         * tests/test-freopen.c (freopen): Likewise.
36993         * tests/test-frexp.c (frexp): Likewise.
36994         * tests/test-frexpl.c (frexpl): Likewise.
36995         * tests/test-fseek.c (fseek): Likewise.
36996         * tests/test-fseeko.c (fseeko): Likewise.
36997         * tests/test-fstatat.c (fstatat): Likewise.
36998         * tests/test-fsync.c (fsync): Likewise.
36999         * tests/test-ftell.c (ftell): Likewise.
37000         * tests/test-ftello.c (ftello): Likewise.
37001         * tests/test-futimens.c (futimens): Likewise.
37002         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
37003         (gai_strerror): Likewise.
37004         * tests/test-getcwd.c (getcwd): Likewise.
37005         * tests/test-getdelim.c (getdelim): Likewise.
37006         * tests/test-getdtablesize.c (getdtablesize): Likewise.
37007         * tests/test-getgroups.c (getgroups): Likewise.
37008         * tests/test-gethostname.c (gethostname): Likewise.
37009         * tests/test-getline.c (getline): Likewise.
37010         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
37011         Likewise.
37012         * tests/test-gettimeofday.c (gettimeofday): Likewise.
37013         * tests/test-glob.c (glob, globfree): Likewise.
37014         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
37015         * tests/test-inet_ntop.c (inet_ntop): Likewise.
37016         * tests/test-inet_pton.c (inet_pton): Likewise.
37017         * tests/test-isblank.c (isblank): Likewise.
37018         * tests/test-lchown.c (lchown): Likewise.
37019         * tests/test-ldexpl.c (ldexpl): Likewise.
37020         * tests/test-link.c (link): Likewise.
37021         * tests/test-linkat.c (linkat): Likewise.
37022         * tests/test-lseek.c (lseek): Likewise.
37023         * tests/test-lstat.c (lstat): Likewise.
37024         * tests/test-mbrtowc.c (mbrtowc): Likewise.
37025         * tests/test-mbsinit.c (mbsinit): Likewise.
37026         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
37027         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
37028         * tests/test-memchr.c (memchr): Likewise.
37029         * tests/test-memcmp.c (memcmp): Likewise.
37030         * tests/test-memmem.c (memmem): Likewise.
37031         * tests/test-memrchr.c (memrchr): Likewise.
37032         * tests/test-mkdir.c (mkdir): Likewise.
37033         * tests/test-mkdirat.c (mkdirat): Likewise.
37034         * tests/test-mkfifo.c (mkfifo): Likewise.
37035         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
37036         * tests/test-mknod.c (mknod): Likewise.
37037         * tests/test-nanosleep.c (nanosleep): Likewise.
37038         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
37039         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
37040         Likewise.
37041         * tests/test-open.c (open): Likewise.
37042         * tests/test-openat.c (openat): Likewise.
37043         * tests/test-perror.c (perror): Likewise.
37044         * tests/test-pipe2.c (pipe2): Likewise.
37045         * tests/test-poll.c (poll): Likewise.
37046         * tests/test-popen.c (popen, pclose): Likewise.
37047         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
37048         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
37049         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
37050         (posix_spawn_file_actions_destroy)
37051         (posix_spawn_file_actions_addclose)
37052         (posix_spawn_file_actions_addopen)
37053         (posix_spawn_file_actions_adddup2): Likewise.
37054         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
37055         * tests/test-pread.c (pread): Likewise.
37056         * tests/test-printf-posix.c (printf): Likewise.
37057         * tests/test-pty.c (openpty, forkpty): Likewise.
37058         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
37059         (random_r): Likewise.
37060         * tests/test-rawmemchr.c (rawmemchr): Likewise.
37061         * tests/test-readlink.c (readlink): Likewise.
37062         * tests/test-remove.c (remove): Likewise.
37063         * tests/test-rename.c (rename): Likewise.
37064         * tests/test-renameat.c (renameat): Likewise.
37065         * tests/test-rmdir.c (rmdir): Likewise.
37066         * tests/test-round1.c (round): Likewise.
37067         * tests/test-roundf1.c (roundf): Likewise.
37068         * tests/test-roundl.c (roundl): Likewise.
37069         * tests/test-setenv.c (setenv): Likewise.
37070         * tests/test-sigaction.c (sigaction): Likewise.
37071         * tests/test-sleep.c (sleep): Likewise.
37072         * tests/test-snprintf.c (snprintf): Likewise.
37073         * tests/test-sprintf-posix.c (sprintf): Likewise.
37074         * tests/test-stat.c (stat): Likewise.
37075         * tests/test-stpncpy.c (stpncpy): Likewise.
37076         * tests/test-strcasestr.c (strcasestr): Likewise.
37077         * tests/test-strchrnul.c (strchrnul): Likewise.
37078         * tests/test-strerror.c (strerror): Likewise.
37079         * tests/test-strsignal.c (strsignal): Likewise.
37080         * tests/test-strstr.c (strstr): Likewise.
37081         * tests/test-strtod.c (strtod): Likewise.
37082         * tests/test-strverscmp.c (strverscmp): Likewise.
37083         * tests/test-symlink.c (symlink): Likewise.
37084         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
37085         * tests/test-times.c (times): Likewise.
37086         * tests/test-trunc1.c (trunc): Likewise.
37087         * tests/test-truncf1.c (truncf): Likewise.
37088         * tests/test-truncl.c (truncl): Likewise.
37089         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
37090         Likewise.
37091         * tests/test-uname.c (uname): Likewise.
37092         * tests/test-unlink.c (unlink): Likewise.
37093         * tests/test-unlinkat.c (unlinkat): Likewise.
37094         * tests/test-unsetenv.c (unsetenv): Likewise.
37095         * tests/test-usleep.c (usleep): Likewise.
37096         * tests/test-utimensat.c (utimensat): Likewise.
37097         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
37098         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
37099         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
37100         * tests/test-vprintf-posix.c (vprintf): Likewise.
37101         * tests/test-vsnprintf.c (vsnprintf): Likewise.
37102         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
37103         * tests/test-wcrtomb.c (wcrtomb): Likewise.
37104         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
37105         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
37106         * tests/test-wcwidth.c (wcwidth): Likewise.
37107
37108         build: pull in conditional headers during GNULIB_POSIXCHECK
37109         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
37110         definitions from any conditionally-included headers.
37111         * lib/stdlib.in.h (includes): Likewise.
37112         * lib/unistd.in.h (includes): Likewise.
37113
37114 2009-12-24  Bruno Haible  <bruno@clisp.org>
37115
37116         * tests/test-argv-iter.c: Include header file being tested immediately
37117         after config.h.
37118         * tests/test-base64.c: Likewise.
37119         * tests/test-flock.c: Likewise.
37120         * tests/test-fsync.c: Likewise.
37121         * tests/test-getdate.c: Likewise.
37122         * tests/test-getndelim2.c: Likewise.
37123         * tests/test-isfinite.c: Likewise.
37124         * tests/test-isinf.c: Likewise.
37125         * tests/test-strerror.c: Likewise.
37126         * tests/test-strsignal.c: Likewise.
37127
37128 2009-12-23  Eric Blake  <ebb9@byu.net>
37129
37130         unistd: work around cygwin bug
37131         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
37132         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
37133         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
37134
37135 2009-12-23  Bruno Haible  <bruno@clisp.org>
37136
37137         localename: More tests.
37138         * tests/test-localename.c (SIZEOF): New macro.
37139         (categories): New variable.
37140         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
37141         test_locale_name_default): Add test w.r.t. thread locale.
37142         (test_locale_name_thread): New function.
37143         (main): Invoke it.
37144
37145         localename: Make aware of thread locale.
37146         * lib/localename.h (gl_locale_name_thread): New declaration.
37147         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
37148         behaviour with respect to thread locale.
37149         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
37150         <langinfo.h>, glthread/lock.h.
37151         (SIZE_BITS): New macro.
37152         (string_hash): New function.
37153         (struct hash_node): New type.
37154         (HASH_TABLE_SIZE): New macro.
37155         (struniq_hash_table, struniq_lock): New variables.
37156         (struniq): New function.
37157         (gl_locale_name_thread): New function.
37158         (gl_locale_name): Invoke it.
37159         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
37160         * modules/localename (Depends-on): Add lock.
37161         Reported by Mike Gran <spk121@yahoo.com>.
37162
37163 2009-12-23  Eric Blake  <ebb9@byu.net>
37164
37165         va-args: new module
37166         * modules/va-args: New file.
37167         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
37168         * MODULES.html.sh (Core language properties): Mention it.
37169
37170         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
37171         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
37172         named alias for __attribute__((__unused__)).
37173         * lib/chown.c: Update client.
37174         * lib/fchmodat.c: Likewise.
37175         * lib/fts.c: Likewise.
37176         * lib/getdate.y: Likewise.
37177         * lib/getgroups.c: Likewise.
37178         * lib/getopt.c: Likewise.
37179         * lib/getugroups.c: Likewise.
37180         * lib/mkdir.c: Likewise.
37181         * lib/mkfifo.c: Likewise.
37182         * lib/mkfifoat.c: Likewise.
37183         * lib/mknod.c: Likewise.
37184         * lib/mknodat.c: Likewise.
37185         * lib/readlink.c: Likewise.
37186         * lib/se-context.in.h: Likewise.
37187         * lib/se-selinux.in.h: Likewise.
37188         * lib/sockets.c: Likewise.
37189         * lib/symlink.c: Likewise.
37190         * lib/symlinkat.c: Likewise.
37191         * lib/unicodeio.c: Likewise.
37192         * lib/unistr.h: Likewise.
37193         * tests/test-areadlink.c: Likewise.
37194         * tests/test-areadlinkat.c: Likewise.
37195         * tests/test-filenamecat.c: Likewise.
37196         * tests/test-fseeko.c: Likewise.
37197         * tests/test-ftello.c: Likewise.
37198         * tests/test-getdate.c: Likewise.
37199         * tests/test-getgroups.c: Likewise.
37200         * tests/test-gethostname.c: Likewise.
37201         * tests/test-quotearg.c: Likewise.
37202         * tests/test-version-etc.c: Likewise.
37203         * tests/test-xalloc-die.c: Likewise.
37204         * tests/test-xfprintf-posix.c: Likewise.
37205         * tests/test-xprintf-posix.c: Likewise.
37206         * tests/test-xvasprintf.c: Likewise.
37207
37208         tests: avoid compiler warnings
37209         * tests/test-fcntl.c (main): Delete unused parameters.
37210         * tests/test-freopen-safer.c (main): Likewise.
37211         * tests/test-xalloc-die.c (main): Mark unused parameters.
37212         * tests/test-fseeko.c (main): Likewise.
37213         * tests/test-ftello.c (main): Likewise.
37214         * tests/test-nanosleep.c (main): Avoid declaration warning.
37215         * tests/test-sleep.c (main): Likewise.
37216         * tests/test-unsetenv.c (main): Silence warning about string
37217         literal.
37218         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
37219
37220 2009-12-23  Bruno Haible  <bruno@clisp.org>
37221
37222         * tests/test-localename.c (test_locale_name): New function, extracted
37223         from main. Also test mixed situations.
37224         (test_locale_name_posix, test_locale_name_environ,
37225         test_locale_name_default): New functions.
37226         (main): Invoke them all.
37227         * modules/localename-tests (configure.ac): Test for newlocale.
37228
37229 2009-12-23  Bruno Haible  <bruno@clisp.org>
37230
37231         unistd: Ensure getcwd gets declared before being overridden.
37232         * lib/unistd.in.h: Conditionally include <io.h>.
37233
37234 2009-12-22  Bruno Haible  <bruno@clisp.org>
37235
37236         wchar: Diagnose broken combination of glibc and gcc versions and flags.
37237         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
37238         (gl_WCHAR_H): Invoke it.
37239         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
37240         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
37241         Reported by Karl Berry <karl@freefriends.org>.
37242
37243 2009-12-22  Eric Blake  <ebb9@byu.net>
37244
37245         math, unistd: avoid redundant includes
37246         * lib/math.in.h (isnan): No need to re-include <math.h>.
37247         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
37248
37249         getsubopt: work around cygwin bug
37250         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
37251         avoid conflicting with system getsubopt.
37252         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
37253         bug.
37254
37255         getopt: synchronize from glibc
37256         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
37257         parameter order.  Adjust all callers.
37258         (_getopt_internal_r, main): Adjust quoting in error messages.
37259         Drop considerations for outdated POSIX 1003.2 error message.
37260         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
37261         callers.
37262         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
37263
37264         test-getopt: test stderr behavior
37265         * modules/getopt-posix-tests (Depends-on): Add dup2.
37266         * tests/test-getopt.c (ASSERT): Avoid stderr.
37267         (main): Move stderr to a temporary file.
37268         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
37269         Instead, add parameter to inform caller if output occurred.
37270         (test_getopt): Adjust all existing tests to expect silence, and
37271         add new tests of leading ":".
37272         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37273         glibc shortcomings with leading "-:" or "+:" in optstring.
37274         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37275         Likewise.
37276         * doc/posix-functions/getopt.texi (getopt): Likewise.
37277
37278         test-getopt: enhance test
37279         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
37280         supports optind=0.
37281         * tests/test-getopt.c (OPTIND_MIN): Move...
37282         * tests/test-getopt.h (OPTIND_MIN): ...here.
37283         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
37284         Require that optind=0 works, since modern BSD supports it in
37285         addition to optreset, and since coreutils expects it.
37286         (test_getopt_long_only): New test.
37287         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37288         glibc shortcomings with 'W;', and enforcement of optind=0.
37289         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37290         Likewise.
37291
37292 2009-12-21  Bruno Haible  <bruno@clisp.org>
37293
37294         localename: Improvements for MacOS X and Cygwin.
37295         * lib/localename.h (gl_locale_name_environ): New declaration.
37296         * lib/localename.c (gl_locale_name_environ): New function, extracted from
37297         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
37298         (gl_locale_name_posix): Invoke it.
37299         (gl_locale_name_default): Add comments. Use Windows native API also on
37300         Cygwin.
37301
37302 2009-12-21  Bruno Haible  <bruno@clisp.org>
37303
37304         Update list of Win32 locale ids.
37305         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
37306         (LANG_SAMI): Renamed from LANG_SAAMI.
37307         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
37308         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
37309         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
37310         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
37311         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
37312         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
37313         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
37314         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
37315         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
37316         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
37317         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
37318         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
37319         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
37320         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
37321         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
37322         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
37323         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
37324         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
37325         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
37326         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
37327         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
37328         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
37329         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
37330         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
37331         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
37332         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
37333         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
37334         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
37335         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
37336         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
37337         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
37338         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
37339         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
37340         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
37341         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
37342         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
37343         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
37344         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
37345         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
37346         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
37347         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
37348         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
37349         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
37350         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
37351         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
37352         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
37353         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
37354         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
37355         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
37356         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
37357         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
37358         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
37359         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
37360         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
37361         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
37362         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
37363         Add more languages and countries for Sami, Sorbian. Add more countries
37364         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
37365         for Pashto. Change country for Syriac, Tswana.
37366
37367 2009-12-21  Eric Blake  <ebb9@byu.net>
37368
37369         test-utimens: avoid spurious failure
37370         * tests/test-chown.h (nap): Factor...
37371         * tests/nap.h: ...into new file.
37372         * tests/test-lchown.h (nap): Avoid duplication.
37373         * tests/test-utimens-common.h (nap): Use shared implementation,
37374         necessary on file systems with 1-second resolution.
37375         * modules/chown-tests (Files): Include new file.
37376         * modules/fdutimensat-tests (Files): Likewise.
37377         * modules/futimens-tests (Files): Likewise.
37378         * modules/lchown-tests (Files): Likewise.
37379         * modules/openat-tests (Files): Likewise.
37380         * modules/utimens-tests (Files): Likewise.
37381         * modules/utimensat-tests (Files): Likewise.
37382
37383 2009-12-19  Eric Blake  <ebb9@byu.net>
37384
37385         futimens, utimensat: work around Linux bug
37386         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
37387         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
37388         * lib/utimensat.c (rpl_utimensat): Work around it.
37389         * lib/futimens.c (rpl_futimens): Adjust comment.
37390
37391         utimens: work around Linux ctime bug
37392         * lib/utimens.c (detect_ctime_bug): New helper function.
37393         (update_timespec): Differentiate between workaround needed for
37394         this bug vs. what is needed for systems that lack utimensat.
37395         (fdutimens, lutimens): Work around bug.
37396
37397         utimens: check for ctime update
37398         * tests/test-utimens-common.h (check_ctime): Define.
37399         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
37400         * tests/test-futimens.h (test_futimens): Likewise.
37401         * tests/test-lutimens.h (test_lutimens): Likewise.
37402         * doc/posix-functions/futimens.texi (futimens): Document the bug.
37403         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
37404
37405 2009-12-19  Bruno Haible  <bruno@clisp.org>
37406
37407         dprintf-posix: Check against memory leak fixed on 2009-12-15.
37408         * tests/test-dprintf-posix2.sh: New file.
37409         * tests/test-dprintf-posix2.c: New file.
37410         * modules/dprintf-posix-tests (Files): Add them.
37411         (configure.ac): Check for getrlimit and setrlimit.
37412         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37413
37414 2009-12-19  Bruno Haible  <bruno@clisp.org>
37415
37416         fprintf-posix: Check against memory leak fixed on 2009-12-15.
37417         * tests/test-fprintf-posix3.sh: New file.
37418         * tests/test-fprintf-posix3.c: New file.
37419         * modules/fprintf-posix-tests (Files): Add them.
37420         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37421
37422 2009-12-19  Eric Blake  <ebb9@byu.net>
37423
37424         dirfd: fix prototype
37425         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
37426         * lib/dirfd.c (dirfd): Likewise.
37427
37428         canonicalize: reduce memory usage
37429         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
37430         allocation to size.
37431         Reported by Solar Designer <solar@openwall.com>.
37432
37433 2009-12-19  Bruno Haible  <bruno@clisp.org>
37434
37435         New module attribute 'Applicability'.
37436         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
37437         * gnulib-tool: New option --extract-applicability.
37438         (func_usage): Document it.
37439         (sed_extract_prog): Recognize it.
37440         (func_get_applicability): New function.
37441         (func_import): Generalize handling of 'link-warning' module.
37442         * modules/link-warning (Applicability): New section.
37443         * modules/arg-nonnull (Applicability): New section.
37444         Repoted by Simon Josefsson <simon@josefsson.org>.
37445
37446 2009-12-19  Bruno Haible  <bruno@clisp.org>
37447
37448         fflush: tweak
37449         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
37450         * lib/fseeko.c (rpl_fseeko): Likewise.
37451
37452 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
37453
37454         * lib/gl_list.h: Fix typo in comment.
37455
37456 2009-12-16  Eric Blake  <ebb9@byu.net>
37457
37458         fcntl: use to simplify other modules
37459         * modules/cloexec (Depends-on): Add fcntl.
37460         * modules/fchdir (Depends-on): Likewise.
37461         * modules/fd-safer-flag (Depends-on): Likewise.
37462         * modules/unistd-safer (Depends-on): Likewise.
37463         * modules/dup3 (configure.ac): Set module indicator.
37464         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
37465         missing.
37466         * lib/fchdir.c (_gl_register_dup): Fix comment.
37467         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
37468         * lib/dup-safer.c (dup_safer): Likewise.
37469         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
37470         * lib/dup3.c (dup3): Likewise.
37471         * tests/test-fchdir.c (main): Enhance test.
37472         Fixes a dup_cloexec bug reported by Ondřej Vašík.
37473
37474         fcntl: port portions of fcntl to mingw
37475         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
37476         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
37477         replacement for mingw.
37478         * modules/fcntl (Description): Update.
37479         (Depends-on): Add dup2.
37480         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
37481         * modules/fcntl-h (Makefile.am): Substitute it.
37482         * lib/fcntl.in.h (fcntl): Update declaration.
37483         (F_DUPFD, F_GETFD): New macros, when needed.
37484         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37485         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
37486         * tests/test-fcntl.c (check_flags, main): Enhance test for items
37487         we now guarantee.
37488
37489         fcntl: work around cygwin bug in F_DUPFD
37490         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
37491         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
37492         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
37493         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
37494         * doc/posix-functions/fcntl.texi (fcntl): Document it.
37495
37496         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
37497         * modules/fcntl (Files): List new files.
37498         (configure.ac): Run a test.
37499         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
37500         * lib/fcntl.c (rpl_fcntl): Likewise.
37501         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
37502         (gl_FCNTL_H): Always replace fcntl.h.
37503         * modules/fcntl-h (Makefile.am): Substitute witnesses.
37504         * lib/fcntl.in.h (fcntl): Declare replacement.
37505         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
37506         needed, plus a witness.
37507         * doc/posix-functions/fcntl.texi (fcntl): Document this.
37508         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
37509         * tests/test-fcntl.c: New file.
37510         * modules/fcntl-tests: Likewise.
37511
37512         binary-io: avoid potential compilation warning
37513         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
37514         directives.
37515
37516         fflush: avoid compilation error on NetBSD
37517         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
37518         between off_t and fpos_t, since the latter is sometimes a struct.
37519         * lib/fseeko.c (rpl_fseeko): Likewise.
37520         Reported by Alexander Nasonov <alnsn@yandex.ru>.
37521
37522 2009-12-15  Eric Blake  <ebb9@byu.net>
37523
37524         fcntl-h, stdio, sys_ioctl: fix declarations
37525         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
37526         function must not take arguments.
37527         * lib/sys_ioctl.in.h (ioctl): Likewise.
37528         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
37529         (open): Add a link warning.
37530
37531 2009-12-15  Jim Meyering  <meyering@redhat.com>
37532
37533         areadlink, areadlink-with-size: relax license to LGPLv2+
37534         * modules/areadlink (License): Relax to LGPLv2+.
37535         * modules/areadlink-with-size (License): Likewise.
37536
37537 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
37538             Bruno Haible  <bruno@clisp.org>
37539
37540         *printf: Fix memory leak.
37541         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
37542         * lib/vfprintf.c (vfprintf): Likewise.
37543         * lib/dprintf.c (dprintf): Likewise.
37544         * lib/vdprintf.c (vdprintf): Likewise.
37545
37546 2009-12-14  Eric Blake  <ebb9@byu.net>
37547
37548         accept4: adjust module dependencies
37549         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
37550
37551         utimens: one more try at avoiding compiler warning
37552         * lib/utimens.c (lutimens): Lower scope of result.
37553
37554 2009-12-13  Bruno Haible  <bruno@clisp.org>
37555
37556         Move the malloc checking from module 'list' to new module 'xlist'.
37557         * modules/xlist: New file.
37558         * lib/gl_xlist.h: New file.
37559         * lib/gl_xlist.c: New file.
37560         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
37561         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
37562         gl_list_add_last, gl_list_add_before, gl_list_add_after,
37563         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
37564         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
37565         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
37566         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
37567         gl_sortedlist_nx_add): New declarations.
37568         (struct gl_list_implementation): Rename and change methods accordingly.
37569         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
37570         (gl_list_nx_create): Renamed from gl_list_create.
37571         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37572         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37573         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37574         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37575         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37576         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37577         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37578         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37579         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
37580         gl_list_create_empty.
37581         (gl_list_nx_create): Renamed from gl_list_create.
37582         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37583         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37584         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37585         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37586         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37587         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37588         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37589         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37590         * lib/gl_array_list.c: Don't include xalloc.h.
37591         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
37592         NULL upon out-of-memory.
37593         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
37594         out-of-memory.
37595         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
37596         Change return type to 'int'.
37597         (gl_array_nx_set_at): Renamed from gl_array_set_at.
37598         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37599         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
37600         upon out-of-memory.
37601         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
37602         upon out-of-memory.
37603         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
37604         upon out-of-memory.
37605         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
37606         upon out-of-memory.
37607         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
37608         out-of-memory.
37609         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
37610         Update.
37611         (gl_array_list_implementation): Update.
37612         * lib/gl_carray_list.c: Don't include xalloc.h.
37613         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
37614         Return NULL upon out-of-memory.
37615         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
37616         out-of-memory.
37617         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
37618         Change return type to 'int'.
37619         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
37620         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37621         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
37622         upon out-of-memory.
37623         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
37624         upon out-of-memory.
37625         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
37626         out-of-memory.
37627         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
37628         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
37629         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
37630         Update.
37631         (gl_carray_list_implementation): Update.
37632         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
37633         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
37634         gl_linked_create_empty. Return NULL upon out-of-memory.
37635         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
37636         out-of-memory.
37637         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
37638         Change return type to 'int'. Return -1 upon out-of-memory.
37639         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
37640         out-of-memory.
37641         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
37642         upon out-of-memory.
37643         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
37644         upon out-of-memory.
37645         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
37646         NULL upon out-of-memory.
37647         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
37648         upon out-of-memory.
37649         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
37650         out-of-memory.
37651         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
37652         Update.
37653         * lib/gl_linked_list.c: Don't include xalloc.h.
37654         (gl_linked_list_implementation): Update.
37655         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
37656         (add_to_bucket): Change return type to 'int'.
37657         (gl_linkedhash_list_implementation): Update.
37658         * lib/gl_anytree_list1.h (free_subtree): New function.
37659         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
37660         gl_tree_create_empty. Return NULL upon out-of-memory.
37661         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
37662         Change return type to 'int'. Return -1 upon out-of-memory.
37663         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
37664         out-of-memory.
37665         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
37666         (gl_tree_remove_node): New function, moved here from
37667         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
37668         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
37669         Update.
37670         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
37671         malloc, not xmalloc. Return NULL upon out-of-memory.
37672         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37673         out-of-memory.
37674         (gl_tree_remove_node_from_tree): New function, extracted from
37675         gl_tree_remove_node.
37676         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37677         upon out-of-memory.
37678         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37679         out-of-memory.
37680         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37681         upon out-of-memory.
37682         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37683         upon out-of-memory.
37684         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37685         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
37686         not xmalloc. Return NULL upon out-of-memory.
37687         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37688         out-of-memory.
37689         (gl_tree_remove_node_from_tree): New function, extracted from
37690         gl_tree_remove_node.
37691         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37692         upon out-of-memory.
37693         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37694         out-of-memory.
37695         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37696         upon out-of-memory.
37697         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37698         upon out-of-memory.
37699         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37700         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
37701         gl_anytree_list1.h before gl_anyavltree_list2.h.
37702         (gl_avltree_list_implementation): Update.
37703         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
37704         gl_anytree_list1.h before gl_anyavltree_list2.h.
37705         (gl_rbtree_list_implementation): Update.
37706         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
37707         Change return type to 'int'. Return -1 upon out-of-memory. Use
37708         __builtin_expect.
37709         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
37710         (gl_avltreehash_list_implementation): Update.
37711         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
37712         (gl_rbtreehash_list_implementation): Update.
37713         * modules/array-list (Depends-on): Remove xalloc.
37714         * modules/carray-list (Depends-on): Likewise.
37715         * modules/linked-list (Depends-on): Likewise.
37716         * modules/linkedhash-list (Depends-on): Likewise.
37717         * modules/avltree-list (Depends-on): Likewise.
37718         * modules/rbtree-list (Depends-on): Likewise.
37719         * modules/avltreehash-list (Depends-on): Likewise.
37720         * modules/rbtreehash-list (Depends-on): Likewise.
37721
37722         * modules/xsublist: New file.
37723         * lib/gl_xsublist.h: New file.
37724         * lib/gl_xsublist.c: New file.
37725         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
37726         (gl_sublist_nx_create): New declaration.
37727         * lib/gl_sublist.c: Don't include xalloc.h.
37728         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
37729         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
37730         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
37731         Change return type to 'int'. Return -1 upon out-of-memory.
37732         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
37733         upon out-of-memory.
37734         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
37735         NULL upon out-of-memory.
37736         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
37737         upon out-of-memory.
37738         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
37739         NULL upon out-of-memory.
37740         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
37741         NULL upon out-of-memory.
37742         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
37743         upon out-of-memory.
37744         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
37745         (gl_sublist_list_implementation): Update.
37746         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
37747         upon out-of-memory.
37748         * modules/sublist (Depends-on): Remove xalloc.
37749
37750         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
37751         * tests/test-carray_list.c: Likewise.
37752         * tests/test-linked_list.c: Likewise.
37753         * tests/test-linkedhash_list.c: Likewise.
37754         * tests/test-avltree_list.c: Likewise.
37755         * tests/test-rbtree_list.c: Likewise.
37756         * tests/test-avltreehash_list.c: Likewise.
37757         * tests/test-rbtreehash_list.c: Likewise.
37758         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
37759         * modules/carray-list-tests (Makefile.am): Likewise.
37760         * modules/linked-list-tests (Makefile.am): Likewise.
37761         * modules/linkedhash-list-tests (Makefile.am): Likewise.
37762         * modules/avltree-list-tests (Makefile.am): Likewise.
37763         * modules/rbtree-list-tests (Makefile.am): Likewise.
37764         * modules/avltreehash-list-tests (Makefile.am): Likewise.
37765         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
37766
37767         * NEWS: Mention the changes.
37768
37769         * lib/clean-temp.c: Include gl_xlist.h.
37770         * modules/clean-temp (Depends-on): Add xlist.
37771
37772         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
37773         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
37774
37775         * tests/test-array_oset.c: Include gl_xlist.h.
37776         * modules/array-oset-tests (Depends-on): Add xlist.
37777
37778         Reported by José E. Marchesi <jemarch@gnu.org>.
37779
37780 2009-12-13  Bruno Haible  <bruno@clisp.org>
37781
37782         Move the malloc checking from module 'oset' to new module 'xoset'.
37783         * modules/xoset: New file.
37784         * lib/gl_xoset.h: New file.
37785         * lib/gl_xoset.c: New file.
37786         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
37787         declarations.
37788         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
37789         (struct gl_oset_implementation): Rename and change methods accordingly.
37790         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
37791         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37792         'int'. Mark as __warn_unused_result__.
37793         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
37794         gl_oset_create_empty.
37795         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37796         'int'.
37797         * lib/gl_array_oset.c: Don't include xalloc.h.
37798         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
37799         malloc, not xmalloc.
37800         (grow): Change return type to 'int'. Don't call xalloc_die.
37801         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
37802         to 'int'.
37803         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
37804         'int'.
37805         (gl_array_oset_implementation): Update.
37806         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
37807         gl_tree_create_empty.
37808         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
37809         'int'.
37810         * lib/gl_avltree_oset.c: Don't include xalloc.h.
37811         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37812         xmalloc.
37813         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37814         not xmalloc.
37815         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37816         xmalloc.
37817         (gl_avltree_oset_implementation): Update.
37818         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
37819         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37820         xmalloc.
37821         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37822         not xmalloc.
37823         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37824         xmalloc.
37825         (gl_rbtree_oset_implementation): Update.
37826         * modules/array-oset (Depends-on): Remove xalloc.
37827         * modules/avltree-oset (Depends-on): Likewise.
37828         * modules/rbtree-oset (Depends-on): Likewise.
37829         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
37830         * tests/test-avltree_oset.c: Likewise.
37831         * tests/test-rbtree_oset.c: Likewise.
37832         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
37833         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
37834         * modules/rbtree-oset-tests (Makefile.am): Likewise.
37835         * NEWS: Mention the change.
37836
37837 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
37838
37839         maint.mk: allow a project to override release-prep commands
37840         * top/maint.mk (alpha, beta, stable): Move release-preparatory
37841         commands into a new rule.
37842         (release-prep): New rule.
37843         (release-prep-hook): New overridable variable.
37844
37845 2009-12-13  Bruno Haible  <bruno@clisp.org>
37846
37847         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
37848
37849 2009-12-13  Jim Meyering  <meyering@redhat.com>
37850
37851         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
37852         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
37853
37854 2009-12-12  Bruno Haible  <bruno@clisp.org>
37855
37856         duplocale: Tweak.
37857         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
37858
37859 2009-12-12  Karl Berry  <karl@gnu.org>
37860
37861         * config/srclist.txt (strtoll.c): tab changes, no more sync.
37862
37863 2009-12-12  Bruno Haible  <bruno@clisp.org>
37864
37865         * m4/po.m4: Undo incorrect untabification.
37866
37867 2009-12-12  Bruno Haible  <bruno@clisp.org>
37868
37869         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
37870         * modules/c-strtod (Depends-on): Add locale.
37871         * modules/c-strtold (Depends-on): Likewise.
37872
37873 2009-12-12  Bruno Haible  <bruno@clisp.org>
37874
37875         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
37876
37877 2009-12-11  Eric Blake  <ebb9@byu.net>
37878
37879         setenv: relax requirement in light of POSIX ruling
37880         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
37881         not NULL.
37882         * tests/test-setenv.c (main): Relax test.
37883         * tests/test-unsetenv.c (main): Likewise.
37884         * doc/posix-functions/setenv.texi (setenv): Document this.
37885         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37886
37887 2009-12-11  Bruno Haible  <bruno@clisp.org>
37888
37889         New module 'fd-safer-flag'.
37890         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
37891         * lib/dup-safer.c (dup_safer_flag): Remove function.
37892         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
37893         * lib/fd-safer.c (fd_safer_flag): Remove function.
37894         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
37895         * modules/cloexec (configure.ac): Drop indicator macro.
37896         * modules/fd-safer-flag: New file.
37897         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
37898         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
37899         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
37900
37901 2009-12-11  Bruno Haible  <bruno@clisp.org>
37902
37903         Tests for module 'nl_langinfo'.
37904         * modules/nl_langinfo-tests: New file.
37905         * tests/test-nl_langinfo.sh: New file.
37906         * tests/test-nl_langinfo.c: New file.
37907
37908         New module 'nl_langinfo'.
37909         * lib/nl_langinfo.c: New file.
37910         * m4/nl_langinfo.m4: New file.
37911         * modules/nl_langinfo: New file.
37912         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
37913
37914 2009-12-11  Bruno Haible  <bruno@clisp.org>
37915
37916         Tests for module 'langinfo'.
37917         * modules/langinfo-tests: New file.
37918         * tests/test-langinfo.c: New file.
37919
37920         New module 'langinfo'.
37921         * lib/langinfo.in.h: New file.
37922         * m4/langinfo_h.m4: New file.
37923         * modules/langinfo: New file.
37924         * doc/posix-headers/langinfo.texi: Mention the new module.
37925
37926 2009-12-11  Bruno Haible  <bruno@clisp.org>
37927
37928         * lib/config.charset: Untabify.
37929
37930 2009-12-11  Bruno Haible  <bruno@clisp.org>
37931
37932         * modules/unistd-safer (configure.ac): Drop indicator macro.
37933
37934 2009-12-11  Bruno Haible  <bruno@clisp.org>
37935
37936         Move pipe2-safer code to its own file.
37937         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
37938         * lib/pipe-safer.c (pipe2_safer): Remove function.
37939         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
37940         (Makefile.am): Add it to lib_SOURCES.
37941
37942 2009-12-10  Bruno Haible  <bruno@clisp.org>
37943
37944         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
37945
37946 2009-12-10  Bruno Haible  <bruno@clisp.org>
37947
37948         Declare which arguments expect non-NULL values, for GCC and clang.
37949         * build-aux/arg-nonnull.h: New file.
37950         * modules/arg-nonnull: New file.
37951         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
37952         (inet_ntop, inet_pton): Use it.
37953         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
37954         (closedir, dirfd, opendir, scandir, alphasort): Use it.
37955         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
37956         (open, openat): Use it.
37957         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
37958         (fnmatch): Use it.
37959         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
37960         (getopt, getopt_long, getopt_long_only): Use it.
37961         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
37962         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
37963         Use it.
37964         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
37965         (iconv_open): Use it.
37966         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
37967         (strtoimax, strtoumax): Use it.
37968         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
37969         (duplocale): Use it.
37970         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
37971         (frexp, frexpl): Use it.
37972         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
37973         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
37974         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
37975         (tsearch, tfind, tdelete, twalk): Use it.
37976         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
37977         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37978         sigpending): Use it.
37979         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
37980         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37981         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37982         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37983         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37984         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37985         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37986         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37987         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37988         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37989         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37990         Use it.
37991         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
37992         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
37993         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
37994         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
37995         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
37996         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
37997         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
37998         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
37999         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
38000         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
38001         strtoull, unsetenv): Use it.
38002         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
38003         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
38004         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
38005         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
38006         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
38007         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
38008         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
38009         (strcasecmp, strncasecmp): Use it.
38010         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
38011         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
38012         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
38013         rpl_setsockopt): Use it.
38014         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
38015         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
38016         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
38017         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
38018         (gettimeofday): Use it.
38019         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
38020         (times): Use it.
38021         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
38022         (uname): Use it.
38023         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
38024         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
38025         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
38026         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
38027         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
38028         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
38029         unlinkat, write): Use it.
38030         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
38031         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
38032         * lib/argv-iter.h: Include arg-nonnull.h.
38033         (_ATTRIBUTE_NONNULL_): Remove macro.
38034         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
38035         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
38036         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
38037         optimization.
38038         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
38039         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
38040         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
38041         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
38042         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
38043         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
38044         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
38045         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
38046         * modules/arpa_inet (Depends-on): Add arg-nonnull.
38047         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
38048         * modules/dirent (Depends-on): Add arg-nonnull.
38049         (Makefile.am): Insert arg-nonnull.h into dirent.h.
38050         * modules/fcntl-h (Depends-on): Add arg-nonnull.
38051         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
38052         * modules/fnmatch (Depends-on): Add arg-nonnull.
38053         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
38054         * modules/getopt-posix (Depends-on): Add arg-nonnull.
38055         (Makefile.am): Insert arg-nonnull.h into getopt.h.
38056         * modules/glob (Depends-on): Add arg-nonnull.
38057         (Makefile.am): Insert arg-nonnull.h into glob.h.
38058         * modules/iconv_open (Depends-on): Add arg-nonnull.
38059         (Makefile.am): Insert arg-nonnull.h into iconv.h.
38060         * modules/inttypes (Depends-on): Add arg-nonnull.
38061         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
38062         * modules/locale (Depends-on): Add arg-nonnull.
38063         (Makefile.am): Insert arg-nonnull.h into locale.h.
38064         * modules/math (Depends-on): Add arg-nonnull.
38065         (Makefile.am): Insert arg-nonnull.h into math.h.
38066         * modules/netdb (Depends-on): Add arg-nonnull.
38067         (Makefile.am): Insert arg-nonnull.h into netdb.h.
38068         * modules/search (Depends-on): Add arg-nonnull.
38069         (Makefile.am): Insert arg-nonnull.h into search.h.
38070         * modules/signal (Depends-on): Add arg-nonnull.
38071         (Makefile.am): Insert arg-nonnull.h into signal.h.
38072         * modules/spawn (Depends-on): Add arg-nonnull.
38073         (Makefile.am): Insert arg-nonnull.h into spawn.h.
38074         * modules/stdio (Depends-on): Add arg-nonnull.
38075         (Makefile.am): Insert arg-nonnull.h into stdio.h.
38076         * modules/stdlib (Depends-on): Add arg-nonnull.
38077         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
38078         * modules/string (Depends-on): Add arg-nonnull.
38079         (Makefile.am): Insert arg-nonnull.h into string.h.
38080         * modules/strings (Depends-on): Add arg-nonnull.
38081         (Makefile.am): Insert arg-nonnull.h into strings.h.
38082         * modules/sys_socket (Depends-on): Add arg-nonnull.
38083         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
38084         * modules/sys_stat (Depends-on): Add arg-nonnull.
38085         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
38086         * modules/sys_time (Depends-on): Add arg-nonnull.
38087         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
38088         * modules/sys_times (Depends-on): Add arg-nonnull.
38089         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
38090         * modules/sys_utsname (Depends-on): Add arg-nonnull.
38091         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
38092         * modules/time (Depends-on): Add arg-nonnull.
38093         (Makefile.am): Insert arg-nonnull.h into time.h.
38094         * modules/unistd (Depends-on): Add arg-nonnull.
38095         (Makefile.am): Insert arg-nonnull.h into unistd.h.
38096         * modules/wchar (Depends-on): Add arg-nonnull.
38097         (Makefile.am): Insert arg-nonnull.h into wchar.h.
38098         * modules/argv-iter (Depends-on): Add arg-nonnull.
38099         * tests/test-canonicalize.c (null_ptr): New function.
38100         (main): Use it.
38101         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
38102         (main): Use it.
38103         * tests/test-memmem.c (null_ptr): New function.
38104         (main): Use it.
38105         Reported by Jim Meyering.
38106
38107 2009-12-10  Bruno Haible  <bruno@clisp.org>
38108
38109         Use spaces for indentation, not tabs.
38110         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
38111         * m4/*.m4: Untabify.
38112         * build-aux/*.h: Untabify.
38113         * tests/**/*.[hc]: Untabify.
38114         * README: New section "Indent with spaces, not TABs", based on
38115         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
38116         * NEWS: Mention the change.
38117
38118 2009-12-10  Bruno Haible  <bruno@clisp.org>
38119
38120         pty test: Fix link error.
38121         * modules/pty-tests (Makefile.am): Add the default LDADD value to
38122         test_pty_LDADD.
38123
38124 2009-12-07  Simon Josefsson  <simon@josefsson.org>
38125
38126         * modules/pty: New file.
38127         * modules/pty-tests: New file.
38128         * m4/pty.m4: New file.
38129         * tests/test-pty.c: New file.
38130         * doc/glibc-headers/pty.texi: Modified.
38131         * doc/glibc-functions/forkpty.texi: Modified.
38132         * doc/glibc-functions/openpty.texi: Modified.
38133
38134 2009-12-10  Bruno Haible  <bruno@clisp.org>
38135
38136         Avoid syntax error in C++ mode.
38137         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
38138
38139 2009-12-10  Bruno Haible  <bruno@clisp.org>
38140
38141         Use sed with option -e.
38142         * gnulib-tool (func_version, func_emit_copyright_notice,
38143         func_emit_initmacro_end, func_import, func_create_testdir): Pass
38144         option -e to sed.
38145         * modules/link-warning (Makefile.am): Likewise.
38146
38147 2009-12-10  Jim Meyering  <meyering@redhat.com>
38148
38149         mgetgroups: do not write bytes beyond end of malloc'd buffer
38150         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
38151         username, we call getgroups with a one-element-shorter buffer,
38152         but still told it the length was original, max_n_groups.
38153
38154 2009-12-09  Eric Blake  <ebb9@byu.net>
38155
38156         cloexec: relax license
38157         * modules/cloexec (Maintainer): Add myself.
38158         (License): Use LGPL, not GPL.
38159
38160         link-warning: optimize generation
38161         * modules/link-warning (Makefile.am): Reduce process usage.
38162
38163 2009-12-09  Bruno Haible  <bruno@clisp.org>
38164
38165         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
38166         workaround was added on 2009-11-17.
38167
38168 2009-12-09  Jim Meyering  <meyering@redhat.com>
38169             Bruno Haible  <bruno@clisp.org>
38170
38171         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
38172         * modules/link-warning (Makefile.am): Make the comment-removing sed
38173         command more robust in the face of bootstrap-prepended comment lines.
38174
38175 2009-12-09  Bruno Haible  <bruno@clisp.org>
38176
38177         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
38178         most one group.
38179
38180 2009-12-09  Simon Josefsson <simon@josefsson.org>
38181             Bruno Haible  <bruno@clisp.org>
38182
38183         * build-aux/link-warning.h: Add copyright notice.
38184         * modules/link-warning (Makefile.am): Generate link-warning.h from
38185         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
38186         * NEWS: Mention change in link-warning module.
38187         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
38188         * modules/dirent (Makefile.am): Add dependency to dirent.h.
38189         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
38190         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
38191         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
38192         * modules/math (Makefile.am): Add dependency to math.h.
38193         * modules/search (Makefile.am): Add dependency to search.h.
38194         * modules/signal (Makefile.am): Add dependency to signal.h.
38195         * modules/spawn (Makefile.am): Add dependency to spawn.h.
38196         * modules/stdio (Makefile.am): Add dependency to stdio.h.
38197         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
38198         * modules/string (Makefile.am): Add dependency to string.h.
38199         * modules/strings (Makefile.am): Add dependency to strings.h.
38200         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
38201         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
38202         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
38203         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
38204         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
38205         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
38206         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
38207         * modules/unistd (Makefile.am): Add dependency to unistd.h.
38208         * modules/wchar (Makefile.am): Add dependency to wchar.h.
38209
38210 2009-12-09  Bruno Haible  <bruno@clisp.org>
38211
38212         fchdir: Optimize away rpl_fstat when possible.
38213         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
38214         REPLACE_OPEN_DIRECTORY.
38215         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
38216
38217 2009-12-09  Bruno Haible  <bruno@clisp.org>
38218
38219         * lib/fchdir.c: Update comment.
38220
38221 2009-12-09  Bruno Haible  <bruno@clisp.org>
38222
38223         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
38224
38225 2009-12-08  Eric Blake  <ebb9@byu.net>
38226
38227         fchdir: avoid memory leak on re-registration.
38228         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
38229
38230 2009-12-08  Jim Meyering  <meyering@redhat.com>
38231
38232         init.sh: avoid Solaris 10 /bin/sh portability problem
38233         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
38234         sourced script:
38235           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
38236           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
38237           bar
38238         tests/init.sh relied on that, accepting a --set-path=DIR argument,
38239         and two tests used that idiom.
38240         * tests/init.sh: Update suggested usage comments.
38241         (path_prepend_): New function, to be used in place
38242         of the --src-path=DIR option.
38243         (setup_): Move PATH-prepending code into path_prepend_.
38244         * tests/test-pread.sh: Adapt to new usage.
38245         * tests/test-xalloc-die.sh: Likewise.
38246
38247 2009-12-08  Simon Josefsson  <simon@josefsson.org>
38248
38249         * doc/gnulib.texi (Glibc pty.h): Add.
38250         * doc/glibc-functions/forkpty.texi: Add.
38251         * doc/glibc-functions/openpty.texi: Add.
38252         Suggested by Bruno Haible.
38253
38254 2009-12-08  Eric Blake  <ebb9@byu.net>
38255
38256         fchdir: fix logic bugs
38257         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
38258         * tests/test-fchdir.c (main): Enhance test.
38259         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
38260         is in use.
38261
38262         dup2: fix logic bugs
38263         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
38264         REPLACE_DUP2 to decide when rpl_dup2 is needed.
38265         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
38266         exists.
38267         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
38268
38269 2009-12-07  Eric Blake  <ebb9@byu.net>
38270
38271         unlink: fix m4 detection
38272         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
38273
38274         unistd-safer: add unit test
38275         * modules/unistd-safer-tests: New file.
38276         * tests/test-dup-safer.c: Likewise.
38277         * tests/test-cloexec.c (setmode): Avoid compiler warning.
38278         * tests/test-dup2.c (setmode): Likewise.
38279         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
38280
38281         cloexec: preserve text vs. binary across dup_cloexec
38282         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
38283         mode.
38284         * modules/dup2-tests (Depends-on): Add binary-io.
38285         * modules/cloexec-tests (Depends-on): Likewise.
38286         * tests/test-dup2.c (setmode, is_mode): New helpers.
38287         (main): Add tests that translation mode is preserved.
38288         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
38289         Reported by Bruno Haible.
38290
38291         mgetgroups: reduce duplicate listings
38292         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
38293         resulting array.
38294         * tests/test-chown.h (test_chown): Simplify client.
38295         * tests/test-lchown.h (test_lchown): Likewise.
38296
38297 2009-12-06  Bruno Haible  <bruno@clisp.org>
38298
38299         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
38300         value.
38301
38302 2009-12-06  Bruno Haible  <bruno@clisp.org>
38303
38304         * lib/progname.c: Include stdio.h, stdlib.h.
38305         (set_program_name): Reject a NULL argument.
38306
38307 2009-12-05  Eric Blake  <ebb9@byu.net>
38308
38309         pipe2-safer: new module
38310         * modules/pipe2-safer: New file.
38311         * lib/unistd-safer.h (pipe2_safer): New prototype.
38312         * lib/unistd--.h (pipe2): New wrapper.
38313         * lib/pipe-safer.c (pipe2_safer): New function.
38314         * modules/pipe (Depends-on): Add pipe2-safer.
38315         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
38316
38317         stdlib-safer: preserve cloexec flag for mkostemp[s]
38318         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
38319         fd_safer_flag.
38320
38321         unistd-safer: allow preservation of cloexec status via flag
38322         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
38323         prototypes.
38324         * lib/dup-safer.c (dup_safer_flag): New function.
38325         * lib/fd-safer.c (fd_safer_flag): Likewise.
38326         * modules/cloexec (configure.ac): Set witness.
38327
38328         test-dup2: enhance test
38329         * modules/dup2-tests (Depends-on): Add cloexec.
38330         * tests/test-dup2.c (main): Enhance test.
38331
38332         cloexec: add dup_cloexec
38333         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
38334         header and comments.
38335         * lib/cloexec.c (set_cloexec_flag): Add comments.
38336         (dup_cloexec): New function, with mingw implementation borrowed
38337         from...
38338         * lib/w32spawn.h (dup_noinherit): ...here.
38339         * modules/execute (Depends-on): Add cloexec.
38340         * modules/pipe (Depends-on): Likewise.
38341         * modules/cloexec (Depends-on): Add dup2.
38342         * modules/cloexec-tests (Files): New file.
38343         * tests/test-cloexec.c: Likewise.
38344
38345         test-xalloc-die: fix test for mingw
38346         * modules/xalloc-die-tests (Files): Add tests/init.sh.
38347         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
38348         directory and .exe suffix off argv[0] output.
38349
38350         test-fseeko: fix test for mingw
38351         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
38352         than undefining fseek, so test will pass on mingw.
38353
38354 2009-12-05  Bruno Haible  <bruno@clisp.org>
38355
38356         * lib/progname.h (set_program_name): Clarify specification.
38357         * lib/progname.c (set_program_name): Likewise.
38358         Reported by Jim Meyering.
38359
38360 2009-12-05  Jim Meyering  <meyering@redhat.com>
38361
38362         maint.mk: backslash-escape parens in default regexp
38363         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
38364         backslash-escape the literal parentheses.
38365
38366         maint.mk: news-date-check: use grep -E
38367         * top/maint.mk (today): Define a Make variable, not a...
38368         (news-date-check): ...shell variable.
38369         (news-date-regexp): Use the Make variable.
38370         Use grep's -E option.  Change the failing diagnostic to mention
38371         the variable, $(news-date-regexp).
38372
38373 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
38374
38375         maintainer-makefile: allow customization of NEWS entry format
38376         * top/maint.mk (news-date-regexp): New overridable variable.
38377         (news-date-check): Use it.
38378
38379 2009-12-04  Eric Blake  <ebb9@byu.net>
38380
38381         mgetgroups: add xgetgroups, and avoid ENOSYS failures
38382         * lib/mgetgroups.h (xgetgroups): New prototype.
38383         * lib/mgetgroups.c (xgetgroups): New wrapper.
38384         (mgetgroups): Handle ENOSYS.
38385         * modules/mgetgroups (Depends-on): Add realloc.
38386         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
38387
38388         mgetgroups: avoid argument promotion issues with -1
38389         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
38390         for invalid gid_t.
38391         * tests/test-chown.h (getegid, test_chown): Likewise.
38392         * tests/test-lchown.h (getegid, test_lchown): Likewise.
38393
38394 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
38395
38396         exclude: Fix header file problems.
38397         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
38398
38399 2009-12-01  Jim Meyering  <meyering@redhat.com>
38400
38401         fts: fts_open: do not let an empty string cause immediate failure
38402         This is required in support of GNU rm, for which the command
38403         "rm A '' B" must process and remove both A and B, in spite of
38404         the empty string argument.
38405         * lib/fts.c (fts_open): Do not let the presence of an empty string
38406         cause fts_open to fail immediately.  Most fts-using tools must be
38407         able to process all arguments, in order, and can be expected to
38408         diagnose such arguments themselves.
38409
38410 2009-11-30  Eric Blake  <ebb9@byu.net>
38411
38412         utimens: fix compilation error
38413         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
38414         Declare variable at right scope.
38415
38416 2009-11-29  Jim Meyering  <meyering@redhat.com>
38417
38418         bootstrap: handle perl-5.11's changed --version output
38419         * build-aux/bootstrap (get_version): Handle perl separately,
38420         since perl-5.11's --version output is different.
38421
38422 2009-11-28  Jim Meyering  <meyering@redhat.com>
38423
38424         userspec: depend on the inttostr module, too
38425         * modules/userspec (Depends-on): Add inttostr.
38426
38427         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
38428         * lib/userspec.c (parse_with_separator): Do not accept a user ID
38429         number of MAXUID when it evaluates to (uid_t) -1.
38430         Likewise for group ID.  Reported by Matt McCutchen in
38431         <http://savannah.gnu.org/bugs/?28113>
38432
38433         userspec: reformat to use spaces, not TABs
38434         * lib/userspec.c: Expand TABs to spaces.
38435         Add Emacs' "indent-tabs-mode: nil" hint.
38436
38437 2009-11-27  Eric Blake  <ebb9@byu.net>
38438
38439         getopt-gnu: flush out another BSD bug
38440         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
38441         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
38442         flush out BSD bug.
38443         * tests/test-getopt.h (test_getopt): End lists with NULL.
38444         * tests/test-getopt_long.h (test_getopt_long): Likewise.
38445         (test_getopt_long_posix): Enhance test.
38446         * modules/getopt-posix-tests (Depends-on): Add stdbool.
38447         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
38448         getopt-gnu.
38449         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38450         Likewise.
38451
38452 2009-11-27  Simon Josefsson  <simon@josefsson.org>
38453
38454         * modules/idpriv-droptemp-tests (Notice): Fix text.
38455
38456 2009-11-27  Jim Meyering  <meyering@redhat.com>
38457
38458         test-xalloc-die: avoid spurious failure due to libtool argv difference
38459         In a libtool-enabled project, this test would fail due to a difference
38460         in the emitted program name, e.g.,
38461         -test-xalloc-die: memory exhausted
38462         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
38463         Use program to avoid that.
38464         * modules/xalloc-die-tests (Depends-on): Add progname.
38465         * tests/test-xalloc-die.c: Include progname.h".
38466         (program_name): Remove decl.
38467         (main): Call set_program_name.
38468         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
38469
38470 2009-11-26  Richard Jones  <rjones@redhat.com>
38471
38472         w32sock: leave win32 error in place.
38473         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
38474
38475 2009-11-26  Eric Blake  <ebb9@byu.net>
38476
38477         init.sh: suggest to use skip_ and fail_ functions in comments
38478         * tests/init.sh: Add a sentence.
38479
38480 2009-11-25  Bruno Haible  <bruno@clisp.org>
38481
38482         init.sh: add documentation in comments
38483         * tests/init.sh: Add some developer and user documentation.
38484
38485 2009-11-26  Jim Meyering  <meyering@redhat.com>
38486
38487         init.sh: accommodate even those who specify bogus srcdir manually
38488         * tests/init.sh: Normally, srcdir is guaranteed by automake and
38489         configure-time tests to be sanitized, so that there is no need to
38490         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
38491         (with no double quotes) suffices.  However, since tests may be
38492         invoked manually, and since you may explicitly set srcdir to the
38493         name of a directory containing spaces, do quote its uses here.
38494         * tests/test-pread.sh: Likewise.
38495         Suggested by Bruno Haible.
38496
38497         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
38498         * tests/test-pread.sh: Write no data into the pipe, because
38499         test-pread actually reads none.  This avoids a diagnostic,
38500         "bash: echo: write error: Broken pipe", that arises in the unusual
38501         event something is ignoring SIGPIPE, and might be interpreted
38502         as some sort of failure.  Reported by Bruno Haible.
38503
38504 2009-11-25  Jim Meyering  <meyering@redhat.com>
38505
38506         test-pread: cover failure with ESPIPE and EINVAL
38507         * tests/test-pread.c (main): Test for failure, too.
38508         * tests/test-pread.sh: Invoke with stdin on a pipe.
38509         Suggested by Eric Blake.
38510
38511         pread: improvement and fix
38512         * modules/pread (Depends-on): Depend on lseek, for portability to
38513         e.g., mingw.  Suggested by Eric Blake.
38514         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
38515
38516         unistd.in.h: correct declaration of pread
38517         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
38518         Reported by Richard W.M. Jones.
38519
38520         test-pread.sh: distribute the test script
38521         * modules/pread-tests (Files): Include test-pread.sh.
38522
38523         test-pread.sh: clean up
38524         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
38525         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
38526         That is unnecessary, since it's always ".".
38527         Suggestion from Eric Blake.
38528
38529         test-pread.sh: make executable
38530         * tests/test-pread.sh: Set executable bit.
38531         Reported by Eric Blake.
38532
38533         correct typo in test-pread.sh
38534         * tests/test-pread.sh: Add #! line.
38535
38536         test pread
38537         * tests/test-pread.c: New file.
38538         * tests/test-pread.sh: Likewise.
38539         * modules/pread-tests: Likewise.
38540
38541         pread: new module
38542         * modules/pread: New file.
38543         * lib/unistd.in.h (pread): Define/declare.
38544         * lib/pread.c (pread): New file.
38545         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
38546         * modules/unistd (Makefile.am): Substitute witnesses.
38547         * doc/posix-functions/pread.texi (pread): Update.
38548         * MODULES.html.sh: Add pread.
38549
38550 2009-11-25  Jim Meyering  <meyering@redhat.com>
38551
38552         tests/init.sh: new file to be used via most *.sh tests
38553         * tests/init.sh: New file.
38554
38555 2009-11-25  Eric Blake  <ebb9@byu.net>
38556
38557         utimens: work around older Linux failure with symlinks
38558         * lib/utimens.c (lutimensat_works_really): New variable.
38559         (fdutimens, lutimens): Use it to manage kernels that support
38560         nanosecond times on files, but not on symlinks.
38561         Reported by Ondřej Vašík.
38562
38563         utimes: fix configure grammar
38564         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
38565
38566 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
38567
38568         regex: Fix fastmap for multibyte character ranges.
38569         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
38570         characters when a multibyte character range is included.
38571
38572 2009-11-22  Andy Wingo  <wingo@pobox.com>
38573
38574         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
38575         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
38576
38577 2009-11-24  Bruno Haible  <bruno@clisp.org>
38578
38579         doc: Most *_l functions exist in MacOS X 10.5.
38580         * doc/posix-functions/duplocale.texi: Update platforms list.
38581         * doc/posix-functions/freelocale.texi: Likewise.
38582         * doc/posix-functions/newlocale.texi: Likewise.
38583         * doc/posix-functions/uselocale.texi: Likewise.
38584         * doc/posix-functions/isalnum_l.texi: Likewise.
38585         * doc/posix-functions/isalpha_l.texi: Likewise.
38586         * doc/posix-functions/isblank_l.texi: Likewise.
38587         * doc/posix-functions/iscntrl_l.texi: Likewise.
38588         * doc/posix-functions/isdigit_l.texi: Likewise.
38589         * doc/posix-functions/isgraph_l.texi: Likewise.
38590         * doc/posix-functions/islower_l.texi: Likewise.
38591         * doc/posix-functions/isprint_l.texi: Likewise.
38592         * doc/posix-functions/ispunct_l.texi: Likewise.
38593         * doc/posix-functions/isspace_l.texi: Likewise.
38594         * doc/posix-functions/isupper_l.texi: Likewise.
38595         * doc/posix-functions/iswalnum_l.texi: Likewise.
38596         * doc/posix-functions/iswalpha_l.texi: Likewise.
38597         * doc/posix-functions/iswblank_l.texi: Likewise.
38598         * doc/posix-functions/iswcntrl_l.texi: Likewise.
38599         * doc/posix-functions/iswctype_l.texi: Likewise.
38600         * doc/posix-functions/iswdigit_l.texi: Likewise.
38601         * doc/posix-functions/iswgraph_l.texi: Likewise.
38602         * doc/posix-functions/iswlower_l.texi: Likewise.
38603         * doc/posix-functions/iswprint_l.texi: Likewise.
38604         * doc/posix-functions/iswpunct_l.texi: Likewise.
38605         * doc/posix-functions/iswspace_l.texi: Likewise.
38606         * doc/posix-functions/iswupper_l.texi: Likewise.
38607         * doc/posix-functions/iswxdigit_l.texi: Likewise.
38608         * doc/posix-functions/isxdigit_l.texi: Likewise.
38609         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
38610         * doc/posix-functions/strcasecmp_l.texi: Likewise.
38611         * doc/posix-functions/strcoll_l.texi: Likewise.
38612         * doc/posix-functions/strfmon_l.texi: Likewise.
38613         * doc/posix-functions/strftime_l.texi: Likewise.
38614         * doc/posix-functions/strncasecmp_l.texi: Likewise.
38615         * doc/posix-functions/strxfrm_l.texi: Likewise.
38616         * doc/posix-functions/tolower_l.texi: Likewise.
38617         * doc/posix-functions/toupper_l.texi: Likewise.
38618         * doc/posix-functions/towctrans_l.texi: Likewise.
38619         * doc/posix-functions/towlower_l.texi: Likewise.
38620         * doc/posix-functions/towupper_l.texi: Likewise.
38621         * doc/posix-functions/wcscoll_l.texi: Likewise.
38622         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
38623         * doc/posix-functions/wctrans_l.texi: Likewise.
38624         * doc/posix-functions/wctype_l.texi: Likewise.
38625         * doc/glibc-functions/strptime_l.texi: Likewise.
38626         * doc/glibc-functions/strtod_l.texi: Likewise.
38627         * doc/glibc-functions/strtof_l.texi: Likewise.
38628         * doc/glibc-functions/strtol_l.texi: Likewise.
38629         * doc/glibc-functions/strtold_l.texi: Likewise.
38630         * doc/glibc-functions/strtoll_l.texi: Likewise.
38631         * doc/glibc-functions/strtoul_l.texi: Likewise.
38632         * doc/glibc-functions/strtoull_l.texi: Likewise.
38633         * doc/glibc-functions/wcsftime_l.texi: Likewise.
38634         * doc/glibc-functions/wcstod_l.texi: Likewise.
38635         * doc/glibc-functions/wcstof_l.texi: Likewise.
38636         * doc/glibc-functions/wcstol_l.texi: Likewise.
38637         * doc/glibc-functions/wcstold_l.texi: Likewise.
38638         * doc/glibc-functions/wcstoll_l.texi: Likewise.
38639         * doc/glibc-functions/wcstoul_l.texi: Likewise.
38640         * doc/glibc-functions/wcstoull_l.texi: Likewise.
38641
38642 2009-11-24  Bruno Haible  <bruno@clisp.org>
38643
38644         duplocale: Fix logic bug.
38645         * lib/duplocale.c: Don't include <langinfo.h>.
38646         (_NL_LOCALE_NAME): Remove macro.
38647         (rpl_duplocale): Use setlocale instead of nl_langinfo.
38648         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
38649
38650 2009-11-23  Jim Meyering  <meyering@redhat.com>
38651
38652         test-update-copyright: don't hard-code /usr/bin/perl
38653         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
38654         perl to print the current year.  Gilles Espinasse reported that
38655         the replaced use of perl was hard-coded as /usr/bin/perl.
38656
38657 2009-11-23  Bruno Haible  <bruno@clisp.org>
38658
38659         duplocale: Add support for glibc 2.3.x.
38660         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
38661
38662 2009-11-22  Bruno Haible  <bruno@clisp.org>
38663
38664         vasnprintf: Tiny optimization.
38665         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
38666         MacOS X.
38667
38668 2009-11-22  Bruno Haible  <bruno@clisp.org>
38669
38670         Tests for module 'duplocale'.
38671         * modules/duplocale-tests: New file.
38672         * tests/test-duplocale.c: New file.
38673
38674         New module 'duplocale'.
38675         * m4/duplocale.m4: New file.
38676         * lib/locale.in.h (duplocale): New declaration.
38677         * lib/duplocale.c: New file.
38678         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
38679         gl_LOCALE_H_DEFAULTS): New macros.
38680         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
38681         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
38682         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
38683         REPLACE_DUPLOCALE.
38684         * modules/duplocale: New file.
38685         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
38686
38687 2009-11-22  Bruno Haible  <bruno@clisp.org>
38688
38689         * modules/locale-tests (configure.ac): Test for newlocale function.
38690         * tests/test-locale.c: When the system has extended locale functions,
38691         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
38692
38693         locale: Make locale_t available when possible.
38694         * lib/locale.in.h: Include <xlocale.h> when it exists.
38695         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
38696         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
38697         * modules/locale (Depends-on): Add extensions.
38698         (Makefile.am): Also substitute HAVE_XLOCALE_H.
38699         * doc/posix-headers/locale.texi: Document the problem with locale_t.
38700
38701 2009-11-22  Bruno Haible  <bruno@clisp.org>
38702
38703         Add comments.
38704         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
38705         invocation.
38706         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
38707         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38708         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38709
38710 2009-11-22  Bruno Haible  <bruno@clisp.org>
38711
38712         error: account for the possibility of freopen (stdout).
38713         * lib/error.c: Include <unistd.h>.
38714         (flush_stdout): New function, extracted from error and error_at_line.
38715         Determine stdout's fd dynamically.
38716         (error, error_at_line): Invoke flush_stdout.
38717         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
38718         * modules/error (Depends-on): Add unistd.
38719
38720 2009-11-22  Bruno Haible  <bruno@clisp.org>
38721
38722         diffseq: Add comment.
38723         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
38724
38725 2009-11-22  Jim Meyering  <meyering@redhat.com>
38726
38727         c-stack: avoid defining an unused static function
38728         * lib/c-stack.c (find_stack_direction): Do not define this function
38729         when it will not be used.
38730
38731         diffseq: avoid spurious gcc warnings
38732         * lib/diffseq.h (IF_LINT2): Define.
38733         (compareseq): Use it to initialize two members of "part".
38734         This avoids two used-uninitialized warnings.
38735
38736 2009-11-21  Jim Meyering  <meyering@redhat.com>
38737
38738         c-stack: avoid "ignoring return value of `write'" warning
38739         * lib/c-stack.c: Include "ignore-value.h".
38740         (die): Explicitly ignore each write return value.
38741         * modules/c-stack (Depends-on): Add ignore-value.
38742
38743 2009-11-21  Bruno Haible  <bruno@clisp.org>
38744
38745         diffseq: reduce scope of variable 'best'.
38746         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
38747         variable, earlier used for two different purposes.
38748
38749 2009-11-21  Jim Meyering  <meyering@redhat.com>
38750
38751         diffseq: remove useless assignment to "best"
38752         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
38753         assignment.  At that point "best" is already guaranteed to be zero.
38754
38755 2009-11-20  Eric Blake  <ebb9@byu.net>
38756
38757         build: mention ftp redirector in release announcements
38758         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
38759         values that used to come from cfg.mk; mention FTP redirect URL.
38760         * build-aux/announce-gen: Mention the mirror list.
38761         Suggested by Karl Berry.
38762
38763         nanosleep: improve port to mingw
38764         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
38765         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
38766         LIB_NANOSLEEP, but only when needed.
38767         * modules/select (Link): Document LIBSOCKET.
38768         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
38769         enough.
38770
38771         nanosleep: work around cygwin bug
38772         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
38773         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
38774         bug.
38775         (getnow): Delete, not needed.
38776         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
38777         LIB_CLOCK_GETTIME.
38778         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
38779         clock-time, gettime.
38780         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
38781         bug.
38782         * modules/nanosleep-tests: New test.
38783         * tests/test-nanosleep.c: New file.
38784
38785         sleep: work around cygwin bug
38786         * lib/sleep.c (rpl_sleep): Work around the bug.
38787         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
38788         (gl_PREREQ_SLEEP): Delete unused macro.
38789         * modules/sleep (Depends-on): Add verify.
38790         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38791         * modules/unistd (Makefile.am): Substitute witness.
38792         * lib/unistd.in.h (sleep): Update prototype.
38793         * doc/posix-functions/sleep.texi (sleep): Document the bug.
38794         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
38795         * modules/sleep-tests (Depends-on): Check for alarm.
38796
38797 2009-11-20  Jim Meyering  <meyering@redhat.com>
38798
38799         maint.mk: improve sc_prohibit_magic_number_exit
38800         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
38801         so it does not match uses like System.exit(1).
38802         Add comments showing how to correct all offenders.
38803
38804 2009-11-19  Eric Blake  <ebb9@byu.net>
38805
38806         xalloc-die-tests: add missing library
38807         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
38808
38809         test-xvasprintf: silence compiler warnings
38810         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
38811         empty string from gcc.
38812
38813 2009-11-19  Jim Meyering  <meyering@redhat.com>
38814
38815         xfreopen: new module, from coreutils
38816         * modules/xfreopen: New module.
38817         * lib/xfreopen.c: New file.
38818         * lib/xfreopen.h: New file.
38819         * MODULES.html.sh (File stream based Input/Output"): Add it.
38820
38821 2009-11-19  Eric Blake  <ebb9@byu.net>
38822
38823         manywarnings: depend on warnings
38824         * modules/manywarnings (Depends-on): Add warnings.
38825
38826         build: avoid compiler warnings
38827         * lib/select.c (rpl_select): Delete unused variable.
38828         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
38829
38830 2009-11-18  Eric Blake  <ebb9@byu.net>
38831
38832         tests: avoid false negative with --with-packager
38833         * tests/test-version-etc.sh: Discard packager information.
38834         * tests/test-argp-version-etc-1.sh: Likewise.
38835         Reported by Mike Frysinger.
38836
38837         utimens: fix regression on Solaris
38838         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
38839         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
38840         can only change fd timestamps via futimesat.  Instead, use an
38841         additional witness macro to avoid BSD bug.
38842         Reported by Jim Meyering.
38843
38844 2009-11-17  Eric Blake  <ebb9@byu.net>
38845
38846         usleep: use it to simplify tests
38847         * modules/stat-time-tests (Depends-on): Add usleep.
38848         (configure.ac): Drop usleep check.
38849         * modules/chown-tests (Depends-on, configure.ac): Likewise.
38850         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
38851         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
38852         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
38853         * modules/openat-tests (Depends-on, configure.ac): Likewise.
38854         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
38855         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
38856         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
38857         Likewise.
38858         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
38859         * tests/test-lchown.h (nap): Likewise.
38860         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
38861         * tests/test-stat-time.c (nap): Likewise.
38862         * tests/test-utimens-common.h (nap): Update comments.
38863
38864         usleep: new module
38865         * modules/usleep: New file.
38866         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
38867         * lib/usleep.c (usleep): Likewise.
38868         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
38869         * modules/unistd (Makefile.am): Substitute witnesses.
38870         * lib/unistd.in.h (usleep): Add declaration.
38871         * doc/pastposix-functions/usleep.texi (usleep): Document this.
38872         * MODULES.html.sh (Date and time): Likewise.
38873         * modules/usleep-tests (Depends-on): New test.
38874         * tests/test-usleep.c: New file.
38875
38876         chown: work around OpenBSD bug
38877         * lib/chown.c (rpl_chown): Work around the bug.
38878         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
38879         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
38880         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
38881         * modules/chown (Depends-on): Add stdbool.
38882         * modules/lchown (Depends-on): Likewise.
38883         * doc/posix-functions/chown.texi (chown): Document the bug.
38884         * doc/posix-functions/lchown.texi (lchown): Likewise.
38885         * tests/test-lchown.h (test_chown): Relax test.
38886
38887         mkstemp: avoid conflict with C++ keyword template
38888         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
38889         * lib/mkostemp.c (mkostemp): Likewise.
38890         * lib/mkostemps.c (mkostemps): Likewise.
38891         * lib/mkstemp.c (mkstemp): Likewise.
38892         * lib/mkstemps.c (mkstemps): Likewise.
38893
38894         xalloc-die-tests: optimize
38895         * tests/test-xalloc-die.sh: Reduce number of processes.
38896
38897 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38898
38899         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
38900         patch from ludo@gnu.org (Ludovic Courtès).
38901
38902 2009-11-17  Jim Meyering  <meyering@redhat.com>
38903
38904         version-etc: use proper license string
38905         * modules/version-etc (License): Use LGPL, not LGPLv3+.
38906         * modules/version-etc-fsf: Likewise.
38907
38908 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38909
38910         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
38911         printed to stdout.  Deal with EOL differences.
38912
38913 2009-11-17  Eric Blake  <ebb9@byu.net>
38914
38915         unsetenv: work around Solaris bug
38916         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
38917         * lib/unsetenv.c (rpl_unsetenv): Work around it.
38918         Reported by Jim Meyering.
38919
38920         vasnprintf: avoid compiler warnings
38921         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
38922         variables.
38923         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
38924
38925 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38926
38927         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
38928         settings since xalloc-die is no longer the self test,
38929         xalloc-die.sh is.
38930
38931 2009-11-17  Jim Meyering  <meyering@redhat.com>
38932
38933         test-xalloc-die.sh: make the code agree with the commit log
38934         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
38935         at the end, just in case you happen to have a test-xalloc-die
38936         program in some other PATH directory.
38937
38938         test-xalloc-die.sh: fix a portability bug
38939         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
38940         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
38941         Otherwise, argv[0] (as often seen in diagnostics) would be too
38942         system-dependent, sometimes with, and sometimes without the leading "./".
38943
38944         version-etc-fsf: relax license to LGPLv3+
38945         * modules/version-etc-fsf (License): Relax license.
38946
38947 2009-11-16  Eric Blake  <ebb9@byu.net>
38948
38949         xalloc-die-tests: avoid printing null pointer
38950         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
38951         shell script.
38952         * tests/test-xalloc-die.c (program_name): Declare.
38953         * tests/test-xalloc-die.sh (tmpfiles): New file.
38954
38955         setenv, unsetenv: work around various bugs
38956         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
38957         (setenv) [HAVE_SETENV]: Work around bugs.
38958         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
38959         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
38960         for bugs.
38961         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
38962         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
38963         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
38964         * modules/stdlib (Makefile.am): Update substitutions.
38965         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
38966         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
38967         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38968         * modules/setenv-tests: New test.
38969         * modules/unsetenv-tests: Likewise.
38970         * tests/test-setenv.c: New file.
38971         * tests/test-unsetenv.c: Likewise.
38972
38973 2009-11-16  Jim Meyering  <meyering@redhat.com>
38974
38975         version-etc: relax license to LGPLv3+
38976         * modules/version-etc (License): Relax license.
38977
38978         better AC_REQUIRE expanded-before-required-warning avoidance
38979         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
38980         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
38981         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
38982         which is no longer needed.
38983
38984 2009-11-16  Eric Blake  <ebb9@byu.net>
38985
38986         test-freading: clean up temporary file
38987         * tests/test-freading.c (main): Remove file on success, and use
38988         ASSERT more liberally.
38989         Reported by Jim Meyering.
38990
38991 2009-11-16  Jim Meyering  <meyering@redhat.com>
38992
38993         avoid new AC_REQUIRE expanded-before-required warnings
38994         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
38995         merely using it.
38996         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
38997         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
38998
38999 2009-11-15  Simon Josefsson  <simon@josefsson.org>
39000
39001         * tests/test-xalloc-die.c: New file.
39002         * modules/xalloc-die-tests: New file.
39003         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
39004         XFAIL_TESTS so it can be appended by modules.
39005
39006 2009-11-15  Simon Josefsson  <simon@josefsson.org>
39007
39008         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
39009         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
39010
39011 2009-11-14  Eric Blake  <ebb9@byu.net>
39012
39013         fnmatch: avoid compiler warning
39014         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
39015         to silence compiler warning about mismatch signedness in ?:.
39016         Reported by Robert Millan.
39017
39018         intprops: add double-inclusion guard
39019         * lib/intprops.h: Allow idempotent includes.
39020         Suggested by Bruce Korb.
39021
39022         openat: detect Solaris fchownat bug
39023         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
39024         penalizing glibc chownat when only lchownat is broken.
39025         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
39026         trailing slash bugs.
39027         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
39028         * modules/openat-tests (Files): Include more files.
39029         (Depends-on): Add mgetgroups, sleep, stat-time.
39030         (configure.ac): Add additional checks.
39031         (Makefile.am): Build new test.
39032         * tests/test-fchownat.c: New file.
39033
39034         lchown: detect Solaris and FreeBSD bug
39035         * lib/lchown.c (rpl_lchown): Work around bug.
39036         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
39037         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39038         * modules/unistd (Makefile.am): Populate it.
39039         * lib/unistd.in.h (lchown): Update declaration.
39040         * doc/posix-functions/lchown.texi (lchown): Document the bug.
39041         * modules/lchown-tests: New file.
39042         * tests/test-lchown.h (test_lchown): Likewise.
39043         * tests/test-lchown.c (main): Likewise.
39044
39045         chown: detect Solaris and FreeBSD bug
39046         * lib/chown.c (rpl_chown): Work around bug.
39047         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
39048         (gl_PREREQ_CHOWN): Delete.
39049         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39050         * modules/unistd (Makefile.am): Populate it.
39051         * lib/unistd.in.h (chown): Update declaration.
39052         * lib/lchown.c (chown): Update client.
39053         * modules/lchown (Depends-on): Add lstat.
39054         * doc/posix-functions/chown.texi (chown): Document the bug.
39055         * doc/posix-functions/getgroups.texi (getgroups): Document
39056         getgroups pitfall.
39057         * modules/chown-tests: New file.
39058         * tests/test-chown.h (test_chown): Likewise.
39059         * tests/test-chown.c (main): Likewise.
39060
39061 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
39062
39063         gnulib-tool: correctly detect absence of m4 directories
39064         * gnulib-tool: Avoid extra newline on data passed to wc -l.
39065
39066 2009-11-14  Jim Meyering  <meyering@redhat.com>
39067
39068         maint.mk: Prohibit inclusion of "xalloc.h" without use.
39069         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
39070
39071 2009-11-14  John W. Eaton  <jwe@gnu.org>
39072
39073         strftime.h: wrap funtion declaration in extern "C" block
39074         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
39075
39076 2009-11-13  Eric Blake  <ebb9@byu.net>
39077
39078         getgroups: avoid compiler warning
39079         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
39080
39081         getgroups: work around FreeBSD bug
39082         * lib/getgroups.c (rpl_getgroups): Work around the bug.
39083         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
39084         * doc/posix-functions/getgroups.texi (getgroups): Document it.
39085         * tests/test-getgroups.c (main): Fix buffer overrun.
39086
39087         getgroups: avoid compilation failure
39088         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
39089         * modules/getgroups (Depends-on): Add stdint.
39090
39091 2009-11-13  Jim Meyering  <meyering@redhat.com>
39092
39093         test-getgroups: avoid compilation failure
39094         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
39095
39096 2009-11-13  Eric Blake  <ebb9@byu.net>
39097
39098         mgetgroups: new module, taken from coreutils
39099         * modules/mgetgroups: New file.
39100         * lib/mgetgroups.h: Likewise.
39101         * lib/mgetgroups.c (mgetgroups): Likewise.
39102         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
39103         * MODULES.html.sh (Users and groups): Mention it.
39104
39105         getgroups: don't expose GETGROUPS_T to user
39106         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
39107         an element at a time if GETGROUPS_T is wrong size.
39108         * lib/getugroups.h (getugroups): Change signature.
39109         * lib/unistd.in.h (getgroups): Likewise.
39110         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
39111         signature needs fixing.
39112         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
39113         AC_TYPE_GETGROUPS.
39114         * modules/group-member (Depends-on): Add getgroups.
39115         * lib/group-member.c (group_info, get_group_info): Use gid_t.
39116         (group_member): Rely on getgroups replacement.
39117         * lib/getugroups.c (getugroups): Use gid_t.
39118         * tests/test-getgroups.c (main): Likewise.
39119         * NEWS: Mention the signature change.
39120         * doc/posix-functions/getgroups.texi (getgroups): Mention the
39121         problem with signature.
39122         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
39123         GETGROUPS_T is still useful for setgroups.
39124
39125         getgroups, getugroups: provide stubs for mingw
39126         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
39127         * lib/getugroups.c (getugroups): Likewise.
39128         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
39129         function.  Modernize replacement scheme.
39130         (gl_PREREQ_GETGROUPS): Delete.
39131         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
39132         * modules/getgroups (configure.ac): Declare witness.
39133         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
39134         * modules/unistd (Depends-on): Substitute witness.
39135         * lib/unistd.in.h (getgroups): Declare replacement.
39136
39137         getgroups: avoid calling exit
39138         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
39139         drop xalloc.
39140         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
39141         dependencies.
39142         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
39143         exiting, in the rare case of malloc failure.
39144
39145         getgroups: fix logic error
39146         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
39147         has more than 20 groups.
39148         * modules/getgroups-tests: New test.
39149         * tests/test-getgroups.c: New file.
39150
39151 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39152
39153         * tests/test-base64.c: Improve.
39154
39155 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39156
39157         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
39158         Blake <ebb9@byu.net>.
39159
39160 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39161
39162         * tests/test-xvasprintf.c: Add %s%s related checks.
39163
39164 2009-11-12  Eric Blake  <ebb9@byu.net>
39165
39166         version-etc: match standards.texi style
39167         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
39168         and use <> only for URLs.
39169
39170 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
39171
39172         fts: do not fail on a submount during traversal
39173         * lib/fts.c (fts_build): Read the stat info again after opening
39174         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
39175         Original report at http://bugzilla.redhat.com/501848.
39176
39177 2009-11-12  Jim Meyering  <meyering@redhat.com>
39178
39179         bootstrap: sync from coreutils
39180         * build-aux/bootstrap (bootstrap_epilogue): New function.
39181         Use git_modules_config in one more place.  This make bootstrap's
39182         --gnulib-srcdir option more useful for testing.
39183
39184         bootstrap: generalize autoheader check
39185         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
39186         AC_CONFIG_HEADERS.
39187
39188 2009-11-11  Eric Blake  <ebb9@byu.net>
39189
39190         mkfifoat: use new modules for Solaris and BSD bugs
39191         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
39192         * lib/mkfifoat.c (mknodat): Split...
39193         * lib/mknodat.c (mknodat): ...into new file.
39194         * modules/mkfifoat (Files): Ship new file.
39195         (Depends-on): Add mkfifo, mknod.
39196         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
39197         (Depends-on): Add symlink.
39198         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
39199         redundant with test_mkfifo.h.
39200         (do_mkfifoat, do_mknodat): New helpers.
39201
39202         mknod: new module
39203         * modules/mknod: New file.
39204         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
39205         * lib/mknod.c (mknod): Likewise.
39206         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
39207         defaults.
39208         * modules/sys_stat (Makefile.am): Substitute them.
39209         * lib/sys_stat.in.h (mknod): Declare replacement.
39210         * MODULES.html.sh (Support for systems lacking POSIX:2008):
39211         Document it.
39212         * doc/posix-functions/mknod.texi (mknod): Likewise.
39213         * modules/mknod-tests: New test.
39214         * tests/test-mknod.c: Likewise.
39215
39216         mkfifo: new module
39217         * modules/mkfifo: New file.
39218         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
39219         * lib/mkfifo.c (mkfifo): Likewise.
39220         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
39221         defaults.
39222         * modules/sys_stat (Makefile.am): Substitute them.
39223         * lib/sys_stat.in.h (mkfifo): Declare replacement.
39224         * MODULES.html.sh (Support for systems lacking POSIX:2008):
39225         Document it.
39226         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
39227         * modules/mkfifo-tests: New test.
39228         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
39229         from test-mkfifoat.c.
39230         * tests/test-mkfifo.c: New file.
39231
39232         readlink: detect FreeBSD bug
39233         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
39234         slash on symlink.
39235         * doc/posix-functions/readlink.texi (readlink): Document the bug.
39236         * tests/test-readlink.h (test_readlink): Enhance test.
39237
39238         symlink: detect FreeBSD bug
39239         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
39240         slash on symlink.
39241         * doc/posix-functions/symlink.texi (symlink): Document the bug.
39242         * tests/test-symlink.h (test_symlink): Enhance test.
39243
39244 2009-11-10  Eric Blake  <ebb9@byu.net>
39245
39246         link: detect FreeBSD bug
39247         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
39248         symlink.
39249         * doc/posix-functions/link.texi (link): Document the bug.
39250         * tests/test-link.h (test_link): Enhance test.
39251         * tests/test-linkat.c (main): Update caller.
39252
39253         unlink, remove: detect FreeBSD bug
39254         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
39255         slash on symlink.
39256         * doc/posix-functions/unlink.texi (unlink): Document the bug.
39257         * doc/posix-functions/remove.texi (remove): Likewise.
39258         * tests/test-unlink.h (test_unlink): Enhance test.
39259         * tests/test-remove.c (main): Likewise.
39260
39261 2009-11-09  Eric Blake  <ebb9@byu.net>
39262
39263         rename: detect FreeBSD bug
39264         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
39265         slash on symlink.
39266         * modules/renameat-tests (Depends-on): Add filenamecat.
39267         * tests/test-rename.h (test_rename): Allow one more errno.
39268         * tests/test-renameat.c (main): Likewise.
39269         * doc/posix-functions/rename.texi (rename): Document the bug.
39270
39271         open: detect FreeBSD bug
39272         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
39273         symlink.
39274         * doc/posix-functions/open.texi (open): Document the bug.
39275         * doc/posix-functions/utimes.texi (utimes): Likewise.
39276         * tests/test-open.h (test_open): Add parameters, and test symlink
39277         handling.
39278         * tests/test-open.c (main): Adjust caller.
39279         * tests/test-fcntl-safer.c (main): Likewise.
39280         * modules/open-tests (Depends-on): Add stdbool, symlink.
39281         * modules/fcntl-safer-tests (Depends-on): Likewise.
39282         * tests/test-openat.c (main): Add test-open tests.
39283
39284         stat: detect FreeBSD bug
39285         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
39286         symlink.
39287         * doc/posix-functions/stat.texi (stat): Document the bug.
39288         * tests/test-stat.h (test_stat_func): Add argument.
39289         * tests/test-stat.c (main): Adjust caller.
39290         * tests/test-fstatat.c (main): Likewise.
39291         * modules/stat-tests (Depends-on): Add stdbool, symlink.
39292         Reported by Jim Meyering.
39293
39294 2009-11-09  James Youngman  <jay@gnu.org>
39295
39296         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
39297         * lib/strftime.c: Correct placement of #include "ignore-value.h".
39298
39299 2009-11-08  Jim Meyering  <meyering@redhat.com>
39300
39301         utimens: remove invalid futimesat call
39302         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
39303         It used the file descriptor of the target file as the DIR_FD
39304         parameter and NULL as the file name.  That caused failure with
39305         errno == EFAULT on FreeBSD-8.0-rc2
39306
39307 2009-11-07  Eric Blake  <ebb9@byu.net>
39308
39309         fflush, freadseek: use fseeko, not fseek
39310         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
39311         (clear_ungetc_buffer): Avoid potential problems on large files.
39312         * lib/freadseek.c (freadseek): Likewise.
39313         * modules/freadseek (Depends-on): Add fseeko.
39314         * modules/fseek (configure.ac): Set a witness.
39315         * tests/test-fflush.c (main): Use fseeko.
39316         * tests/test-fpurge.c (fseek): Disable link warning.
39317         * tests/test-freadable.c (fseek): Likewise.
39318         * tests/test-freading.c (fseek): Likewise.
39319         * tests/test-fseeko.c (fseek): Likewise.
39320         * tests/test-ftell.c (fseek): Likewise.
39321         * tests/test-ftello.c (fseek): Likewise.
39322         * tests/test-fwritable.c (fseek): Likewise.
39323         * tests/test-fwriting.c (fseek): Likewise.
39324
39325 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39326
39327         * modules/memchr (Depends-on): Drop getpagesize dependency.
39328
39329 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39330
39331         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
39332         Reported by Ludovic Courtès.
39333         * build-aux/pmccabe2html: Improve example usage.
39334         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
39335
39336 2009-11-06  Jim Meyering  <meyering@redhat.com>
39337
39338         do-release-commit-and-tag: New module.
39339         Automate the release-commit and tag process.
39340         * build-aux/do-release-commit-and-tag: New script, from coreutils.
39341         * modules/do-release-commit-and-tag: New file.
39342         * MODULES.html.sh (Support for maintaining and releasing): Add it.
39343
39344 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39345
39346         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
39347         because test-select.c uses inet_pton.
39348
39349 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39350
39351         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
39352         GETADDRINFO_LIB.  Bump serial number.
39353         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
39354         Suggested by Eric Blake <ebb9@byu.net>.
39355
39356 2009-11-05  Eric Blake  <ebb9@byu.net>
39357
39358         strtod: detect darwin bug
39359         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
39360         Reported by Leo Davis.
39361
39362         freopen-safer: new module
39363         * modules/freopen-safer: New module.
39364         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
39365         * lib/freopen-safer.c (freopen_safer): New file.
39366         * lib/stdio-safer.h (freopen_safer): New declaration.
39367         * lib/stdio--.h (freopen): New override.
39368         * MODULES.html.sh (File stream based Input/Output): Mention it.
39369         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
39370         freopen-safer module.
39371         * doc/posix-functions/stderr.texi (stderr): Likewise.
39372         * doc/posix-functions/stdin.texi (stdin): Likewise.
39373         * doc/posix-functions/stdout.texi (stdout): Likewise.
39374         * modules/freopen-safer-tests: New test.
39375         * tests/test-reopen-safer.c: New file.
39376
39377 2009-11-05  Jim Meyering  <meyering@redhat.com>
39378
39379         maint.mk: Prohibit inclusion of "close-stream.h" without use.
39380         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
39381
39382 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39383
39384         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
39385
39386 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39387
39388         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
39389
39390 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39391
39392         Fix link error.
39393         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39394         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39395
39396 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39397
39398         * tests/test-func.c: Also test value of __func__.
39399
39400 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39401
39402         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
39403         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
39404
39405 2009-11-05  Bruno Haible  <bruno@clisp.org>
39406
39407         Fix link error.
39408         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39409         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39410         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
39411
39412 2009-11-05  Bruno Haible  <bruno@clisp.org>
39413
39414         Tests for module 'inet_pton'.
39415         * modules/inet_pton-tests: New file.
39416         * tests/test-inet_pton.c: New file.
39417
39418 2009-11-05  Bruno Haible  <bruno@clisp.org>
39419
39420         Tests for module 'inet_ntop'.
39421         * modules/inet_ntop-tests: New file.
39422         * tests/test-inet_ntop.c: New file.
39423
39424 2009-11-04  Eric Blake  <ebb9@byu.net>
39425
39426         stdlib-safer: wrap all mkstemp variants
39427         * modules/mkostemp (configure.ac): Set witness.
39428         * modules/mkostemps (configure.ac): Likewise.
39429         * modules/mkstemps (configure.ac): Likewise.
39430         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
39431         (mkstemps_safer): Wrap more functions.
39432         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
39433         wrapping.
39434         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
39435         (mkstemps_safer): Implement the wrappers.
39436
39437         mkstemps, mkostemps: new modules
39438         * modules/mkostemps: New module.
39439         * modules/mkstemps: Likewise.
39440         * lib/mkostemps.c (mkostemps): New file.
39441         * lib/mkstemps.c (mkstemps): Likewise.
39442         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
39443         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
39444         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
39445         * modules/stdlib (Makefile.am): Substitute them.
39446         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
39447         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
39448         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
39449         * doc/gnulib.texi (Glibc stdlib.h): Include them.
39450         * MODULES.html.sh (File system functions): Mention them.
39451
39452         tempname: resync from glibc
39453         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
39454         same values for __GT_FILE as glibc.  Abort even when assertions
39455         are disabled.
39456         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
39457         match its value otherwise.  Allow idempotent inclusion.
39458         * lib/mkdtemp.c (mkdtemp): Adjust caller.
39459         * lib/mkostemp.c (mkostemp): Likewise.
39460         * lib/mkstemp.c (mkstemp): Likewise.
39461         * lib/tmpfile.c (tmpfile): Likewise.
39462         * NEWS: Document this.
39463
39464         utimens: fix use of futimens on older Linux
39465         * lib/utimens.c (fdutimens): Use updated, rather than original,
39466         timespec to avoid bug in older Linux kernel.
39467         Reported by Simon Josefsson.
39468
39469 2009-11-04  Bruno Haible  <bruno@clisp.org>
39470
39471         Make num_processors more flexible and consistent.
39472         * lib/nproc.h (enum nproc_query): New type.
39473         (num_processors): Add a 'query' argument.
39474         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
39475         (num_processors): Add a 'query' argument. Test the value of the
39476         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
39477         mingw, count the number of CPUs available for the current process.
39478         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
39479         Check for sched_getaffinity and sched_getaffinity_np.
39480         * modules/nproc (Depends-on): Add c-ctype, extensions.
39481         * NEWS: Mention the change.
39482
39483 2009-11-03  Bruno Haible  <bruno@clisp.org>
39484
39485         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
39486
39487 2009-11-03  Jim Meyering  <meyering@redhat.com>
39488
39489         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
39490         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
39491         if it is defined.
39492
39493 2009-11-02  Eric Blake  <ebb9@byu.net>
39494
39495         mktime, timegm: share common declaration
39496         * lib/mktime-internal.h: New file.
39497         * lib/mktime.c: Use it rather than open-coding a declaration.
39498         * lib/timegm.c: Likewise.
39499         * modules/mktime (Files): Ship it.
39500         * modules/timegm (Files): Likewise.
39501         Suggested by Bruno Haible.
39502
39503         test-update-copyright: update test to match script changes
39504         * tests/test-update-copyright.sh: Avoid hard-coding perl
39505         location.  Don't update *.bak created by earlier runs.
39506
39507 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
39508             Simon Josefsson  <simon@josefsson.org>
39509             Bruno Haible  <bruno@clisp.org>
39510
39511         Fix link error on Solaris 8.
39512         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
39513         also in libnsl. Define also INET_PTON_LIB.
39514         * modules/inet_pton (Link): New section.
39515
39516 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39517             Bruno Haible  <bruno@clisp.org>
39518
39519         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
39520         * modules/inet_ntop (Link): New section.
39521         Reported by Boyan Kasarov <bkasarov@gmail.com>.
39522
39523 2009-11-02  Eric Blake  <ebb9@byu.net>
39524
39525         maint: avoid compiler warnings in m4 macros
39526         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
39527         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
39528
39529 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39530
39531         * m4/pmccabe2html.m4: Remove file.
39532         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
39533         function.  Change maintainer.
39534         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
39535         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
39536         Courtès).
39537
39538 2009-10-31  Eric Blake  <ebb9@byu.net>
39539
39540         fseeko: fix m4 regression
39541         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
39542         regression from 2009-10-27.
39543         Reported by Ralf Wildenhues.
39544
39545 2009-10-31  Jim Meyering  <meyering@redhat.com>
39546
39547         inttostr: aesthetics and improved (compile-time) safety
39548         Define inttype_is_signed rather than inttype_is_unsigned,
39549         since the sole use is via "#if inttype_is_signed".
39550         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
39551         inttype_is_unsigned.
39552         * lib/offtostr.c (inttype_is_signed): Likewise.
39553         * lib/uinttostr.c (inttype_is_signed): Likewise.
39554         * lib/umaxtostr.c (inttype_is_signed): Likewise.
39555         * lib/inttostr.c (inttostr): Use verify to cross-check the
39556         inttype_is_signed value and the signedness of the actual type.
39557         * modules/inttostr (Depends-on): Add verify.
39558
39559 2009-10-30  Eric Blake  <ebb9@byu.net>
39560
39561         build: avoid compiler warnings
39562         * lib/fchmodat.c (lchmod): Mark unused variables.
39563         * lib/getopt.c (_getopt_initialize): Likewise.
39564         * lib/mktime.c (__mktime_internal): Provide prototype.
39565         * lib/inttostr.c (inttostr): Avoid compiler warning even with
39566         older gcc that do not understand #pragma GCC diagnostic.
39567         * lib/uinttostr.c (inttype_is_unsigned): Define.
39568         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
39569
39570 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
39571
39572         stat: fix compilation on AIX
39573         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
39574         only see struct stat64.
39575
39576 2009-10-30  Eric Blake  <ebb9@byu.net>
39577
39578         exclude: make more robust
39579         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
39580         rather than masking a coding bug.
39581         Suggested by Bruno Haible.
39582
39583 2009-10-30  Jim Meyering  <meyering@redhat.com>
39584
39585         perl scripts: remove #!/usr/bin/perl in favor of more portable...
39586         Rather than putting #!/usr/bin/perl on the first line,
39587         start with a variant of what's recommended by "man perlrun" that
39588         invokes the first "perl" program from your shell's search path.
39589         * build-aux/gitlog-to-changelog: Replace #!... as above.
39590         Add a "Local Variables" perl mode setting.
39591         Prompted by a patch from Ludovic Courtès.
39592         Improved by Eric Blake.
39593         * build-aux/useless-if-before-free: Likewise.
39594         * build-aux/announce-gen: Likewise.
39595         * build-aux/update-copyright: Likewise.
39596
39597 2009-10-29  Eric Blake  <ebb9@byu.net>
39598
39599         filenamecat-lgpl: adjust clients
39600         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
39601         filenamecat.
39602         * modules/renameat (Depends-on): Likewise.
39603
39604         filenamecat: split into filenamecat-lgpl
39605         * modules/filenamecat-lgpl: New module.
39606         * modules/filenamecat (Files): Move library-safe files into
39607         filenamecat-lgpl.
39608         (Depends-on): Add filenamecat-lgpl.
39609         (configure.ac): Declare witness.
39610         * lib/filenamecat.h (file_name_concat): Only declare when using
39611         GPL module.
39612         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
39613         Move...
39614         * lib/filenamecat-lgpl.c: ...into new file.
39615         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
39616         (gl_FILE_NAME_CONCAT): Use it.
39617         * MODULES.html.sh (File system functions): Mention new module.
39618
39619         argp: avoid memory leak
39620         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
39621         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
39622         base_name, since the latter malloc()s and can call exit().
39623         Leak introduced 2006-07-03.
39624
39625         dirname-lgpl: adjust clients that don't need full dirname
39626         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
39627         * modules/filenamecat (Depends-on): Likewise.
39628         * modules/linkat (Depends-on): Likewise.
39629         * modules/mkancesdirs (Depends-on): Likewise.
39630         * modules/mkdir (Depends-on): Likewise.
39631         * modules/openat (Depends-on): Likewise.
39632         * modules/savewd (Depends-on): Likewise.
39633         * modules/rename (Depends-on): Likewise.
39634         (License): Relax license.
39635         * modules/mkdir-tests (Depends-on): Drop progname.
39636         (Makefile.am): Delete unneeded LDADD.
39637         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
39638
39639         dirname: split into dirname-lgpl
39640         * modules/dirname-lgpl: New module.
39641         * modules/dirname (Files): Move library-safe files into
39642         dirname-lgpl.
39643         (Depends-on): Add dirname-lgpl.
39644         (configure.ac): Declare witness.
39645         * modules/double-slash-root (License): Relax license.
39646         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
39647         module.
39648         * lib/dirname.c (dir_len, mdir_name): Move...
39649         * lib/dirname-lgpl.c: ...into new file.
39650         * lib/basename.c (last_component, base_len): Move...
39651         * lib/basename-lgpl.c: ...into new file.
39652         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
39653         (gl_DIRNAME): Use it.
39654         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
39655         Mention new module.
39656         * modules/dirname-tests (Depends-on): Add progname.
39657         * tests/test-dirname.c (program_name): Delete.
39658
39659         mkdir: make safe for libraries
39660         * modules/mkdir (Depends-on): Drop xalloc.
39661         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
39662         exit.
39663
39664         tests: avoid some compiler warnings
39665         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
39666         literals.
39667         * tests/test-memchr.c (main): Avoid type mismatch.
39668         * tests/test-arpa_inet.c (main): Avoid unused parameters.
39669         * tests/test-base64.c (main): Likewise.
39670         * tests/test-getdelim.c (main): Likewise.
39671         * tests/test-gethostname.c (main): Likewise.
39672         * tests/test-getline.c (main): Likewise.
39673         * tests/test-netinet_in.c (main): Likewise.
39674         * tests/test-select.c (open_server_socket, main): Likewise.
39675         * tests/test-select-stdin.c (main): Likewise.
39676         * tests/test-sockets.c (main): Likewise.
39677         * tests/test-strsignal.c (main): Likewise.
39678         * tests/test-sys_select.c (main): Likewise.
39679         * tests/test-sys_socket.c (main): Likewise.
39680         * tests/test-u64.c (main): Likewise.
39681         * tests/test-xfprintf-posix.c (main): Likewise.
39682         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
39683
39684         sockets: avoid compiler warning
39685         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
39686
39687         maint: detect usage(1) and other suspicious exits
39688         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
39689
39690 2009-10-29  Jim Meyering  <meyering@redhat.com>
39691
39692         timespec: long-to-int truncation could make timespec_cmp malfunction
39693         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
39694         a multiple of 2^32 nanoseconds as no difference.
39695
39696 2009-10-28  Jim Meyering  <meyering@redhat.com>
39697
39698         fprintftime: wrap macro code argument in "do {...} while(0)"
39699         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
39700         cpy macro must be a statement that can be followed by a semicolon.
39701         Now that the else clause contains a comment and is hence longer
39702         than one line, I require curly braces.  That in turn requires
39703         that we wrap this code block in the standard do...while(0).
39704
39705         fprintftime: remove stray semicolon from previous change
39706         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
39707
39708         fprintftime: avoid a warning about ignored fwrite return value
39709         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
39710         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
39711         that is unsafe.
39712         * modules/fprintftime (Depends-on): Add ignore-value.
39713
39714         exclude: avoid an unwarranted warning
39715         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
39716
39717 2009-10-27  Eric Blake  <ebb9@byu.net>
39718
39719         fseek: avoid compilation failure when fflush is replaced
39720         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
39721         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
39722         module is in use.
39723         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
39724         module is not in use; since REPLACE_FSEEK worked otherwise.
39725         (GNULIB_FTELLO): Likewise for ftell.
39726         Reported by Ian Beckwith and others.
39727
39728 2009-10-27  Bruno Haible  <bruno@clisp.org>
39729
39730         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
39731         Reported by Jim Meyering.
39732
39733 2009-10-27  Jim Meyering  <jim@meyering.net>
39734             Bruno Haible  <bruno@clisp.org>
39735
39736         Avoid warning despite dropping the return value of fwrite.
39737         * lib/unicodeio.c: Include ignore-value.h.
39738         (fwrite_success_callback): Explicitly ignore fwrite's return value.
39739         * modules/unicodeio (Depends-on): Add ignore-value.
39740
39741 2009-10-26  Eric Blake  <ebb9@byu.net>
39742
39743         areadlinkat: fix fallback path
39744         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
39745         pointer and zero.
39746
39747 2009-10-22  Pádraig Brady  <P@draigBrady.com>
39748
39749         Use a better IO block size for modern systems
39750         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
39751         * lib/md2.c: Likewise.
39752         * lib/md4.c: Likewise.
39753         * lib/md5.c: Likewise.
39754         * lib/sha1.c: Likewise.
39755         * lib/sha256.c: Likewise.
39756         * lib/sha512.c: Likewise.
39757
39758 2009-10-22  Eric Blake  <ebb9@byu.net>
39759
39760         tests: avoid several compiler warnings
39761         * tests/test-getcwd.c (main): Avoid buffer underflow.
39762         * tests/test-getdate.c (main): String literals are not safe with
39763         putenv, so use setenv.  Declare unused argument.
39764         * modules/getdate-tests (Depends-on): Add setenv.
39765         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
39766         problems with string literals in char *.
39767         * tests/test-hash.c (main): Avoid shadowing declaration.
39768         (insert_new): Treat string literals as char const *.
39769         * tests/test-getopt.h (test_getopt): Likewise.
39770         (getopt_loop): Alter types to minimize casting elsewhere.
39771         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
39772         (test_getopt_long_posix): Likewise.
39773         (do_getopt_long): Add wrapper to minimize casting.
39774         * tests/test-atexit.c (clear_temp_file): Use void.
39775         * tests/test-areadlink-with-size.c (main): Declare unused
39776         arguments.
39777         * tests/test-areadlink.c (main): Likewise.
39778         * tests/test-areadlinkat-with-size.c (main): Likewise.
39779         * tests/test-areadlinkat.c (main): Likewise.
39780         * tests/test-canonicalize-lgpl.c (main): Likewise.
39781         * tests/test-canonicalize.c (main): Likewise.
39782         * tests/test-dirent-safer.c (main): Likewise.
39783         * tests/test-dirname.c (main): Likewise.
39784         * tests/test-dup2.c (main): Likewise.
39785         * tests/test-fchdir.c (main): Likewise.
39786         * tests/test-fcntl-h.c (main): Likewise.
39787         * tests/test-fcntl-safer.c (main): Likewise.
39788         * tests/test-fdopendir.c (main): Likewise.
39789         * tests/test-fdutimensat.c (main): Likewise.
39790         * tests/test-fflush.c (main): Likewise.
39791         * tests/test-filenamecat.c (main): Likewise.
39792         * tests/test-filevercmp.c (main): Likewise.
39793         * tests/test-fopen-safer.c (main): Likewise.
39794         * tests/test-fopen.c (main): Likewise.
39795         * tests/test-fpending.c (main): Likewise.
39796         * tests/test-fpurge.c (main): Likewise.
39797         * tests/test-freading.c (main): Likewise.
39798         * tests/test-fstatat.c (main): Likewise.
39799         * tests/test-fsync.c (main): Likewise.
39800         * tests/test-futimens.c (main): Likewise.
39801         * tests/test-getndelim2.c (main): Likewise.
39802         * tests/test-gettimeofday.c (main): Likewise.
39803         * tests/test-getopt.c (main): Likewise.
39804         * tests/test-i-ring.c (main): Likewise.
39805         * tests/test-inttypes.c (main): Likewise.
39806         * tests/test-link.c (main): Likewise.
39807         * tests/test-lstat.c (main): Likewise.
39808         * tests/test-math.c (main): Likewise.
39809         * tests/test-md5.c (main): Likewise.
39810         * tests/test-memchr2.c (main): Likewise.
39811         * tests/test-memrchr.c (main): Likewise.
39812         * tests/test-mkdir.c (main): Likewise.
39813         * tests/test-mkdirat.c (main): Likewise.
39814         * tests/test-mkfifoat.c (main): Likewise.
39815         * tests/test-open.c (main): Likewise.
39816         * tests/test-openat-safer.c (main): Likewise.
39817         * tests/test-openat.c (main): Likewise.
39818         * tests/test-quotearg.c (main): Likewise.
39819         * tests/test-rawmemchr.c (main): Likewise.
39820         * tests/test-readlink.c (main): Likewise.
39821         * tests/test-remove.c (main): Likewise.
39822         * tests/test-rename.c (main): Likewise.
39823         * tests/test-renameat.c (main): Likewise.
39824         * tests/test-rmdir.c (main): Likewise.
39825         * tests/test-sha1.c (main): Likewise.
39826         * tests/test-signal.c (main): Likewise.
39827         * tests/test-sigaction.c (main): Likewise.
39828         * tests/test-stat.c (main): Likewise.
39829         * tests/test-stat-time.c (main): Likewise.
39830         * tests/test-stddef.c (main): Likewise.
39831         * tests/test-stdint.c (main): Likewise.
39832         * tests/test-stdio.c (main): Likewise.
39833         * tests/test-stdlib.c (main): Likewise.
39834         * tests/test-strchrnul.c (main): Likewise.
39835         * tests/test-strerror.c (main): Likewise.
39836         * tests/test-string.c (main): Likewise.
39837         * tests/test-strtod.c (main): Likewise.
39838         * tests/test-strverscmp.c (main): Likewise.
39839         * tests/test-symlink.c (main): Likewise.
39840         * tests/test-symlinkat.c (main): Likewise.
39841         * tests/test-sys_stat.c (main): Likewise.
39842         * tests/test-sys_time.c (main): Likewise.
39843         * tests/test-time.c (main): Likewise.
39844         * tests/test-unistd.c (main): Likewise.
39845         * tests/test-unlink.c (main): Likewise.
39846         * tests/test-unlinkat.c (main): Likewise.
39847         * tests/test-utimens.c (main): Likewise.
39848         * tests/test-utimensat.c (main): Likewise.
39849         * tests/test-version-etc.c (main): Likewise.
39850         * tests/test-wchar.c (main): Likewise.
39851         * tests/test-wctype.c (main): Likewise.
39852         * tests/test-xprintf-posix.c (main): Likewise.
39853         * tests/test-posixtm.c (main): Likewise.
39854         (STREQ): Delete unused macro.
39855         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
39856         shadowed variables.
39857         * tests/test-memchr.c (main): Likewise.
39858
39859 2009-10-21  Eric Blake  <ebb9@byu.net>
39860
39861         areadlinkat: avoid failure on older glibc
39862         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
39863         rather than mis-comparing 0 against FUNC_RESULT of char*.
39864
39865 2009-10-21  Bruno Haible  <bruno@clisp.org>
39866
39867         * modules/stpncpy (License): Relicense under LGPLv2+.
39868         Reported by David Lutterkort <lutter@redhat.com>.
39869
39870 2009-10-20  Eric Blake  <ebb9@byu.net>
39871
39872         utimensat: work around Solaris 9 bug
39873         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
39874         has trailing slash bugs.
39875         * tests/test-lutimens.h (test_lutimens): Enhance test.
39876         * tests/test-utimens.h (test_utimens): Likewise.
39877         * doc/posix-functions/utime.texi (utime): Enhance documentation.
39878         * doc/posix-functions/utimes.texi (utimes): Likewise.
39879         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39880         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
39881         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
39882         * doc/posix-functions/futimens.texi (futimens): Likewise.
39883
39884         fdutimensat: new module
39885         * modules/fdutimensat: New file.
39886         * lib/fdutimensat.c (fdutimensat): Likewise.
39887         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
39888         * MODULES.html.sh (File system functions): Mention module.
39889         * modules/fdutimensat-tests: New test.
39890         * tests/test-fdutimensat.c: Likewise.
39891
39892         doc: regenerate INSTALL
39893         * doc/INSTALL: Reflect recent autoconf update.
39894         * doc/INSTALL.ISO: Likewise.
39895         * doc/INSTALL.UTF-8: Likewise.
39896
39897 2009-10-20  Pádraig Brady  <P@draigBrady.com>
39898
39899         acl: warn if ACL support is not detected
39900         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
39901
39902 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
39903
39904         * lib/nproc.h: Add extern "C" block for C++.
39905
39906 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
39907             Bruno Haible  <bruno@clisp.org>
39908
39909         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
39910         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
39911         * doc/posix-functions/isalpha.texi: Likewise.
39912         * doc/posix-functions/isblank.texi: Likewise.
39913         * doc/posix-functions/iscntrl.texi: Likewise.
39914         * doc/posix-functions/isdigit.texi: Likewise.
39915         * doc/posix-functions/isgraph.texi: Likewise.
39916         * doc/posix-functions/islower.texi: Likewise.
39917         * doc/posix-functions/isprint.texi: Likewise.
39918         * doc/posix-functions/ispunct.texi: Likewise.
39919         * doc/posix-functions/isspace.texi: Likewise.
39920         * doc/posix-functions/isupper.texi: Likewise.
39921         * doc/posix-functions/isxdigit.texi: Likewise.
39922
39923 2009-10-18  Bruno Haible  <bruno@clisp.org>
39924
39925         Tests for module 'isblank'.
39926         * modules/isblank-tests: New file.
39927         * tests/test-isblank.c: New file.
39928
39929         New module 'isblank'.
39930         * lib/isblank.c: New file.
39931         * m4/isblank.m4: New file.
39932         * modules/isblank: New file.
39933         * doc/posix-functions/isblank.texi: Mention the new module.
39934
39935 2009-10-18  Bruno Haible  <bruno@clisp.org>
39936
39937         New module 'ctype'.
39938         * lib/ctype.in.h: New file.
39939         * m4/ctype.m4: New file.
39940         * modules/ctype: New file.
39941         * doc/posix-headers/ctype.texi: Mention the new module.
39942
39943 2009-10-18  Jim Meyering  <meyering@redhat.com>
39944
39945         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
39946         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
39947         right after its initialization, rather than farther down.
39948         Keeping these in close proximity makes it easier to ensure
39949         that each such variable is initialized.  E.g.,
39950
39951             LIB_CLOCK_GETTIME=
39952             AC_SUBST([LIB_CLOCK_GETTIME])
39953
39954         This change also increments these serial numbers.
39955         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
39956         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39957         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39958
39959 2009-10-18  Bruno Haible  <bruno@clisp.org>
39960
39961         Don't let environment variables perturb build.
39962         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
39963         (gl_PREREQ_GETHRXTIME): ... not here.
39964
39965 2009-10-18  Bruno Haible  <bruno@clisp.org>
39966
39967         Avoid symlink attack in localcharset module.
39968         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
39969         (O_NOFOLLOW): Define fallback.
39970         (get_charset_aliases): Don't open the file if it is a symbolic link.
39971         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
39972         gl_FCNTL_H.
39973         (gl_FCNTL_H): Require it.
39974         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
39975         * modules/localcharset (Files): Add m4/fcntl_h.m4.
39976         Reported by Fergal Glynn <fglynn@veracode.com>.
39977
39978 2009-10-18  Bruno Haible  <bruno@clisp.org>
39979
39980         Implement nproc for mingw.
39981         * lib/nproc.c: Include <windows.h>
39982         (num_processors): On native Windows platforms, try GetSystemInfo.
39983
39984 2009-10-18  Bruno Haible  <bruno@clisp.org>
39985
39986         Implement nproc for IRIX.
39987         * lib/nproc.c: Include <sys/sysmp.h>.
39988         (num_processors): On IRIX systems, try sysmp.
39989         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
39990
39991 2009-10-18  Bruno Haible  <bruno@clisp.org>
39992
39993         Implement nproc for HP-UX.
39994         * lib/nproc.c: Include <sys/pstat.h>
39995         (num_processors): On HP-UX systems, try pstat_getdynamic.
39996         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
39997         pstat_getdynamic.
39998
39999 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
40000             Bruno Haible  <bruno@clisp.org>
40001
40002         Implement nproc for NetBSD, OpenBSD.
40003         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
40004         (ARRAY_SIZE): New macro.
40005         (num_processors): On BSD systems, try sysctl of HW_NCPU.
40006         * m4/nproc.m4: New file.
40007         * modules/nproc (Files): Add m4/nproc.m4.
40008         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
40009         (Makefile.am): Instead, augment lib_SOURCES.
40010
40011 2009-10-18  Bruno Haible  <bruno@clisp.org>
40012
40013         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
40014         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
40015         sys/param.h.
40016
40017 2009-10-16  Eric Blake  <ebb9@byu.net>
40018
40019         utimensat: new module
40020         * modules/utimensat: New file.
40021         * lib/utimensat.c (utimensat): Likewise.
40022         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40023         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
40024         so we can work around Linux bugs.
40025         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40026         * modules/sys_stat (Makefile.am): Substitute them.
40027         * lib/sys_stat.in.h (utimensat): Declare it.
40028         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40029         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40030         * modules/utimensat-tests: New test.
40031         * tests/test-utimensat.c: Likewise.
40032
40033         utimens: let lutimens work on non-symlinks
40034         * lib/utimens.c (lutimens): Fall back to utimens rather than
40035         failing with ENOSYS, when file is not a symlink.
40036         (utimens): Reduce redirection.
40037         * tests/test-lutimens.h (test_lutimens): Update test to cover
40038         non-symlinks.
40039         * tests/test-utimens.h (test_utimens): Update test to cover
40040         symlinks.
40041         * tests/test-utimens.c (main): Update caller.
40042
40043         utimens: cache whether utimensat syscall works
40044         * lib/utimens.c (utimensat_works_really): New cache variable.
40045         (fdutimens, lutimens): Use it to avoid failing syscall.
40046
40047         test-stat-time, test-utimens: improve portability
40048         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
40049         ext4 on alpha, and for cygwin.
40050         * tests/test-utimens-common.h: New file.
40051         (nap): Factor delays into single function.
40052         * tests/test-lutimens.h (test_lutimens): Use new header.
40053         * tests/test-futimens.h (test_futimens): Likewise.
40054         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
40055         timestamps to occur from same machine, as was done previously for
40056         test_utimens.
40057         * modules/utimens-tests (Files): Ship new file.
40058         * modules/futimens-tests (Files): Likewise.
40059         Reported in part by Jim Meyering.
40060
40061         sys_stat: sort replacement declarations
40062         * lib/sys_stat.in.h: Sort declarations.
40063         * lib/futimens.c (futimens): Fix typo.
40064
40065 2009-10-15  Jim Meyering  <meyering@redhat.com>
40066
40067         don't let environment settings perturb build
40068         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
40069         could cause a configure-time and/or build-time malfunction.
40070         Typically, a configure-time function-in-library test is performed
40071         via code like this:
40072
40073           LIB_VAR=
40074           AC_SUBST([LIB_VAR])
40075           prefix_saved_LIBS=$LIBS
40076             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
40077                        [test "$ac_cv_search_FUNC" = "none required" ||
40078                         LIB_VAR=$ac_cv_search_FUNC])
40079           LIBS=$prefix_saved_LIBS
40080
40081         However, in each of the files affected by this change, the LIB_VAR=
40082         initialization was omitted.  Thus, when set in the environment, its
40083         value would propagate into generated Makefiles when FUNC is not found
40084         in LIB_NAME.
40085         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
40086         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40087         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40088
40089 2009-10-14  Eric Blake  <ebb9@byu.net>
40090
40091         fchdir: avoid infinite recursion in mingw
40092         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
40093         recursing.
40094
40095         test-stat-time: port to mingw
40096         * tests/test-stat-time.c (force_unlink): Return a value.
40097         (test_ctime) [W32]: Fix compilation error.
40098         (nap): Don't call usleep with too large an argument.  Use
40099         force_unlink.
40100         * doc/pastposix-functions/usleep.texi (usleep): Document the
40101         portability issue.
40102
40103 2009-10-13  Jim Meyering  <meyering@redhat.com>
40104
40105         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
40106         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
40107         * modules/pipe-filter-ii: Likewise.
40108         * modules/sys_socket-tests: Likewise.
40109         * modules/tsearch-tests: Likewise.
40110         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
40111         (check): Depend on it.
40112
40113 2009-10-12  Eric Blake  <ebb9@byu.net>
40114
40115         utimens-tests: port to NFS file systems
40116         * tests/test-utimens.h (test_utimens): Refactor utimecmp
40117         comparisons to avoid spurious failures from timestamp drift
40118         between NFS machines.
40119
40120 2009-10-12  Eric Blake  <ebb9@byu.net>
40121
40122         stat-time-tests: minor cleanups
40123         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
40124         * tests/test-stat-time.c (nap): Separate assignment from call.
40125         Suggested by Paolo Bonzini and Bruno Haible.
40126
40127         sys_stat: guarantee struct timespec
40128         * lib/sys_stat.in.h (includes): Always include <time.h>
40129         * modules/sys_stat (Depends-on): Add time.
40130         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
40131         mode_t permission values.
40132         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
40133         get at subsecond timestamps.
40134
40135 2009-10-10  Eric Blake  <ebb9@byu.net>
40136
40137         futimens: new module
40138         * modules/futimens: New file.
40139         * lib/futimens.c (futimens): Likewise.
40140         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
40141         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
40142         we can work around Linux bugs.
40143         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40144         * modules/sys_stat (Makefile.am): Substitute them.
40145         * lib/sys_stat.in.h (futimens): Declare it.
40146         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40147         * doc/posix-functions/futimens.texi (futimens): Likewise.
40148         * modules/futimens-tests: New test.
40149         * tests/test-futimens.c: Likewise.
40150
40151         utimens: introduce fdutimens
40152         * lib/utimens.h (fdutimens): New prototype.
40153         * lib/utimens.c (gl_futimens): Move guts...
40154         (fdutimens): ...to new interface.
40155         * tests/test-utimens.c (do_fdutimens): Use it.
40156
40157         utimens: add UTIME_NOW and UTIME_OMIT support
40158         * lib/utimens.c (validate_timespec, update_timespec): New helper
40159         functions.
40160         (gl_futimens, lutimens): Use them.
40161         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
40162         stdbool, sys_stat.
40163         (Link): Mention resulting library dependency.
40164         * modules/utimecmp (Link): Likewise.
40165         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
40166         (Makefile.am): Pick up library dependency.
40167         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
40168         definition.
40169         * tests/test-sys_stat.c: Test the definitions.
40170         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
40171         * NEWS: Document library dependency.
40172
40173         utimecmp: support symlink timestamps
40174         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
40175         hashing when possible.  Use pathconf when available.
40176         (SYSCALL_RESOLUTION): Recognize tighter resolution.
40177         * modules/utimecmp (Depends-on): Add lstat.
40178
40179         utimens: add lutimens interface
40180         * lib/utimens.c (lutimens): New function.
40181         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
40182         * lib/utimens.h (lutimens): Declare new interface.
40183         * tests/test-utimens.c (main): Enhance test.
40184         * tests/test-lutimens.h (test_lutimens): New file.
40185         * modules/utimens-tests (Files): Distribute it.
40186         (Depends-on): Add symlink.
40187         (configure.ac): Check for usleep.
40188
40189         utimens: validate futimens usage
40190         * lib/utimens.c (gl_futimens): Require valid fd up front, using
40191         fewer syscalls on failure later on.  Avoid compiler warning on
40192         mingw.
40193         * modules/utimens (Depends-on): Add dup2.
40194
40195         utimens: add test
40196         * modules/utimens-tests: New test.
40197         * tests/test-utimens.h: New file.
40198         * tests/test-futimens.h: Likewise.
40199         * tests/test-utimens.c: Likewise.
40200
40201         doc: mention timestamp portability issues
40202         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
40203         instead.
40204         * doc/posix-functions/utime.texi (utime): Likewise.
40205         * doc/posix-functions/utimes.texi (utimes): Likewise.
40206         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
40207         instead.
40208         * doc/posix-functions/futimens.texi (futimens): Mention utimens
40209         module.
40210         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40211         Mention weakness with symlink timestamps.
40212         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
40213         to utimensat/futimens instead.
40214         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
40215
40216         test-dup2: enhance test
40217         * tests/test-dup2.c (main): Also check AT_FDCWD.
40218
40219         test-stat-time: avoid more spurious failures
40220         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
40221         xfs; and avoid race if the two timestamps cross quantization edge.
40222
40223         relocatable: prefer 'file system' over 'filesystem'
40224         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
40225         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
40226         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
40227         * doc/relocatable.texi (Enabling Relocatability): Likewise.
40228         * lib/relocatable.c (compute_curr_prefix): Likewise.
40229
40230 2009-10-10  Jim Meyering  <meyering@redhat.com>
40231
40232         stat-time-tests: check for the usleep function
40233         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
40234
40235 2009-10-10  Bruno Haible  <bruno@clisp.org>
40236
40237         * modules/xnanosleep: Put the Link section after the Include section.
40238
40239 2009-10-09  Eric Blake  <ebb9@byu.net>
40240
40241         dup2: work around FreeBSD 6.1 bug
40242         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
40243         * doc/posix-functions/dup2.texi (dup2): Document it.
40244         Reported by Nelson H. F. Beebe and Jim Meyering.
40245
40246         test-stat-time: port to buggy NFS clients
40247         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
40248         (test_ctime): Also skip test if mtime and ctime are skewed.
40249
40250         maint: prefer 'file system' over 'filesystem'
40251         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40252         * doc/posix-functions/lstat.texi (lstat): Likewise.
40253         * lib/file-has-acl.c (file_has_acl): Likewise.
40254         * lib/fwriteerror.c [TEST]: Likewise.
40255         * tests/test-areadlink.h (test_areadlink): Likewise.
40256         * tests/test-areadlinkat-with-size.c (main): Likewise.
40257         * tests/test-areadlinkat.c (main): Likewise.
40258         * tests/test-canonicalize-lgpl.c (main): Likewise.
40259         * tests/test-canonicalize.c (main): Likewise.
40260         * tests/test-fstatat.c (main): Likewise.
40261         * tests/test-linkat.c (main): Likewise.
40262         * tests/test-lstat.h (test_lstat_func): Likewise.
40263         * tests/test-mkdir.h (test_mkdir): Likewise.
40264         * tests/test-readlink.h (test_readlink): Likewise.
40265         * tests/test-remove.c (main): Likewise.
40266         * tests/test-rename.h (test_rename): Likewise.
40267         * tests/test-renameat.c (main): Likewise.
40268         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40269         * tests/test-symlink.h (test_symlink): Likewise.
40270         * tests/test-symlinkat.c (main): Likewise.
40271         * tests/test-unlink.h (test_unlink_func): Likewise.
40272         * tests/test-unlinkat.c (main): Likewise.
40273
40274         maint: make realtime library usage explicit
40275         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
40276         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
40277         * modules/settime (Link): Likewise.
40278         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
40279
40280         test-stat-time: speed up execution
40281         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
40282         warning on mingw.
40283         (nap): New helper function.
40284         (prepare_test): Use it to reduce sleep time.
40285         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
40286         execution.
40287         * modules/stat-time-tests (configure.ac): Check for usleep.
40288
40289 2009-10-09  Jim Meyering  <meyering@redhat.com>
40290
40291         selinux-h: always use getfilecon wrappers
40292         * lib/getfilecon.c: New file.
40293         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
40294         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
40295         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
40296         (fgetfilecon): Provide a stub.
40297         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
40298         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
40299         file unconditionally.
40300         When <selinux/selinux.h> is found, arrange to use wrappers.
40301         * modules/selinux-h (Files): Add getfilecon.c.
40302         (Makefile.am): Substitute include-next-related bits
40303         into the now-always-generated selinux/selinux.h file.
40304         * doc/glibc-functions/lgetfilecon.texi: New file.
40305         * doc/glibc-functions/fgetfilecon.texi: New file.
40306         * doc/glibc-functions/getfilecon.texi: New file.
40307         * doc/glibc-functions/getfilecon-desc.texi: New file.
40308         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
40309         which to pull in the new files.
40310         * MODULES.html.sh (Misc): Add selinux-h.
40311
40312 2009-10-08  Jim Meyering  <meyering@redhat.com>
40313
40314         unistd: fix comment typo
40315         * lib/unistd.in.h (euidaccess): Fix a comment typo.
40316
40317 2009-10-08  Eric Blake  <ebb9@byu.net>
40318
40319         areadlink: use SIZE_MAX consistently
40320         * modules/areadlink (Depends-on): Add stdint.
40321         * modules/areadlink-with-size (Depends-on): Likewise.
40322         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
40323         gives NULL; drop sys/types, since unistd gives size_t; and add
40324         stdint for SIZE_MAX.
40325         (SIZE_MAX): Rely on headers.
40326         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
40327         and add stdint.
40328         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
40329         (SIZE_MAX): Likewise.
40330         (INITIAL_BUF_SIZE): Turn into enum.
40331         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
40332
40333 2009-10-08  Jim Meyering  <meyering@redhat.com>
40334
40335         areadlinkat: avoid compilation failure
40336         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
40337         Fix typo in comment.
40338
40339 2009-10-07  Eric Blake  <ebb9@byu.net>
40340
40341         areadlinkat-with-size: new module
40342         * modules/areadlinkat-with-size: New module.
40343         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
40344         * lib/areadlink.h (areadlinkat): Declare it.
40345         * MODULES.html.sh (File system functions): Mention it.
40346         * modules/areadlinkat-with-size-tests: New test.
40347         * tests/test-areadlinkat-with-size.c: New file.
40348
40349         xreadlinkat: new module
40350         * modules/xreadlinkat: New module.
40351         * lib/xreadlinkat.c (xreadlinkat): New file.
40352         * lib/xreadlink.h (xreadlinkat): Declare it.
40353         * MODULES.html.sh (File system functions): Mention it.
40354
40355         areadlinkat: new module
40356         * lib/at-func.c (FUNC_FAIL): New define.
40357         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
40358         * modules/areadlinkat: New module.
40359         * lib/linkat.c (areadlinkat): Move...
40360         * lib/areadlinkat.c (areadlinkat): ...to new file.
40361         * lib/areadlink.h (areadlinkat): Declare it.
40362         * modules/linkat (Depends-on): Add areadlinkat.
40363         * MODULES.html.sh (File system functions): Mention it.
40364         * modules/areadlinkat-tests: New test.
40365         * tests/test-areadlinkat.c: New file.
40366
40367         areadlink, areadlink-with-size: add tests
40368         * modules/areadlink-tests: New test.
40369         * modules/areadlink-with-size-tests: Likewise.
40370         * tests/test-areadlink.h: New file.
40371         * tests/test-areadlink.c: Likewise.
40372         * tests/test-areadlink-with-size.c: Likewise.
40373
40374         maint: minor cleanups
40375         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
40376         _UNUSED_PARAMETER_ instead.
40377         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
40378         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
40379         * modules/linkat-tests (Files): Distribute test-link.h.
40380
40381         openat, utimens: whitespace cleanup
40382         * lib/openat.c: Prefer space throughout, rather than mix of 8
40383         spaces vs. tabs.
40384         * lib/at-func.c: Likewise.
40385         * lib/utimens.c: Likewise.
40386
40387         openat: avoid using wrong fd
40388         * lib/openat.c (openat_permissive): Reject user's fd if saving the
40389         working directory chooses same fd.
40390         * lib/at-func.c (AT_FUNC_NAME): Likewise.
40391
40392         mkdir, mkdirat: fix cygwin 1.5.x bug
40393         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
40394         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
40395         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
40396         bug.
40397         (gl_PREREQ_MKDIR): Delete unused macro.
40398         * modules/mkdir (Files): Track file rename.
40399         (configure.ac): Update macro name.
40400         * modules/openat (Depends-on): Add mkdir.
40401         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
40402
40403         mkdir, mkdirat: add tests
40404         * modules/mkdir-tests: New test.
40405         * tests/test-mkdir.h: New file.
40406         * tests/test-mkdir.c: Likewise.
40407         * tests/test-mkdirat.c: Likewise.
40408         * modules/openat-tests (Files): Add new files.
40409         (Makefile.am): Run new test.
40410
40411 2009-10-06  Eric Blake  <ebb9@byu.net>
40412
40413         doc: tweak *at function documentation
40414         * doc/posix-functions/faccessat.texi (faccessat): Mention
40415         known issue with replacement.
40416         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
40417         * doc/posix-functions/linkat.texi (linkat): Likewise.
40418         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40419         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40420         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40421         * doc/posix-functions/renameat.texi (renameat): Likewise.
40422         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40423
40424         openat: fix GNU/Hurd bug in unlinkat
40425         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
40426         broken.
40427         * doc/posix-functions/unlink.texi (unlink): Document this.
40428         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
40429
40430         fdopendir: fix GNU/Hurd bug
40431         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
40432         allowing non-directory fds.
40433         * lib/fdopendir.c (rpl_fdopendir): Work around it.
40434         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
40435         * modules/dirent (Makefile.am): Substitute it.
40436         * lib/dirent.in.h (fdopendir): Declare replacement.
40437         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
40438         * tests/test-fdopendir.c (main): Test something other than
40439         /dev/null, since on Hurd that behaves like a directory.
40440
40441         test-symlink: port to GNU/Hurd
40442         * tests/test-symlink.h (test_symlink): Relax expected errno.
40443
40444         doc: tweak more cygwin information
40445         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
40446         now compatible with glibc.
40447         * doc/posix-functions/getopt.texi (getopt): Likewise.
40448
40449         getopt-gnu: add another test
40450         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
40451         guarantee behavior relied on by m4.
40452         * tests/test-getopt.c (main): Use it.
40453         * modules/getopt-posix-tests (Depends-on): Add setenv.
40454         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
40455
40456         getopt: fix compilation on darwin
40457         * lib/getopt.in.h (includes): Leave breadcrumbs during system
40458         include.
40459         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
40460         Reported by Ludovic Courtès.
40461
40462 2009-10-06  Bruno Haible  <bruno@clisp.org>
40463
40464         * modules/size_max (Description): Discourage its use.
40465         Reported by Simon Josefsson.
40466
40467 2009-10-06  Jim Meyering  <meyering@redhat.com>
40468
40469         linkat: avoid compilation failure
40470         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
40471
40472 2009-10-05  Eric Blake  <ebb9@byu.net>
40473
40474         linkat: support Linux 2.6.17
40475         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
40476         linkat on Linux, but allow cache variable override.
40477         * lib/linkat.c (rpl_linkat): Define override.
40478         * modules/linkat (Depends-on): Add symlinkat.
40479         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
40480         * modules/unistd (Makefile.am): Substitute it.
40481         * lib/unistd.in.h (linkat): Declare replacement.
40482         Reported by Pádraig Brady.
40483
40484         quotearg: port test to systems with C.UTF-8 locale
40485         * tests/test-quotearg.c (struct result_strings): Add another
40486         member, differentiating between C.ASCII and C.UTF-8 handling.
40487         (compare_strings): Add parameter.
40488         (main): Adjust all callers.
40489
40490         getopt: avoid clash with FreeBSD _getopt_internal
40491         * lib/getopt.in.h (_getopt_internal): Override the name.
40492         * lib/getopt_int.h (includes): Pick up any overrides.
40493         Reported by Reuben Thomas.
40494
40495         hash: allow C89 compilation
40496         * lib/hash.c (check_tuning): Move declaration before statement.
40497         Reported by Reuben Thomas.
40498
40499 2009-10-05  Karl Berry  <karl@gnu.org>
40500
40501         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
40502
40503 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
40504             Bruno Haible  <bruno@clisp.org>
40505
40506         * lib/uname.c (uname): Use a table-driven algorithm to compute
40507         Windows NT versions.
40508
40509 2009-10-04  Bruno Haible  <bruno@clisp.org>
40510
40511         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
40512         program_invocation_short_name.
40513         * modules/progname (configure.ac): Test for presence of
40514         program_invocation_short_name.
40515         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
40516
40517 2009-10-04  Bruno Haible  <bruno@clisp.org>
40518
40519         * lib/progname.c (set_program_name): Fix comment.
40520         Reported by Jim Meyering.
40521
40522 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40523             Bruno Haible  <bruno@clisp.org>
40524
40525         * lib/uname.c: Include <string.h>.
40526         (uname): Do only one call to GetVersionEx in the common case.
40527
40528 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40529             Bruno Haible  <bruno@clisp.org>
40530
40531         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
40532         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
40533         (uname): Add support for Windows CE and various non-x86 CPU types.
40534
40535 2009-10-03  Bruno Haible  <bruno@clisp.org>
40536
40537         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
40538         invocation to tests/configure.ac.
40539         Reported by Ian Beckwith <ianb@erislabs.net>.
40540
40541 2009-10-02  Eric Blake  <ebb9@byu.net>
40542
40543         fchdir: avoid compiler warning
40544         * lib/fchdir.c (canonicalize_file_name)
40545         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
40546
40547         test-open: support mingw errno values
40548         * tests/test-open.h (test_open): Relax test.
40549         * tests/test-fopen.h (test_fopen): Likewise.
40550         * tests/test-openat-safer.c (main): Likewise.
40551
40552         open: fix opening directory on mingw
40553         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
40554
40555         test-open: on GNU/Hurd, /dev/null is a directory
40556         * tests/test-fopen.h (main): Rename...
40557         (test_fopen): ...to this.  Use a guaranteed non-directory when
40558         confirming open behavior on trailing slash.
40559         * tests/test-openat-safer.c (main): Likewise.
40560         * tests/test-open.h (main): Likewise....
40561         (test_open): ...to this.
40562         * tests/test-fopen.c (main): Adjust caller.
40563         * tests/test-fopen-safer.c (main): Likewise.
40564         * tests/test-open.c (main): Likewise.
40565         * tests/test-fcntl-safer.c (main): Likewise.
40566         Reported by Samuel Thibault.
40567
40568         rename, fchdir: don't ignore chdir failure
40569         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
40570         * lib/rename.c (rpl_rename) [W32]: Likewise.
40571         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
40572         an empty destination directory if source cannot be renamed,
40573         although there is still possibility for failure.
40574         * doc/posix-functions/rename.texi (rename): Document the race.
40575         Reported by Jim Meyering.
40576
40577         maint: cleanup whitespace in recent commits
40578         * lib/rename.c (rpl_rename): Remove tabs.
40579         * tests/test-link.h (test_link): Likewise.
40580         * lib/fchdir.c (get_name): Likewise.
40581         Reported by Jim Meyering.
40582
40583 2009-10-02  Ben Pfaff  <blp@gnu.org>
40584
40585         relocatable-prog-wrapper: Add missing dependency on
40586         double-slash-root.
40587         * modules/relocatable-prog-wrapper: Add dependency.
40588         Reported by Ian Beckwith <ianb@erislabs.net>.
40589
40590 2009-10-02  Eric Blake  <ebb9@byu.net>
40591
40592         renameat: fix Solaris bugs
40593         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
40594         needed fixing.
40595         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
40596         * modules/stdio (Makefile.am): Substitute it.
40597         * lib/stdio.in.h (renameat): Declare replacement.
40598         * lib/renameat.c (rpl_renameat): Implement fix.
40599
40600         renameat: new module
40601         * modules/renameat: New file.
40602         * lib/renameat.c (renameat): Likewise.
40603         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
40604         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40605         * modules/stdio (Makefile.am): Substitute them.
40606         * lib/stdio.in.h (renameat): Declare it.
40607         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40608         * doc/posix-functions/renameat.texi (renameat): Likewise.
40609         * modules/renameat-tests: New test.
40610         * tests/test-renameat.c: Likewise.
40611
40612         rename: fix mingw bugs
40613         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
40614         directory overwrite bugs.
40615
40616         rename: fix another cygwin 1.5 bug
40617         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
40618         checks.
40619         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
40620         unnecessary cygwin workarounds.  Also work around bug with moving
40621         full directory onto an empty one.
40622         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
40623
40624         rename-dest-slash: merge into rename module
40625         * modules/rename-dest-slash (Status): Mark obsolete.
40626         (Depends-on): Add rename.
40627         (Files): Let rename do it all.
40628         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
40629         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
40630         * m4/rename-dest-slash.m4: ...so this file can be deleted.
40631         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
40632         * lib/rename.c (rpl_rename): Update comments.
40633
40634         rename: fix cygwin 1.5.x bugs
40635         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
40636         * lib/rename.c (rpl_rename): Work around them.
40637         * modules/rename (Depends-on): Add same-inode.
40638
40639         rename: fix Solaris 10 bug
40640         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40641         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
40642         was the only bug.
40643
40644         rename: fix Solaris 9 bug
40645         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
40646         on non-directory.  Avoid calling exit.
40647         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
40648         strdup.
40649         * modules/rename-tests (Depends-on): Drop lstat.
40650         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40651         (gl_PREREQ_RENAME): Delete unused macro.
40652
40653         rename-dest-slash: fix NetBSD bug
40654         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
40655         links.
40656         * modules/rename-dest-slash (Depends-on): Add same-inode.
40657
40658         rename-tests: new test, exposes several platform bugs
40659         * modules/rename-tests: New file.
40660         * tests/test-rename.h: Likewise.
40661         * tests/test-rename.c: Likewise.
40662         * doc/posix-functions/rename.texi (rename): Improve documentation,
40663         including bugs that will eventually be fixed in gnulib.
40664
40665 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
40666
40667         * lib/uname.c: Include <stdlib.h>
40668         (uname): Assume version info is available.
40669
40670 2009-10-02  Jim Meyering  <meyering@redhat.com>
40671
40672         gnu-web-doc-update: correct --help output
40673         * build-aux/gnu-web-doc-update: Make --help output relevant.
40674
40675         gnu-web-doc-update: add standard options
40676         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
40677
40678         gnu-web-doc-update: New module.
40679         Use this script to automatically update the on-line web documentation
40680         for your GNU project at http://www.gnu.org/software/$pkg/manual/
40681         * modules/gnu-web-doc-update: New file, from coreutils.
40682         * build-aux/gnu-web-doc-update: New script.
40683
40684 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
40685
40686         link: LoadLibrary is not needed.
40687         * lib/link.c: Use GetModuleHandle.
40688
40689 2009-10-01  Eric Blake  <ebb9@byu.net>
40690
40691         getopt: bump serial number
40692         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
40693         change.
40694
40695         tests: tighten link, rmdir, and remove tests
40696         * tests/test-link.h (includes): No need to use <config.h> here.
40697         Clean up if directory hard link was created, otherwise test for
40698         trailing '.'.
40699         * tests/test-linkat.c (main): Simplify.
40700         * tests/test-remove.c (main): Enhance test for trailing '.'.
40701         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40702
40703 2009-10-01  Jim Meyering  <meyering@redhat.com>
40704
40705         maint.mk: requiring "make major" was annoying, for a "minor" release.
40706         What is intended is "stable", to contrast with alpha and beta,
40707         so require "make stable", not "make major".
40708         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
40709         (get_tool_versions): Likewise.
40710         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
40711
40712 2009-09-30  Ben Pfaff  <blp@gnu.org>
40713
40714         Fix broken build of replacement for Windows tmpfile().
40715         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
40716         flags argument added along with the 'mkostemp' module.
40717
40718 2009-09-28  Bruno Haible  <bruno@clisp.org>
40719
40720         Avoid identifier clash with POSIX function 'remove' defined as a macro.
40721         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
40722         to 'remove_elt'.
40723         (gl_list_remove): Update.
40724         * lib/gl_list.c (gl_list_remove): Update.
40725         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
40726         to 'remove_elt'.
40727         (gl_oset_remove): Update.
40728         * lib/gl_list.c (gl_oset_remove): Update.
40729         Reported by Eric Blake.
40730
40731 2009-09-28  Eric Blake  <ebb9@byu.net>
40732
40733         doc: mention yet more cygwin 1.7 status
40734         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
40735         cygwin.
40736         * doc/glibc-functions/execvpe.texi (execvpe): New file.
40737         * doc/gnulib.texi (Glibc unistd.h): Mention it.
40738
40739         argp: fix test failure
40740         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
40741         that are not upper-case.  Pass correct range to tolower.
40742
40743 2009-09-27  Jim Meyering  <meyering@redhat.com>
40744
40745         test-yesno: work around sparc-dash here-document infelicity
40746         Without this change, the literal \177 byte in a here document
40747         would make dash 0.5.5.1-3 access uninitialized memory.
40748         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
40749         Instead, use a marker, "@", and filter through tr to create the desired
40750         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
40751
40752 2009-09-27  Bruno Haible  <bruno@clisp.org>
40753
40754         Disable untested support for new flavours of ACLs on AIX.
40755         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
40756         progress.
40757         * lib/set-mode-acl.c (qset_acl): Likewise.
40758
40759 2008-12-07  Bruno Haible  <bruno@clisp.org>
40760
40761         Add support for new flavours of ACLs on AIX. (Untested.)
40762         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
40763         (file_has_acl): Add support for newer AIX.
40764         * lib/set-mode-acl.c (qset_acl): Likewise.
40765         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
40766         Rainer Tammer <tammer@tammer.net>.
40767
40768 2009-09-26  Eric Blake  <ebb9@byu.net>
40769
40770         argp: fix compilation of getopt
40771         * lib/getopt.in.h (includes): Use different guard than glibc.
40772         Reported by Sergey Poznyakoff.
40773
40774         doc: mention more cygwin 1.7 status
40775         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
40776         bug.
40777         * doc/posix-functions/execl.texi (execl): Likewise.
40778         * doc/posix-functions/execle.texi (execle): Likewise.
40779         * doc/posix-functions/execlp.texi (execlp): Likewise.
40780         * doc/posix-functions/execv.texi (execv): Likewise.
40781         * doc/posix-functions/execve.texi (execve): Likewise.
40782         * doc/posix-functions/execvp.texi (execvp): Likewise.
40783         * doc/glibc-functions/canonicalize_file_name.texi
40784         (canonicalize_file_name): Cygwin 1.7 now provides this.
40785         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
40786         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
40787         on AT_SYMLINK_NOFOLLOW.
40788
40789 2009-09-24  Eric Blake  <ebb9@byu.net>
40790
40791         test-linkat: make test more robust
40792         * tests/test-linkat.c (main): Avoid collision with EEXIST.
40793
40794         getopt: fix inclusion guards for cygwin
40795         * modules/getopt-posix (Depends-on): Add include-next.
40796         (Makefile.am): Substitute more items in replacement header.
40797         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
40798         <getopt.h>.
40799         * lib/getopt.in.h (includes): Use split inclusion guard, and
40800         prefer <getopt.h> over include <unistd.h> when one is present.
40801         (option): Also override name of 'struct option'.
40802
40803         same-inode: revert prior change; it is not yet ready
40804         * NEWS: Undo mention of this change.
40805         * lib/same-inode.h (same-inode.h): Undo tri-state change.
40806         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40807         * lib/cycle-check.c (cycle_check): Likewise.
40808         * lib/same.c (same_name): Likewise.
40809         * lib/at-func2.c (at_func2): Likewise.
40810
40811 2009-09-23  Eric Blake  <ebb9@byu.net>
40812
40813         linkat: new module
40814         * modules/linkat: New file.
40815         * lib/at-func2.c (at_func2): Likewise.
40816         * lib/linkat.c (linkat): Likewise.
40817         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
40818         * lib/openat-priv.h (at_func2): Add declaration.
40819         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40820         * modules/unistd (Makefile.am): Substitute them.
40821         * lib/unistd.in.h (linkat): Declare it.
40822         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40823         * doc/posix-functions/linkat.texi (linkat): Likewise.
40824         * doc/posix-functions/link.texi (link): Tweak wording.
40825         * tests/test-link.c (main): Move guts...
40826         * tests/test-link.h (test_link): ...into new file.
40827         * modules/linkat-tests: New test.
40828         * tests/test-linkat.c: Likewise.
40829         * modules/link-tests (Files): Ship new file.
40830         (Depends-on): Add stdbool.
40831
40832         dirname: add library-safe mdir_name
40833         * lib/dirname.h (mdir_name): New prototype.
40834         * lib/dirname.c (dir_name): Move guts...
40835         (mdir_name): ...to new function that avoids xalloc_die.
40836
40837         fchdir: another mingw fix
40838         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
40839         * lib/fchdir.c (get_name): New helper method; skips canonicalize
40840         on mingw (where it has not yet been ported), and make it optional
40841         elsewhere.
40842         (_gl_register_fd): Use it.
40843
40844         same-inode: make SAME_INODE tri-state, to port to mingw
40845         * NEWS: Mention this change.
40846         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
40847         st_ino always being 0.
40848         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40849         * lib/cycle-check.c (cycle_check): Likewise.
40850         * lib/same.c (same_name): Likewise.
40851
40852         lstat: avoid mingw compilation error
40853         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
40854         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
40855         lstat ourselves.
40856         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
40857         was adequate.
40858         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
40859         the checks for lstat.
40860         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
40861
40862         link: fix test failure on Solaris 9
40863         * lib/link.c (rpl_link): Don't assume link will catch bogus
40864         trailing slash on source.
40865
40866         test-symlinkat: enhance test
40867         * tests/test-readlink.c (main): Move guts...
40868         * tests/test-readlink.h (test_readlink): ...into new file.
40869         * tests/test-symlink.c (main): Move guts...
40870         * tests/test-symlink.h (test_symlink): ...into new file.
40871         * tests/test-symlinkat.c (main): Use new files for further
40872         coverage.
40873         (do_symlink, do_readlink): New helper functions.
40874         * modules/symlink-tests (Files): Ship new file.
40875         (Depends-on): Add stdbool.
40876         * modules/readlink-tests (Files): Ship new file.
40877         (Depends-on): Add stdbool.
40878         * modules/symlinkat-tests (Files): Use new files.
40879
40880 2009-09-23  Eric Blake  <ebb9@byu.net>
40881
40882         readlink: document portability issue with symlink length
40883         * doc/posix-functions/lstat.texi (lstat): Mention that some file
40884         systems have bogus st_size on symlinks, and mention the
40885         areadlink-with-size module.
40886         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40887         * doc/posix-functions/readlink.texi (readlink): Mention the
40888         areadlink module, and ERANGE failure.
40889         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40890         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
40891
40892         readlink: fix Solaris 9 bug with trailing slash
40893         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
40894         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
40895         * doc/posix-functions/readlink.texi (readlink): Document this.
40896         * modules/readlink-tests: New test.
40897         * tests/test-readlink.c: Likewise.
40898
40899         readlink: fix cygwin 1.5.x bug with return type
40900         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
40901         * lib/unistd.in.h (readlink): Use ssize_t.
40902         * lib/readlink.c (readlink): Likewise.
40903         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40904         * modules/unistd (Makefile.am): Substitute it.
40905         * lib/unistd.in.h (readlink): Declare replacement.
40906         * doc/posix-functions/readlink.texi (readlink): Document this.
40907
40908         symlink: use throughout gnulib
40909         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
40910         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
40911         symlink is not used.
40912         * modules/symlinkat (Depends-on): Add symlink.
40913         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40914         * modules/canonicalize-tests (Depends-on): Likewise.
40915         * modules/lstat-tests (Depends-on): Likewise.
40916         * modules/openat-tests (Depends-on): Likewise.
40917         * modules/remove-tests (Depends-on): Likewise.
40918         * modules/rmdir-tests (Depends-on): Likewise.
40919         * modules/unlink-tests (Depends-on): Likewise.
40920         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
40921         * tests/test-canonicalize.c (symlink): Likewise.
40922         * tests/test-fstatat.c (symlink): Likewise.
40923         * tests/test-lstat.c (symlink): Likewise.
40924         * tests/test-remove.c (symlink): Likewise.
40925         * tests/test-rmdir.c (symlink): Likewise.
40926         * tests/test-unlink.c (symlink): Likewise.
40927         * tests/test-unlinkat.c (symlink): Likewise.
40928
40929         symlink: new module, for Solaris 9 bug
40930         * modules/symlink: New file.
40931         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
40932         * lib/symlink.c: Likewise.
40933         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
40934         * modules/unistd (Makefile.am): Substitute them.
40935         * lib/unistd.in.h (symlink): Declare replacement.
40936         * MODULES.html.sh (File system functions): Mention it.
40937         * doc/posix-functions/symlink.texi (symlink): Likewise.
40938         * modules/symlink-tests: New test.
40939         * tests/test-symlink.c: Likewise.
40940
40941 2009-09-23  Bruno Haible  <bruno@clisp.org>
40942
40943         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
40944         when needed.
40945         Test case: gnulib-tool --import --with-tests atexit inttypes.
40946         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
40947
40948 2009-09-23  Bruno Haible  <bruno@clisp.org>
40949
40950         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
40951         subcommand, not in a subshell.
40952
40953 2009-09-22  Eric Blake  <ebb9@byu.net>
40954
40955         unistd: sort replacement declarations
40956         * lib/unistd.in.h: Sort declarations.
40957
40958         open, openat: minor optimization
40959         * lib/open.c (open): If open succeeded, len is non-zero.
40960         * lib/openat.c (rpl_openat): Likewise.
40961
40962         link-follow: ensure correct result
40963         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
40964         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
40965         distinguish between possible failures.
40966
40967 2009-09-21  Eric Blake  <ebb9@byu.net>
40968
40969         fts: avoid compiler warning
40970         * lib/fts.c (dirent_inode_sort_may_be_useful)
40971         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
40972
40973 2009-09-19  Bruno Haible  <bruno@clisp.org>
40974
40975         * lib/progreloc.c (canonicalize_file_name): New declaration.
40976
40977 2009-09-19  Eric Blake  <ebb9@byu.net>
40978
40979         link: fix quoting
40980         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
40981
40982         openat: fix openat bugs on Solaris 9
40983         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
40984         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
40985         * modules/openat (Depends-on): Add open.
40986         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
40987         * modules/fcntl-h (Makefile.am): Substitute it.
40988         * lib/fcntl.in.h (openat): Declare replacement.
40989         * doc/posix-functions/openat.texi (openat): Document this.
40990
40991         openat: move fstatat and unlinkat into correct files
40992         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
40993         compiled.
40994         * lib/openat.c (fstatat, unlinkat): Move...
40995         * lib/fstatat.c (fstatat): ...into correct files.
40996         * lib/unlinkat.c (unlinkat): Likewise.
40997
40998         openat: fix unlinkat bugs on Solaris 9
40999         * lib/unlinkat.c (unlinkat): New file.
41000         * modules/openat (Depends-on): Add unlink.
41001         (Files): Distribute it.
41002         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
41003         trailing slash behavior is broken.
41004         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41005         * modules/unistd (Makefile.am): Substitute it.
41006         * lib/unistd.in.h (unlinkat): Declare replacement.
41007         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
41008
41009         openat: fix fstatat bugs on Solaris 9
41010         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
41011         stat.
41012         * doc/posix-functions/fstatat.texi (fstatat): Document this.
41013
41014         test-unlinkat: enhance test, to expose Solaris 9 bug
41015         * tests/test-unlink.c (main): Factor guts...
41016         * tests/test-unlink.h (test_rmdir_func): ...into new file.
41017         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
41018         * tests/test-rmdir.c (main): Adjust caller.
41019         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
41020         (unlinker): New helper function.
41021         (rmdirat): Enhance check.
41022         * modules/rmdir-tests (Depends-on): Add stdbool.
41023         * modules/unlink-tests (Depends-on): Likewise.
41024         (Files): Add test-unlink.h.
41025         * modules/openat-tests (Files): Likewise.
41026         (Depends-on): Add unlinkdir.
41027
41028         test-fstatat: new test, to expose Solaris 9 bugs
41029         * tests/test-stat.c (main): Factor guts...
41030         * tests/test-stat.h (test_stat_func): ...into new file.
41031         * tests/test-lstat.c (main): Factor guts...
41032         * tests/test-lstat.h (test_lstat_func): ...into new file.
41033         * tests/test-fstatat.c: New file.
41034         * modules/stat-tests (Files): Add test-stat.h.
41035         * modules/lstat-tests (Files): Add test-lstat.h.
41036         (Depends-on): Add stdbool.
41037         * modules/openat-tests (Depends-on): Add pathmax.
41038         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
41039         (Makefile.am): Run new test.
41040
41041         remove: new module, for mingw and Solaris 9 bugs
41042         * modules/remove: New file.
41043         * lib/remove.c: Likewise.
41044         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
41045         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
41046         * modules/stdio (Makefile.am): Use them.
41047         * lib/stdio.in.h (remove): Declare replacement.
41048         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41049         * doc/posix-functions/remove.texi (remove): Likewise.
41050         * modules/remove-tests: New test.
41051         * tests/test-remove.c: Likewise.
41052
41053         unlink: new module, for Solaris 9 bug
41054         * modules/unlink: New file.
41055         * lib/unlink.c: Likewise.
41056         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
41057         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41058         * modules/unistd (Makefile.am): Use them.
41059         * lib/unistd.in.h (stat): Declare replacement.
41060         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41061         * doc/posix-functions/unlink.texi (unlink): Likewise.
41062         * modules/unlink-tests: New test.
41063         * tests/test-unlink.c: Likewise.
41064
41065         lstat: fix Solaris 9 bug
41066         * lib/lstat.c (lstat): Also check for trailing slash on
41067         non-symlink, non-directories.  Use stat module to simplify logic.
41068         * doc/posix-functions/lstat.texi (lstat): Document it.
41069         * modules/lstat-tests (Depends-on): Add errno, same-inode.
41070         (configure.ac): Check for symlink.
41071         * tests/test-lstat.c (main): Add more tests.
41072
41073         stat: add as dependency to other modules
41074         * modules/chown (Depends-on): Add stat.
41075         * modules/euidaccess (Depends-on): Likewise.
41076         * modules/fchdir (Depends-on): Likewise.
41077         * modules/isdir (Depends-on): Likewise.
41078         * modules/link (Depends-on): Likewise.
41079         * modules/lstat (Depends-on): Likewise.
41080         * modules/mkdir-p (Depends-on): Likewise.
41081         * modules/modechange (Depends-on): Likewise.
41082         * modules/open (Depends-on): Likewise.
41083         * modules/readlink (Depends-on): Likewise.
41084         * modules/same (Depends-on): Likewise.
41085
41086         stat: fix Solaris 9 bug
41087         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
41088         slash.
41089         * lib/stat.c (rpl_stat): Work around it.
41090         * doc/posix-functions/stat.texi (stat): Update documentation.
41091
41092         stat: new module, for mingw bug
41093         * modules/stat: New file.
41094         * lib/stat.c: Likewise.
41095         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
41096         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41097         * modules/sys_stat (Makefile.am): Use them.
41098         * lib/sys_stat.in.h (stat): Declare replacement.
41099         * lib/openat.c (fstatat): Deal with lstat and stat being function
41100         macros.
41101         * modules/openat (Depends-on): Add inline.
41102         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41103         * doc/posix-functions/stat.texi (stat): Likewise.
41104         * modules/stat-tests: New test.
41105         * tests/test-stat.c: Likewise.
41106
41107 2009-09-19  Jim Meyering  <meyering@redhat.com>
41108
41109         syntax-check: detect unnecessary inclusion of canonicalize.h
41110         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
41111
41112 2009-09-19  Eric Blake  <ebb9@byu.net>
41113
41114         canonicalize-lgpl: adjust clients to use correct header
41115         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
41116         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
41117         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
41118         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
41119         * lib/progreloc.c (includes): Likewise.
41120
41121 2009-09-19  Jim Meyering  <meyering@redhat.com>
41122
41123         test-posixtm.c: correct a comment
41124         * tests/test-posixtm.c: Correct first-line comment.
41125         Spotted by Eric Blake.
41126
41127 2009-09-16  Jim Meyering  <meyering@redhat.com>
41128
41129         posixtm-tests: make T const-correct; add a test case
41130         * tests/test-posixtm.c (T): Declare const.
41131         Add a test for -(2^31+1).
41132         Remove useless can-succeed-only-in-2002 test.
41133
41134         posixtm-tests: adjust the sole failing test
41135         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
41136         expected output matches what mktime now produces.  Cross-checked via
41137         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
41138
41139         posixtm: move #ifdef'd tests into a new module
41140         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
41141         * tests/test-posixtm.c: ... this new file.
41142         * modules/posixtm-tests: New module.
41143
41144 2009-09-19  Eric Blake  <ebb9@byu.net>
41145
41146         openat: simplify use of at-func.c
41147         * lib/at-func.c (includes): Include prerequisites here, to
41148         simplify requirements on client files.
41149         * lib/openat-priv.h: Add double-inclusion guard.
41150         * lib/faccessat.c (includes): Simplify.
41151         * lib/fchmodat.c (includes): Likewise.
41152         * lib/fchownat.c (includes): Likewise.
41153         * lib/mkdirat.c (includes): Likewise.
41154         * lib/mkfifoat.c (includes): Likewise.
41155         * lib/symlinkat.c (includes): Likewise.
41156
41157         openat: allow return of fd 0
41158         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
41159         * modules/save-cwd (Depends-on): Replace fcntl-safer with
41160         unistd-safer.
41161         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
41162         <fcntl.h>; this module does not leak fds.
41163         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
41164         must be allowed to return 0, leaving openat_safer to add the
41165         safety.
41166         (openat_permissive): Avoid writing to just-opened fd 2 if
41167         restoring the current directory fails.
41168         * lib/openat-die.c (openat_restore_fail): Add comment.
41169         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
41170         (save_cwd): Guarantee safe fd, but without use of open_safer.
41171         * tests/test-openat.c: New test.
41172         * modules/openat-tests (Files, Makefile.am): Distribute and build
41173         new file.
41174
41175         relocatable-prog-wrapper: fix build
41176         * modules/relocatable-prog-wrapper (Files): Update name of
41177         canonicalize m4 file, broken on 2009-09-17.
41178         Reported by emad hajjar <aleppos@hotmail.com>.
41179
41180 2009-09-19  Bruno Haible  <bruno@clisp.org>
41181
41182         * lib/safe-alloc.h: Use the standard header with GPL copyright.
41183         * lib/safe-alloc.c: Likewise.
41184         Reported by Ian Beckwith <ianb@erislabs.net>.
41185
41186 2009-09-18  Bruno Haible  <bruno@clisp.org>
41187
41188         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
41189         Reported by <erobles@sensacd.com.mx>.
41190
41191 2009-09-17  Eric Blake  <ebb9@byu.net>
41192
41193         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
41194         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
41195         slashes when checking if last component is missing.
41196         * tests/test-canonicalize.c (main): Test this.
41197
41198         canonicalize, canonicalize-lgpl: honor // if distinct from /
41199         * modules/canonicalize (Files): Add double-slash-root.m4.
41200         * modules/canonicalize-lgpl (Files): Likewise.
41201         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
41202         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
41203         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
41204         fallback definition.
41205         (canonicalize_filename_mode): Use it to protect //.
41206         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
41207         (__realpath): Likewise.
41208         * tests/test-canonicalize.c (main): Test this.
41209         * tests/test-canonicalize-lgpl.c (main): Likewise.
41210         * modules/canonicalize-tests (Depends-on): Add same-inode.
41211         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
41212
41213         canonicalize-lgpl: fix glibc bug with trailing slash
41214         * m4/canonicalize-lgpl.m4: Move contents...
41215         * m4/canonicalize.m4: ...here.
41216         (gl_CANONICALIZE_LGPL): Factor realpath check...
41217         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
41218         glibc 2.3.5 bug, fixed 2005-04-27.
41219         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
41220         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
41221         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
41222         * modules/canonicalize-lgpl (Files): Manage file rename.
41223         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
41224         * modules/stdlib (Makefile.am): Substitute witness.
41225         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
41226         is needed.
41227         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
41228         replacement is required.
41229         * lib/canonicalize.c (canonicalize_file_name): Likewise.
41230         * doc/glibc-functions/canonicalize_file_name.texi
41231         (canonicalize_file_name): Document this.
41232         * doc/posix-functions/realpath.texi (realpath): Likewise.
41233
41234         canonicalize-lgpl: reject non-directory with trailing slash
41235         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
41236         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
41237         catches failures in glibc 2.3.5.
41238         * tests/test-canonicalize.c (main): Likewise.
41239
41240         canonicalize-lgpl: use native realpath if it works
41241         * lib/canonicalize-lgpl.c (realpath): Guard with
41242         FUNC_REALPATH_WORKS.
41243         * lib/stdlib.in.h (realpath): Make declaration optional based on
41244         HAVE_REALPATH.
41245         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
41246         native realpath works.
41247         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
41248         * modules/stdlib (Makefile.am): Substitute witness.
41249
41250         canonicalize, canonicalize-lgpl: use <stdlib.h>
41251         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
41252         (Include): Mention <stdlib.h>.
41253         (configure.ac): Mention functions we provide.
41254         * modules/canonicalize (configure.ac): Likewise.
41255         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
41256         realpath if canonicalize_file_name is missing.
41257         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
41258         * modules/stdlib (Makefile.am): Substitute witnesses.
41259         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
41260         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
41261         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
41262         * NEWS: Document this.
41263         * doc/glibc-functions/canonicalize_file_name.texi
41264         (canonicalize_file_name): Likewise.
41265         * doc/posix-functions/realpath.texi (realpath): Likewise.
41266         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
41267
41268         test-canonicalize: consolidate into single C program
41269         * tests/test-canonicalize.sh: Delete; move setup into...
41270         * tests/test-canonicalize.c (main): ...the program, making it
41271         easier to run in debugger.  Add some tests.
41272         * modules/canonicalize-tests (Files): Remove unused file.
41273         (Depends-on): Add progname.
41274         (configure.ac, Makefile.am): Simplify.
41275
41276         test-canonicalize-lgpl: consolidate into single C program
41277         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
41278         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
41279         easier to run in debugger.  Add some tests.
41280         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
41281         (configure.ac, Makefile.am): Simplify.
41282
41283         canonicalize: avoid resolvepath
41284         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
41285         unnecessary checks.
41286         * lib/canonicalize.c (includes): Simplify.
41287         (canonicalize_file_name): Drop resolvepath implementation.
41288         * modules/canonicalize (Depends-on): Drop filenamecat.
41289
41290         canonicalize: don't lose errno
41291         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
41292         over calls to free.
41293
41294         canonicalize: simplify errno handling
41295         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
41296         assignment.
41297
41298         canonicalize, canonicalize-lgpl: update module dependencies
41299         * modules/canonicalize (Depends-on): Add extensions, lstat,
41300         pathmax, stdlib.
41301         (Files): Drop pathmax.h.
41302         (configure.ac): Adjust macro name.
41303         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
41304         lstat, stdlib, sys_stat.
41305         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
41306         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
41307         extensions.
41308         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
41309         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
41310         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
41311         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
41312         declaration, if available.
41313         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
41314         we can rely on the readlink module.
41315         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
41316         (includes): Use <unistd.h> unconditionally.
41317
41318 2009-09-17  Eric Blake  <ebb9@byu.net>
41319
41320         maint: make Include sections of modules consistent
41321         * modules/alloca: Use only header name; no need to list #include.
41322         * modules/alloca-opt: Likewise.
41323         * modules/arpa_inet: Likewise.
41324         * modules/canon-host: Likewise.
41325         * modules/configmake: Likewise.
41326         * modules/dirent: Likewise.
41327         * modules/eealloc: Likewise.
41328         * modules/environ: Likewise.
41329         * modules/fchdir: Likewise.
41330         * modules/fcntl: Likewise.
41331         * modules/fcntl-h: Likewise.
41332         * modules/gethrxtime: Likewise.
41333         * modules/gettime: Likewise.
41334         * modules/ignore-value: Likewise.
41335         * modules/inet_ntop: Likewise.
41336         * modules/inet_pton: Likewise.
41337         * modules/inttypes: Likewise.
41338         * modules/isnand-nolibm: Likewise.
41339         * modules/isnanf-nolibm: Likewise.
41340         * modules/mbchar: Likewise.
41341         * modules/mbfile: Likewise.
41342         * modules/mbiter: Likewise.
41343         * modules/mbuiter: Likewise.
41344         * modules/netdb: Likewise.
41345         * modules/netinet_in: Likewise.
41346         * modules/nproc: Likewise.
41347         * modules/pagealign_alloc: Likewise.
41348         * modules/poll: Likewise.
41349         * modules/printf-frexp: Likewise.
41350         * modules/pthread: Likewise.
41351         * modules/putenv: Likewise.
41352         * modules/random_r: Likewise.
41353         * modules/relocatable-prog: Likewise.
41354         * modules/search: Likewise.
41355         * modules/select: Likewise.
41356         * modules/selinux-h: Likewise.
41357         * modules/settime: Likewise.
41358         * modules/signal: Likewise.
41359         * modules/size_max: Likewise.
41360         * modules/socklen: Likewise.
41361         * modules/ssize_t: Likewise.
41362         * modules/stdarg: Likewise.
41363         * modules/stdbool: Likewise.
41364         * modules/stddef: Likewise.
41365         * modules/stdint: Likewise.
41366         * modules/stdio: Likewise.
41367         * modules/stdlib: Likewise.
41368         * modules/string: Likewise.
41369         * modules/strings: Likewise.
41370         * modules/sys_file: Likewise.
41371         * modules/sys_ioctl: Likewise.
41372         * modules/sys_select: Likewise.
41373         * modules/sys_socket: Likewise.
41374         * modules/sys_stat: Likewise.
41375         * modules/sys_time: Likewise.
41376         * modules/sys_times: Likewise.
41377         * modules/sys_utsname: Likewise.
41378         * modules/sys_wait: Likewise.
41379         * modules/sysexits: Likewise.
41380         * modules/time: Likewise.
41381         * modules/times: Likewise.
41382         * modules/tmpfile: Likewise.
41383         * modules/trim: Likewise.
41384         * modules/unistd: Likewise.
41385         * modules/wchar: Likewise.
41386         * modules/wctype: Likewise.
41387
41388 2009-09-17  Bruno Haible  <bruno@clisp.org>
41389
41390         Make getdate.y compile on QNX and NetBSD 5 / i386.
41391         * m4/getdate.m4 (gl_GETDATE): Conditionally define
41392         TIME_T_FITS_IN_LONG_INT.
41393         * lib/getdate.y (long_time_t): New type.
41394         (relative_time): Change type of 'seconds' field to long_time_t.
41395         (get_date): Update types of local variables. Check against overflow
41396         during conversion from long_time_t to time_t.
41397         Reported by Matt Kraai <kraai@ftbfs.org>
41398         and Hasso Tepper <hasso@netbsd.org>.
41399
41400 2009-09-17  Bruno Haible  <bruno@clisp.org>
41401
41402         * modules/COPYING: Update copyright years.
41403         * modules/README: Likeiwse.
41404         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
41405         Reported by Ian Beckwith <ianb@erislabs.net>.
41406
41407 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41408
41409         * users.txt: Update references for gnuit package.
41410
41411 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41412
41413         * m4/getdelim.m4: Fix typo in copyright line.
41414
41415 2009-09-17  Bruno Haible  <bruno@clisp.org>
41416
41417         * lib/atoll.c: Use the standard header with GPL copyright.
41418         * lib/argz.in.h: Likewise.
41419         * lib/glob.c: Likewise.
41420         * lib/glob-libc.h: Likewise.
41421         * lib/random_r.c: Likewise.
41422         * lib/siglist.h: Likewise.
41423         * lib/strsignal.c: Likewise.
41424         Reported by Ian Beckwith <ianb@erislabs.net>.
41425
41426 2009-09-17  Eric Blake  <ebb9@byu.net>
41427
41428         rmdir: ensure correct dependency order
41429         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
41430
41431 2009-09-17  Bruno Haible  <bruno@clisp.org>
41432
41433         Disable assertion that fails on NetBSD 5 / i386.
41434         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
41435         Reported by Sam Steingold <sds@gnu.org>
41436         and Hasso Tepper <hasso@netbsd.org>.
41437
41438 2009-09-16  Eric Blake  <ebb9@byu.net>
41439
41440         unlinkdir: port to mingw
41441         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
41442         on which no one can unlink a directory.
41443
41444         stdlib: sort witness names
41445         * modules/stdlib (Makefile.am): Sort replacements.
41446         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
41447         * lib/stdlib.in.h: Likewise.
41448
41449         parse-duration-tests: avoid link failure
41450         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
41451         LIBINTL.
41452         Reported by Tom G. Christensen.
41453
41454         openat-tests: ensure unlinkat behaves like rmdir
41455         * tests/test-rmdir.c (main): Factor guts...
41456         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
41457         * modules/rmdir-tests (Files): Ship new file.
41458         * modules/openat-tests: New test.
41459         * tests/test-unlinkat.c: Likewise.
41460
41461         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
41462         * modules/rmdir-errno (Status, Notice): Now obsolete.
41463
41464         rmdir: work around cygwin 1.5.x and mingw bugs
41465         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
41466         * lib/rmdir.c (rmdir): Work around it.
41467         * modules/rmdir (Status, Notice): No longer obsolete.
41468         (Files): Add dos.m4.
41469         (Depends-on): Add unistd.
41470         (configure.ac): Set witnesses.
41471         (License): Relax to LGPLv2+.
41472         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
41473         * modules/unistd (Makefile.am): Substitute witnesses.
41474         * lib/unistd.in.h (rmdir): Declare replacement.
41475         * doc/posix-functions/rmdir.texi (rmdir): Document this.
41476         * modules/rmdir-tests: New tests.
41477         * tests/test-rmdir.c: Likewise.
41478
41479 2009-09-15  Eric Blake  <ebb9@byu.net>
41480
41481         fchdir: improve use of replacement functions
41482         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
41483         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
41484         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
41485         REPLACE_CLOSEDIR.
41486         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
41487         * modules/sys_stat (Makefile.am): Substitute correct witness.
41488         * modules/dirent (Makefile.am): Likewise.
41489         * modules/unistd (Makefile.am): Likewise.
41490         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
41491         * lib/unistd.in.h (dup): Likewise.
41492         * lib/sys_stat.in.h (fstat): Likewise.
41493
41494         maint: ignore gnulib-tool temp files
41495         * .gitignore: Ignore files created during gnulib-tool --test.
41496
41497 2009-09-13  Jim Meyering  <meyering@redhat.com>
41498
41499         posixtm: don't reject a time that specify "60" as the number of seconds
41500         * lib/posixtm.c (posixtime): The code to reject invalid dates
41501         would also reject a time specified with the .60 suffix.
41502         But POSIX allows that, in order to accommodate leap seconds.
41503         So don't reject it.
41504         (main): Adjust tests accordingly.
41505         * modules/posixtm (Depends-on): Add stpcpy.
41506
41507 2009-09-11  Jim Meyering  <meyering@redhat.com>
41508
41509         announce-gen: include [$release_type] in emitted Subject:
41510         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
41511         e.g., [stable] in the emitted Subject: line.
41512
41513 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41514
41515         Remove obsolete macros from several modules.
41516         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
41517         obsolete Autoconf macros with their modern counterparts.
41518         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
41519         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
41520         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
41521         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
41522         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
41523         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41524         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41525         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41526         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
41527         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
41528         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
41529         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
41530         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
41531         * m4/sockets.m4 (gl_SOCKETS): Likewise.
41532         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
41533         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
41534         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
41535         * m4/time_r.m4 (gl_TIME_R): Likewise.
41536         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
41537         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
41538         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
41539
41540         Fix copyright header in build-aux scripts.
41541         * build-aux/git-version-gen: Fix copyright header to match GPLv3
41542         recommendation.
41543         * build-aux/ncftpput-ftp: Likewise.
41544         * build-aux/update-copyright: Likewise.
41545
41546 2009-09-09  Eric Blake  <ebb9@byu.net>
41547
41548         test-link: allow Linux choice of errno
41549         * tests/test-link.c (main): Relax test for alternate error.
41550
41551         strndup: fix improper m4 caching
41552         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
41553         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
41554         (gl_PREREQ_STRNDUP): Delete.
41555         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
41556         * modules/string (Makefile.am): Substitute it.
41557         * lib/string.in.h (strndup): Modernize prototype.
41558
41559         getcwd: port to mingw
41560         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
41561         different from the POSIX assumptions made throughout the getcwd
41562         module; fortunately, the mingw getcwd does not need replacement.
41563         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
41564         * modules/getcwd-tests: New test.
41565         * tests/test-getcwd.c: Likewise.
41566
41567         link: fix platform bugs
41568         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
41569         * lib/link.c (link): Work around them.  Fix related mingw bug.
41570         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
41571         * modules/unistd (Makefile.am): Substitute it.
41572         * lib/unistd.in.h (link): Declare replacement.
41573         * doc/posix-functions/link.texi (link): Document this.
41574         * modules/link (Depends-on): Add strdup-posix, sys_stat.
41575
41576         test-link: consolidate into single C program, test more cases
41577         * tests/test-link.sh: Delete.
41578         * tests/test-link.c: Test more error conditions.  Exposes bugs on
41579         at least Cygwin and Solaris.
41580         * modules/link-tests (Files): Remove unused file.
41581         (Depends-on): Add errno, sys_stat.
41582         (Makefile.am): Simplify.
41583
41584 2009-09-08  Bruno Haible  <bruno@clisp.org>
41585
41586         Work around towlower, towupper bug on mingw.
41587         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
41588         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
41589         * doc/posix-functions/towlower.texi: Mention the mingw bug.
41590         * doc/posix-functions/towupper.texi: Likewise.
41591         Reported by Eric Blake.
41592
41593 2009-09-08  Jim Meyering  <meyering@redhat.com>
41594
41595         build: don't try to run autoheader if we don't use it
41596         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
41597         is not used in configure.ac.
41598
41599 2009-09-08  Eric Blake  <ebb9@byu.net>
41600
41601         euidaccess: fix compilation error
41602         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
41603
41604         rawmemchr: relax license
41605         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
41606         okay.
41607         Reported by Jim Meyering.
41608
41609         mkfifoat: new module
41610         * modules/mkfifoat: New file.
41611         * lib/mkfifoat.c: Likewise.
41612         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
41613         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41614         * modules/sys_stat (Makefile.am): Use them.
41615         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
41616         * MODULES.html.sh (File system functions): Mention module.
41617         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
41618         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
41619         * modules/mkfifoat-tests: New test.
41620         * tests/test-mkfifoat.c: Likewise.
41621
41622         strchrnul: relax license
41623         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
41624         okay.
41625         Reported by Jim Meyering.
41626
41627 2009-09-08  Eric Blake  <ebb9@byu.net>
41628
41629         fstatat: fix compilation on Solaris
41630         * lib/fstatat.c (includes): Add fcntl.h.
41631         Reported by Pádraig Brady.
41632
41633 2009-09-07  Eric Blake  <ebb9@byu.net>
41634
41635         rename: modernize replacement
41636         * modules/rename (Depends-on): Add stdio.
41637         (configure.ac): Declare witness.
41638         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
41639         stdio take care of replacement.
41640         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
41641         * modules/stdio (Makefile.am): Substitute them.
41642         * lib/stdio.in.h (rename): Declare replacement.
41643         * lib/rename.c (includes): Allow cross-compilation to non-windows
41644         machines.
41645         * doc/posix-functions/rename.texi (rename): Improve
41646         documentation.
41647
41648         stdio: sort witness names
41649         * modules/stdio (Makefile.am): Sort replacements.
41650         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41651         * lib/stdio.in.h: Likewise.
41652
41653         getcwd: minor cleanups
41654         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
41655         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
41656
41657         openat: provide more convenience names
41658         * modules/faccessat (configure.ac): Add C witness.
41659         * lib/unistd.in.h (readlinkat): Fix typo.
41660         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
41661         convenience wrappers.
41662         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
41663         wrappers in syntax checks.
41664
41665 2009-09-06  Eric Blake  <ebb9@byu.net>
41666
41667         doc: fix comments in recent patches
41668         * lib/faccessat.c: Mention correct function.
41669         * lib/fchmodat.c: Likewise.
41670         * lib/fchownat.c: Likewise.
41671         * lib/symlinkat.c: Likewise.
41672         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
41673         constants.
41674
41675         faccessat, symlinkat: continue cleanup of previous patch
41676         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
41677         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41678         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
41679         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
41680         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
41681         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
41682         set.
41683
41684 2009-09-06  Bruno Haible  <bruno@clisp.org>
41685
41686         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
41687         (fstatat): Declare if GNULIB_FSTATAT is set.
41688         (mkdirat): Declare if GNULIB_MKDIRAT is set.
41689         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
41690         (unlinkat): Declare if GNULIB_UNLINKAT is set.
41691         * modules/fcntl-h (Files): Remove m4/openat.m4.
41692         * modules/sys_stat (Files): Remove m4/openat.m4.
41693         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
41694         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
41695         * modules/unistd (Files): Remove m4/openat.m4.
41696         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
41697         GNULIB_OPENAT.
41698         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
41699         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
41700         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
41701         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
41702         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
41703         gl_OPENAT_DEFAULTS.
41704         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
41705         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
41706         Don't require gl_OPENAT_DEFAULTS.
41707         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
41708         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
41709         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
41710         (gl_OPENAT_DEFAULTS): Remove macro.
41711
41712 2009-09-06  Bruno Haible  <bruno@clisp.org>
41713
41714         * modules/openat (configure.ac): Remove unneeded witness.
41715
41716 2009-09-06  Bruno Haible  <bruno@clisp.org>
41717
41718         Set errno to ENOSYS when a function is entirely unsupported.
41719         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
41720         EOPNOTSUPP.
41721         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41722         * modules/chown (Depends-on): Remove errno.
41723
41724 2009-09-06  Bruno Haible  <bruno@clisp.org>
41725
41726         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
41727
41728 2009-09-06  Bruno Haible  <bruno@clisp.org>
41729
41730         * lib/sys_stat.in.h: Fix preprocessor command indentation.
41731
41732 2009-09-06  Ben Pfaff  <blp@gnu.org>
41733             Bruno Haible  <bruno@clisp.org>
41734
41735         Work around a glibc bug in strtok_r.
41736         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
41737         Undefine if UNDEFINE_STRTOK_R is set.
41738         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
41739         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41740         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
41741         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
41742         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
41743         UNDEFINE_STRTOK_R.
41744         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
41745
41746 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
41747
41748         exclude: minor fix
41749         * lib/exclude.c: Include wctype.h
41750
41751 2009-09-06  Akim Demaille  <demaille@gostai.com>
41752
41753         bootstrap: improve error message
41754         * build-aux/bootstrap (find_tool): Upon failure, report the list
41755         of candidates.
41756         Honor the initial value of the envvar.
41757
41758 2009-09-05  Eric Blake  <ebb9@byu.net>
41759
41760         symlinkat: new module
41761         * modules/symlinkat: New file.
41762         * lib/symlinkat.c: Likewise.
41763         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
41764         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41765         * modules/unistd (Makefile.am): Use them.
41766         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
41767         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
41768         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
41769         * MODULES.html.sh (File system functions): Mention module.
41770         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41771         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41772         * modules/symlinkat-tests: New test.
41773         * tests/test-symlinkat.c: Likewise.
41774
41775         test-openat-safer: add more checks
41776         * tests/test-openat-safer.c (main): Check more code paths.
41777
41778 2009-09-05  Jim Meyering  <meyering@redhat.com>
41779
41780         syntax-check: detect unnecessary inclusion of openat.h
41781         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
41782
41783 2009-09-05  Bruno Haible  <bruno@clisp.org>
41784
41785         Support towlower, towupper.
41786         * doc/posix-functions/towlower.texi: Mention module wctype.
41787         * doc/posix-functions/towupper.texi: Likewise.
41788         * lib/wctype.in.h (towlower, towupper): New functions.
41789         * tests/test-wctype.c: Include stdio.h, stdlib.h.
41790         (ASSERT): New macro.
41791         (e): New variable.
41792         (main): Test also towlower, towupper. Test WEOF argument.
41793         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41794
41795 2009-09-05  Bruno Haible  <bruno@clisp.org>
41796
41797         Fix conversion behaviour when the input is invalid.
41798         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
41799         mark occurring in first pass of indirect conversion.
41800         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
41801         input.
41802         Found by clang's static analyzer.
41803
41804 2009-09-05  Bruno Haible  <bruno@clisp.org>
41805
41806         * tests/test-striconveh.c (main): Test indirect conversion on platforms
41807         where direct conversion is possible.
41808
41809 2009-09-04  Eric Blake  <ebb9@byu.net>
41810
41811         openat: fail with ENOENT on empty name
41812         * lib/openat-proc.c (openat_proc_name): Special-case the empty
41813         buffer.
41814
41815         link-follow: fix logic bug in prior patch
41816         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
41817         reversed sense of yes and no in prior patch.  Avoid confusing
41818         compilation failure with desired semantics.
41819
41820         link-follow: accomodate mingw and cross-compilation
41821         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
41822         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
41823         cross-compilation results to -1, to make linkat easier to
41824         implement when cross-compiling.  Trivially support mingw.
41825         * modules/link-follow (configure.ac): Call new name.
41826         * NEWS: Mention this.
41827
41828 2009-09-03  Eric Blake  <ebb9@byu.net>
41829
41830         faccessat: compile replacement
41831         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
41832         needed.
41833
41834         fts: fix compilation error
41835         * lib/fts.c (includes): Re-add "openat.h", for
41836         openat_needs_fchdir.
41837
41838         faccessat: new module
41839         * modules/faccessat: New file.
41840         * lib/faccessat.c: Likewise.
41841         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41842         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41843         * modules/unistd (Makefile.am): Use it.
41844         * lib/unistd.in.h (faccessat): Declare it.
41845         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
41846         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
41847         * MODULES.html.sh (File system functions): Mention it.
41848         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
41849         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
41850
41851         euidaccess: prefer POSIX over non-standard implementation
41852         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
41853         * lib/euidaccess.c (euidaccess): Use it if available.
41854
41855         openat: make template easier to use
41856         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
41857         AT_FUNC_F2 to be undefined.
41858         (VALIDATE_FLAG): New macro; use it to reject bad flags.
41859         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
41860         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
41861         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
41862         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
41863         Likewise.
41864         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
41865         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
41866         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
41867         Likewise.
41868
41869         openat: declare in POSIX headers
41870         * NEWS: Mention this.
41871         * modules/openat (configure.ac): Declare witnesses.
41872         (Depends-on): Add fcntl-h, sys_stat, unistd.
41873         (Include): Mention correct headers.
41874         * modules/fcntl-h (Depends-on): Add link-warning.
41875         (Files): Add openat.m4.
41876         (Makefile.am): Substitute witnesses.
41877         * modules/sys_stat (Files, Makefile.am): Likewise.
41878         * modules/unistd (Files, Makefile.am): Likewise.
41879         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
41880         (gl_OPENAT_DEFAULTS): New macro.
41881         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
41882         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
41883         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
41884         (SYS_STAT_H): Remove unused variable.
41885         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
41886         * lib/fcntl--.h (includes): Remove unneeded header.
41887         * lib/openat-safer.c (includes): Likewise.
41888         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
41889         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
41890         appropriate headers.
41891         (__OPENAT_PREFIX): Delete.
41892         * lib/fcntl.in.h (openat): Provide declaration.
41893         (AT_FDCWD): Fix Solaris bug.
41894         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
41895         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
41896         * lib/fchmodat.c (includes):  Adjust to find declaration.
41897         * lib/fchownat.c (includes): Likewise.
41898         * lib/mkdirat.c (includes): Likewise.
41899         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
41900         still visible.
41901
41902 2009-09-02  Eric Blake  <ebb9@byu.net>
41903
41904         errno: use consistently
41905         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
41906         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
41907         * lib/canonicalize.c (ELOOP): Likewise.
41908         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
41909         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
41910         * lib/lchown.c (EOPNOTSUPP): Likewise.
41911         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
41912         * lib/savewd.c (ESTALE): Likewise.
41913         * lib/settime.c (ENOSYS): Likewise.
41914         * lib/utimens.c (ENOSYS): Likewise.
41915         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
41916         * lib/chdir-safer.c (ELOOP): Likewise.
41917         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
41918         * modules/c-stack (Depends-on): Add errno.
41919         * modules/canonicalize (Depends-on): Likewise.
41920         * modules/chdir-safer (Depends-on): Likewise.
41921         * modules/fdopendir (Depends-on): Likewise.
41922         * modules/inet_ntop (Depends-on): Likewise.
41923         * modules/inet_pton (Depends-on): Likewise.
41924         * modules/lchown (Depends-on): Likewise.
41925         * modules/openat (Depends-on): Likewise.
41926         * modules/savewd (Depends-on): Likewise.
41927         * modules/settime (Depends-on): Likewise.
41928         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
41929
41930         fts: avoid leaking fds
41931         * modules/fts (Depends-on): Add cloexec.
41932         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
41933         flag.
41934
41935         fts: make directory fds more robust
41936         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
41937         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
41938
41939         backupfile, chdir-long, fts, savedir: make safer
41940         * lib/backupfile.c (includes): Use "dirent--.h", since
41941         numbered_backup can write to stderr during readdir.
41942         * lib/savedir.c (includes): Likewise.
41943         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
41944         emulation can write to stderr on failure.
41945         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
41946         * lib/getcwd.c: Document why opendir_safer is unused.
41947         * lib/glob.c: Likewise.
41948         * lib/scandir.c: Likewise.
41949         * lib/openat-proc.c: Likewise, for open_safer.
41950         * modules/backupfile (Depends-on): Add dirent-safer.
41951         * modules/savedir (Depends-on): Likewise.
41952         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
41953         * modules/chdir-long (Depends-on): Add openat-safer.
41954
41955         openat-safer: new module
41956         * modules/openat-safer: New file.
41957         * lib/openat-safer.c: Likewise.
41958         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
41959         * lib/fcntl-safer.h (openat_safer): Declare.
41960         * lib/fcntl--.h (openat): Override.
41961         * MODULES.html.sh (File descriptor based I/O): Mention it.
41962         * lib/openat.h: Add double-inclusion guards.
41963         * lib/openat.c (includes): Only include "fcntl-safer.h", not
41964         "fcntl--.h", so we can implement openat.
41965         * modules/openat-safer-tests: New test.
41966         * tests/test-openat-safer.c: New file.
41967
41968         dirent-safer: new module
41969         * modules/dirent-safer: New file.
41970         * lib/dirent--.h: Likewise.
41971         * lib/dirent-safer.h: Likewise.
41972         * lib/opendir-safer.c: Likewise.
41973         * m4/dirent-safer.m4: Likewise.
41974         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
41975         * modules/dirent-safer-tests: New test.
41976         * tests/test-dirent-safer.c: New file.
41977         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
41978
41979         fdopendir: optimize on mingw
41980         * lib/unistd.in.h (_gl_directory_name): New prototype.
41981         * lib/fchdir.c (_gl_directory_name): Implement it.
41982         (fchdir): Use it to simplify implementation.
41983         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
41984         fchdir, when available, to avoid calling [f]chdir().
41985
41986         fdopendir: split into its own module
41987         * lib/openat.c (fdopendir): Move...
41988         * lib/fdopendir.c: ...into new file.
41989         * modules/fdopendir: New module.
41990         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
41991         * modules/openat (Depends-on): Add fdopendir.
41992         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
41993         fdopendir here.
41994         * modules/savedir (Depends-on): Only need fdopendir, not full
41995         openat.
41996         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
41997         * lib/openat.h (fdopendir): Drop prototype.
41998         * lib/dirent.in.h (fdopendir): Provide prototype.
41999         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
42000         * modules/dirent (Makefile.am): Substitute them.
42001         * MODULES.html.sh (File system functions): Mention it.
42002         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
42003         * modules/fdopendir-tests: New file.
42004         * tests/test-fdopendir.c: Likewise.
42005
42006         fchdir: use more consistent macro convention
42007         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
42008         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
42009         REPLACE_FCHDIR, rather than relying on config.h macros.
42010         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
42011         inside a single make-time REPLACE_FCHDIR block, rather than using
42012         the config.h FCHDIR_REPLACEMENT.
42013         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
42014         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
42015         Manage fstat replacement.
42016         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
42017         REPLACE_FCHDIR.
42018         * modules/sys_stat (Files): Add m4/unistd_h.m4.
42019         (Makefile.am): Substitute REPLACE_FCHDIR.
42020         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
42021         FCHDIR_REPLACEMENT.
42022         * lib/dup-safer.c (dup_safer): Likewise.
42023         * lib/dup2.c (rpl_dup2): Likewise.
42024         * lib/dup3.c (rpl_dup3): Likewise.
42025         * lib/open.c (rpl_open): Likewise.
42026
42027         fchdir: simplify error handling, and support dup3
42028         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
42029         stdbool, malloc-posix, realloc-posix.
42030         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
42031         (ensure_dirs_slot): Return false on allocation failure.
42032         (rpl_dup2): Delete.
42033         (_gl_register_dup): New function.
42034         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
42035         (_gl_register_fd): Close fd on allocation failure.
42036         * lib/fcntl.in.h (_gl_register_fd): Update signature.
42037         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
42038         prototype.
42039         (rpl_dup2_fchdir): Delete prototype.
42040         * lib/open.c (open): Update caller.
42041         * lib/dup2.c (dup2): Track fchdir metadata.
42042         * lib/dup3.c (dup3): Likewise.
42043         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
42044         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
42045
42046 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42047
42048         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
42049         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
42050         don't pass arguments to AC_OUTPUT.
42051
42052 2009-09-02  Bruno Haible  <bruno@clisp.org>
42053
42054         * modules/mkdtemp (License): Relicense under LGPLv2+.
42055         Reported by Paolo Bonzini.
42056
42057 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42058
42059         Replace uses of obsolete autoconf macros in Jim's modules.
42060         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
42061         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
42062         can evoke a warning from autoconf when run with -Wobsolete
42063         enabled.  They were declared obsolete for good reasons (see
42064         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
42065         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
42066         should not continue using the deprecated macros.
42067         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
42068         obsolete Autoconf macros with modern counterparts.
42069         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
42070         * m4/dos.m4 (gl_AC_DOS): Likewise.
42071         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
42072         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
42073         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
42074         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
42075         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
42076         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
42077         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
42078         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
42079         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
42080         Likewise.
42081         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
42082         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
42083         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
42084         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
42085         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
42086         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
42087
42088 2009-09-01  Eric Blake  <ebb9@byu.net>
42089
42090         fchdir: fix off-by-one bug in previous patch
42091         * lib/fchdir.c (rpl_fstat): Use correct bounds.
42092         (_gl_unregister_fd): Delete useless if.
42093
42094 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
42095
42096         maint.mk: sort the list of syntax-check rules
42097         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
42098         easier to get a sense of progress when the rules are run sequentially
42099         and take a long time.
42100
42101 2009-09-01  Simon Josefsson  <simon@josefsson.org>
42102
42103         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
42104         * modules/netinet_in: Likewise.
42105         * modules/sys_file: Likewise.
42106         * modules/sys_ioctl: Likewise.
42107         * modules/sys_select: Likewise.
42108         * modules/sys_socket: Likewise.
42109         * modules/sys_stat: Likewise.
42110         * modules/sys_time: Likewise.
42111         * modules/sys_times: Likewise.
42112         * modules/sys_utsname: Likewise.
42113         * modules/sys_wait: Likewise.
42114
42115 2009-09-01  Jim Meyering  <meyering@redhat.com>
42116
42117         fts: help ensure that return values are not ignored
42118         * lib/fts_.h (__GNUC_PREREQ): Define.
42119         (__attribute_warn_unused_result__): Define.
42120         (fts_children, fts_close, fts_open, fts_read): Declare with
42121         __attribute_warn_unused_result__.
42122
42123         fts: fts_close now fails also when closing a dir file descriptor fails
42124         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
42125         and propagate to caller, along with errno.
42126
42127         announce-gen: correct formatting in --help output
42128         * build-aux/announce-gen (usage): Move the one-line description in
42129         --help output "up", to where it belongs, just after Usage:.
42130
42131 2009-08-31  Eric Blake  <ebb9@byu.net>
42132
42133         fchdir: port to mingw
42134         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
42135         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
42136         opened, then use a substitute.
42137         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
42138         replacement.
42139         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
42140         (_gl_register_fd): No need to check stat if open already filters
42141         all directories.
42142         (fchdir): Fix error condition to match POSIX.
42143         * modules/fchdir (Depends-on): Add sys_stat.
42144         * doc/posix-functions/open.texi (open): Document the limitation.
42145         * modules/fchdir-tests: New file.
42146         * tests/test-fchdir.c: Likewise.
42147
42148         canonicalize: allow cross-testing from cygwin to mingw
42149         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
42150         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
42151         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
42152         Likewise.
42153         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
42154         target does not support symlinks.
42155         * tests/test-canonicalize-lgpl.sh: Likewise.
42156
42157         chown: avoid compilation warning on mingw
42158         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
42159         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
42160         mingw.
42161         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
42162         * modules/chown (Depends-on): Add errno.
42163
42164 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
42165
42166         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
42167         command.
42168
42169 2009-08-31  Jim Meyering  <meyering@redhat.com>
42170
42171         canonicalize: remove useless initialization
42172         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
42173         initialization of local, "end".
42174
42175 2009-08-30  Bruno Haible  <bruno@clisp.org>
42176
42177         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
42178         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
42179         ENOSYS.
42180
42181 2009-08-30  Bruno Haible  <bruno@clisp.org>
42182
42183         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
42184         /usr/xpg4/bin/tr when it exists.
42185         * tests/test-pipe-filter-gi1.sh: Likewise.
42186
42187 2009-08-30  Bruno Haible  <bruno@clisp.org>
42188
42189         Work around deficient /usr/bin/id program on Solaris.
42190         * tests/test-file-has-acl.sh (ID): New variable.
42191         * tests/test-set-mode-acl.sh (ID): Likewise.
42192         * tests/test-copy-acl.sh (ID): Likewise.
42193         * tests/test-copy-file.sh (ID): Likewise.
42194
42195 2009-08-30  Bruno Haible  <bruno@clisp.org>
42196
42197         New module 'xstriconveh'.
42198         * lib/xstriconveh.h: New file.
42199         * lib/xstriconveh.c: New file.
42200         * modules/xstriconveh: New file.
42201
42202 2009-08-30  Bruno Haible  <bruno@clisp.org>
42203
42204         Make it easier to use mem_cd_iconveh.
42205         * lib/striconveh.h (iconveh_t): New type.
42206         (iconveh_open, iconveh_close): New declarations.
42207         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
42208         with a single 'const iconveh_t *' argument.
42209         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
42210         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
42211         with a single 'const iconveh_t *' argument.
42212         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
42213         * tests/test-striconveh.c (main): Update.
42214         * NEWS: Mention the change.
42215
42216 2009-08-30  Bruno Haible  <bruno@clisp.org>
42217
42218         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
42219         problem.
42220
42221 2009-08-30  Bruno Haible  <bruno@clisp.org>
42222
42223         Work around iconv_open problem on Solaris.
42224         * lib/iconv_open-solaris.gperf: New file.
42225         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
42226         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
42227         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
42228         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
42229         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
42230         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
42231
42232 2009-08-29  Jim Meyering  <meyering@redhat.com>
42233
42234         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
42235         * top/maint.mk (cvs-check): Remove target; it was just an alias
42236         to the better-named vc-diff-check.
42237         (maintainer-distcheck): Remove rule.  It was used only from
42238         the (alpha/beta/major) target, and all of its commands but one
42239         were coreutils-specific.
42240         (vc-dist): Remove rule.
42241         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
42242         Run vc-diff-check, not vc-dist.
42243         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
42244
42245 2009-08-27  Bruno Haible  <bruno@clisp.org>
42246
42247         * tests/test-bitrotate.c (main): Remove test that uses a shift count
42248         of 0.
42249
42250 2009-08-27  Bruno Haible  <bruno@clisp.org>
42251
42252         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
42253         compilers.
42254         * doc/func.texi: Document the SunPRO C bug.
42255
42256 2009-08-27  Bruno Haible  <bruno@clisp.org>
42257
42258         Fix link error on Solaris.
42259         * tests/test-parse-duration.c (xstrdup): Remove function.
42260
42261 2009-08-26  Pádraig Brady  <P@draigbrady.com>
42262
42263         ignore-value: handle pointer types, too
42264         * lib/ignore-value.h (__attribute__): Remove definition.
42265         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
42266         of a more concise and more-often effective "(void) i" statement.
42267         (ignore_ptr): New function to suppress warnings from functions that
42268         return pointers, and to make it explicit that one function doesn't
42269         handle all cases.
42270
42271 2009-08-25  Bruno Haible  <bruno@clisp.org>
42272
42273         dup2: work around a Linux bug.
42274         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
42275         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
42276         * doc/posix-functions/dup2.texi: Mention the Linux bug.
42277         Reported by Simon Josefsson.
42278
42279 2009-08-25  Jim Meyering  <meyering@redhat.com>
42280
42281         libguestfs uses gnulib
42282         * users.txt: Add libguestfs.
42283
42284 2009-08-24  Eric Blake  <ebb9@byu.net>
42285
42286         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
42287         * lib/pipe2.c (includes): Add binary-io.h.
42288         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
42289
42290 2009-08-24  Bruno Haible  <bruno@clisp.org>
42291
42292         Tolerate declared but missing accept4 syscall.
42293         * lib/accept4.c (accept4): Invoke original accept4 function first, if
42294         available.
42295         * lib/sys_socket.in.h (accept4): If the function is already present,
42296         override it.
42297         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
42298         * modules/accept4 (Makefile.am): Compile accept4.c always.
42299         Reported by Paolo Bonzini and Eric Blake.
42300
42301 2009-08-23  Bruno Haible  <bruno@clisp.org>
42302
42303         New module 'accept4'.
42304         * lib/sys_socket.in.h (accept4): New declaration.
42305         * lib/accept4.c: New file.
42306         * m4/accept4.m4: New file.
42307         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
42308         GNULIB_ACCEPT4, HAVE_ACCEPT4.
42309         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
42310         HAVE_ACCEPT4.
42311         * modules/accept4: New file.
42312         * doc/glibc-functions/accept4.texi: Mention the new module.
42313
42314 2009-08-24  Jim Meyering  <meyering@redhat.com>
42315
42316         progname: also set global program_invocation_name, when possible
42317         Before this change, a libtool-enabled program that calls glibc's
42318         error function would report the program name as
42319         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
42320         * modules/progname (configure.ac): Check for a declaration of
42321         program_invocation_name.
42322         * lib/progname.c:  Include <errno.h>.
42323         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
42324         Set program_invocation_name.
42325
42326 2009-08-23  Bruno Haible  <bruno@clisp.org>
42327
42328         * lib/dup3.c: Include <string.h>.
42329
42330 2009-08-23  Bruno Haible  <bruno@clisp.org>
42331
42332         * lib/dup3.c (dup3): Test only once whether the system actually exists.
42333         * lib/pipe2.c (pipe2): Likewise.
42334         Suggested by Eric Blake.
42335
42336 2009-08-23  Bruno Haible  <bruno@clisp.org>
42337
42338         Tolerate declared but missing dup3 syscall.
42339         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
42340         * lib/unistd.in.h (dup3): If the function is already present,
42341         override it.
42342         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
42343         * modules/dup3 (Makefile.am): Compile dup3.c always.
42344         Reported by Paolo Bonzini.
42345
42346 2009-08-23  Bruno Haible  <bruno@clisp.org>
42347
42348         Tolerate declared but missing pipe2 syscall.
42349         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
42350         available.
42351         * lib/unistd.in.h (pipe2): If the function is already present,
42352         override it.
42353         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
42354         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
42355         Reported by Paolo Bonzini.
42356
42357 2009-08-23  Bruno Haible  <bruno@clisp.org>
42358
42359         * lib/pipe2.c (pipe2): Move #ifs inside function.
42360
42361 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42362
42363         quotearg: document limitations of quote_these_too
42364         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
42365         those limitations are created.
42366         * lib/quotearg.h (set_char_quoting): Document that digits and
42367         letters that are special after backslash are not permitted.
42368         (quotearg_char): Cross-reference set_char_quoting documentation.
42369
42370 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
42371
42372         quotearg: implement custom_quoting_style
42373         * lib/quotearg.c: (struct quoting_options): Add left_quote and
42374         right_quote fields.
42375         (set_custom_quoting): New public function.
42376         (quotearg_buffer_restyled): Add left_quote and right_quote
42377         arguments, handle them very much like locale quoting, and update
42378         all uses.
42379         (quotearg_n_custom): New public function.
42380         (quotearg_n_custom_mem): New public function.
42381         (quotearg_custom): New public function.
42382         (quotearg_custom_mem): New public function.
42383         * lib/quotearg.h: Prototype and document new public functions.
42384         (enum quoting_style): For escape_quoting_style and
42385         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
42386         ignored even though they're otherwise like c_quoting_style.
42387         Add custom_quoting_style member and document with comparison to
42388         clocale_quoting_style.
42389         * tests/test-quotearg.c (custom_quotes): New array.
42390         (custom_results): New array.
42391         (main): Extend to test custom quoting.
42392
42393 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42394
42395         quotearg: fix right quote escaping when it's in quote_these_too
42396         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
42397         quote, be sure to prepend only one backslash.
42398         * tests/test-quotearg.c (use_quote_double_quotes): New function.
42399         (main): Test it.
42400
42401 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42402
42403         quotearg-tests: test escaping of embedded locale quotes
42404         * tests/test-quotearg.c (struct result_strings): Add member for
42405         new input.
42406         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
42407         (inputs): Add new input.
42408         (results_g): Add expected results.
42409         (flag_results): Likewise.
42410         (locale_results): Likewise.
42411         (compare_strings): Check those.
42412
42413 2009-08-23  Bruno Haible  <bruno@clisp.org>
42414
42415         Tests for module 'dup3'.
42416         * modules/dup3-tests: New file.
42417         * tests/test-dup3.c: New file.
42418
42419         New module 'dup3'.
42420         * lib/unistd.in.h (dup3): New declaration.
42421         * lib/dup3.c: New file.
42422         * m4/dup3.m4: New file.
42423         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
42424         HAVE_DUP3.
42425         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
42426         * modules/dup3: New file.
42427         * doc/glibc-functions/dup3.texi: Mention the new module.
42428
42429 2009-08-23  Bruno Haible  <bruno@clisp.org>
42430
42431         Tweak the dup2 test.
42432         * tests/test-dup2.c (main): Create the test file empty. Verify that an
42433         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
42434         the test file is still empty. Fix argument order of lseek.
42435
42436 2009-08-23  Bruno Haible  <bruno@clisp.org>
42437
42438         Avoid test link errors when the modules getopt-gnu, gettext are used.
42439         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
42440         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42441
42442 2009-08-23  Bruno Haible  <bruno@clisp.org>
42443
42444         Fix getdtablesize() on mingw.
42445         * lib/getdtablesize.c (getdtablesize): Implement differently.
42446         * lib/unistd.in.h (getdtablesize): Improve comment.
42447
42448 2009-08-23  Bruno Haible  <bruno@clisp.org>
42449
42450         New module 'mkostemp'.
42451         Based on Ulrich Drepper's 2007-08-10 change in glibc.
42452         * lib/stdlib.in.h (mksotemp): New declaration.
42453         * lib/mkostemp.c: New file, from glibc with modifications.
42454         * lib/tempname.h (GT_FILE): Remove outdated comment.
42455         (gen_tempname): Add flags argument.
42456         * lib/tempname.c (__GT_BIGFILE): Remove macro.
42457         (__GT_FILE): Map to 1.
42458         (small_open, large_open): Remove macros.
42459         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
42460         * lib/mkstemp.c (mkstemp): Update.
42461         * lib/mkdtemp.c (mkdtemp): Likewise.
42462         * m4/mkostemp.m4: New file.
42463         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
42464         HAVE_MKOSTEMP.
42465         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
42466         HAVE_MKOSTEMP.
42467         * modules/mkostemp: New file, based on modules/mkstemp.
42468         * doc/glibc-functions/mkostemp.texi: Mention the new module.
42469         * NEWS: Mention the change.
42470
42471 2009-08-23  Bruno Haible  <bruno@clisp.org>
42472
42473         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
42474         Reported by Eric Blake.
42475
42476 2009-08-23  Bruno Haible  <bruno@clisp.org>
42477
42478         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
42479         Reported by Eric Blake.
42480
42481 2009-08-23  Bruno Haible  <bruno@clisp.org>
42482
42483         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
42484         * modules/pipe2 (Depends-on): Likewise.
42485
42486 2009-08-23  Eric Blake  <ebb9@byu.net>
42487
42488         fcntl-h: add O_TTY_INIT support
42489         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
42490         * tests/test-fcntl-h.c (o): Test it.
42491         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42492
42493         fcntl-h: rename from fcntl, in preparation for fcntl(2)
42494         * modules/fcntl: Move <fcntl.h> header replacement...
42495         * modules/fcntl-h: ...to new name, so as not to collide with
42496         like-named function.
42497         * tests/test-fcntl.c: Rename...
42498         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
42499         * modules/fcntl-tests: Rename...
42500         * modules/fcntl-h-tests: ...to this.  Update test file name.
42501         * modules/chdir-long (Depends-on): Update clients.
42502         * modules/chdir-safer (Depends-on): Likewise.
42503         * modules/fcntl-safer (Depends-on): Likewise.
42504         * modules/fts (Depends-on): Likewise.
42505         * modules/mkancesdirs (Depends-on): Likewise.
42506         * modules/mkdir-p (Depends-on): Likewise.
42507         * modules/open (Depends-on): Likewise.
42508         * modules/savewd (Depends-on): Likewise.
42509         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
42510         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42511
42512 2009-08-22  Bruno Haible  <bruno@clisp.org>
42513
42514         * modules/binary-io (License): Relicense under LGPL.
42515         * modules/pipe2 (License): Likewise.
42516
42517 2009-08-22  Bruno Haible  <bruno@clisp.org>
42518
42519         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
42520         return value.
42521         * lib/pipe-filter-gi.c (filter_init): Likewise.
42522         Reported by Eric Blake.
42523
42524 2009-08-22  Bruno Haible  <bruno@clisp.org>
42525
42526         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
42527         * modules/pipe (Depends-on): Add pipe2.
42528
42529 2009-08-22  Bruno Haible  <bruno@clisp.org>
42530
42531         Tests for module 'pipe2'.
42532         * modules/pipe2-tests: New file.
42533         * tests/test-pipe2.c: New file.
42534
42535         New module 'pipe2'.
42536         * lib/unistd.in.h (pipe2): New declaration.
42537         * lib/pipe2.c: New file.
42538         * m4/pipe2.m4: New file.
42539         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
42540         HAVE_PIPE2.
42541         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
42542         * modules/pipe2: New file.
42543         * doc/glibc-functions/pipe2.texi: Mention the new module.
42544
42545 2009-08-22  Bruno Haible  <bruno@clisp.org>
42546
42547         Reference some new glibc functions.
42548         * doc/glibc-functions/accept4.texi: New file.
42549         * doc/glibc-functions/dup3.texi: New file.
42550         * doc/glibc-functions/mkostemp.texi: New file.
42551         * doc/glibc-functions/pipe2.texi: New file.
42552         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
42553         (Glibc sys/socket.h): Refer to accept4.
42554         (Glibc unistd.h): Refer to dup3, pipe2.
42555         Reported by Eric Blake.
42556
42557 2009-08-22  Jim Meyering  <meyering@redhat.com>
42558             Bruno Haible  <bruno@clisp.org>
42559
42560         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
42561         This makes it so packages using automake-1.11's silent-rules option
42562         can print e.g., a single "GEN    configmake.h" line, rather than
42563         the 30+ statements that perform the job.  If you want to see the
42564         actual commands, you can still run "make V=1".
42565         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
42566         so that make output is abbreviated when those variables are defined
42567         appropriately.
42568         * modules/argz: Likewise.
42569         * modules/arpa_inet: Likewise.
42570         * modules/byteswap: Likewise.
42571         * modules/configmake: Likewise.
42572         * modules/dirent: Likewise.
42573         * modules/errno: Likewise.
42574         * modules/fcntl: Likewise.
42575         * modules/float: Likewise.
42576         * modules/fnmatch: Likewise.
42577         * modules/getopt-posix: Likewise.
42578         * modules/glob: Likewise.
42579         * modules/iconv_open: Likewise.
42580         * modules/inttypes: Likewise.
42581         * modules/localcharset: Likewise.
42582         * modules/locale: Likewise.
42583         * modules/math: Likewise.
42584         * modules/netdb: Likewise.
42585         * modules/netinet_in: Likewise.
42586         * modules/poll: Likewise.
42587         * modules/posix_spawnp-tests: Likewise.
42588         * modules/sched: Likewise.
42589         * modules/search: Likewise.
42590         * modules/selinux-h: Likewise.
42591         * modules/signal: Likewise.
42592         * modules/spawn: Likewise.
42593         * modules/stdarg: Likewise.
42594         * modules/stdbool: Likewise.
42595         * modules/stddef: Likewise.
42596         * modules/stdint: Likewise.
42597         * modules/stdio: Likewise.
42598         * modules/stdlib: Likewise.
42599         * modules/string: Likewise.
42600         * modules/strings: Likewise.
42601         * modules/sys_file: Likewise.
42602         * modules/sys_ioctl: Likewise.
42603         * modules/sys_select: Likewise.
42604         * modules/sys_socket: Likewise.
42605         * modules/sys_stat: Likewise.
42606         * modules/sys_time: Likewise.
42607         * modules/sys_times: Likewise.
42608         * modules/sys_utsname: Likewise.
42609         * modules/sys_wait: Likewise.
42610         * modules/sysexits: Likewise.
42611         * modules/time: Likewise.
42612         * modules/unistd: Likewise.
42613         * modules/wchar: Likewise.
42614         * modules/wctype: Likewise.
42615
42616 2009-08-22  Jim Meyering  <meyering@redhat.com>
42617
42618         announce-gen: detect write failure
42619         * build-aux/announce-gen: Add Coda at end.
42620         Remove equivalent-but-more-verbose block at top.
42621
42622 2009-08-19  Akim Demaille  <demaille@gostai.com>
42623
42624         bootstrap: --help to stdout.
42625         * bootstrap (usage): Don't send --help to stderr.
42626         Use a here doc instead of a long string.
42627
42628 2009-08-21  Eric Blake  <ebb9@byu.net>
42629
42630         test-popen-safer: split from test-popen
42631         * tests/test-popen.c (main): Move...
42632         * tests/test-popen.h: ...into new file.
42633         * tests/test-popen-safer2.c: New file.
42634         * modules/popen-tests (Files): Add test-popen.h.
42635         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
42636         Suggested by Bruno Haible.
42637
42638         test-fcntl-safer: split from test-open
42639         * tests/test-open.c (main): Move...
42640         * tests/test-open.h: ...into new file.
42641         * tests/test-fcntl-safer.c: New file.
42642         * modules/open-tests (Files): Add test-open.h.
42643         * modules/fcntl-safer-tests: New file.
42644         Suggested by Bruno Haible.
42645
42646         test-fopen-safer: split from test-fopen
42647         * tests/test-fopen.c (main): Move...
42648         * tests/test-fopen.h: ...into new file.
42649         * tests/test-fopen-safer.c: New file.
42650         * modules/fopen-tests (Files): Add test-fopen.h.
42651         * modules/fopen-safer-tests: New file.
42652         Suggested by Bruno Haible.
42653
42654 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42655
42656         popen-safer: test O_CLOEXEC at run-time.
42657         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
42658
42659 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42660
42661         fcntl: move more flags to the header
42662         * lib/cloexec.c: Do not define FD_CLOEXEC here.
42663         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
42664         * lib/fcntl.in.h: Do both things here.
42665
42666 2009-08-21  Jim Meyering  <meyering@redhat.com>
42667
42668         consistently remove $@-t before redirecting to it
42669         * modules/argz: Remove $@-t and $@ before redirecting to the former.
42670         * modules/alloca-opt: Likewise.
42671         * modules/byteswap: Likewise.
42672         * modules/fnmatch: Likewise.
42673         * modules/getopt-posix: Likewise.
42674         * modules/glob: Likewise.
42675         * modules/poll: Likewise.
42676         * modules/posix_spawnp-tests: Likewise.
42677         * modules/sys_socket: Likewise.
42678         * modules/sysexits: Likewise.
42679
42680 2009-08-21  Eric Blake  <ebb9@byu.net>
42681
42682         popen: simplify access to original popen
42683         * lib/popen.c (rpl_popen): No need to worry about popen being a
42684         macro.
42685         Reported by Bruno Haible.
42686
42687 2009-08-20  Eric Blake  <ebb9@byu.net>
42688
42689         build: avoid some compiler warnings
42690         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
42691         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
42692         type.
42693         (new_exclude_segment, excluded_file_pattern_p)
42694         (excluded_file_name_p): Reduce scope.
42695         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
42696         old-style declaration.
42697
42698 2009-08-20  Simon Josefsson  <simon@josefsson.org>
42699
42700         * tests/test-exclude1.sh: Handle Windows EOL.
42701         * tests/test-exclude2.sh: Likewise.
42702         * tests/test-exclude3.sh: Likewise.
42703         * tests/test-exclude4.sh: Likewise.
42704         * tests/test-exclude5.sh: Likewise.
42705         * tests/test-exclude6.sh: Likewise.
42706         * tests/test-exclude7.sh: Likewise.
42707
42708 2009-08-19  Akim Demaille  <demaille@gostai.com>
42709
42710         bootstrap: find sha1sum when named gsha1sum.
42711         * bootstrap (find_tool): New.
42712         ($SHA1SUM): New.
42713         Use it.
42714
42715 2009-08-20  Jim Meyering  <meyering@redhat.com>
42716
42717         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
42718         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
42719         expression that converts "." in a file name to "\." in the resulting
42720         regexp.  Start with a dummy statement, so that prior shell variable
42721         definitions are expanded portably.  Reported by Simon Josefsson.
42722
42723 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
42724
42725         Fix polling for writeability of a screen buffer.
42726         * lib/poll.c: Distinguish input and screen buffers for the
42727         Win32 implementation.
42728         * lib/select.c: Likewise.
42729
42730 2009-08-19  Eric Blake  <ebb9@byu.net>
42731
42732         popen-safer: prevent popen from clobbering std descriptors
42733         * modules/popen-safer: New file.
42734         * lib/popen-safer.c: Likewise.
42735         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
42736         * lib/stdio--.h (popen): Provide override.
42737         * lib/stdio-safer.h (popen_safer): Provide declaration.
42738         * tests/test-popen.c (includes): Partially test this.
42739         * modules/popen-safer-tests: New file, for more tests.
42740         * tests/test-popen-safer.c: Likewise.
42741         * MODULES.html.sh (file stream based Input/Output): Mention it.
42742
42743         tests: test some of the *-safer modules
42744         * modules/fopen-safer (Depends-on): Add fopen.
42745         * modules/fcntl-safer (Depends-on): Add fcntl.
42746         * modules/stdlib-safer (Depends-on): Add stdlib.
42747         (configure.ac): Set indicator.
42748         * modules/unistd-safer (configure.ac): Likewise.
42749         * modules/tmpfile-safer (configure.ac): Likewise.
42750         (Depends-on): Add tmpfile.
42751         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
42752         active.
42753         * tests/test-fopen.c (includes): Test safer versions when they are
42754         in use.
42755         * tests/test-open.c (includes): Likewise.
42756
42757         popen: fix cygwin 1.5 bug when stdin closed
42758         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
42759         * modules/popen: New file.
42760         * modules/popen-tests: Likewise.
42761         * tests/test-popen.c: Likewise.
42762         * m4/popen.m4: Likewise.
42763         * lib/popen.c: Likewise.
42764         * lib/stdio.in.h (popen): New declaration.
42765         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
42766         * modules/stdio (Makefile.am): Likewise.
42767         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
42768
42769 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
42770
42771         maint.mk: give full control over update-copyright exclusions
42772         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
42773         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
42774         (update-copyright): Don't force inclusion of top-level
42775         ChangeLog.  Don't force exclusion of all COPYING files, but make
42776         them the default exclusion instead.
42777
42778 2009-08-16  Bruno Haible  <bruno@clisp.org>
42779
42780         Fix test failures on Solaris 10.
42781         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
42782         tests when Solaris iconv() is used.
42783         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
42784         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
42785         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
42786         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
42787         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
42788
42789 2009-08-16  Bruno Haible  <bruno@clisp.org>
42790
42791         Fix test failures on Solaris 10.
42792         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
42793         'tr' program and pass it as first argument.
42794         * tests/test-pipe-filter-gi1.sh: Likewise.
42795         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
42796         program as first argument.
42797         * tests/test-pipe-filter-gi1.c (main): Likewise.
42798
42799 2009-08-16  Eric Blake  <ebb9@byu.net>
42800
42801         fpurge: fix previous commits
42802         * modules/fpurge (Makefile.am): Make replacement conditional,
42803         partially reverting 2007-04-29 change; missed in previous
42804         attempt.
42805         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
42806         is missing.
42807
42808 2009-08-16  Bruno Haible  <bruno@clisp.org>
42809
42810         Clarify fpurge's effect on the file position.
42811         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
42812         * tests/test-fpurge.c (main): Make a second pass for checking the file
42813         position.
42814
42815 2009-08-16  Bruno Haible  <bruno@clisp.org>
42816
42817         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
42818         declaration of fpurge is missing.
42819         * tests/test-fpurge.c (main): Check that the file has not more contents
42820         than expected. Close the file before removing it.
42821
42822 2009-08-15  Eric Blake  <ebb9@byu.net>
42823
42824         fpurge: don't wrap working cygwin implementation
42825         * lib/fpurge.c (fpurge): Fix comment typo.
42826         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
42827         1.7 to avoid replacement.
42828         * tests/test-fpurge.c (main): Enhance test.
42829
42830 2009-08-15  Eric Blake  <ebb9@byu.net>
42831         and Jim Meyering  <meyering@redhat.com>
42832
42833         test-update-copyright: skip if perl is insufficient
42834         * tests/test-update-copyright.sh: Failure to run maintainer tool
42835         should not cause testsuite failure on cygwin 1.5.
42836
42837 2009-08-14  Eric Blake  <ebb9@byu.net>
42838
42839         doc: mention more functions added in cygwin 1.7.0
42840         * doc/posix-headers/limits.texi (limits.h): Update for recent
42841         cygwin additions.
42842         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
42843         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
42844         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
42845         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
42846         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
42847
42848 2009-08-14  Eric Blake  <ebb9@byu.net>
42849
42850         maint.mk: simplify update-copyright rule
42851         * top/maint.mk (update-copyright-local): Delete, and document how
42852         to do it in cfg.mk instead.
42853         (update-copyright-exclude-regexp): Delete, and document how to do
42854         it in .x-update-copyright instead.
42855         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
42856         exclude ChangeLog.
42857
42858 2009-08-14  Bruno Haible  <bruno@clisp.org>
42859
42860         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
42861
42862 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42863
42864         maint.mk: support update-copyright-env
42865         * top/maint.mk (update-copyright-env): Define place-holder.
42866         (update-copyright): Expand $(update-copyright-env) before
42867         invoking update-copyright.
42868
42869 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42870
42871         update-copyright: implement forced reformatting
42872         * build-aux/update-copyright: Implement and document
42873         UPDATE_COPYRIGHT_FORCE.
42874         * tests/test-update-copyright.sh: Test it.
42875
42876 2009-08-14  Eric Blake  <ebb9@byu.net>
42877         and Bruno Haible  <bruno@clisp.org>
42878
42879         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
42880         * tests/test-locale.c: Revert previous patch related to NULL.
42881         * tests/test-stdio.c: Likewise.
42882         * tests/test-stdlib.c: Likewise.
42883         * tests/test-string.c: Likewise.
42884         * tests/test-unistd.c: Likewise.
42885         * modules/time-tests (Depends-on): Add verify.
42886         * modules/wchar-tests (Depends-on): Likewise.
42887         * tests/test-time.c: Test for NULL compliance.
42888         * tests/test-wchar.c: Likewise.
42889         * modules/locale (Depends-on): Add stddef.
42890         * modules/stdio (Depends-on): Likewise.
42891         * modules/stdlib (Depends-on): Likewise.
42892         * modules/string (Depends-on): Likewise.
42893         * modules/time (Depends-on): Likewise.
42894         * modules/unistd (Depends-on): Likewise.
42895         * modules/wchar (Depends-on): Likewise.
42896         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
42897         * lib/stdlib.in.h (includes): Likewise.
42898         * lib/string.in.h (includes): Likewise.
42899         * lib/time.in.h (includes): Likewise.
42900         * lib/unistd.in.h (includes): Likewise.
42901         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
42902         replaced.
42903         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42904         * m4/stddef_h.m4: New file.
42905         * modules/stddef: Likewise.
42906         * lib/stddef.in.h: Likewise.
42907         * modules/stddef-tests: Likewise.
42908         * tests/test-stddef.c: Likewise.
42909         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
42910         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
42911         * doc/posix-headers/locale.texi (locale.h): Likewise.
42912         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
42913         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
42914         * doc/posix-headers/string.texi (string.h): Likewise.
42915         * doc/posix-headers/time.texi (time.h): Likewise.
42916         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
42917         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
42918
42919 2009-08-14  Eric Blake  <ebb9@byu.net>
42920
42921         doc: improve git diff of texinfo files
42922         * .gitattributes: Add rule for *.texi files, with hint on how to
42923         use it.
42924         Copied from m4, and based on a report by Bruno Haible.
42925
42926 2009-08-14  Bruno Haible  <bruno@clisp.org>
42927
42928         Disable multithread support by default on Cygwin 1.5.x for real.
42929         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
42930
42931 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42932
42933         update-copyright: much ado about intervals
42934         * build-aux/update-copyright: Implement and document
42935         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
42936         of copyright year intervals.
42937         Also, document UPDATE_COPYRIGHT_YEAR.
42938         * tests/test-update-copyright.sh: Test it.
42939
42940         update-copyright: convert 2-digit to 4-digit years
42941         * build-aux/update-copyright: Implement and document.
42942         * tests/test-update-copyright.sh: Update.
42943
42944 2009-08-14  Jim Meyering  <meyering@redhat.com>
42945
42946         test-exclude: avoid coreutils "make check" failure
42947         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
42948         just as in test-argmatch.c.
42949
42950 2009-08-13  Eric Blake  <ebb9@byu.net>
42951
42952         test-dup2: fix bad assumption
42953         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
42954         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
42955
42956         test-version-etc: fix CRLF portability issue
42957         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
42958         recognize \r.
42959         * tests/test-argp-version-etc-1.sh: Likewise.
42960
42961         getopt: update client modules
42962         * modules/argp (Depends-on): Use getopt-gnu.
42963         * modules/git-merge-changelog (Depends-on): Likewise.
42964         * modules/long-options (Depends-on): Likewise.
42965         * modules/xstrtol (Depends-on): Likewise.
42966
42967 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42968
42969         * tests/test-version-etc.sh: Don't fail on different
42970         project/version.  Don't fail on CRLF differences.  Rewrite to use
42971         multiple -e instead of multiple sed forks, suggested by Eric Blake
42972         <ebb9@byu.net>.
42973         * tests/test-argp-version-etc-1.sh: Likewise.
42974
42975 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42976
42977         * tests/test-version-etc.sh: Don't fail on different
42978         project/version.
42979
42980 2009-08-12  Bruno Haible  <bruno@clisp.org>
42981
42982         Tests for modules 'getopt-posix', 'getopt-gnu'.
42983         * modules/getopt-posix-tests: New file.
42984         * tests/test-getopt.c: New file.
42985         * tests/test-getopt.h: New file.
42986         * tests/test-getopt_long.h: New file.
42987
42988         New modules 'getopt-posix', 'getopt-gnu'.
42989         * modules/getopt-gnu: New file, renamed from modules/getopt.
42990         * modules/getopt-posix: New file.
42991         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
42992         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
42993         (gl_GETOPT): Remove macro.
42994         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
42995         Disable the test against BSD systems that declare optreset. Test
42996         against mingw bug. Test against lack of support of optional arguments
42997         on many platforms.
42998         * doc/glibc-headers/getopt.texi: Update module name and list of
42999         relevant platforms.
43000         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
43001         'getopt-gnu' and more portability problems.
43002         * NEWS: Mention the changes.
43003
43004 2009-08-12  Bruno Haible  <bruno@clisp.org>
43005
43006         Ensure that optarg etc. get declared by <unistd.h>.
43007         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
43008         AC_USE_SYSTEM_EXTENSIONS.
43009         * modules/getopt (Depends-on): Add 'extensions'.
43010
43011 2009-08-12  Bruno Haible  <bruno@clisp.org>
43012
43013         Avoid test link errors.
43014         * modules/pipe-filter-ii-tests (Makefile.am): Define
43015         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
43016         * modules/pipe-filter-gi-tests (Makefile.am): Define
43017         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
43018         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43019
43020 2009-08-12  Bruno Haible  <bruno@clisp.org>
43021
43022         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
43023         gl_GETOPT_SUBSTITUTE before.
43024         (gl_GETOPT): Use it.
43025         * m4/argp.m4 (gl_ARGP): Update.
43026         Reported by Sergey Poznyakoff.
43027
43028         * m4/getopt.m4: Reorder macros.
43029         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
43030         (gl_GETOPT_SUBSTITUTE): Remove macro.
43031
43032 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43033
43034         Minor improvement in gitlog-to-changelog
43035
43036         * build-aux/gitlog-to-changelog: New option `--format' makes
43037         output format string configurable.
43038
43039 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43040
43041         Optimize exclude: use hash tables for non-wildcard patterns.
43042
43043         * lib/exclude.c: Include hash.h and mbuiter.h
43044         (struct exclude_pattern, exclude_segment): New data types.
43045         (struct exclude): Rewrite.
43046         (fnmatch_pattern_has_wildcards): New function.
43047         (new_exclude_segment, free_exclude_segment): New functions.
43048         (excluded_file_pattern_p, excluded_file_name_p): New functions.
43049         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
43050         * lib/exclude.h (is_fnmatch_pattern): New prototype.
43051         * modules/exclude: Depend on hash and mbuiter.
43052
43053         * modules/exclude-tests: New file.
43054         * tests/test-exclude.c: New file.
43055         * tests/test-exclude1.sh: New file.
43056         * tests/test-exclude2.sh: New file.
43057         * tests/test-exclude3.sh: New file.
43058         * tests/test-exclude4.sh: New file.
43059         * tests/test-exclude5.sh: New file.
43060         * tests/test-exclude6.sh: New file.
43061         * tests/test-exclude7.sh: New file.
43062
43063 2009-08-12  Bruno Haible  <bruno@clisp.org>
43064
43065         Ensure that getopt() gets declared by <unistd.h>.
43066         * lib/unistd.in.h: Conditionally include getopt.h.
43067         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
43068         Set GNULIB_UNISTD_H_GETOPT.
43069         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43070         GNULIB_UNISTD_H_GETOPT.
43071         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
43072
43073 2009-08-12  Bruno Haible  <bruno@clisp.org>
43074
43075         Clarify logic.
43076         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
43077         gl_replace_getopt instead of GETOPT_H.
43078
43079 2009-08-12  Bruno Haible  <bruno@clisp.org>
43080
43081         * m4/getopt.m4: Add comments.
43082
43083 2009-08-12  Bruno Haible  <bruno@clisp.org>
43084
43085         Disable multithread support by default on Cygwin 1.5.x.
43086         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
43087         set gl_use_threads=no if not specified otherwise.
43088
43089 2009-08-11  Bruno Haible  <bruno@clisp.org>
43090
43091         Avoid compilation error on NetBSD 5.0.
43092         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
43093         * tests/test-stdio.c: Likewise.
43094         * tests/test-stdlib.c: Likewise.
43095         * tests/test-string.c: Likewise.
43096         * tests/test-unistd.c: Likewise.
43097         Reported by Greg Troxel <gdt@ir.bbn.com>
43098         at <https://savannah.gnu.org/support/?106973>.
43099
43100 2009-08-11  Bruno Haible  <bruno@clisp.org>
43101
43102         * modules/dup2-tests (Depends-on): Remove close.
43103
43104         Undo 2009-07-19 commit.
43105         * modules/acl-tests (Depends-on): Remove close.
43106         * modules/binary-io-tests (Depends-on): Likewise.
43107         * modules/closein-tests (Depends-on): Likewise.
43108         * modules/flock-tests (Depends-on): Likewise.
43109         * modules/fsync-tests (Depends-on): Likewise.
43110         * modules/lseek-tests (Depends-on): Likewise.
43111         * modules/pipe-tests (Depends-on): Likewise.
43112         * modules/posix_spawn-tests (Depends-on): Likewise.
43113         * modules/posix_spawnp-tests (Depends-on): Likewise.
43114         * modules/stat-time-tests (Depends-on): Likewise.
43115         * modules/yesno-tests (Depends-on): Likewise.
43116
43117 2009-08-10  Bruno Haible  <bruno@clisp.org>
43118
43119         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
43120
43121 2009-08-10  Bruno Haible  <bruno@clisp.org>
43122
43123         Fix a gcc warning.
43124         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
43125
43126 2009-08-10  Bruno Haible  <bruno@clisp.org>
43127
43128         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
43129         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
43130         not only the first time.
43131         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
43132         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
43133         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
43134         is 1, not only the the first time.
43135
43136 2009-08-10  Bruno Haible  <bruno@clisp.org>
43137
43138         Make it possible to use module 'gethostname' without module 'close'.
43139         * lib/unistd.in.h (close): Evoke a link error only if
43140         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
43141         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43142         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43143         * modules/unistd (Makefile.am): Substitute
43144         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43145         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
43146         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
43147         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
43148         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43149         * modules/sys_ioctl (Makefile.am): Substitute
43150         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43151         * modules/socket (configure.ac): On native Windows, set
43152         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
43153         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43154         Reported by Sam Steingold <sds@gnu.org>.
43155
43156 2009-08-10  Bruno Haible  <bruno@clisp.org>
43157
43158         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
43159         * modules/ioctl (configure.ac): Likewise.
43160
43161 2009-08-10  Bruno Haible  <bruno@clisp.org>
43162
43163         Avoid collision between gnulib wrapper and libintl wrapper.
43164         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
43165         already defined in intl/printf.c.
43166         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
43167         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
43168
43169 2009-08-09  Bruno Haible  <bruno@clisp.org>
43170
43171         Make <sys/select.h> really self-contained, also on Solaris 10.
43172         * lib/sys_select.in.h: Include <string.h>.
43173         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
43174         Solaris 10 problem.
43175         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
43176         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
43177         Reported by Jim Meyering.
43178
43179 2009-08-09  Bruno Haible  <bruno@clisp.org>
43180
43181         Avoid warnings from 'aclocal' that are due to a use of macro name
43182         AM_XGETTEXT_OPTION that is not defined in automake.
43183         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
43184         automake.
43185         * modules/error (configure.ac): Likewise.
43186         * modules/propername (configure.ac): Likewise.
43187         * modules/vasprintf (configure.ac): Likewise.
43188         * modules/verror (configure.ac): Likewise.
43189         * modules/xprintf (configure.ac): Likewise.
43190         * modules/xvasprintf (configure.ac): Likewise.
43191
43192 2009-08-08  Bruno Haible  <bruno@clisp.org>
43193
43194         Avoid compilation error in C++ mode.
43195         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
43196         Reported by Sam Steingold <sds@gnu.org>.
43197
43198 2009-08-08  Bruno Haible  <bruno@clisp.org>
43199
43200         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
43201         for the various Unix platforms.
43202         * doc/posix-headers/limits.texi: Update platforms list regarding
43203         HOST_NAME_MAX.
43204         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43205
43206 2009-08-07  Jim Meyering  <meyering@redhat.com>
43207
43208         selinux-at: fix typo in a comment
43209         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
43210         Spotted by Paolo Bonzini.
43211
43212         selinux-at: remove redundant m4 code, add documentation
43213         * modules/selinux-at (configure.ac): Remove redundant code.
43214         LIB_SELINUX is already set via the dependent module, selinux-h.
43215         (Include): Add quotes around selinux-at.h.
43216         * lib/selinux-at.h: Add documentation.
43217         Reported by Bruno Haible in
43218         http://marc.info/?l=gnulib-bug&m=124958988300749
43219
43220 2009-08-07  Bruno Haible  <bruno@clisp.org>
43221
43222         Avoid link error on MacOS X 10.3 and 10.4.
43223         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
43224         on non-ELF systems.
43225         * lib/argp-pv.c (argp_program_version): Likewise.
43226         Reported by Simon Josefsson.
43227
43228 2009-08-07  Simon Josefsson  <simon@josefsson.org>
43229
43230         * tests/test-version-etc.sh: Use $EXEEXT.
43231
43232 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
43233
43234         update-copyright: update documentation to point to maint.mk
43235         * build-aux/update-copyright: Here.
43236
43237 2009-08-06  Jim Meyering  <meyering@redhat.com>
43238
43239         maint.mk: support update-copyright-local
43240         * top/maint.mk (update-copyright-local): Define place-holder.
43241         (update-copyright): Depend on $(update-copyright-local).
43242
43243 2009-08-06  Jim Meyering  <meyering@redhat.com>
43244
43245         selinux-at: new module
43246         Initially written for coreutils, this module will soon be
43247         used by findutils, too.
43248         * MODULES.html.sh [Misc]: Add selinux-at.
43249         * lib/selinux-at.h: New file, from coreutils.
43250         * lib/selinux-at.c: Likewise.
43251         * modules/selinux-at: Likewise.
43252         (License): Change from LGPL to GPL, since it depends
43253         on the GPL'd openat module.
43254
43255         doc: update README
43256         * README: Remove references to cogito.
43257         Remove cvs-repo-updating instructions from 2007.
43258         Don't imply that CVS is better if you have limited disk space.
43259
43260 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43261
43262         update-copyright: support C-style comments
43263         * build-aux/update-copyright: Implement and document.
43264         * tests/test-update-copyright.sh: Test.
43265
43266 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43267
43268         update-copyright: support omitted "(C)"
43269         * build-aux/update-copyright: Implement and document.  Also,
43270         allow variable whitespace before "(C)".
43271         * tests/test-update-copyright.sh: Test.
43272
43273 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43274
43275         update-copyright: don't trip on non-FSF copyright statements
43276         * build-aux/update-copyright: Fix so that the first correctly
43277         formatted FSF copyright statement is recognized no matter what
43278         appears before it.  Update documentation.
43279         * tests/test-update-copyright.sh: Test that.
43280
43281 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43282
43283         update-copyright: clean up code a little
43284         * build-aux/update-copyright: Append "_re" to the name of any
43285         variable holding a regular expression.
43286         Replace "old" and "new" with "stmt" in variable names.
43287         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
43288         handled correctly.
43289         Format code more consistently.
43290
43291 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43292
43293         update-copyright-tests: improve portability
43294         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
43295         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
43296
43297 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43298
43299         update-copyright: support @copyright{} and &copy;
43300         * build-aux/update-copyright: Implement and document.
43301         * tests/test-update-copyright.sh: Test.
43302
43303 2009-08-04  Jim Meyering  <meyering@redhat.com>
43304
43305         update-copyright-tests: correctly test EOL=\r\n handling
43306         * tests/test-update-copyright.sh: Put \r at the end of some lines
43307         for the dos-eol tests.  Based on a patch by Joel E. Denny.
43308
43309         maint.mk: make update-copyright exclusion list more configurable
43310         * top/maint.mk (update-copyright): Default to excluding COPYING,
43311         but allow an override, in case someone does want to update that file.
43312
43313         maint.mk: don't update copyright date in COPYING
43314         * top/maint.mk (update-copyright): Exclude COPYING.
43315
43316         maint.mk: add a copyright-updating rule
43317         * top/maint.mk (update-copyright): New rule.
43318         Derived from coreutils/Makefile.am.
43319
43320         update-copyright: rename some variables
43321         * build-aux/update-copyright: Rename a few variables for clarity.
43322         Tweak syntax.  List Joel E. Denny as coauthor.
43323
43324 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43325
43326         update-copyright: fix bug for 2-digit last year and add tests
43327         * build-aux/update-copyright: Fix bug.
43328         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
43329         specified.
43330         * modules/update-copyright-tests: New
43331         * tests/test-update-copyright.sh: New.
43332
43333 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43334
43335         update-copyright: handle leading tabs in line prefix
43336         * build-aux/update-copyright: Count leading tabs as 8 spaces
43337         when computing margin.  This helps with the formatting of
43338         ChangeLogs, for example.
43339         Fix documentation a little.
43340
43341 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43342
43343         update-copyright: support EOL=\r\n
43344         * build-aux/update-copyright: Implement that.
43345
43346 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43347
43348         update-copyright: automatically format copyright statements
43349         * build-aux/update-copyright: Implement that.
43350         Also, be a little more predictable and safer by always failing
43351         when the full copyright format is not perfectly recognized as an
43352         unbroken whole.  Discussed at
43353         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
43354         Rewrite documentation.
43355
43356 2009-08-03  Bruno Haible  <bruno@clisp.org>
43357
43358         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
43359
43360 2009-08-02  Bruno Haible  <bruno@clisp.org>
43361
43362         Tests for module 'uname'.
43363         * modules/uname-tests: New file.
43364         * tests/test-uname.c: New file.
43365
43366         New module 'uname'.
43367         * lib/uname.c: New file.
43368         * m4/uname.m4: New file.
43369         * modules/uname: New file.
43370         * doc/posix-functions/uname.texi: Mention the new module.
43371
43372 2009-08-02  Bruno Haible  <bruno@clisp.org>
43373
43374         Tests for module 'sys_utsname'.
43375         * modules/sys_utsname-tests: New file.
43376         * tests/test-sys_utsname.c: New file.
43377
43378         New module 'sys_utsname'.
43379         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
43380         * m4/sys_utsname_h.m4: New file.
43381         * modules/sys_utsname: New file.
43382         * doc/posix-headers/sys_utsname.texi: Mention the new module.
43383
43384 2009-08-02  Bruno Haible  <bruno@clisp.org>
43385
43386         Implicitly initialize the sockets library.
43387         * lib/gethostname.c: Include sockets.h.
43388         (rpl_gethostname): Invoke gl_sockets_startup.
43389         * lib/socket.c: Include sockets.h.
43390         (rpl_socket): Invoke gl_sockets_startup.
43391         * modules/gethostname (Depends-on): Add sockets.
43392         * modules/socket (Depends-on): Likewise.
43393         * tests/test-poll.c: Don't include sockets.h.
43394         (main): Don't invoke gl_sockets_startup.
43395         * tests/test-select.c: Don't include sockets.h.
43396         (main): Don't invoke gl_sockets_startup.
43397
43398 2009-08-02  Bruno Haible  <bruno@clisp.org>
43399
43400         Allow multiple calls to gl_sockets_startup.
43401         * lib/sockets.c (initialized_sockets_version): New variable.
43402         (gl_sockets_startup): Do nothing if already called for this or a higher
43403         version.
43404         (gl_sockets_cleanup): Reset initialized_sockets_version.
43405
43406 2009-08-03  Simon Josefsson  <simon@josefsson.org>
43407
43408         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
43409         different project/version.
43410
43411 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
43412             Bruno Haible  <bruno@clisp.org>
43413
43414         Tests for module 'pipe-filter-gi'.
43415         * modules/pipe-filter-gi-tests: New file.
43416         * tests/test-pipe-filter-gi1.sh: New file.
43417         * tests/test-pipe-filter-gi1.c: New file.
43418         * tests/test-pipe-filter-gi2.sh: New file.
43419         * tests/test-pipe-filter-gi2-main.c: New file.
43420         * tests/test-pipe-filter-gi2-child.c: New file.
43421
43422         New module 'pipe-filter-gi'.
43423         * lib/pipe-filter-gi.c: New file.
43424         * modules/pipe-filter-gi: New file.
43425
43426 2009-08-02  Bruno Haible  <bruno@clisp.org>
43427             Paolo Bonzini  <bonzini@gnu.org>
43428
43429         Tests for module 'pipe-filter-ii'.
43430         * modules/pipe-filter-ii-tests: New file.
43431         * tests/test-pipe-filter-ii1.sh: New file.
43432         * tests/test-pipe-filter-ii1.c: New file.
43433         * tests/test-pipe-filter-ii2.sh: New file.
43434         * tests/test-pipe-filter-ii2-main.c: New file.
43435         * tests/test-pipe-filter-ii2-child.c: New file.
43436
43437         New module 'pipe-filter-ii'.
43438         * lib/pipe-filter.h: New file.
43439         * lib/pipe-filter-ii.c: New file.
43440         * lib/pipe-filter-aux.h: New file.
43441         * modules/pipe-filter-ii: New file.
43442
43443 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43444
43445         * lib/gc-libgcrypt.c: Change copyright to FSF.
43446         * lib/gc-gnulib.c: Likewise.
43447
43448 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
43449
43450         * lib/gethostname.c: Include limits.h.
43451
43452 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43453             Bruno Haible  <bruno@clisp.org>
43454
43455         Ensure HOST_NAME_MAX as part of the gethostname module.
43456         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
43457         define also HOST_NAME_MAX.
43458         * tests/test-gethostname.c: Include <limits.h>.
43459         (main): Check also HOST_NAME_MAX.
43460         * doc/posix-headers/limits.texi: Document the mingw problem.
43461
43462 2009-08-02  Bruno Haible  <bruno@clisp.org>
43463
43464         * lib/gethostname.c (gethostname): Fix handling of large len argument.
43465         Add comments.
43466
43467 2009-03-31  Simon Josefsson  <simon@josefsson.org>
43468
43469         * lib/gethostname.c: Add Windows wrapper.
43470         * m4/gethostname.m4: Look for gethostname in -lws2_32.
43471         * modules/gethostname: Depend on sys_socket & errno, for also
43472         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
43473         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
43474
43475 2009-07-31  Jim Meyering  <meyering@redhat.com>
43476
43477         getloadavg: fix symbol name in comment
43478         * lib/getloadavg.c: Correct a typo I introduced when adding
43479         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
43480         Matt Kraai spotted the problem.
43481
43482 2009-07-29  Matt Kraai  <mkraai@beckman.com>
43483
43484         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
43485         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
43486         code also if ! defined N_NAME_POINTER.
43487         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
43488         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
43489         but the n_name member is a 12-byte array.
43490
43491 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
43492
43493         update-copyright: generalize comment handling
43494         * build-aux/update-copyright: Handle copyright statements
43495         within more comment styles.
43496         Document usage.
43497         Report any file with an external copyright holder or parse failure.
43498
43499 2009-07-29  Jim Meyering  <meyering@redhat.com>
43500
43501         mktime: correct setting of REPLACE_MKTIME
43502         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
43503
43504         update-copyright: new module
43505         * modules/update-copyright: New file.
43506         * build-aux/update-copyright: New file.
43507         * MODULES.html.sh (maint+release support): Add update-copyright.
43508
43509 2009-07-27  Bruno Haible  <bruno@clisp.org>
43510
43511         Fix compilation error when <ctime> is used and mktime is replaced.
43512         * lib/time.in.h (mktime): New declaration.
43513         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
43514         REPLACE_MKTIME instead of defining mktime in config.h.
43515         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
43516         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
43517         Reported by Ross McFarland <rwmcfa1@neces.com>.
43518
43519 2009-07-27  Bruno Haible  <bruno@clisp.org>
43520
43521         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
43522         Reported by Matt Kraai <mkraai@beckman.com>.
43523
43524 2009-07-25  Jim Meyering  <meyering@redhat.com>
43525
43526         maint.mk: avoid warnings about missing files
43527         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
43528         diagnostic when .prev-version does not exist.
43529         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
43530         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
43531         nonexistent cfg.mk.
43532         Suggestions from Simon Josefsson.
43533
43534 2009-07-25  Bruno Haible  <bruno@clisp.org>
43535
43536         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
43537         defined as macros. Needed on QNX 6.4.1.
43538         Reported by Matt Kraai <mkraai@beckman.com>.
43539
43540 2009-07-23  Jim Meyering  <meyering@redhat.com>
43541
43542         maint.mk: invoke "make dist" with a working value of XZ_OPT
43543         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
43544
43545 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
43546
43547         Make fseeko.c compile on QNX.
43548         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
43549
43550 2009-07-22  Peter Simons  <simons@cryp.to>
43551
43552         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
43553         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
43554         * lib/md4.h: Likewise.
43555         * lib/md5.h: Likewise.
43556         * lib/sha1.h: Likewise.
43557         * lib/sha256.h: Likewise.
43558         * lib/sha512.h: Likewise.
43559
43560         tests-sha1: don't assign literal string to 'char *' variable
43561         * tests/test-sha1.c (main): Declare locals with "const" to match
43562         attributes of the right hand side.
43563
43564 2009-07-21  Eric Blake  <ebb9@byu.net>
43565
43566         dup2: fix more mingw problems
43567         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
43568         fd to itself.
43569         * doc/posix-functions/dup2.texi (dup2): Document the bug.
43570         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
43571         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
43572         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
43573         care of mingw bugs.
43574
43575 2009-07-21  Jim Meyering  <meyering@redhat.com>
43576
43577         vc-list-files: avoid failure when /bin/sh is dash
43578         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
43579         On some Debian based systems, /bin/sh is a symlink to dash, and running
43580         this command would omit the "/" following each 'tests' prefix:
43581           dash -x build-aux/vc-list-files -C . tests
43582         That is because bash and dash work differently:
43583           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
43584           bash ok
43585           dash odd
43586
43587 2009-07-21  Eric Blake  <ebb9@byu.net>
43588
43589         dup2-tests: test previous patch
43590         * modules/dup2-tests: New file.
43591         * tests/test-dup2.c: Likewise.
43592         * tests/test-open.c (main): Avoid unspecified behavior.
43593         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
43594         test.
43595
43596         dup2: work around mingw and cygwin 1.5 bug
43597         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
43598         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43599         * modules/unistd (Makefile.am): Substitute it.
43600         * lib/unistd.in.h (dup2): Declare the replacement.
43601         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
43602         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
43603         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
43604         * modules/execute (Depends-on): Add dup2.
43605         * modules/fseterr (Depends-on): Likewise.
43606         * modules/pipe (Depends-on): Likewise.
43607         * modules/posix_spawn-internal (Depends-on): Likewise.
43608
43609 2009-07-21  Bruno Haible  <bruno@clisp.org>
43610
43611         * modules/.gitattributes: New file.
43612
43613 2009-07-20  Bruno Haible  <bruno@clisp.org>
43614
43615         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
43616         (main): Use it.
43617
43618 2009-07-20  Eric Blake  <ebb9@byu.net>
43619
43620         test-pipe: make a bit more robust.
43621         * tests/test-pipe.c (myerr): Allow error messages regardless of
43622         what we do to stderr.
43623         (test_pipe): Rearrange to avoid deadlock.
43624         (child_main): Try a larger read, to ensure we avoided deadlock.
43625         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
43626         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
43627         if misused.
43628
43629 2009-07-19  Jim Meyering  <meyering@redhat.com>
43630
43631         fts: avoid false-positive cycle-detection
43632         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
43633         for each new command line argument.
43634
43635 2009-07-19  Bruno Haible  <bruno@clisp.org>
43636
43637         Fix build error on mingw with the modules sys_select and unistd.
43638         * modules/acl-tests (Depends-on): Add close.
43639         * modules/binary-io-tests (Depends-on): Likewise.
43640         * modules/closein-tests (Depends-on): Likewise.
43641         * modules/flock-tests (Depends-on): Likewise.
43642         * modules/fsync-tests (Depends-on): Likewise.
43643         * modules/lseek-tests (Depends-on): Likewise.
43644         * modules/pipe-tests (Depends-on): Likewise.
43645         * modules/posix_spawn-tests (Depends-on): Likewise.
43646         * modules/posix_spawnp-tests (Depends-on): Likewise.
43647         * modules/stat-time-tests (Depends-on): Likewise.
43648         * modules/yesno-tests (Depends-on): Likewise.
43649
43650 2009-07-19  Bruno Haible  <bruno@clisp.org>
43651
43652         Unify conditionals.
43653         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
43654         macros, not at the compiler macros.
43655         * lib/pipe.c: Likewise.
43656         * lib/execute.c: Likewise.
43657         * lib/spawni.c: Likewise.
43658
43659 2009-07-19  Bruno Haible  <bruno@clisp.org>
43660
43661         Fix handling of closed stdin/stdout/stderr on mingw.
43662         * lib/w32spawn.h: Include unistd.h.
43663         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
43664         file descriptor with O_NOINHERIT flag.
43665         (fd_safer_noinherit): New function, based on fd-safer.c.
43666         (dup_safer_noinherit): New function, based on dup-safer.c.
43667         (undup_safer_noinherit): New function.
43668         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
43669         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
43670         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
43671         instead of fd_safer.
43672         * tests/test-pipe.c: Include <windows.h>.
43673         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
43674         result.
43675
43676         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
43677         from main.
43678         (test_pipe): Pass an extra argument for disambiguation.
43679         (main): Invoke parent_main or child_main.
43680
43681         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
43682         consistently.
43683
43684 2009-07-18  Eric Blake  <ebb9@byu.net>
43685
43686         test-pipe: fix mingw build
43687         * tests/test-pipe.c (main): Avoid fcntl on mingw.
43688
43689 2009-07-18  Bruno Haible  <bruno@clisp.org>
43690
43691         * modules/pipe-tests (Makefile.am): Fix typo.
43692
43693 2009-07-18  Eric Blake  <ebb9@byu.net>
43694
43695         error: fix mingw build
43696         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
43697         Reported by Bruno Haible.
43698
43699         error: avoid undefined use of stdout
43700         * lib/error.c (error, error_at_line): Check that fd 1 is open
43701         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
43702         is handling faults and the close_stdout module wants to report the
43703         detection of closed stdout as an error.
43704
43705 2009-07-17  Eric Blake  <ebb9@byu.net>
43706
43707         pipe: be robust in face of closed fds
43708         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
43709         should cause child to misbehave.
43710         * modules/pipe-tests: New module.
43711         * tests/test-pipe.c: New file.
43712         * tests/test-pipe.sh: New file.
43713         Reported by Akim Demaille.
43714
43715 2009-07-14  Bruno Haible  <bruno@clisp.org>
43716
43717         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
43718         Reported by anonymous kc.
43719
43720 2009-07-07  Jim Meyering  <meyering@redhat.com>
43721
43722         maint.mk: don't look for translatable strings in *.m4 or *.mk
43723         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
43724         when searching for translatable strings.
43725
43726 2009-07-05  Jim Meyering  <meyering@redhat.com>
43727
43728         remove superfluous parentheses in STREQ definition
43729         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
43730         * lib/getugroups.c (STREQ): Likewise.
43731         * lib/fnmatch.c (STREQ): Likewise.
43732         Spotted by Bruno Haible.
43733
43734 2009-07-04  Jim Meyering  <meyering@redhat.com>
43735
43736         argv-iter: new module
43737         * MODULES.html.sh: Add argv-iter.
43738         * lib/argv-iter.c, lib/argv-iter.h: New files.
43739         * modules/argv-iter: New file.
43740         * modules/argv-iter-tests: New file.
43741         * tests/test-argv-iter.c: Test it.
43742
43743 2009-07-04  Bruno Haible  <bruno@clisp.org>
43744
43745         Fix assertion.
43746         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
43747         contains more exact copies of a given entry than file2, leave the extra
43748         copies unpaired rather than aborting.
43749         Reported by Eric Blake.
43750
43751 2009-07-02  Bruno Haible  <bruno@clisp.org>
43752
43753         Speedup git-merge-changelog for git cherry-pick.
43754         * lib/git-merge-changelog.c (struct entries_mapping): New type.
43755         (entries_mapping_get): New function, extracted from compute_mapping.
43756         (entries_mapping_reverse_get): New function.
43757         (compute_mapping): Add a 'full' argument. Return the result in a
43758         'struct entries_mapping'.
43759         (main): Update. Access the mappings through entries_mapping_get.
43760         Reported by Eric Blake.
43761
43762 2009-07-02  Bruno Haible  <bruno@clisp.org>
43763
43764         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
43765         best_i.
43766
43767 2009-07-02  Bruno Haible  <bruno@clisp.org>
43768
43769         Speed up approximate search for matching ChangeLog entries.
43770         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
43771         argument. Call fstrcmp_bounded instead of fstrcmp.
43772         (compute_mapping, try_split_merged_entry, main): Update callers.
43773
43774 2009-07-02  Bruno Haible  <bruno@clisp.org>
43775
43776         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
43777
43778 2009-06-30  Bruno Haible  <bruno@clisp.org>
43779
43780         Reduce the number of uc_is_cased calls.
43781         * lib/unicase.h (casing_suffix_context_t): Add
43782         'first_char_except_ignorable' field.
43783         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
43784         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
43785         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
43786         Update initializer.
43787         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
43788         case-ignorable characters.
43789         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
43790         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
43791         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
43792         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
43793         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
43794
43795 2009-06-30  Bruno Haible  <bruno@clisp.org>
43796
43797         Tests for module 'unicase/ignorable'.
43798         * modules/unicase/ignorable-tests: New file.
43799         * tests/unicase/test-ignorable.c: New file, generated by
43800         gen-uni-tables.
43801
43802         Tests for module 'unicase/cased'.
43803         * modules/unicase/cased-tests: New file.
43804         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
43805         * tests/unicase/test-predicate-part1.h: New file, derived from
43806         tests/unictype/test-predicate-part1.h.
43807         * tests/unicase/test-predicate-part2.h: New file, same as
43808         tests/unictype/test-predicate-part2.h.
43809
43810         Fix evaluation of "Before C" condition of FINAL_SIGMA.
43811         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
43812         (output_casing_properties): New function.
43813         (main): Call it.
43814         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
43815         * lib/unicase/cased.c: Include unictype/bitmap.h.
43816         (uc_is_cased): Define through a bitmap lookup.
43817         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
43818         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
43819         (uc_is_case_ignorable): Define through a bitmap lookup.
43820         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
43821         lib/unictype/bitmap.h.
43822         (Depends-on): Add inline. Clean up.
43823         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
43824         lib/unictype/bitmap.h.
43825         (Depends-on): Add inline. Clean up.
43826         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
43827         recognition.
43828         * tests/unicase/test-u16-tolower.c (main): Likewise.
43829         * tests/unicase/test-u32-tolower.c (main): Likewise.
43830
43831 2009-06-30  Bruno Haible  <bruno@clisp.org>
43832
43833         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
43834         * lib/unicase/u16-casemap.c: Likewise.
43835         * lib/unicase/u32-casemap.c: Likewise.
43836
43837 2009-06-29  Bruno Haible  <bruno@clisp.org>
43838
43839         Define u32_casefold as a wrapper around u32_ct_casefold.
43840         * lib/unicase/u32-casefold.c: Update.
43841         * modules/unicase/u32-casefold (Depends-on): Add
43842         unicase/u32-ct-casefold, unicase/empty-prefix-context,
43843         unicase/empty-suffix-context. Clean up.
43844
43845         Define u16_casefold as a wrapper around u16_ct_casefold.
43846         * lib/unicase/u16-casefold.c: Update.
43847         * modules/unicase/u16-casefold (Depends-on): Add
43848         unicase/u16-ct-casefold, unicase/empty-prefix-context,
43849         unicase/empty-suffix-context. Clean up.
43850
43851         Define u8_casefold as a wrapper around u8_ct_casefold.
43852         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
43853         * lib/unicase/u8-casefold.c: Update.
43854         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
43855         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43856
43857         Define u32_totitle as a wrapper around u32_ct_totitle.
43858         * lib/unicase/u32-totitle.c: Update.
43859         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
43860         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43861
43862         Define u16_totitle as a wrapper around u16_ct_totitle.
43863         * lib/unicase/u16-totitle.c: Update.
43864         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
43865         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43866
43867         Define u8_totitle as a wrapper around u8_ct_totitle.
43868         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
43869         functions.
43870         (FUNC): Delegate to U_CT_TOTITLE.
43871         * lib/unicase/u8-totitle.c: Update.
43872         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
43873         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43874
43875         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
43876         invocation.
43877         * modules/unicase/u32-tolower (Depends-on): Add
43878         unicase/empty-prefix-context, unicase/empty-suffix-context.
43879
43880         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
43881         invocation.
43882         * modules/unicase/u16-tolower (Depends-on): Add
43883         unicase/empty-prefix-context, unicase/empty-suffix-context.
43884
43885         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
43886         * modules/unicase/u8-tolower (Depends-on): Add
43887         unicase/empty-prefix-context, unicase/empty-suffix-context.
43888
43889         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
43890         invocation.
43891         * modules/unicase/u32-toupper (Depends-on): Add
43892         unicase/empty-prefix-context, unicase/empty-suffix-context.
43893
43894         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
43895         invocation.
43896         * modules/unicase/u16-toupper (Depends-on): Add
43897         unicase/empty-prefix-context, unicase/empty-suffix-context.
43898
43899         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
43900         * modules/unicase/u8-toupper (Depends-on): Add
43901         unicase/empty-prefix-context, unicase/empty-suffix-context.
43902
43903         New module 'unicase/u32-ct-casefold'.
43904         * lib/unicase/u32-ct-casefold.c: New file.
43905         * modules/unicase/u32-ct-casefold: New file.
43906
43907         New module 'unicase/u16-ct-casefold'.
43908         * lib/unicase/u16-ct-casefold.c: New file.
43909         * modules/unicase/u16-ct-casefold: New file.
43910
43911         New module 'unicase/u8-ct-casefold'.
43912         * lib/unicase/u8-ct-casefold.c: New file.
43913         * lib/unicase/u-ct-casefold.h: New file, derived from
43914         lib/unicase/u-casefold.h.
43915         * modules/unicase/u8-ct-casefold: New file.
43916
43917         New module 'unicase/u32-ct-totitle'.
43918         * lib/unicase/u32-ct-totitle.c: New file.
43919         * modules/unicase/u32-ct-totitle: New file.
43920
43921         New module 'unicase/u16-ct-totitle'.
43922         * lib/unicase/u16-ct-totitle.c: New file.
43923         * modules/unicase/u16-ct-totitle: New file.
43924
43925         New module 'unicase/u8-ct-totitle'.
43926         * lib/unicase/u8-ct-totitle.c: New file.
43927         * lib/unicase/u-ct-totitle.h: New file, derived from
43928         lib/unicase/u-totitle.h.
43929         * modules/unicase/u8-ct-totitle: New file.
43930
43931         New module 'unicase/u32-ct-tolower'.
43932         * lib/unicase/u32-ct-tolower.c: New file.
43933         * modules/unicase/u32-ct-tolower: New file.
43934
43935         New module 'unicase/u16-ct-tolower'.
43936         * lib/unicase/u16-ct-tolower.c: New file.
43937         * modules/unicase/u16-ct-tolower: New file.
43938
43939         New module 'unicase/u8-ct-tolower'.
43940         * lib/unicase/u8-ct-tolower.c: New file.
43941         * modules/unicase/u8-ct-tolower: New file.
43942
43943         New module 'unicase/u32-ct-toupper'.
43944         * lib/unicase/u32-ct-toupper.c: New file.
43945         * modules/unicase/u32-ct-toupper: New file.
43946
43947         New module 'unicase/u16-ct-toupper'.
43948         * lib/unicase/u16-ct-toupper.c: New file.
43949         * modules/unicase/u16-ct-toupper: New file.
43950
43951         New module 'unicase/u8-ct-toupper'.
43952         * lib/unicase/u8-ct-toupper.c: New file.
43953         * modules/unicase/u8-ct-toupper: New file.
43954
43955         Add context arguments to u*_casemap functions.
43956         * lib/unicase/unicasemap.h: Include unicase.h.
43957         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
43958         suffix_context arguments.
43959         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
43960         functions.
43961         (FUNC): Add prefix_context and suffix_context arguments. Use
43962         uc_is_cased and uc_is_case_ignorable.
43963         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
43964         * lib/unicase/u16-casemap.c: Likewise.
43965         * lib/unicase/u32-casemap.c: Likewise.
43966         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
43967         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43968         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
43969         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43970         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
43971         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43972
43973         New module 'unicase/u32-suffix-context'.
43974         * lib/unicase/u32-suffix-context.c: New file.
43975         * modules/unicase/u32-suffix-context: New file.
43976
43977         New module 'unicase/u16-suffix-context'.
43978         * lib/unicase/u16-suffix-context.c: New file.
43979         * modules/unicase/u16-suffix-context: New file.
43980
43981         New module 'unicase/u8-suffix-context'.
43982         * lib/unicase/u8-suffix-context.c: New file.
43983         * lib/unicase/u-suffix-context.h: New file.
43984         * modules/unicase/u8-suffix-context: New file.
43985
43986         New module 'unicase/empty-suffix-context'.
43987         * lib/unicase/empty-suffix-context.c: New file.
43988         * modules/unicase/empty-suffix-context: New file.
43989
43990         New module 'unicase/u32-prefix-context'.
43991         * lib/unicase/u32-prefix-context.c: New file.
43992         * modules/unicase/u32-prefix-context: New file.
43993
43994         New module 'unicase/u16-prefix-context'.
43995         * lib/unicase/u16-prefix-context.c: New file.
43996         * modules/unicase/u16-prefix-context: New file.
43997
43998         New module 'unicase/u8-prefix-context'.
43999         * lib/unicase/u8-prefix-context.c: New file.
44000         * lib/unicase/u-prefix-context.h: New file.
44001         * lib/unicase/context.h: New file.
44002         * modules/unicase/u8-prefix-context: New file.
44003
44004         New module 'unicase/empty-prefix-context'.
44005         * lib/unicase/empty-prefix-context.c: New file.
44006         * modules/unicase/empty-prefix-context: New file.
44007
44008         New module 'unicase/ignorable'.
44009         * lib/unicase/ignorable.c: New file.
44010         * modules/unicase/ignorable: New file.
44011
44012         New module 'unicase/cased'.
44013         * lib/unicase/caseprop.h: New file.
44014         * lib/unicase/cased.c: New file.
44015         * modules/unicase/cased: New file.
44016
44017         New functions for case mapping of substrings.
44018         * lib/unicase.h (casing_prefix_context_t): New type.
44019         (unicase_empty_prefix_context): New variable.
44020         (u8_casing_prefix_context, u16_casing_prefix_context,
44021         u32_casing_prefix_context, u8_casing_prefixes_context,
44022         u16_casing_prefixes_context, u32_casing_prefixes_context): New
44023         declarations.
44024         (casing_suffix_context_t): New type.
44025         (unicase_empty_suffix_context): New variable.
44026         (u8_casing_suffix_context, u16_casing_suffix_context,
44027         u32_casing_suffix_context, u8_casing_suffixes_context,
44028         u16_casing_suffixes_context, u32_casing_suffixes_context,
44029         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
44030         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
44031         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
44032         declarations.
44033
44034 2009-06-28  Jim Meyering  <meyering@redhat.com>
44035
44036         boostrap: indent only with spaces
44037         * build-aux/bootstrap: Indent only with spaces, never TABs.
44038
44039         bootstrap: split long lines
44040         * build-aux/bootstrap: Keep line length < 80.
44041
44042         bootstrap: sync from coreutils
44043         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
44044         just as autoreconf does.  Verify a list of prerequisite
44045         package-name,version-number pairs if defined in bootstrap.conf.
44046         Refer to README-prereq, if prerequisites are not satisfied.
44047
44048 2009-06-27  Eric Blake  <ebb9@byu.net>
44049
44050         tests: add test for bogus NULL definition
44051         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
44052         * tests/test-stdlib.c: Likewise.
44053         * tests/test-string.c: Likewise.
44054         * tests/test-locale.c: Likewise.
44055         * tests/test-unistd.c: Likewise.
44056         * modules/stdio-tests (Depends-on): Add verify.
44057         * modules/stdlib-tests (Depends-on): Likewise.
44058         * modules/string-tests (Depends-on): Likewise.
44059         * modules/locale-tests (Depends-on): Likewise.
44060         * modules/unistd-tests (Depends-on): Likewise.
44061
44062 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
44063
44064         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
44065         self-explaining comment.
44066         * m4/selinux-selinux-h: Update serial.
44067         (gl_LIBSELINUX): New macro, adding a warning for missing development
44068         packages to code extracted from...
44069         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
44070         Add warning for missing development packages here, too.
44071
44072 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
44073
44074         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
44075
44076 2009-06-25  Eric Blake  <ebb9@byu.net>
44077
44078         version-etc: fix regression
44079         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
44080         gcc.
44081         (version_etc): Use it, to catch bugs with trailing NULL.
44082         * lib/version-etc.c (version_etc_arn): Delete unused argument.
44083         (version_etc_va): Fix logic bug.
44084         * modules/version-etc-tests: Add test.
44085         * tests/test-version-etc.c: New file.
44086         * tests/test-version-etc.sh: Likewise.
44087
44088 2009-06-25  Sam Steingold  <sds@gnu.org>
44089
44090         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
44091         mbtowc declaration.
44092
44093 2009-06-25  Eric Blake  <ebb9@byu.net>
44094
44095         fpurge: migrate into <stdio.h>
44096         * lib/fpurge.h: Delete...
44097         * lib/stdio.in.h (fpurge): ...and declare here, instead.
44098         * lib/fpurge.c (fpurge): Change declaring header.
44099         * modules/fpurge (Files): Drop deleted file.
44100         (Depends-on): Add stdio.
44101         (configure.ac): Set witness.
44102         * modules/stdio (Makefile.am): Support fpurge macros.
44103         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44104         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
44105         * lib/fflush.c: Update client.
44106         * tests/test-fpurge.c: Likewise.
44107         * NEWS: Mention the change.
44108
44109 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44110
44111         * lib/argp-version-etc.c (program_authors): Add const
44112         qualifier.
44113         * lib/version-etc.c: Fix typos in the comments.
44114         * modules/argp-version-etc: Depends on version-etc.
44115
44116 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44117
44118         argp-version-etc: new module.
44119
44120         * lib/argp-version-etc.c: New file.
44121         * lib/argp-version-etc.h: New file.
44122         * modules/argp-version-etc: New file.
44123         * modules/argp-version-etc-tests: New file.
44124         * tests/test-argp-version-etc.c: New test.
44125         * tests/test-argp-version-etc-1.sh: New test.
44126
44127 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44128
44129         Provide additional interfaces and documentation for version-etc
44130         module.
44131
44132         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
44133         interfaces.
44134         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
44135         prototypes.
44136
44137 2009-06-24  Bruno Haible  <bruno@clisp.org>
44138
44139         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
44140         HAVE_LIB${NAME} macro.
44141         Reported by Sam Steingold <sds@gnu.org>.
44142
44143 2009-06-23  Simon Josefsson  <simon@josefsson.org>
44144
44145         * modules/hash-tests (test_hash_LDADD): Link to libintl when
44146         needed.
44147
44148 2009-06-21  Bruno Haible  <bruno@clisp.org>
44149
44150         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
44151         work.
44152         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
44153         together with LIB${NAME}, LTLIB${NAME}.
44154         Reported by Sam Steingold <sds@gnu.org>.
44155
44156 2009-06-20  Jim Meyering  <meyering@redhat.com>
44157
44158         tests: make sc_require_test_exit_idiom more generic
44159         * top/maint.mk (Exit_witness_file): New overridable variable.
44160         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
44161         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
44162
44163 2009-06-19  Jim Meyering  <meyering@redhat.com>
44164
44165         hash: reverse order of src/dst parameters in an internal interface
44166         * lib/hash.c (transfer_entries): Reverse order of parameters to
44167         put DST before SRC.  Adjust callers.
44168
44169         tests: test-hash: avoid wholesale duplication
44170         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
44171         Instead, use a loop and add a single conditional.
44172
44173         tests: test-hash: allow seed selection via a command line argument
44174         * tests/test-hash.c (get_seed): New function.
44175         (main): Use it.
44176
44177 2009-06-19  Eric Blake  <ebb9@byu.net>
44178
44179         hash: avoid memory leak on allocation failure
44180         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
44181         failure.  Factor repeated algorithm...
44182         (transfer_entries): ...into new helper routine.
44183         (hash_delete): React to hash_rehash return value.
44184
44185         hash: reduce memory pressure in hash_rehash no-op case
44186         * lib/hash.c (next_prime): Avoid overflow.
44187         (hash_initialize): Factor bucket size computation...
44188         (compute_bucket_size): ...into new helper function.
44189         (hash_rehash): Use new function and open coding to reduce memory
44190         pressure, and avoid a memory leak in USE_OBSTACK code.
44191         Reported by Jim Meyering.
44192
44193 2009-06-18  Eric Blake  <ebb9@byu.net>
44194
44195         hash: make rotation more obvious
44196         * modules/hash (Depends-on): Add bitrotate and stdint.
44197         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
44198         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
44199         (SIZE_MAX): Rely on headers for definition.
44200         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
44201         (raw_hasher): Use rotr_sz.
44202         Suggested by Jim Meyering.
44203
44204         hash: fix memory leak in last patch
44205         * lib/hash.c (hash_rehash): Avoid memory leak.
44206
44207         hash: avoid no-op rehashing
44208         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
44209
44210         hash: provide default callback functions
44211         * lib/hash.c (raw_hasher, raw_comparator): New functions.
44212         (hash_initialize): Use them as defaults.
44213         * tests/test-hash.c (main): Test this.
44214
44215         hash: minor optimization
44216         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
44217         when possible.
44218         (hash_initialize): Document this promise.
44219         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
44220         * tests/test-hash.c (hash_compare_strings): Test this.
44221
44222 2009-06-18  Bruno Haible  <bruno@clisp.org>
44223
44224         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
44225         going to be replaced anyway.
44226
44227 2009-06-18  Bruno Haible  <bruno@clisp.org>
44228
44229         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
44230         in one place.
44231         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
44232         be replaced anyway.
44233
44234 2009-06-18  Eric Blake  <ebb9@byu.net>
44235
44236         hash: check for resize before insertion
44237         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
44238         threshold before insertion, so that a pathological hash_rehash
44239         that fills every bucket can still trigger another rehash.
44240
44241 2009-06-18  Jim Meyering  <meyering@redhat.com>
44242
44243         hash-tests: add a loop around the small tests
44244         * tests/test-hash.c (main): Repeat small tests with selected
44245         small initial table sizes.
44246
44247 2009-06-17  Eric Blake  <ebb9@byu.net>
44248
44249         hash: minor cleanups
44250         * lib/hash.h (hash_entry): Make opaque, by moving...
44251         * lib/hash.c (hash_entry): ...here.
44252         (hash_insert): Clarify restrictions on what can be inserted.
44253         (hash_get_next): Clarify when it is safe to remove an element
44254         during traversal.
44255         (check_tuning): Skip verification when tuning is known safe.
44256         (hash_initialize): Clarify restrictions on tuning.
44257
44258 2009-06-17  Jim Meyering  <jim@meyering.net>
44259         and Eric Blake  <ebb9@byu.net>
44260
44261         hash-tests: new module
44262         * modules/hash-tests: New file.
44263         * tests/test-hash.c: New file.
44264
44265 2009-06-17  Eric Blake  <ebb9@byu.net>
44266
44267         strstr-simple: document new module
44268         * MODULES.html.sh: Document new module.
44269
44270         strstr, strcasestr: replace on platforms with broken memchr
44271         * modules/strstr: Split into...
44272         * modules/strstr-simple: ...new module that does not care about
44273         performance, but does care about glibc bug.
44274         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
44275         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
44276         if platform memchr is broken, per Debian bug 521737.
44277         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
44278         memchr.
44279         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
44280         * doc/posix-functions/strstr.texi (strstr): Document the fix.
44281         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
44282         * modules/mountlist (Depends-on): Add strstr-simple.
44283         * modules/gen-uni-tables (Depends-on): Likewise.
44284         * modules/argz (Depends-on): Add strstr.
44285
44286 2009-06-17  Bruno Haible  <bruno@clisp.org>
44287
44288         * modules/posix_spawn-internal (Depends-on): Add errno.
44289
44290 2009-06-17  Bruno Haible  <bruno@clisp.org>
44291
44292         Define missing ESTALE on Interix 3.5.
44293         * lib/errno.in.h (ESTALE): Assign a value if missing.
44294         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
44295         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
44296         missing.
44297         * doc/posix-headers/errno.texi: Mention the Interix bug.
44298         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
44299
44300 2009-06-15  Eric Blake  <ebb9@byu.net>
44301
44302         memchr, memchr2: add valgrind exception
44303         * lib/memchr.valgrind: New file.
44304         * lib/memchr2.valgrind: New file.
44305         * modules/memchr (Files): Distribute valgrind file.
44306         * modules/memchr2 (Files): Likewise.
44307
44308         docs: memchr is no longer obsolete
44309         * MODULES.html.sh: Move memchr from obsolete to string.h section.
44310         * lib/string.in.h (memchr): Simplify logic.
44311
44312 2009-06-14  Jim Meyering  <meyering@redhat.com>
44313
44314         link-follow: fix the "checking..." message to not mention trailing slash
44315         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
44316         never considered trailing slashes.
44317
44318 2009-06-14  Bruno Haible  <bruno@clisp.org>
44319
44320         * m4/memchr.m4: Mention also the bug on IA-64.
44321         * doc/posix-functions/memchr.texi: Likewise.
44322
44323 2009-06-12  Eric Blake  <ebb9@byu.net>
44324
44325         memchr: detect broken x86_64 and alpha implementations
44326         * modules/memchr-tests (Depends-on): Move mmap detection...
44327         * modules/memchr (Depends-on): ...here.
44328         (configure.ac): Set indicator.
44329         * lib/string.in.h (memchr): Declare replacement.
44330         * modules/string (Makefile.am): Trigger replacement.
44331         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
44332         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
44333         bugs.
44334         * doc/posix-functions/memchr.texi (memchr): Document the bug.
44335         * modules/getpagesize (License): Relax license.
44336
44337 2009-06-11  Bruno Haible  <bruno@clisp.org>
44338
44339         * lib/idpriv.h: Add more references.
44340
44341 2009-06-08  Bruno Haible  <bruno@clisp.org>
44342
44343         Tests for module 'idpriv-droptemp'.
44344         * modules/idpriv-droptemp-tests: New file.
44345         * tests/test-idpriv-droptemp.sh: New file.
44346         * tests/test-idpriv-droptemp.su.sh: New file.
44347         * tests/test-idpriv-droptemp.c: New file.
44348
44349         New module 'idpriv-droptemp'.
44350         * lib/idpriv-droptemp.c: New file.
44351         * modules/idpriv-droptemp: New file.
44352
44353 2009-06-08  Bruno Haible  <bruno@clisp.org>
44354
44355         Tests for module 'idpriv-drop'.
44356         * modules/idpriv-drop-tests: New file.
44357         * tests/test-idpriv-drop.sh: New file.
44358         * tests/test-idpriv-drop.su.sh: New file.
44359         * tests/test-idpriv-drop.c: New file.
44360
44361         New module 'idpriv-drop'.
44362         * lib/idpriv.h: New file.
44363         * lib-idpriv-drop.c: New file.
44364         * m4/idpriv.m4: New file.
44365         * modules/idpriv-drop: New file.
44366
44367 2009-06-08  Bruno Haible  <bruno@clisp.org>
44368
44369         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
44370         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44371         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44372         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44373         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44374         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44375         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44376
44377 2009-06-08  Eric Blake  <ebb9@byu.net>
44378
44379         test-strstr: use memory fence, when possible
44380         * tests/test-strstr.c (main): Use memory fence, in order to be
44381         more likely to trigger Debian bug 521737.
44382         * modules/strstr-tests (Files): Pull in additional files.
44383
44384         memchr: no longer obsolete, for wider field testing
44385         * modules/memchr (Status, Notice): Delete, this module is no
44386         longer obsolete.
44387         * modules/vasnprintf (Depends-on): Add memchr.
44388
44389 2009-06-07  Jim Meyering  <meyering@redhat.com>
44390
44391         hash: declare some functions with the warn_unused_result attribute
44392         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
44393
44394 2009-06-07  Bruno Haible  <bruno@clisp.org>
44395
44396         * tests/test-alignof.c: Don't test int64_t if it does not exist.
44397         Reported by Eric Blake.
44398
44399 2009-06-06  Eric Blake  <ebb9@byu.net>
44400
44401         test-alignof: fix typo with long double
44402         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
44403         compiler error.
44404
44405 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
44406
44407         Escape non-texinfo { and }s.
44408         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
44409         markup error.
44410
44411 2009-06-04  Jim Meyering  <meyering@redhat.com>
44412
44413         gitlog-to-changelog: don't infloop on an empty commit log
44414         * build-aux/gitlog-to-changelog: Warn about an empty log message.
44415         Reported by Boris Petersen <transacid@centerim.org>.
44416
44417 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
44418
44419         version-etc: extend for packagers
44420         Add three new configure options, intended for packagers:
44421           --with-packager="packager name"
44422           --with-packager-version="packager-specific version"
44423           --with-packager-bug-reports="packager bug reporting"
44424         An example with coreutils:
44425           $ ./configure \
44426             --with-packager=Gentoo \
44427             --with-packager-bug-report=http://bugs.gentoo.org/ \
44428             --with-packager-version="patchset 1.6"
44429           $ ./src/ls --version | head -n2
44430           ls (GNU coreutils) 7.1-dirty
44431           Packaged by Gentoo (patchset 1.6)
44432         Note that the bug reporting info via --help doesn't show up because
44433         coreutils uses its own custom emit_bug_reporting_address() implementation
44434         in src/system.h.  If it didn't, it'd look like:
44435           $ ./src/ls --help | tail -n4
44436           Report bugs to <bug-coreutils@gnu.org>.
44437           Report Gentoo bugs to <http://bugs.gentoo.org/>.
44438           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
44439           General help using GNU software: <http://www.gnu.org/gethelp/>.
44440         * lib/version-etc.c: Print new information, if provided.
44441         * m4/version-etc.m4: New file.
44442         * modules/version-etc (Files): Add m4/version-etc.m4.
44443         (configure.ac): Add gl_VERSION_ETC.
44444
44445 2009-05-31  Bruno Haible  <bruno@clisp.org>
44446
44447         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
44448         and 'int64_t'.
44449         * modules/alignof-tests (Dependencies): Add stdint.
44450         Reported by Eric Blake.
44451
44452 2009-05-31  Bruno Haible  <bruno@clisp.org>
44453
44454         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
44455         restriction due to compiler bugs.
44456         Reported by Eric Blake.
44457
44458 2009-05-31  Simon Josefsson  <simon@josefsson.org>
44459             Bruno Haible  <bruno@clisp.org>
44460
44461         Fix test-alignof failure.
44462         * lib/alignof.h (alignof_slot): New macro.
44463         (alignof_type): New macro, with the same semantics as the previous
44464         'alignof'.
44465         (alignof): Alias to alignof_slot.
44466         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
44467         check that the results are usable as constant expressions.
44468
44469 2009-05-31  Bruno Haible  <bruno@clisp.org>
44470
44471         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
44472         * tests/test-memchr.c (main): Check that memchr does not read past the
44473         first occurrence of the byte.
44474         * tests/test-strstr.c (main): Update comment.
44475         Suggested by Eric Blake.
44476
44477 2009-05-30  Bruno Haible  <bruno@clisp.org>
44478
44479         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
44480         detail how to use dumpbin.
44481         Reported by David Byron <dbyron@dbyron.com>.
44482
44483 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44484
44485         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
44486
44487 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44488
44489         * m4/manywarnings.m4: Add GCC 4.4 warnings.
44490
44491 2009-05-28  Bruno Haible  <bruno@clisp.org>
44492
44493         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
44494         build-aux/ files.
44495
44496 2009-05-28  Simon Josefsson  <simon@josefsson.org>
44497
44498         * gnulib-tool (func_import): Transform license on build-aux/ files too.
44499
44500 2009-05-27  Simon Josefsson  <simon@josefsson.org>
44501
44502         * gnulib-tool (sed_transform_main_lib_file)
44503         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
44504         regexps.
44505
44506 2009-05-26  Simon Josefsson  <simon@josefsson.org>
44507
44508         * tests/test-strstr.c: Add another self-test.
44509         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
44510         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
44511
44512 2009-05-23  Bruno Haible  <bruno@clisp.org>
44513
44514         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
44515         change.
44516
44517 2009-05-21  Bruno Haible  <bruno@clisp.org>
44518
44519         Simplify use of mode_t varargs.
44520         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
44521         uses 'mode_t' or 'int'.
44522         * lib/openat.c (openat): Likewise.
44523         * lib/open-safer.c (open_safer): Likewise.
44524         * m4/mode_t.m4: New file.
44525         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
44526         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
44527         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
44528         * modules/open (Files): Add m4/mode_t.m4.
44529         * modules/openat (Files): Likewise.
44530         * modules/fcntl-safer (Files): Likewise.
44531         Suggested by Eric Blake.
44532
44533 2009-05-21  Pádraig Brady  <P@draigbrady.com>
44534
44535         * doc/glibc-functions/fallocate.texi: New file.
44536         * doc/gnulib.texi: Include it.
44537
44538 2009-05-21  Eric Blake  <ebb9@byu.net>
44539             Bruno Haible  <bruno@clisp.org>
44540
44541         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
44542         invocations.
44543         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44544
44545 2009-05-21  Eric Blake  <ebb9@byu.net>
44546             Bruno Haible  <bruno@clisp.org>
44547
44548         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
44549         include_next. Fix of 2008-11-20 commit.
44550         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
44551         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
44552         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
44553         NEXT_MATH_H.
44554         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
44555         instead of NEXT_MATH_H.
44556
44557 2009-05-21  Bruno Haible  <bruno@clisp.org>
44558
44559         Avoid redefinition warnings for SIZE_MAX.
44560         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
44561         Reported by Simon Josefsson.
44562
44563 2009-05-21  Bruno Haible  <bruno@clisp.org>
44564
44565         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
44566         AC_CACHE_VAL.
44567
44568 2009-05-20  Bruno Haible  <bruno@clisp.org>
44569
44570         Make zeroptr.h work on mingw.
44571         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
44572         mprotect.
44573         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
44574         * modules/memchr2-tests (configure.ac): Likewise.
44575         * modules/memcmp-tests (configure.ac): Likewise.
44576         * modules/memmem-tests (configure.ac): Likewise.
44577         * modules/memrchr-tests (configure.ac): Likewise.
44578         Reported by Simon Josefsson.
44579
44580 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44581
44582         * tests/test-glob.c: Include string.h for strcmp prototype.
44583
44584 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44585
44586         * modules/getdelim (Depends-on): Add explicit stdint, although it
44587         was implicitly already pulled in via realloc-posix.
44588         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
44589
44590 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44591
44592         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
44593         G. Christensen" <tgc@jupiterrise.com>.
44594         * m4/sys_socket_h.m4: Check for sa_family_t.
44595         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
44596         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
44597         * tests/test-sys_socket.c: Check that sa_family_t works.
44598
44599 2009-05-18  Eric Blake  <ebb9@byu.net>
44600
44601         maint.mk: allow gnulib_dir in VPATH build
44602         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
44603
44604 2009-05-15  Jim Meyering  <meyering@redhat.com>
44605
44606         maint.mk: Give gnulib_dir a default definition.
44607         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
44608         Thus, most packages no longer need to specify this variable in cfg.mk
44609
44610 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
44611
44612         rename.m4: fix typos that would make non-mingw cross-configure fail
44613         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
44614
44615 2009-05-13  Eric Blake  <ebb9@byu.net>
44616
44617         mmap-anon: avoid out-of-order autoconf expansion
44618         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
44619         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
44620         * modules/memchr-tests (Depends-on): Add extensions.
44621         * modules/memchr2-tests (Depends-on): Add extensions.
44622         * modules/memcmp-tests (Depends-on): Add extensions.
44623         * modules/memmem-tests (Depends-on): Add extensions.
44624         * modules/memrchr-tests (Depends-on): Add extensions.
44625
44626 2009-05-13  Bruno Haible  <bruno@clisp.org>
44627
44628         Make some tests ISO C 99 compliant.
44629         * tests/zerosize-ptr.h: New file.
44630         * tests/test-memchr.c: Include zerosize-ptr.h.
44631         (main): Use a zero-size object pointer instead of NULL.
44632         * tests/test-memchr2.c: Include zerosize-ptr.h.
44633         (main): Use a zero-size object pointer instead of NULL.
44634         * tests/test-memcmp.c: Include zerosize-ptr.h.
44635         (main): Use a zero-size object pointer instead of NULL.
44636         * tests/test-memmem.c: Include zerosize-ptr.h.
44637         (main): Use a zero-size object pointer instead of NULL.
44638         * tests/test-memrchr.c: Include zerosize-ptr.h.
44639         (main): Use a zero-size object pointer instead of NULL.
44640         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
44641         m4/mmap-anon.m4.
44642         (Depends-on): Add getpagesize.
44643         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44644         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
44645         m4/mmap-anon.m4.
44646         (Depends-on): Add getpagesize.
44647         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44648         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
44649         m4/mmap-anon.m4.
44650         (Depends-on): Add getpagesize.
44651         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44652         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
44653         m4/mmap-anon.m4.
44654         (Depends-on): Add getpagesize.
44655         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44656         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
44657         m4/mmap-anon.m4.
44658         (Depends-on): Add getpagesize.
44659         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44660
44661 2009-05-12  Bruno Haible  <bruno@clisp.org>
44662
44663         Tests for module 'alignof'.
44664         * modules/alignof-tests: New file.
44665         * tests/test-alignof.c: New file.
44666
44667 2009-05-12  Bruno Haible  <bruno@clisp.org>
44668
44669         Fix alignof macro.
44670         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
44671         vendor compilers that are always correct.
44672
44673 2009-05-12  Bruno Haible  <bruno@clisp.org>
44674
44675         Make the MAP_ANONYMOUS detection work on HP-UX 11.
44676         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
44677         not whether its fully works.
44678
44679 2009-05-12  Bruno Haible  <bruno@clisp.org>
44680
44681         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
44682
44683 2009-05-12  Jim Meyering  <meyering@redhat.com>
44684
44685         * top/maint.mk: Adjust backslash alignment.
44686
44687 2009-05-11  Simon Josefsson  <simon@josefsson.org>
44688
44689         * top/maint.mk: Make $(srcdir)/build-aux configurable.
44690
44691 2009-05-11  Eric Blake  <ebb9@byu.net>
44692
44693         argp: avoid undefined behavior
44694         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
44695         macros.
44696
44697 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44698
44699         * tests/test-vc-list-files-git.sh: Do git config of user.email and
44700         user.name to prevent git commit from complaining.
44701
44702 2009-05-10  Bruno Haible  <bruno@clisp.org>
44703
44704         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
44705         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
44706         it rewrites every file name only once.
44707         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
44708
44709 2009-05-08  Bruno Haible  <bruno@clisp.org>
44710
44711         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
44712         instead of 'max'.
44713
44714 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44715
44716         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
44717         sockaddr_storage test.
44718
44719 2009-05-07  Simon Josefsson  <simon@josefsson.org>
44720
44721         * modules/sys_socket (Makefile.am): Substitute
44722         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
44723         * m4/sys_socket_h.m4: Check for sockaddr_storage.
44724         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
44725         * tests/test-sys_socket.c: Check sockaddr_storage.
44726
44727 2009-05-08  Bruno Haible  <bruno@clisp.org>
44728
44729         New module 'alignof'.
44730         * lib/alignof.h: New file.
44731         * modules/alignof: New file.
44732
44733 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44734             Bruno Haible  <bruno@clisp.org>
44735
44736         Fix test-file-has-acl on FreeBSD.
44737         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
44738         mask is implicitly added.
44739         * tests/test-file-has-acl.c: Include <signal.h>.
44740         (main): Terminate the test after 5 seconds.
44741         * modules/acl-tests (configure.ac): Check for alarm function.
44742
44743 2009-05-04  Bruno Haible  <bruno@clisp.org>
44744
44745         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
44746         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
44747         * modules/errno (configure.ac): Drop AC_REQUIRE.
44748         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
44749         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
44750
44751 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44752
44753         * modules/glob-tests: New module.
44754         * tests/test-glob.c: Add.
44755
44756 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44757
44758         * modules/fnmatch-tests: New module.
44759         * tests/test-fnmatch.c: Add.
44760
44761 2009-05-04  Eric Blake  <ebb9@byu.net>
44762
44763         maint: make the new no-submodule-changes rule VPATH-safe
44764         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
44765
44766 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44767             Bruno Haible  <bruno@clisp.org>
44768
44769         acl: Fix infinite loop on FreeBSD.
44770         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
44771         of return value from acl_get_entry.
44772         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
44773         Likewise.
44774
44775 2009-05-03  Bruno Haible  <bruno@clisp.org>
44776
44777         * lib/acl-internal.h (acl_entries): Clarify return value.
44778         * lib/acl_entries.c (acl_entries): Likewise.
44779
44780 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44781
44782         Bug fix in acl module.
44783         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
44784
44785 2009-05-03  Bruno Haible  <bruno@clisp.org>
44786
44787         Create gperf-generated file in the source dir, not in the build dir.
44788         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
44789         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
44790         * modules/unicase/locale-language (unicase/locale-languages.h):
44791         Likewise.
44792         * modules/unicase/special-casing (unicase/special-casing-table.h):
44793         Likewise.
44794         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
44795         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
44796         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
44797         Reported by Ralf Wildenhues.
44798
44799 2009-05-03  Bruno Haible  <bruno@clisp.org>
44800
44801         * modules/fnmatch (Description, configure.ac): Taken from
44802         fnmatch-posix.
44803         * modules/fnmatch-posix: Turn into a symbolic reference to the
44804         'fnmatch' module, and deprecate.
44805         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
44806
44807 2009-05-03  Bruno Haible  <bruno@clisp.org>
44808
44809         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
44810         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
44811         Reported by Ralf Wildenhues.
44812
44813 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44814
44815         * m4/fnmatch.m4: Fix fnmatch re-define.
44816
44817 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44818
44819         priv-set: new module and tests; adapt write-any-file
44820         * lib/priv-set.c: New file.
44821         * lib/priv-set.h: New file.
44822         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
44823         * lib/write-any-file.c: Simplify by using priv-set module.
44824         * m4/priv-set.m4: New file.
44825         * modules/priv-set: New file.
44826         * modules/unlinkdir: Add dependency on priv-set module.
44827         * modules/write-any-file: Likewise.
44828
44829         Tests for module 'priv-set'.
44830         * modules/priv-set-tests: New file.
44831         * tests/test-priv-set.c: New file.
44832
44833 2009-05-03  Jim Meyering  <meyering@redhat.com>
44834             Bruno Haible  <bruno@clisp.org>
44835
44836         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
44837         use the converted UTF-8 variant of the name instead.
44838
44839 2009-05-03  Jim Meyering  <meyering@redhat.com>
44840
44841         tests: tighten some getdate tests
44842         * tests/test-getdate.c (main): Tighten tests: require equality,
44843         not just greater than.  Set TZ envvar to UTC0.
44844
44845 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
44846
44847         getdate: correctly interpret "next monday" when run on a Monday
44848         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
44849         that e.g., "next tues" (when run on a tuesday) results in a date
44850         that is one week in the future, and not today's date.
44851         I.e., add a week when the wday is the same as the current one.
44852         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
44853         and earlier by Martin Bernreuther and Jan Minář.
44854         * tests/test-getdate.c (main): Check that "next DAY" is always in
44855         the future and that "last DAY" is always in the past.
44856
44857 2009-05-02  Jim Meyering  <meyering@redhat.com>
44858
44859         build: ensure that a release build fails when a submodule is unclean
44860         * top/maint.mk (no-submodule-changes): New rule.
44861         (alpha beta major): Depend on it.
44862
44863 2009-05-02  Bruno Haible  <bruno@clisp.org>
44864
44865         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
44866         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
44867         shell variable gl_fnmatch_required to detect which variant is
44868         requested.
44869         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
44870         gl_FUNC_FNMATCH_POSIX.
44871         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
44872         exclude fnmatch-posix.
44873
44874 2009-05-02  Bruno Haible  <bruno@clisp.org>
44875
44876         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
44877         * modules/mbsrtowcs (License): Change to LGPLv2+.
44878         * modules/strnlen1 (License): Likewise.
44879         Reported by Simon Josefsson.
44880
44881 2009-05-02  Bruno Haible  <bruno@clisp.org>
44882
44883         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
44884         "cross".
44885         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
44886         gnulib-tool was called with option --source-base=lib.
44887
44888 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44889
44890         Use automake *-local hooks without commands, for extensibility.
44891         * modules/localcharset (Makefile.am): Rename install-exec-local
44892         rule to install-exec-localcharset, and make it a prerequisite of
44893         install-exec-local.  Likewise, rename the uninstall-local rule to
44894         uninstall-localcharset, and make it a prerequisite of the former.
44895
44896 2009-05-01  Bruno Haible  <bruno@clisp.org>
44897
44898         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
44899         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44900         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
44901         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
44902         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
44903         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44904         m4/locale-zh.m4, m4/codeset.m4.
44905
44906         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44907         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
44908         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44909         m4/locale-zh.m4.
44910
44911         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
44912         REPLACE_WCRTOMB if mbstate_t must be replaced.
44913         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
44914         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
44915
44916 2009-05-01  Bruno Haible  <bruno@clisp.org>
44917
44918         Avoid compiler warnings when redefining macros defined by <libintl.h>.
44919         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
44920         dngettext, dcngettext, textdomain, bindtextdomain,
44921         bind_textdomain_codeset): Undefine before redefining.
44922
44923 2009-04-30  Bruno Haible  <bruno@clisp.org>
44924
44925         Fix bug introduced on 2009-04-25.
44926         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
44927         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
44928         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
44929         is defined.
44930         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
44931         is defined.
44932         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
44933         is defined.
44934         Reported by Elbert_Pol <elbert.pol@gmail.com>.
44935
44936 2009-04-28  Bruno Haible  <bruno@clisp.org>
44937
44938         Comment tweaks.
44939         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
44940         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
44941         * lib/unicase.h (u*_casexfrm): Likewise.
44942         Reported by Paolo Bonzini.
44943
44944 2009-04-28  Bruno Haible  <bruno@clisp.org>
44945
44946         Fix a compilation error.
44947         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
44948         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
44949         Reported by Jim Meyering.
44950
44951 2009-04-27  Bruno Haible  <bruno@clisp.org>
44952
44953         New module 'libunistring'.
44954         * modules/libunistring: New file.
44955         * m4/libunistring.m4: New file.
44956         * MODULES.html.sh (Unicode string functions): Add it.
44957
44958 2009-04-27  Eric Blake  <ebb9@byu.net>
44959
44960         maint.mk: allow package-specific header to provide <config.h>
44961         * top/maint.mk (sc_require_config_h): New variable.
44962         (sc_require_config_h, sc_require_config_h_first): Use it.
44963
44964 2009-04-27  Simon Josefsson  <simon@josefsson.org>
44965
44966         * top/maint.mk (sc_avoid_if_before_free): Except
44967         useless-if-before-free script.
44968
44969 2009-04-27  Eric Blake  <ebb9@byu.net>
44970
44971         maintainer-makefile: depend on all required helper scripts
44972         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
44973         useless-if-before-free.
44974         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
44975         version, rather than assuming gnulib checkout is available.
44976         Reported by Simen Josefsson.
44977
44978 2009-04-26  Bruno Haible  <bruno@clisp.org>
44979
44980         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
44981         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
44982         "../" or "..".
44983
44984 2009-04-26  Bruno Haible  <bruno@clisp.org>
44985
44986         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
44987         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
44988         AC_LIB_HAVE_LINKFLAGS.
44989
44990 2009-04-26  Bruno Haible  <bruno@clisp.org>
44991
44992         Simplify calling convention of u*_conv_from_encoding.
44993         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
44994         u32_conv_from_encoding): Expect a resultbuf argument and return the
44995         result directly as a pointer.
44996         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
44997         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
44998         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
44999         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
45000         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
45001         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
45002         Update.
45003         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
45004         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
45005         * lib/vasnprintf.c (VASNPRINTF): Update.
45006         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
45007         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
45008         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
45009         * NEWS: Mention the change.
45010
45011 2009-04-26  Bruno Haible  <bruno@clisp.org>
45012
45013         Simplify calling convention of u*_conv_to_encoding.
45014         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
45015         u32_conv_to_encoding): Expect a resultbuf argument and return the
45016         result directly as a pointer.
45017         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
45018         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
45019         freeing scaled_offsets if mem_iconveha failed.
45020         * lib/unicase/u-casexfrm.h (FUNC): Update.
45021         * lib/uninorm/u-normxfrm.h (FUNC): Update.
45022         * lib/vasnprintf.c (VASNPRINTF): Update.
45023         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
45024         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
45025         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
45026         * NEWS: Mention the change.
45027
45028 2009-04-26  Bruno Haible  <bruno@clisp.org>
45029
45030         Avoid test failures on AIX and OSF/1.
45031         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
45032         malloc(0).
45033         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
45034         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
45035         Likewise.
45036         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
45037         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
45038         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
45039         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
45040         * doc/posix-functions/malloc.texi: Document the portability problem
45041         related to malloc(0).
45042
45043 2009-04-26  Bruno Haible  <bruno@clisp.org>
45044
45045         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
45046         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
45047         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
45048
45049 2009-04-25  Bruno Haible  <bruno@clisp.org>
45050
45051         Avoid link error when creating a namespace clean library.
45052         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
45053         as macro with arguments if already defined as an alias.
45054         * lib/signbitf.c (gl_signbitf): Don't undefine.
45055         * lib/signbitd.c (gl_signbitd): Don't undefine.
45056         * lib/signbitl.c (gl_signbitl): Don't undefine.
45057
45058 2009-04-25  Jim Meyering  <meyering@redhat.com>
45059
45060         vc-list-files: fix another quoting bug
45061         * build-aux/vc-list-files: Avoid sed backslash expansion
45062         of pathological directory names.
45063
45064 2009-04-25  Eric Blake  <ebb9@byu.net>
45065
45066         vc-list-files: fix shell quoting error
45067         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
45068         timestamp.
45069
45070 2009-04-25  Jim Meyering  <meyering@redhat.com>
45071
45072         vc-list-files: restore lost functionality with subdir argument
45073         * build-aux/vc-list-files: When given a non-"." sub-directory
45074         argument, substitute the $dir/ prefix back onto each resulting name.
45075         Otherwise, coreutils' root_tests check would fail.
45076
45077 2009-04-24  Eric Blake  <ebb9@byu.net>
45078
45079         vc-list-files: ignore git symlinks
45080         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
45081         than ls-files, to ignore git symlinks.
45082
45083         maint.mk: import improvements from m4
45084         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
45085         (move_if_change): Delete unused macro.
45086         (news-date-check, vc-diff-check): Support VPATH builds.
45087         (announcement): Likewise.  Split --bootstrap-tools list...
45088         (boostrap-tools): ...into separate list, which can be overridden
45089         in cfg.mk.
45090         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
45091         requiring dependency on useless-if-before-free module.
45092         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
45093         Support VPATH builds.
45094
45095 2009-04-24  Jim Meyering  <meyering@redhat.com>
45096
45097         maint.mk: remove coreutils-specific rules and variables
45098         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
45099         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
45100         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
45101
45102         maint.mk: remove obsolete rule
45103         * top/maint.mk (rel-check): Remove rule.
45104         (WGET, WGETFLAGS): Remove now-unused variables.
45105
45106 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45107
45108         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
45109         consistency.
45110
45111         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
45112         '$(PATH_SEPARATOR)' instead of ':'.
45113
45114 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45115
45116         * lib/getopt1.c (main): Use 'const' for static array.
45117
45118 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45119
45120         * top/maint.mk: Sync with coreutils.
45121         * NEWS: Explain incompatibilities.
45122
45123 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45124             Bruno Haible  <bruno@clisp.org>
45125
45126         Fix cross-compilation results.
45127         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
45128         statement, as third argument of AC_TRY_RUN.
45129         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
45130         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
45131         Likewise.
45132         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
45133         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
45134         Likewise.
45135         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
45136         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
45137         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
45138
45139 2009-04-20  Bruno Haible  <bruno@clisp.org>
45140
45141         Avoid test failure on mingw.
45142         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
45143
45144 2009-04-20  Bruno Haible  <bruno@clisp.org>
45145
45146         Avoid compilation error on mingw.
45147         * modules/localename-tests (Depends-on): Add locale.
45148
45149 2009-04-19  Bruno Haible  <bruno@clisp.org>
45150
45151         Support for building a shared library on Windows platforms.
45152         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
45153         (main): Test the presence of UNINORM_NFC here.
45154         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
45155         (main): Test the presence of UNINORM_NFD here.
45156         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
45157         (main): Test the presence of UNINORM_NFKC here.
45158         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
45159         (main): Test the presence of UNINORM_NFKD here.
45160
45161 2009-04-19  Bruno Haible  <bruno@clisp.org>
45162
45163         Avoid a compiler warning.
45164         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
45165         Change type of variable 'sequence'.
45166
45167 2009-04-19  Bruno Haible  <bruno@clisp.org>
45168
45169         * modules/configmake (Makefile.am): When the contents of configmake.h
45170         does not change, arrange to preserve its modification time.
45171
45172 2009-04-17  Simon Josefsson  <simon@josefsson.org>
45173
45174         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
45175         gettext domain.
45176
45177 2009-04-16  Jim Meyering  <meyering@redhat.com>
45178
45179         useless-if-before-free: improve conversion code
45180         * build-aux/useless-if-before-free: Adjust code-in-comment to match
45181         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
45182
45183 2009-04-14  Bruno Haible  <bruno@clisp.org>
45184
45185         * modules/fcntl (Depends-on): Add extensions.
45186         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
45187
45188 2009-04-12  Ben Pfaff  <blp@gnu.org>
45189
45190         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
45191         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
45192
45193 2009-03-20  Ben Pfaff  <blp@gnu.org>
45194
45195         Make rename replace existing destinations on Windows.
45196         * m4/rename.m4: Add test for Mingw.
45197         * lib/rename.c: Add rename replacement that uses MoveFileEx with
45198         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
45199         * doc/posix-functions/rename.texi: Document.
45200
45201 2009-04-10  Bruno Haible  <bruno@clisp.org>
45202
45203         New include file "iconveh.h".
45204         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
45205         * lib/striconveh.h: Include it.
45206         (enum iconv_ilseq_handler): Remove definition.
45207         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
45208         striconveh.h.
45209         * lib/striconveha.c: Include striconveh.h.
45210         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
45211         * modules/striconveh (Files): Add lib/iconveh.h.
45212         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
45213         lib/striconveh.h.
45214
45215 2009-04-10  Bruno Haible  <bruno@clisp.org>
45216
45217         * lib/uniconv.h: Update comment.
45218
45219 2009-04-10  Bruno Haible  <bruno@clisp.org>
45220
45221         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
45222         always.
45223         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
45224         * lib/unistr/u16-mbtouc-aux.c: Likewise.
45225         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
45226         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
45227         "unistring-notinline.h", so that the function gets defined always.
45228         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
45229         * lib/unistr/u8-uctomb.c: Likewise.
45230         * lib/unistr/u16-mbtouc.c: Likewise.
45231         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
45232         * lib/unistr/u16-uctomb.c: Likewise.
45233         * lib/unistr/u32-mbtouc.c: Likewise.
45234         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
45235         * lib/unistr/u32-uctomb.c: Likewise.
45236
45237 2009-04-10  Bruno Haible  <bruno@clisp.org>
45238
45239         Mark 'utime' obsolete.
45240         * modules/utime (Status, Notice): New sections.
45241         Suggested by Jim Meyering.
45242
45243         Fix cross-compile guess for utime test.
45244         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
45245         autoconf.
45246         * doc/posix-functions/utime.texi: Give more precisions.
45247         Reported by Jan <ipif@ymail.com>.
45248
45249 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
45250
45251         filevercmp: correct today's change
45252         * lib/filevercmp.c: Also handle coreutils' test inputs.
45253         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
45254
45255         Fix regression in 'filevercmp' module. Thanks Sven Joachim
45256         for reporting it.
45257         * lib/filevercmp.c: Special handle for "", "." and "..".
45258         * tests/test-filevercmp.c: Enlarge the set suite.
45259
45260 2009-04-07  Jim Meyering  <meyering@redhat.com>
45261
45262         useless-if-before-free: show how to remove braced useless free, too
45263         * build-aux/useless-if-before-free: still only in a comment, though.
45264
45265 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
45266
45267         maint.mk: import changes to syntax-check macros from coreutils
45268         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
45269         Use them in the relevant macros.
45270
45271 2009-04-06  Bruno Haible  <bruno@clisp.org>
45272
45273         Fix unportable use of bit-fields.
45274         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
45275         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
45276         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
45277
45278 2009-04-06  Bruno Haible  <bruno@clisp.org>
45279
45280         Avoid test failures on AIX and OSF/1.
45281         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
45282         that malloc(0) = NULL.
45283         * tests/unicase/test-u8-tolower.c (check): Likewise.
45284         * tests/unicase/test-u8-totitle.c (check): Likewise.
45285         * tests/unicase/test-u8-toupper.c (check): Likewise.
45286         * tests/unicase/test-u16-casefold.c (check): Likewise.
45287         * tests/unicase/test-u16-tolower.c (check): Likewise.
45288         * tests/unicase/test-u16-totitle.c (check): Likewise.
45289         * tests/unicase/test-u16-toupper.c (check): Likewise.
45290         * tests/unicase/test-u32-casefold.c (check): Likewise.
45291         * tests/unicase/test-u32-tolower.c (check): Likewise.
45292         * tests/unicase/test-u32-totitle.c (check): Likewise.
45293         * tests/unicase/test-u32-toupper.c (check): Likewise.
45294         * tests/uninorm/test-u8-nfc.c (check): Likewise.
45295         * tests/uninorm/test-u8-nfd.c (check): Likewise.
45296         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
45297         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
45298         * tests/uninorm/test-u16-nfc.c (check): Likewise.
45299         * tests/uninorm/test-u16-nfd.c (check): Likewise.
45300         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
45301         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
45302         * tests/uninorm/test-u32-nfc.c (check): Likewise.
45303         * tests/uninorm/test-u32-nfd.c (check): Likewise.
45304         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
45305         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
45306
45307 2009-04-05  Bruno Haible  <bruno@clisp.org>
45308
45309         Work around an autoconf limitation.
45310         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
45311         comment line if it would be longer than 3 KB.
45312
45313 2009-04-05  Bruno Haible  <bruno@clisp.org>
45314
45315         Avoid test failure with libiconv-1.13.
45316         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
45317         of the expected test results.
45318
45319 2009-04-05  Bruno Haible  <bruno@clisp.org>
45320
45321         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
45322         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
45323         that it should be installed.
45324
45325 2009-04-05  Bruno Haible  <bruno@clisp.org>
45326
45327         * gnulib-tool: New option --copy-file.
45328         (func_usage): Document it.
45329         (func_dest_tmpfilename): Moved out of func_import.
45330         (func_add_file, func_update_file): New functions, extracted from
45331         func_import.
45332         (func_import): Update.
45333
45334 2009-04-05  Karl Berry  <karl@gnu.org>
45335
45336         * README: prominently mention gnulib-tool.
45337         Rearrange sections so getting the code is near the top.
45338
45339 2009-04-05  Bruno Haible  <bruno@clisp.org>
45340
45341         * lib/unicase.h: Mention u*_cmp2.
45342         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45343         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
45344         * lib/unicase/ulc-casecmp.c: Likewise.
45345         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
45346         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
45347         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
45348         unistr/u8-cmp.
45349         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
45350         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
45351         unistr/u16-cmp.
45352         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
45353         unistr/u32-cmp.
45354
45355         * lib/uninorm.h: Mention u*_cmp2.
45356         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45357         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
45358         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
45359         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
45360         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
45361         unistr/u8-cmp.
45362         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
45363         unistr/u16-cmp.
45364         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
45365         unistr/u32-cmp.
45366
45367         New module 'unistr/u32-cmp2'.
45368         * lib/unistr/u32-cmp2.c: New file.
45369         * modules/unistr/u32-cmp2: New file.
45370
45371         New module 'unistr/u16-cmp2'.
45372         * lib/unistr/u16-cmp2.c: New file.
45373         * modules/unistr/u16-cmp2: New file.
45374
45375         New module 'unistr/u8-cmp2'.
45376         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
45377         * lib/unistr/u8-cmp2.c: New file.
45378         * lib/unistr/u-cmp2.h: New file.
45379         * modules/unistr/u8-cmp2: New file.
45380
45381 2009-04-05  Bruno Haible  <bruno@clisp.org>
45382
45383         * lib/unictype.h (uc_property_is_valid): New macro.
45384         * tests/unictype/test-pr_byname.c (main): Use it.
45385
45386         * lib/unistr.h: Doc fixes.
45387         * lib/uniconv.h: Doc fixes.
45388         * lib/unictype.h: Doc fixes.
45389
45390 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
45391
45392         Port coreutils 7.2 to Solaris 8.
45393
45394         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
45395         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
45396         for Solaris 8.  This is a bit of a hack, as it means it's the
45397         caller's responsibility to add -lnsl if needed, but most likely it
45398         won't be needed since only getaddrinfo uses this and getaddrinfo
45399         isn't needed on Solaris 8.
45400
45401         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
45402         problem to Solaris 8 encountered with coreutils 7.2, which
45403         resulted in a message "fnmatch.c:292: warning: passing argument 4
45404         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
45405         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
45406
45407 2009-04-03  Simon Josefsson  <simon@josefsson.org>
45408
45409         * m4/ld-version-script.m4: Add FIXME comment.
45410
45411 2009-04-02  Simon Josefsson  <simon@josefsson.org>
45412
45413         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
45414         SOVERSION variable.
45415
45416 2009-04-02  Bruno Haible  <bruno@clisp.org>
45417
45418         * Makefile (info, html, dvi, pdf): Combine the rules.
45419         Suggested by Jim Meyering.
45420
45421 2009-04-01  Bruno Haible  <bruno@clisp.org>
45422
45423         * Makefile (info, html, dvi, pdf): New targets.
45424         Reported by Reuben Thomas <rrt@sc3d.org>.
45425
45426 2009-04-01  Bruno Haible  <bruno@clisp.org>
45427
45428         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
45429         can be put into PATH.
45430         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
45431
45432 2009-04-01  Bruno Haible  <bruno@clisp.org>
45433
45434         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
45435
45436 2009-04-01  Bruno Haible  <bruno@clisp.org>
45437
45438         Rename module 'visibility'.
45439         * modules/lib-symbol-visibility: Renamed from modules/visibility.
45440         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
45441         * doc/gnulib.texi: Update.
45442         * MODULES.html.sh (Misc): Update.
45443         * NEWS: Mention the change.
45444
45445 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45446
45447         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
45448         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
45449         Eric Blake <ebb9@byu.net> for review.
45450         * MODULES.html.sh: Add lib-msvc-compat.
45451         * doc/gnulib.texi: Link to new section.
45452         * m4/ld-output-def.m4: New file.
45453         * doc/ld-output-def.texi: New file.
45454
45455 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45456
45457         Rename ld-version-script to lib-symbol-versions.  Suggested by
45458         Bruno Haible <bruno@clisp.org>.
45459         * modules/ld-version-script: Renamed to lib-symbol-versions.
45460         * doc/ld-version-script.texi: Fix module name.
45461         * MODULES.html.sh: Add lib-symbol-versions.
45462
45463 2009-03-31  Simon Josefsson  <simon@josefsson.org>
45464
45465         * modules/u64-tests: New file.
45466         * tests/test-u64.c: New file.
45467
45468 2009-03-04  Simon Josefsson  <simon@josefsson.org>
45469
45470         * MODULES.html.sh: Mention u64.
45471         * modules/u64: New module.
45472         * modules/crypto/sha512: Depend on u64 module instead of providing
45473         u64.h.
45474
45475 2009-03-27  Eric Blake  <ebb9@byu.net>
45476
45477         test-strerror: make debugging EAI_SYSTEM easier
45478         * modules/getaddrinfo-tests (Depends-on): Add strerror.
45479         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
45480         failure was EAI_SYSTEM.
45481
45482 2009-03-25  Bruno Haible  <bruno@clisp.org>
45483
45484         Fix a problem with --enable-relocatable on Solaris 7.
45485         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
45486         since 2008-02-24.
45487
45488 2009-03-25  Eric Blake  <ebb9@byu.net>
45489
45490         test-sockets: avoid gcc warning
45491         * tests/test-sockets.c (main): Silence compiler warning.
45492
45493 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
45494
45495         New modules nproc, pthread, contributed by Glen Lenker.
45496
45497         * MODULES.html.sh: Add pthread, nproc.
45498         * lib/nproc.c: New file.
45499         * lib/nproc.h: New file.
45500         * lib/pthread.in.h: New file.
45501         * m4/pthread.m4: New file.
45502         * modules/nproc: New file.
45503         * modules/pthread: New file.
45504
45505 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45506
45507         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
45508         New variable.
45509
45510 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
45511
45512         filevercmp: handle simple~ and numbered.~3~ backup suffixes
45513         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
45514         * tests/test-filevercmp.c: Add tests for backup suffixes.
45515
45516 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45517
45518         * modules/stdlib (Depends-on): Add stdint, needed when defining
45519         struct random_data on, for example, HP-UX 10.20.  Reported by
45520         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45521
45522 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45523
45524         * lib/readline.c (readline): Call fflush on stdout after printing
45525         prompt.
45526
45527 2009-03-20  Bruno Haible  <bruno@clisp.org>
45528
45529         Remove dependency from 'close' module to -lws2_32 on native Windows.
45530         * lib/close-hook.h: New file.
45531         * lib/close-hook.c: New file.
45532         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
45533         w32sock.h.
45534         (_gl_close_fd_maybe_socket): Remove function.
45535         (rpl_close): Invoke execute_all_close_hooks instead of
45536         _gl_close_fd_maybe_socket.
45537         * lib/sockets.c: Include close-hook.h, w32sock.h.
45538         (close_fd_maybe_socket): New function, essentially from lib/close.c.
45539         (close_sockets_hook): New variable.
45540         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
45541         (gl_sockets_cleanup): Unregister it.
45542         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
45543         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
45544         * modules/close-hook: New file.
45545         * modules/close (Files): Remove lib/w32sock.h.
45546         (Depends-on): Add close-hook.
45547         (Link): Remove section.
45548         * modules/sockets (Files): Add lib/w32sock.h.
45549         (Depends-on): Add close-hook.
45550         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
45551         invocation.
45552         * NEWS: Mention that LIB_CLOSE is gone.
45553
45554 2009-03-23  Eric Blake  <ebb9@byu.net>
45555
45556         signal-tests: test previous patch
45557         * tests/test-signal.c: New file.
45558         * modules/signal-tests: Likewise.
45559
45560         signal.h: always support 'volatile sig_atomic_t'
45561         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
45562         (gl_SIGNAL_H_DEFAULTS): Add a default.
45563         * modules/signal (Makefile.am): Substitute if needed.
45564         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
45565         users can blindly add volatile.
45566         * doc/posix-headers/signal.texi (signal.h): Document it.
45567         Reported by Matthew Woehlke.
45568
45569 2009-03-23  Jim Meyering  <meyering@redhat.com>
45570
45571         pathmax: PATH_MAX: use pathconf only when available
45572         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
45573         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
45574         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
45575         This avoids a link failure in a PSP cross-compilation environment
45576         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
45577
45578         * lib/vasnprintf.c (divide): Fix typo in comment.
45579
45580 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45581
45582         * gnulib-tool (func_filter_filelist): Fix comment.
45583
45584 2009-03-20  Bruno Haible  <bruno@clisp.org>
45585
45586         Make sockets.h self-contained.
45587         * lib/sockets.c: Include sockets.h first.
45588         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
45589
45590 2009-03-19  Eric Blake  <ebb9@byu.net>
45591
45592         doc: mention more functions added in cygwin 1.7.0
45593         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
45594         addition.
45595         * doc/posix-functions/log2f.texi: Likewise.
45596
45597 2009-03-19  Jim Meyering  <meyering@redhat.com>
45598
45599         fsusage: avoid syntax error due to statement-before-declaration
45600         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
45601         after all declarations.  Reported by Matthew Woehlke in
45602         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
45603
45604 2009-03-18  Eric Blake  <ebb9@byu.net>
45605
45606         build-aux/compile: sync from automake
45607         * build-aux/compile: New file, from automake.
45608         * config/srclist.txt: Mention build-aux/compile.
45609
45610 2009-03-17  Bruno Haible  <bruno@clisp.org>
45611
45612         * lib/git-merge-changelog.c: Fix typo in comment.
45613         Reported by Reuben Thomas <rrt@sc3d.org>.
45614
45615 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
45616
45617         * m4/regex.m4: update and improve help for
45618         --without-included-regex.
45619
45620 2009-03-17  Simon Josefsson  <simon@josefsson.org>
45621
45622         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
45623         failure on missing include files.
45624
45625 2009-03-17  Eric Blake  <ebb9@byu.net>
45626
45627         doc: mention more functions added in cygwin 1.7.0
45628         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
45629         addition.
45630         * doc/posix-functions/fwscanf.texi: Likewise.
45631         * doc/posix-functions/swprintf.texi: Likewise.
45632         * doc/posix-functions/swscanf.texi: Likewise.
45633         * doc/posix-functions/vfwprintf.texi: Likewise.
45634         * doc/posix-functions/vfwscanf.texi: Likewise.
45635         * doc/posix-functions/vswprintf.texi: Likewise.
45636         * doc/posix-functions/vswscanf.texi: Likewise.
45637         * doc/posix-functions/vwprintf.texi: Likewise.
45638         * doc/posix-functions/vwscanf.texi: Likewise.
45639         * doc/posix-functions/wcscasecmp.texi: Likewise.
45640         * doc/posix-functions/wcsdup.texi: Likewise.
45641         * doc/posix-functions/wcsftime.texi: Likewise.
45642         * doc/posix-functions/wcsncasecmp.texi: Likewise.
45643         * doc/posix-functions/wprintf.texi: Likewise.
45644         * doc/posix-functions/wscanf.texi: Likewise.
45645         * doc/glibc-functions/gethostbyname2.texi: Likewise.
45646
45647 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45648
45649         maint.mk: really add $(AM_MAKEFLAGS)
45650         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
45651         was inadvertently omitted in the last commit.
45652         Spotted by Bruno Haible.
45653
45654         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
45655         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
45656         $(AM_MAKEFLAGS)' rather than plain `make'.
45657
45658         gnulib-tool: execute $MAKE not make
45659         * gnulib-tool: Default $MAKE to 'make'.
45660         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
45661         than make.  Initialize $MAKE in the do-autobuild script.
45662
45663         gnulib-tool: use $MAKE not make in generated files
45664         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
45665         make, in generated files.  Initialize $MAKE in the do-autobuild
45666         script.
45667
45668         * top/GNUmakefile (_have-git-version-gen): Fix typo.
45669
45670         GNUmakefile: disable parallelism only for multiple, recursive targets
45671         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
45672         additions in the Makefile.
45673         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
45674         by Automake.
45675         (.NOTPARALLEL): Only disable parallel builds if multiple targets
45676         are listed on the command line and at least one of them is
45677         listed in $(ALL_RECURSIVE_TARGETS).
45678
45679 2009-03-14  Bruno Haible  <bruno@clisp.org>
45680
45681         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
45682         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
45683         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
45684         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
45685         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
45686         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
45687         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
45688         unistr/u8-uctomb.
45689         * modules/unistr/u8-strchr (Depends-on): Likewise.
45690         * modules/unistr/u8-strrchr (Depends-on): Likewise.
45691         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
45692         unistr/u16-uctomb.
45693         * modules/unistr/u16-strchr (Depends-on): Likewise.
45694         * modules/unistr/u16-strrchr (Depends-on): Likewise.
45695
45696 2009-03-12  Bruno Haible  <bruno@clisp.org>
45697
45698         Work around select() bug on Interix 3.5.
45699         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
45700         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
45701         * m4/select.m4: New file.
45702         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
45703         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
45704         * modules/select (Files): Add m4/select.m4.
45705         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
45706         * modules/nanosleep (Depends-on): Add select.
45707         * modules/poll (Depends-on): Likewise.
45708         * doc/posix-functions/select.texi: Mention the Interix bug.
45709         Reported by Markus Duft <mduft@gentoo.org>.
45710
45711         * lib/select.c: Renamed from lib/winsock-select.c.
45712         * modules/select (Files): Add lib/select.c, remove
45713         lib/winsock-select.c.
45714         (configure.ac): Update.
45715
45716 2009-03-12  Jim Meyering  <meyering@redhat.com>
45717
45718         avoid gcc warnings about unused macro definitions
45719         * lib/readtokens.c (STREQ): Remove unused definition.
45720         * lib/xmalloc.c (SIZE_MAX): Likewise.
45721         * lib/openat-die.c (N_): Likewise.
45722         * lib/mountlist.c (SIZE_MAX): Remove definition.
45723         Instead, include <stdint.h>.
45724         * lib/readutmp.c: Likewise.
45725         * modules/readutmp (Depends-on): Add stdint.
45726         * modules/mountlist (Depends-on): Add stdint.
45727         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
45728
45729 2009-03-10  Bruno Haible  <bruno@clisp.org>
45730
45731         Tests for module 'mbmemcasecoll'.
45732         * modules/mbmemcasecoll-tests: New file.
45733         * tests/test-mbmemcasecoll1.sh: New file.
45734         * tests/test-mbmemcasecoll2.sh: New file.
45735         * tests/test-mbmemcasecoll3.sh: New file.
45736         * tests/test-mbmemcasecoll.c: New file.
45737
45738         New module 'mbmemcasecoll'.
45739         * lib/mbmemcasecoll.h: New file.
45740         * lib/mbmemcasecoll.c: New file.
45741         * modules/mbmemcasecoll: New file.
45742
45743         * tests/test-mbmemcasecmp.h: New file, extracted from
45744         tests/test-mbmemcasecmp.c.
45745         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
45746         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
45747         (main): Update.
45748         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
45749
45750 2009-03-09  Bruno Haible  <bruno@clisp.org>
45751
45752         Tests for module 'mbmemcasecmp'.
45753         * modules/mbmemcasecmp-tests: New file.
45754         * tests/test-mbmemcasecmp1.sh: New file.
45755         * tests/test-mbmemcasecmp2.sh: New file.
45756         * tests/test-mbmemcasecmp3.sh: New file.
45757         * tests/test-mbmemcasecmp.c: New file.
45758
45759         New module 'mbmemcasecmp'.
45760         * lib/mbmemcasecmp.h: New file.
45761         * lib/mbmemcasecmp.c: New file.
45762         * modules/mbmemcasecmp: New file.
45763
45764 2009-03-09  Bruno Haible  <bruno@clisp.org>
45765
45766         Tests for module 'unicase/ulc-casecoll'.
45767         * modules/unicase/ulc-casecoll-tests: New file.
45768         * tests/unicase/test-ulc-casecoll1.sh: New file.
45769         * tests/unicase/test-ulc-casecoll2.sh: New file.
45770         * tests/unicase/test-ulc-casecoll.c: New file.
45771
45772         New module 'unicase/ulc-casecoll'.
45773         * lib/unicase.h (ulc_casecoll): New declaration.
45774         * lib/unicase/ulc-casecoll.c: New file.
45775         * modules/unicase/ulc-casecoll: New file.
45776
45777         New module 'unicase/ulc-casexfrm'.
45778         * lib/unicase.h (ulc_casexfrm): New declaration.
45779         * lib/unicase/ulc-casexfrm.c: New file.
45780         * modules/unicase/ulc-casexfrm: New file.
45781
45782 2009-03-09  Bruno Haible  <bruno@clisp.org>
45783
45784         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
45785         invocations.
45786
45787         * m4/mbscasecmp.m4: Remove file.
45788         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
45789         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
45790
45791         * m4/mbscasestr.m4: Remove file.
45792         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
45793         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
45794
45795         * m4/mbschr.m4: Remove file.
45796         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
45797         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
45798
45799         * m4/mbscspn.m4: Remove file.
45800         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
45801         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
45802
45803         * m4/mbslen.m4: Remove file.
45804         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
45805         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
45806
45807         * m4/mbsncasecmp.m4: Remove file.
45808         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
45809         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
45810
45811         * m4/mbsnlen.m4: Remove file.
45812         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
45813         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
45814
45815         * m4/mbspbrk.m4: Remove file.
45816         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
45817         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
45818
45819         * m4/mbspcasecmp.m4: Remove file.
45820         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
45821         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
45822
45823         * m4/mbsrchr.m4: Remove file.
45824         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
45825         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
45826
45827         * m4/mbssep.m4: Remove file.
45828         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
45829         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
45830
45831         * m4/mbsspn.m4: Remove file.
45832         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
45833         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
45834
45835         * m4/mbsstr.m4: Remove file.
45836         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
45837         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
45838
45839         * m4/mbstok_r.m4: Remove file.
45840         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
45841         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
45842
45843         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
45844
45845         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
45846         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
45847
45848         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
45849
45850 2009-03-08  Bruno Haible  <bruno@clisp.org>
45851
45852         Tests for module 'unicase/ulc-casecmp'.
45853         * modules/unicase/ulc-casecmp-tests: New file.
45854         * tests/unicase/test-ulc-casecmp1.sh: New file.
45855         * tests/unicase/test-ulc-casecmp2.sh: New file.
45856         * tests/unicase/test-ulc-casecmp.c: New file.
45857
45858         New module 'unicase/ulc-casecmp'.
45859         * lib/unicase.h (ulc_casecmp): New declaration.
45860         * lib/unicase/ulc-casecmp.c: New file.
45861         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
45862         'const SRC_UNIT *'.
45863         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
45864         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
45865         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
45866         * modules/unicase/ulc-casecmp: New file.
45867
45868         Tests for module 'unicase/u32-is-cased'.
45869         * modules/unicase/u32-is-cased-tests: New file.
45870         * tests/unicase/test-u32-is-cased.c: New file.
45871
45872         Tests for module 'unicase/u16-is-cased'.
45873         * modules/unicase/u16-is-cased-tests: New file.
45874         * tests/unicase/test-u16-is-cased.c: New file.
45875
45876         Tests for module 'unicase/u8-is-cased'.
45877         * modules/unicase/u8-is-cased-tests: New file.
45878         * tests/unicase/test-u8-is-cased.c: New file.
45879         * tests/unicase/test-is-cased.h: New file.
45880
45881         New module 'unicase/u32-is-cased'.
45882         * lib/unicase/u32-is-cased.c: New file.
45883         * modules/unicase/u32-is-cased: New file.
45884
45885         New module 'unicase/u16-is-cased'.
45886         * lib/unicase/u16-is-cased.c: New file.
45887         * modules/unicase/u16-is-cased: New file.
45888
45889         New module 'unicase/u8-is-cased'.
45890         * lib/unicase/u8-is-cased.c: New file.
45891         * lib/unicase/u-is-cased.h: New file.
45892         * modules/unicase/u8-is-cased: New file.
45893
45894         Tests for module 'unicase/u32-is-casefolded'.
45895         * modules/unicase/u32-is-casefolded-tests: New file.
45896         * tests/unicase/test-u32-is-casefolded.c: New file.
45897
45898         Tests for module 'unicase/u16-is-casefolded'.
45899         * modules/unicase/u16-is-casefolded-tests: New file.
45900         * tests/unicase/test-u16-is-casefolded.c: New file.
45901
45902         Tests for module 'unicase/u8-is-casefolded'.
45903         * modules/unicase/u8-is-casefolded-tests: New file.
45904         * tests/unicase/test-u8-is-casefolded.c: New file.
45905         * tests/unicase/test-is-casefolded.h: New file.
45906
45907         New module 'unicase/u32-is-casefolded'.
45908         * lib/unicase/u32-is-casefolded.c: New file.
45909         * modules/unicase/u32-is-casefolded: New file.
45910
45911         New module 'unicase/u16-is-casefolded'.
45912         * lib/unicase/u16-is-casefolded.c: New file.
45913         * modules/unicase/u16-is-casefolded: New file.
45914
45915         New module 'unicase/u8-is-casefolded'.
45916         * lib/unicase/u8-is-casefolded.c: New file.
45917         * modules/unicase/u8-is-casefolded: New file.
45918
45919         Tests for module 'unicase/u32-is-titlecase'.
45920         * modules/unicase/u32-is-titlecase-tests: New file.
45921         * tests/unicase/test-u32-is-titlecase.c: New file.
45922
45923         Tests for module 'unicase/u16-is-titlecase'.
45924         * modules/unicase/u16-is-titlecase-tests: New file.
45925         * tests/unicase/test-u16-is-titlecase.c: New file.
45926
45927         Tests for module 'unicase/u8-is-titlecase'.
45928         * modules/unicase/u8-is-titlecase-tests: New file.
45929         * tests/unicase/test-u8-is-titlecase.c: New file.
45930         * tests/unicase/test-is-titlecase.h: New file.
45931
45932         New module 'unicase/u32-is-titlecase'.
45933         * lib/unicase/u32-is-titlecase.c: New file.
45934         * modules/unicase/u32-is-titlecase: New file.
45935
45936         New module 'unicase/u16-is-titlecase'.
45937         * lib/unicase/u16-is-titlecase.c: New file.
45938         * modules/unicase/u16-is-titlecase: New file.
45939
45940         New module 'unicase/u8-is-titlecase'.
45941         * lib/unicase/u8-is-titlecase.c: New file.
45942         * modules/unicase/u8-is-titlecase: New file.
45943
45944         Tests for module 'unicase/u32-is-lowercase'.
45945         * modules/unicase/u32-is-lowercase-tests: New file.
45946         * tests/unicase/test-u32-is-lowercase.c: New file.
45947
45948         Tests for module 'unicase/u16-is-lowercase'.
45949         * modules/unicase/u16-is-lowercase-tests: New file.
45950         * tests/unicase/test-u16-is-lowercase.c: New file.
45951
45952         Tests for module 'unicase/u8-is-lowercase'.
45953         * modules/unicase/u8-is-lowercase-tests: New file.
45954         * tests/unicase/test-u8-is-lowercase.c: New file.
45955         * tests/unicase/test-is-lowercase.h: New file.
45956
45957         New module 'unicase/u32-is-lowercase'.
45958         * lib/unicase/u32-is-lowercase.c: New file.
45959         * modules/unicase/u32-is-lowercase: New file.
45960
45961         New module 'unicase/u16-is-lowercase'.
45962         * lib/unicase/u16-is-lowercase.c: New file.
45963         * modules/unicase/u16-is-lowercase: New file.
45964
45965         New module 'unicase/u8-is-lowercase'.
45966         * lib/unicase/u8-is-lowercase.c: New file.
45967         * modules/unicase/u8-is-lowercase: New file.
45968
45969         Tests for module 'unicase/u32-is-uppercase'.
45970         * modules/unicase/u32-is-uppercase-tests: New file.
45971         * tests/unicase/test-u32-is-uppercase.c: New file.
45972
45973         Tests for module 'unicase/u16-is-uppercase'.
45974         * modules/unicase/u16-is-uppercase-tests: New file.
45975         * tests/unicase/test-u16-is-uppercase.c: New file.
45976
45977         Tests for module 'unicase/u8-is-uppercase'.
45978         * modules/unicase/u8-is-uppercase-tests: New file.
45979         * tests/unicase/test-u8-is-uppercase.c: New file.
45980         * tests/unicase/test-is-uppercase.h: New file.
45981
45982         New module 'unicase/u32-is-uppercase'.
45983         * lib/unicase/u32-is-uppercase.c: New file.
45984         * modules/unicase/u32-is-uppercase: New file.
45985
45986         New module 'unicase/u16-is-uppercase'.
45987         * lib/unicase/u16-is-uppercase.c: New file.
45988         * modules/unicase/u16-is-uppercase: New file.
45989
45990         New module 'unicase/u8-is-uppercase'.
45991         * lib/unicase/u8-is-uppercase.c: New file.
45992         * modules/unicase/u8-is-uppercase: New file.
45993
45994         New module 'unicase/u32-is-invariant'.
45995         * lib/unicase/u32-is-invariant.c: New file.
45996         * modules/unicase/u32-is-invariant: New file.
45997
45998         New module 'unicase/u16-is-invariant'.
45999         * lib/unicase/u16-is-invariant.c: New file.
46000         * modules/unicase/u16-is-invariant: New file.
46001
46002         New module 'unicase/u8-is-invariant'.
46003         * lib/unicase/u8-is-invariant.c: New file.
46004         * lib/unicase/invariant.h: New file.
46005         * lib/unicase/u-is-invariant.h: New file.
46006         * modules/unicase/u8-is-invariant: New file.
46007
46008         Tests for module 'unicase/u32-casecoll'.
46009         * modules/unicase/u32-casecoll-tests: New file.
46010         * tests/unicase/test-u32-casecoll.c: New file.
46011
46012         Tests for module 'unicase/u16-casecoll'.
46013         * modules/unicase/u16-casecoll-tests: New file.
46014         * tests/unicase/test-u16-casecoll.c: New file.
46015
46016         Tests for module 'unicase/u8-casecoll'.
46017         * modules/unicase/u8-casecoll-tests: New file.
46018         * tests/unicase/test-u8-casecoll.c: New file.
46019
46020         New module 'unicase/u32-casecoll'.
46021         * lib/unicase/u32-casecoll.c: New file.
46022         * modules/unicase/u32-casecoll: New file.
46023
46024         New module 'unicase/u16-casecoll'.
46025         * lib/unicase/u16-casecoll.c: New file.
46026         * modules/unicase/u16-casecoll: New file.
46027
46028         New module 'unicase/u8-casecoll'.
46029         * lib/unicase/u8-casecoll.c: New file.
46030         * lib/unicase/u-casecoll.h: New file.
46031         * modules/unicase/u8-casecoll: New file.
46032
46033         New module 'unicase/u32-casexfrm'.
46034         * lib/unicase/u32-casexfrm.c: New file.
46035         * modules/unicase/u32-casexfrm: New file.
46036
46037         New module 'unicase/u16-casexfrm'.
46038         * lib/unicase/u16-casexfrm.c: New file.
46039         * modules/unicase/u16-casexfrm: New file.
46040
46041         New module 'unicase/u8-casexfrm'.
46042         * lib/unicase/u8-casexfrm.c: New file.
46043         * lib/unicase/u-casexfrm.h: New file.
46044         * modules/unicase/u8-casexfrm: New file.
46045
46046         Tests for module 'unicase/u32-casecmp'.
46047         * modules/unicase/u32-casecmp-tests: New file.
46048         * tests/unicase/test-u32-casecmp.c: New file.
46049
46050         Tests for module 'unicase/u16-casecmp'.
46051         * modules/unicase/u16-casecmp-tests: New file.
46052         * tests/unicase/test-u16-casecmp.c: New file.
46053
46054         Tests for module 'unicase/u8-casecmp'.
46055         * modules/unicase/u8-casecmp-tests: New file.
46056         * tests/unicase/test-u8-casecmp.c: New file.
46057         * tests/unicase/test-casecmp.h: New file.
46058
46059         New module 'unicase/u32-casecmp'.
46060         * lib/unicase/u32-casecmp.c: New file.
46061         * modules/unicase/u32-casecmp: New file.
46062
46063         New module 'unicase/u16-casecmp'.
46064         * lib/unicase/u16-casecmp.c: New file.
46065         * modules/unicase/u16-casecmp: New file.
46066
46067         New module 'unicase/u8-casecmp'.
46068         * lib/unicase/u8-casecmp.c: New file.
46069         * lib/unicase/u-casecmp.h: New file.
46070         * modules/unicase/u8-casecmp: New file.
46071
46072         Tests for module 'unicase/u32-casefold'.
46073         * modules/unicase/u32-casefold-tests: New file.
46074         * tests/unicase/test-u32-casefold.c: New file.
46075
46076         Tests for module 'unicase/u16-casefold'.
46077         * modules/unicase/u16-casefold-tests: New file.
46078         * tests/unicase/test-u16-casefold.c: New file.
46079
46080         Tests for module 'unicase/u8-casefold'.
46081         * modules/unicase/u8-casefold-tests: New file.
46082         * tests/unicase/test-u8-casefold.c: New file.
46083
46084         New module 'unicase/u32-casefold'.
46085         * lib/unicase/u32-casefold.c: New file.
46086         * modules/unicase/u32-casefold: New file.
46087
46088         New module 'unicase/u16-casefold'.
46089         * lib/unicase/u16-casefold.c: New file.
46090         * modules/unicase/u16-casefold: New file.
46091
46092         New module 'unicase/u8-casefold'.
46093         * lib/unicase/u8-casefold.c: New file.
46094         * lib/unicase/u-casefold.h: New file.
46095         * modules/unicase/u8-casefold: New file.
46096
46097         New module 'unicase/tocasefold'.
46098         * lib/unicase/casefold.h: New file.
46099         * lib/unicase/tocasefold.c: New file.
46100         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
46101         * modules/unicase/tocasefold: New file.
46102
46103         Tests for module 'unicase/u32-totitle'.
46104         * modules/unicase/u32-totitle-tests: New file.
46105         * tests/unicase/test-u32-totitle.c: New file.
46106
46107         Tests for module 'unicase/u16-totitle'.
46108         * modules/unicase/u16-totitle-tests: New file.
46109         * tests/unicase/test-u16-totitle.c: New file.
46110
46111         Tests for module 'unicase/u8-totitle'.
46112         * modules/unicase/u8-totitle-tests: New file.
46113         * tests/unicase/test-u8-totitle.c: New file.
46114
46115         New module 'unicase/u32-totitle'.
46116         * lib/unicase/u32-totitle.c: New file.
46117         * modules/unicase/u32-totitle: New file.
46118
46119         New module 'unicase/u16-totitle'.
46120         * lib/unicase/u16-totitle.c: New file.
46121         * modules/unicase/u16-totitle: New file.
46122
46123         New module 'unicase/u8-totitle'.
46124         * lib/unicase/u8-totitle.c: New file.
46125         * lib/unicase/u-totitle.h: New file.
46126         * modules/unicase/u8-totitle: New file.
46127
46128         Tests for module 'unicase/u32-tolower'.
46129         * modules/unicase/u32-tolower-tests: New file.
46130         * tests/unicase/test-u32-tolower.c: New file.
46131
46132         Tests for module 'unicase/u16-tolower'.
46133         * modules/unicase/u16-tolower-tests: New file.
46134         * tests/unicase/test-u16-tolower.c: New file.
46135
46136         Tests for module 'unicase/u8-tolower'.
46137         * modules/unicase/u8-tolower-tests: New file.
46138         * tests/unicase/test-u8-tolower.c: New file.
46139
46140         New module 'unicase/u32-tolower'.
46141         * lib/unicase/u32-tolower.c: New file.
46142         * modules/unicase/u32-tolower: New file.
46143
46144         New module 'unicase/u16-tolower'.
46145         * lib/unicase/u16-tolower.c: New file.
46146         * modules/unicase/u16-tolower: New file.
46147
46148         New module 'unicase/u8-tolower'.
46149         * lib/unicase/u8-tolower.c: New file.
46150         * modules/unicase/u8-tolower: New file.
46151
46152         Tests for module 'unicase/u32-toupper'.
46153         * modules/unicase/u32-toupper-tests: New file.
46154         * tests/unicase/test-u32-toupper.c: New file.
46155
46156         Tests for module 'unicase/u16-toupper'.
46157         * modules/unicase/u16-toupper-tests: New file.
46158         * tests/unicase/test-u16-toupper.c: New file.
46159
46160         Tests for module 'unicase/u8-toupper'.
46161         * modules/unicase/u8-toupper-tests: New file.
46162         * tests/unicase/test-u8-toupper.c: New file.
46163
46164         New module 'unicase/u32-toupper'.
46165         * lib/unicase/u32-toupper.c: New file.
46166         * modules/unicase/u32-toupper: New file.
46167
46168         New module 'unicase/u16-toupper'.
46169         * lib/unicase/u16-toupper.c: New file.
46170         * modules/unicase/u16-toupper: New file.
46171
46172         New module 'unicase/u8-toupper'.
46173         * lib/unicase/u8-toupper.c: New file.
46174         * modules/unicase/u8-toupper: New file.
46175
46176         New module 'unicase/u32-casemap'.
46177         * lib/unicase/u32-casemap.c: New file.
46178         * modules/unicase/u32-casemap: New file.
46179
46180         New module 'unicase/u16-casemap'.
46181         * lib/unicase/u16-casemap.c: New file.
46182         * modules/unicase/u16-casemap: New file.
46183
46184         New module 'unicase/u8-casemap'.
46185         * lib/unicase/unicasemap.h: New file.
46186         * lib/unicase/u8-casemap.c: New file.
46187         * lib/unicase/u-casemap.h: New file.
46188         * modules/unicase/u8-casemap: New file.
46189
46190         New module 'unicase/special-casing'.
46191         * lib/unicase/special-casing.h: New file.
46192         * lib/unicase/special-casing.c: New file.
46193         * lib/unicase/special-casing-table.gperf: New file, generated by
46194         gen-uni-tables.c.
46195         * modules/unicase/special-casing: New file.
46196
46197         Tests for module 'unicase/locale-language'.
46198         * modules/unicase/locale-language-tests: New file.
46199         * tests/unicase/test-locale-language.sh: New file.
46200         * tests/unicase/test-locale-language.c: New file.
46201
46202         New module 'unicase/locale-language'.
46203         * lib/unicase/locale-language.c: New file.
46204         * lib/unicase/locale-languages.gperf: New file.
46205         * modules/unicase/locale-language: New file.
46206
46207         Generate more tables for case conversion and case folding.
46208         * lib/gen-uni-tables.c (SCC_*): New enum items.
46209         (struct special_casing_rule): New type.
46210         (casing_rules, num_casing_rules, allocated_casing_rules): New
46211         variables.
46212         (add_casing_rule, fill_casing_rules): New functions.
46213         (struct casefold_rule): New type.
46214         (casefolding_rules, num_casefolding_rules,
46215         allocated_casefolding_rules): New variables.
46216         (fill_casefolding_rules): New function.
46217         (unicode_casefold): New variable.
46218         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
46219         sort_casing_rules, output_casing_rules): New functions.
46220         (main): Accept to more arguments: SpecialCasing.txt and
46221         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
46222         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
46223         Output mapping for casefolding.
46224
46225         * lib/unicase.h: Include stdbool.h, uninorm.h.
46226         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
46227         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
46228         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
46229         arguments.
46230         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
46231         resultp arguments.
46232         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
46233         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
46234         resultp arguments.
46235         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
46236         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
46237         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
46238         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
46239         declarations.
46240         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
46241
46242 2009-03-08  Bruno Haible  <bruno@clisp.org>
46243
46244         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46245         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
46246         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
46247         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46248
46249 2009-03-07  Bruno Haible  <bruno@clisp.org>
46250
46251         Adjust u*_normcmp, u*_normcoll API.
46252         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46253         u16_normcoll, u32_normcoll): Change failure conventions.
46254         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
46255         errno and return -1.
46256         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46257
46258 2009-03-07  Bruno Haible  <bruno@clisp.org>
46259
46260         Tests for module 'uninorm/u32-normcoll'.
46261         * modules/uninorm/u32-normcoll-tests: New file.
46262         * tests/uninorm/test-u32-normcoll.c: New file.
46263
46264         Tests for module 'uninorm/u16-normcoll'.
46265         * modules/uninorm/u16-normcoll-tests: New file.
46266         * tests/uninorm/test-u16-normcoll.c: New file.
46267
46268         Tests for module 'uninorm/u8-normcoll'.
46269         * modules/uninorm/u8-normcoll-tests: New file.
46270         * tests/uninorm/test-u8-normcoll.c: New file.
46271
46272 2009-03-07  Bruno Haible  <bruno@clisp.org>
46273
46274         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
46275         tests/uninorm/test-u32-normcmp.c.
46276         * tests/uninorm/test-u32-normcmp.c: Include it.
46277         (test_nonascii): New function, extracted from main. Add some more
46278         tests.
46279         (main): Invoke test_ascii and test_nonascii.
46280         * modules/uninorm/u32-normcmp-tests (Files): Add
46281         tests/uninorm/test-u32-normcmp.h.
46282         (Depends-on): Remove uninorm/u32-normcmp.
46283
46284         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
46285         tests/uninorm/test-u16-normcmp.c.
46286         * tests/uninorm/test-u16-normcmp.c: Include it.
46287         (test_nonascii): New function, extracted from main. Add some more
46288         tests.
46289         (main): Invoke test_ascii and test_nonascii.
46290         * modules/uninorm/u16-normcmp-tests (Files): Add
46291         tests/uninorm/test-u16-normcmp.h.
46292         (Depends-on): Remove uninorm/u16-normcmp.
46293
46294         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
46295         tests/uninorm/test-u8-normcmp.c.
46296         * tests/uninorm/test-u8-normcmp.c: Include it.
46297         (test_nonascii): New function, extracted from main. Add some more
46298         tests.
46299         (main): Invoke test_ascii and test_nonascii.
46300         * modules/uninorm/u8-normcmp-tests (Files): Add
46301         tests/uninorm/test-u8-normcmp.h.
46302         (Depends-on): Remove uninorm/u8-normcmp.
46303
46304 2009-03-07  Bruno Haible  <bruno@clisp.org>
46305
46306         New module 'uninorm/u32-normcoll'.
46307         * lib/uninorm/u32-normcoll.c: New file.
46308         * modules/uninorm/u32-normcoll: New file.
46309
46310         New module 'uninorm/u16-normcoll'.
46311         * lib/uninorm/u16-normcoll.c: New file.
46312         * modules/uninorm/u16-normcoll: New file.
46313
46314         New module 'uninorm/u8-normcoll'.
46315         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
46316         declarations.
46317         * lib/uninorm/u8-normcoll.c: New file.
46318         * lib/uninorm/u-normcoll.h: New file.
46319         * modules/uninorm/u8-normcoll: New file.
46320
46321         New module 'uninorm/u32-normxfrm'.
46322         * lib/uninorm/u32-normxfrm.c: New file.
46323         * modules/uninorm/u32-normxfrm: New file.
46324
46325         New module 'uninorm/u16-normxfrm'.
46326         * lib/uninorm/u16-normxfrm.c: New file.
46327         * modules/uninorm/u16-normxfrm: New file.
46328
46329         New module 'uninorm/u8-normxfrm'.
46330         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
46331         declarations.
46332         * lib/uninorm/u8-normxfrm.c: New file.
46333         * lib/uninorm/u-normxfrm.h: New file.
46334         * modules/uninorm/u8-normxfrm: New file.
46335
46336 2009-03-07  Bruno Haible  <bruno@clisp.org>
46337
46338         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
46339         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
46340         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
46341
46342 2009-03-07  Bruno Haible  <bruno@clisp.org>
46343
46344         New module 'memxfrm'.
46345         * lib/memxfrm.h: New file.
46346         * lib/memxfrm.c: New file.
46347         * modules/memxfrm: New file.
46348
46349 2009-03-07  Bruno Haible  <bruno@clisp.org>
46350
46351         New module 'memcmp2'.
46352         * lib/memcmp2.h: New file.
46353         * lib/memcmp2.c: New file.
46354         * modules/memcmp2: New file.
46355
46356 2009-03-07  Bruno Haible  <bruno@clisp.org>
46357
46358         Tests for module 'uninorm/decomposing-form'.
46359         * modules/uninorm/decomposing-form-tests: New file.
46360         * tests/uninorm/test-decomposing-form.c: New file.
46361
46362         New module 'uninorm/decomposing-form'.
46363         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
46364         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
46365         Add 'decomposing_variant' field.
46366         * lib/uninorm/decomposing-form.c: New file.
46367         * lib/uninorm/nfc.c (uninorm_nfc): Update.
46368         * lib/uninorm/nfd.c (uninorm_nfd): Update.
46369         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
46370         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
46371         * modules/uninorm/decomposing-form: New file.
46372         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
46373         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
46374
46375 2009-03-07  Bruno Haible  <bruno@clisp.org>
46376
46377         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
46378         strings.
46379
46380 2009-03-06  Bruno Haible  <bruno@clisp.org>
46381
46382         Tests for module 'uninorm/u32-normcmp'.
46383         * tests/uninorm/test-u32-normcmp.c: New file.
46384         * modules/uninorm/u32-normcmp-tests: New file.
46385
46386         Tests for module 'uninorm/u16-normcmp'.
46387         * tests/uninorm/test-u16-normcmp.c: New file.
46388         * modules/uninorm/u16-normcmp-tests: New file.
46389
46390         Tests for module 'uninorm/u8-normcmp'.
46391         * tests/uninorm/test-u8-normcmp.c: New file.
46392         * modules/uninorm/u8-normcmp-tests: New file.
46393
46394         New module 'uninorm/u32-normcmp'.
46395         * lib/uninorm/u32-normcmp.c: New file.
46396         * modules/uninorm/u32-normcmp: New file.
46397
46398         New module 'uninorm/u16-normcmp'.
46399         * lib/uninorm/u16-normcmp.c: New file.
46400         * modules/uninorm/u16-normcmp: New file.
46401
46402         New module 'uninorm/u8-normcmp'.
46403         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
46404         declarations.
46405         * lib/uninorm/u8-normcmp.c: New file.
46406         * lib/uninorm/u-normcmp.h: New file.
46407         * modules/uninorm/u8-normcmp: New file.
46408
46409 2009-03-06  Bruno Haible  <bruno@clisp.org>
46410
46411         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
46412         Reported by Eric Blake.
46413
46414 2009-03-06  Eric Blake  <ebb9@byu.net>
46415             Bruno Haible  <bruno@clisp.org>
46416
46417         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
46418         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
46419         condition.
46420         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46421         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
46422         condition.
46423         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46424
46425 2009-03-06  Eric Blake  <ebb9@byu.net>
46426
46427         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
46428         to avoid compiler warnings.
46429         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
46430
46431 2009-03-05  Bruno Haible  <bruno@clisp.org>
46432
46433         * tests/test-ftell.c (main): Disable test beyond end of file on
46434         FreeMiNT.
46435         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46436
46437 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
46438
46439         * lib/filevercmp.c: Move hidden files up in ordering.
46440         * tests/test-filevercmp.c: Add tests for hidden files.
46441
46442 2009-03-04  Bruno Haible  <bruno@clisp.org>
46443
46444         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
46445         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
46446         AM_CFLAGS.
46447         Reported by Simon Josefsson.
46448
46449 2009-03-03  Bruno Haible  <bruno@clisp.org>
46450
46451         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
46452         Reported by Simon Josefsson.
46453
46454         * doc/ld-version-script.texi: Update node reference.
46455
46456 2009-03-03  Bruno Haible  <bruno@clisp.org>
46457
46458         * modules/visibility (License): Change to 'unlimited'.
46459         Suggested by Simon Josefsson.
46460
46461 2009-03-03  Jim Meyering  <meyering@redhat.com>
46462
46463         unlinkdir: cannot_unlink_dir may modify process state
46464         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
46465         it's neither thread-safe nor appropriate for use in a library.
46466
46467 2009-03-03  Eric Blake  <ebb9@byu.net>
46468
46469         test-closein: silence test under Darwin
46470         * tests/test-closein.sh: Ignore stderr from cat, since we don't
46471         care if it dies from EPIPE or EBADF.
46472
46473 2009-03-03  Bruno Haible  <bruno@clisp.org>
46474
46475         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
46476         earlier.
46477         * doc/visibility.texi: Fix @node and @section.
46478
46479 2009-03-03  Simon Josefsson  <simon@josefsson.org>
46480
46481         * doc/gnulib.texi: Link to sections for ld version script and
46482         visibility.
46483         * doc/visibility.texi: Add @node and @section.
46484         * modules/ld-version-script: New module.
46485         * m4/ld-version-script.m4: New file.
46486         * doc/ld-version-script.texi: New file.
46487
46488 2009-03-02  David Lutterkort  <lutter@redhat.com>
46489
46490         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
46491         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46492
46493 2009-03-02  Bruno Haible  <bruno@clisp.org>
46494
46495         * doc/visibility.texi: Mention libtool's -export-symbols option.
46496
46497 2009-03-02  Jim Meyering  <meyering@redhat.com>
46498
46499         announce-gen: new option: --no-print-checksums
46500         * build-aux/announce-gen (usage): Describe it.
46501         (print_checksums): Print a newline here, not in the [*] footnote.
46502         (main): Honor it.
46503
46504 2009-03-01  Bruno Haible  <bruno@clisp.org>
46505
46506         Use socklen_t in the native Windows replacements prototypes.
46507         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
46508         instead of 'int'.
46509         * lib/getsockopt.c (rpl_getsockopt): Likewise.
46510         * lib/setsockopt.c (rpl_setsockopt): Likewise.
46511         * modules/getsockopt (Depends-on): Add socklen.
46512         * modules/setsockopt (Depends-on): Add socklen.
46513
46514 2009-03-01  Bruno Haible  <bruno@clisp.org>
46515
46516         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
46517         least 4.2.
46518
46519 2009-03-01  Eric Blake  <ebb9@byu.net>
46520             Bruno Haible  <bruno@clisp.org>
46521
46522         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
46523         error messages.
46524         * lib/wait-process.c (wait_subprocess): Omit error message about
46525         deadly signal sent to the child of termsigp != NULL.
46526
46527 2009-03-01  Eric Blake  <ebb9@byu.net>
46528
46529         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
46530
46531 2009-03-01  Bruno Haible  <bruno@clisp.org>
46532
46533         Avoid a gcc warning.
46534         * tests/test-sched.c (b): Make global.
46535         Reported by Eric Blake.
46536
46537 2009-01-19  Martin Lambers  <marlam@marlam.de>
46538
46539         Provide POSIX semantics for socket timeout options on W32.
46540         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
46541         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
46542         * modules/setsockopt: Depend on sys_time module for struct timeval.
46543         * modules/getsockopt: Depend on sys_time module for struct timeval.
46544
46545 2009-03-01  Simon Josefsson  <simon@josefsson.org>
46546
46547         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
46548         __USE_GNU, for consistency with netdb.in.h.
46549         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46550
46551 2009-03-01  Bruno Haible  <bruno@clisp.org>
46552
46553         More support for FreeMiNT.
46554         * lib/fseeko.c (rpl_fseeko): Complete last commit.
46555         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46556
46557 2009-03-01  Bruno Haible  <bruno@clisp.org>
46558
46559         More support for FreeMiNT.
46560         * lib/fpurge.c (fpurge): Correct last commit.
46561         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46562
46563 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46564
46565         Fix unportable awk script in vc-list-files.
46566         * build-aux/vc-list-files: In the replacement awk script, use
46567         substr with a second argument of 1, not zero.
46568         Report by Simon Josefsson.
46569
46570 2009-02-28  Bruno Haible  <bruno@clisp.org>
46571
46572         More support for FreeMiNT.
46573         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
46574         to FreeMiNT today.
46575         * lib/fwriting.c (fwriting): Likewise.
46576         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
46577
46578 2009-02-28  Bruno Haible  <bruno@clisp.org>
46579
46580         * tests/test-freadseek.c (main): Disable test beyond end of file on
46581         FreeMiNT.
46582         * tests/test-ftello.c (main): Likewise.
46583         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46584
46585 2009-02-28  Bruno Haible  <bruno@clisp.org>
46586
46587         Add tentative support for FreeMiNT.
46588         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
46589         * lib/fpurge.c (fpurge): Likewise.
46590         * lib/freadable.c (freadable): Likewise.
46591         * lib/freading.c (freading): Likewise.
46592         * lib/freadptr.c (freadptr): Likewise.
46593         * lib/freadseek.c (freadptrinc): Likewise.
46594         * lib/fseeko.c (rpl_fseeko): Likewise.
46595         * lib/fseterr.c (fseterr): Likewise.
46596         * lib/fwritable.c (fwritable): Likewise.
46597         * lib/fwriting.c (fwriting): Likewise.
46598         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
46599         Hourihane.
46600         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46601
46602 2009-02-28  Bruno Haible  <bruno@clisp.org>
46603
46604         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
46605         SIGCHLD.
46606         Reported by Jim Meyering.
46607
46608 2009-02-28  Bruno Haible  <bruno@clisp.org>
46609
46610         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
46611         Mention the results of these tests on various platforms.
46612         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
46613         order.
46614         * doc/posix-functions/printf.texi: Likewise.
46615         * doc/posix-functions/snprintf.texi: Likewise.
46616         * doc/posix-functions/sprintf.texi: Likewise.
46617         * doc/posix-functions/vfprintf.texi: Likewise.
46618         * doc/posix-functions/vprintf.texi: Likewise.
46619         * doc/posix-functions/vsnprintf.texi: Likewise.
46620         * doc/posix-functions/vsprintf.texi: Likewise.
46621         * doc/glibc-functions/obstack_printf.texi: Likewise.
46622         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
46623
46624 2009-02-28  Bruno Haible  <bruno@clisp.org>
46625
46626         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
46627         Reported by Loïc Minier <lool@dooz.org>.
46628
46629 2009-02-27  Bruno Haible  <bruno@clisp.org>
46630
46631         * gnulib-tool (func_import): Make the sed expression used to create the
46632         sed script for updating the .gitignore file POSIX compliant.
46633         Reported by Eric Blake.
46634
46635 2009-02-27  Bruno Haible  <bruno@clisp.org>
46636
46637         * gnulib-tool (sed): Don't alias as "sed --posix".
46638         Reported by Eric Blake.
46639
46640 2009-02-27  Bruno Haible  <bruno@clisp.org>
46641
46642         Avoid test link errors.
46643         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
46644         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
46645         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
46646         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
46647         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46648
46649 2009-02-27  Bruno Haible  <bruno@clisp.org>
46650
46651         Avoid spurious "(cached)" in configure output.
46652         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
46653         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
46654         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
46655         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
46656         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
46657         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
46658         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
46659         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
46660         Reported by Eric Blake.
46661
46662 2009-02-27  Eric Blake  <ebb9@byu.net>
46663
46664         printf: fix regression in previous patch
46665         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
46666
46667 2009-02-27  Bruno Haible  <bruno@clisp.org>
46668
46669         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
46670         value.
46671         * lib/stdint.in.h: Likewise.
46672         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
46673
46674 2009-02-27  Eric Blake  <ebb9@byu.net>
46675
46676         doc: mention more functions added in cygwin 1.7.0
46677         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
46678         addition.
46679         * doc/posix-functions/open_wmemstream.texi: Likewise.
46680         * doc/posix-functions/wcsnlen.texi: Likewise.
46681         * doc/posix-functions/wcsnrtombs.texi: Likewise.
46682         * doc/posix-functions/wcstod.texi: Likewise.
46683         * doc/posix-functions/wcstof.texi: Likewise.
46684         * doc/posix-functions/wcstoimax.texi: Likewise.
46685         * doc/posix-functions/wcstok.texi: Likewise.
46686         * doc/posix-functions/wcstoumax.texi: Likewise.
46687
46688         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
46689         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
46690         * doc/posix-functions/fprintf.texi: Update.
46691         * doc/posix-functions/printf.texi: Update.
46692         * doc/posix-functions/snprintf.texi: Update.
46693         * doc/posix-functions/sprintf.texi: Update.
46694         * doc/posix-functions/vfprintf.texi: Update.
46695         * doc/posix-functions/vprintf.texi: Update.
46696         * doc/posix-functions/vsnprintf.texi: Update.
46697         * doc/posix-functions/vsprintf.texi: Update.
46698         * doc/glibc-functions/obstack_printf.texi: Update.
46699         * doc/glibc-functions/obstack_vprintf.texi: Update.
46700
46701 2009-02-26  Eric Blake  <ebb9@byu.net>
46702
46703         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
46704         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
46705         compilation bug by using runtime conversion.
46706         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
46707         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
46708         * modules/ceill-tests (Files): Use nan.h.
46709         * modules/floorl-tests (Files): Likewise.
46710         * modules/frexpl-tests (Files): Likewise.
46711         * modules/isnanl-tests (Files): Likewise.
46712         * modules/ldexpl-tests (Files): Likewise.
46713         * modules/roundl-tests (Files): Likewise.
46714         * modules/truncl-tests (Files): Likewise.
46715         * tests/test-ceill.c (main): Use a working NaN.
46716         * tests/test-floorl.c (main): Likewise.
46717         * tests/test-frexpl.c (main): Likewise.
46718         * tests/test-isnan.c (test_long_double): Likewise.
46719         * tests/test-isnanl.h (main): Likewise.
46720         * tests/test-ldexpl.h (main): Likewise.
46721         * tests/test-roundl.h (main): Likewise.
46722         * tests/test-truncl.h (main): Likewise.
46723         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
46724
46725 2009-02-26  Eric Blake  <ebb9@byu.net>
46726             Bruno Haible  <bruno@clisp.org>
46727
46728         Work around a *printf bug with %ls on Solaris.
46729         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
46730         precision is specified, sprintf stops converting the wide string
46731         argument when the number of bytes that have been produced by this
46732         conversion equals or exceeds the precision.
46733         * doc/posix-functions/fprintf.texi: Update.
46734         * doc/posix-functions/printf.texi: Update.
46735         * doc/posix-functions/snprintf.texi: Update.
46736         * doc/posix-functions/sprintf.texi: Update.
46737         * doc/posix-functions/vfprintf.texi: Update.
46738         * doc/posix-functions/vprintf.texi: Update.
46739         * doc/posix-functions/vsnprintf.texi: Update.
46740         * doc/posix-functions/vsprintf.texi: Update.
46741         * doc/glibc-functions/obstack_printf.texi: Update.
46742         * doc/glibc-functions/obstack_vprintf.texi: Update.
46743
46744 2009-02-26  Eric Blake  <ebb9@byu.net>
46745
46746         stdlib: favor compiler check of random.h
46747         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
46748         to avoid an ObjC random.h installed by Swarm.
46749
46750 2009-02-26  Bruno Haible  <bruno@clisp.org>
46751
46752         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
46753         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
46754         Reported by Gary V. Vaughan <gary@gnu.org>.
46755
46756 2009-02-26  Bruno Haible  <bruno@clisp.org>
46757
46758         Fix *printf behaviour regarding the %ls directive.
46759         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
46760         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
46761         NEED_PRINTF_DIRECTIVE_LS.
46762         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
46763         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46764         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46765         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
46766         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
46767         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
46768         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
46769         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46770         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46771         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46772         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46773         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
46774         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46775         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46776         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46777         * doc/posix-functions/fprintf.texi: Update.
46778         * doc/posix-functions/printf.texi: Update.
46779         * doc/posix-functions/snprintf.texi: Update.
46780         * doc/posix-functions/sprintf.texi: Update.
46781         * doc/posix-functions/vfprintf.texi: Update.
46782         * doc/posix-functions/vprintf.texi: Update.
46783         * doc/posix-functions/vsnprintf.texi: Update.
46784         * doc/posix-functions/vsprintf.texi: Update.
46785         * doc/glibc-functions/obstack_printf.texi: Update.
46786         * doc/glibc-functions/obstack_vprintf.texi: Update.
46787         Reported by Eric Blake.
46788
46789 2009-02-25  Bruno Haible  <bruno@clisp.org>
46790
46791         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
46792         with known value.
46793         Reported by Gary V. Vaughan <gary@gnu.org>.
46794
46795 2009-02-25  Bruno Haible  <bruno@clisp.org>
46796
46797         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
46798         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
46799         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
46800         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
46801         Reported by Gary V. Vaughan <gary@gnu.org>.
46802
46803 2009-02-25  Bruno Haible  <bruno@clisp.org>
46804
46805         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
46806         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
46807         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
46808         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
46809         Reported by Gary V. Vaughan <gary@gnu.org>.
46810
46811 2009-02-25  Eric Blake  <ebb9@byu.net>
46812
46813         tests: skip fseek/ftell tests if ungetc is broken
46814         * m4/ungetc.m4: New file.
46815         * modules/fseek-tests: Split test, so ungetc dependency is
46816         separate from rest of test.
46817         * modules/fseeko-tests: Likewise.
46818         * modules/ftell-tests: Likewise.
46819         * modules/ftello-tests: Likewise.
46820         * tests/test-fseek.c (main): Isolate ungetc dependency.
46821         * tests/test-fseeko.c (main): Likewise.
46822         * tests/test-ftell.c (main): Likewise.
46823         * tests/test-ftello.c (main): Likewise.
46824         * tests/test-fseek2.sh: New file.
46825         * tests/test-fseeko2.sh: Likewise.
46826         * tests/test-ftell2.sh: Likewise.
46827         * tests/test-ftello2.sh: Likewise.
46828
46829 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
46830
46831         test-getaddrinfo: fix usage of skip return code 77
46832         * tests/test-gettaddrinfo.c: Return skip code 77 only
46833         for first occurance of skip (4x77 is not 77)
46834
46835 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
46836
46837         strtod: avoid C99 decl-after-statement
46838         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
46839
46840 2009-02-24  Eric Blake  <ebb9@byu.net>
46841
46842         strtod: detect HP-UX 11.31 bug
46843         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
46844         Reported by Gary V. Vaughan.
46845
46846 2009-02-23  Bruno Haible  <bruno@clisp.org>
46847
46848         Fix invalid read past end of memory block.
46849         * lib/vasnprintf.c (DCHAR_SET): Define.
46850         (local_wcslen): Define only when needed.
46851         (local_strnlen, local_wcsnlen): New functions.
46852         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
46853         directives that involve a conversion ourselves.
46854         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
46855         wcsnlen, mbrtowc, wcrtomb.
46856         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
46857         * tests/test-vasprintf-posix.c (test_function): Likewise.
46858         * tests/test-snprintf-posix.h (test_function): Likewise.
46859         * tests/test-sprintf-posix.h (test_function): Likewise.
46860         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46861
46862 2009-02-22  Bruno Haible  <bruno@clisp.org>
46863
46864         Implement new clarified decomposition of Hangul syllables.
46865         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
46866         of type LTV, return only a pairwise decomposition.
46867         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
46868         Likewise.
46869         * tests/uninorm/test-decomposition.c (main): Updated expected result.
46870         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
46871         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
46872
46873 2009-02-22  Bruno Haible  <bruno@clisp.org>
46874
46875         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
46876         zero-length results and shrink excess allocated memory.
46877         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
46878         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
46879         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
46880         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
46881         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
46882         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
46883         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
46884         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
46885         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
46886         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
46887         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
46888         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
46889
46890 2009-02-21  Bruno Haible  <bruno@clisp.org>
46891
46892         * doc/gnulib.texi: Include safe-alloc.texi earlier.
46893         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
46894         spaces after a period. Put a space between a macro name and its
46895         argument list. Trivial rewordings.
46896         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
46897         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
46898         (main): Return 0 explicitly.
46899
46900 2009-02-21  Bruno Haible  <bruno@clisp.org>
46901
46902         Tests for module 'uninorm/filter'.
46903         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
46904         * modules/uninorm/filter-tests: New file.
46905
46906         New module 'uninorm/filter'.
46907         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
46908         uninorm_filter_flush, uninorm_filter_free): New declarations.
46909         * lib/uninorm/uninorm-filter.c: New file.
46910         * modules/uninorm/filter: New file.
46911
46912 2009-02-21  Bruno Haible  <bruno@clisp.org>
46913
46914         Tests for module 'uninorm/nfkc'.
46915         * tests/uninorm/test-nfkc.c: New file.
46916         * tests/uninorm/test-u8-nfkc.c: New file.
46917         * tests/uninorm/test-u16-nfkc.c: New file.
46918         * tests/uninorm/test-u32-nfkc.c: New file.
46919         * tests/uninorm/test-u32-nfkc-big.sh: New file.
46920         * tests/uninorm/test-u32-nfkc-big.c: New file.
46921         * modules/uninorm/nfkc-tests: New file.
46922
46923         New module 'uninorm/nfkc'.
46924         * lib/uninorm/nfkc.c: New file.
46925         * modules/uninorm/nfkc: New file.
46926
46927         Tests for module 'uninorm/nfkd'.
46928         * tests/uninorm/test-nfkd.c: New file.
46929         * tests/uninorm/test-u8-nfkd.c: New file.
46930         * tests/uninorm/test-u16-nfkd.c: New file.
46931         * tests/uninorm/test-u32-nfkd.c: New file.
46932         * tests/uninorm/test-u32-nfkd-big.sh: New file.
46933         * tests/uninorm/test-u32-nfkd-big.c: New file.
46934         * modules/uninorm/nfkd-tests: New file.
46935
46936         New module 'uninorm/nfkd'.
46937         * lib/uninorm/nfkd.c: New file.
46938         * modules/uninorm/nfkd: New file.
46939
46940         Tests for module 'uninorm/nfc'.
46941         * tests/uninorm/test-nfc.c: New file.
46942         * tests/uninorm/test-u8-nfc.c: New file.
46943         * tests/uninorm/test-u16-nfc.c: New file.
46944         * tests/uninorm/test-u32-nfc.c: New file.
46945         * tests/uninorm/test-u32-nfc-big.sh: New file.
46946         * tests/uninorm/test-u32-nfc-big.c: New file.
46947         * modules/uninorm/nfc-tests: New file.
46948
46949         New module 'uninorm/nfc'.
46950         * lib/uninorm/nfc.c: New file.
46951         * modules/uninorm/nfc: New file.
46952
46953         Tests for module 'uninorm/nfd'.
46954         * tests/uninorm/test-nfd.c: New file.
46955         * tests/uninorm/test-u8-nfd.c: New file.
46956         * tests/uninorm/test-u16-nfd.c: New file.
46957         * tests/uninorm/test-u32-nfd.c: New file.
46958         * tests/uninorm/test-u32-nfd-big.sh: New file.
46959         * tests/uninorm/test-u32-nfd-big.c: New file.
46960         * tests/uninorm/test-u32-normalize-big.h: New file.
46961         * tests/uninorm/test-u32-normalize-big.c: New file.
46962         * tests/uninorm/NormalizationTest.txt: New file, created from
46963         Unicode 5.1.0 NormalizationTest.txt.
46964         * modules/uninorm/nfd-tests: New file.
46965
46966         New module 'uninorm/nfd'.
46967         * lib/uninorm/nfd.c: New file.
46968         * modules/uninorm/nfd: New file.
46969
46970         New module 'uninorm/u32-normalize'.
46971         * lib/uninorm/u32-normalize.c: New file.
46972         * modules/uninorm/u32-normalize: New file.
46973
46974         New module 'uninorm/u16-normalize'.
46975         * lib/uninorm/u16-normalize.c: New file.
46976         * modules/uninorm/u16-normalize: New file.
46977
46978         New module 'uninorm/u8-normalize'.
46979         * lib/uninorm/u8-normalize.c: New file.
46980         * lib/uninorm/normalize-internal.h: New file.
46981         * lib/uninorm/u-normalize-internal.h: New file.
46982         * modules/uninorm/u8-normalize: New file.
46983
46984         New module 'uninorm/decompose-internal'.
46985         * lib/uninorm/decompose-internal.c: New file.
46986         * modules/uninorm/decompose-internal: New file.
46987
46988         Tests for module 'uninorm/composition'.
46989         * tests/uninorm/test-composition.c: New file.
46990         * modules/uninorm/composition-tests: New file.
46991
46992         New module 'uninorm/composition'.
46993         * lib/uninorm/composition.c: New file.
46994         * lib/uninorm/composition-table.gperf: New file, generated by
46995         gen-uni-tables.
46996         * modules/uninorm/composition: New file.
46997
46998         Tests for module 'uninorm/compat-decomposition'.
46999         * tests/uninorm/test-compat-decomposition.c: New file.
47000         * modules/uninorm/compat-decomposition-tests: New file.
47001
47002         New module 'uninorm/compat-decomposition'.
47003         * lib/uninorm/decompose-internal.h: New file.
47004         * lib/uninorm/compat-decomposition.c: New file.
47005         * modules/uninorm/compat-decomposition: New file.
47006
47007         Tests for module 'uninorm/canonical-decomposition'.
47008         * tests/uninorm/test-canonical-decomposition.c: New file.
47009         * modules/uninorm/canonical-decomposition-tests: New file.
47010
47011         New module 'uninorm/canonical-decomposition'.
47012         * lib/uninorm/canonical-decomposition.c: New file.
47013         * modules/uninorm/canonical-decomposition: New file.
47014
47015         Tests for module 'uninorm/decomposition'.
47016         * tests/uninorm/test-decomposition.c: New file.
47017         * modules/uninorm/decomposition-tests: New file.
47018
47019         New module 'uninorm/decomposition'.
47020         * lib/uninorm/decomposition.c: New file.
47021         * modules/uninorm/decomposition: New file.
47022
47023         New module 'uninorm/decomposition-table'.
47024         * lib/uninorm/decomposition-table.h: New file.
47025         * lib/uninorm/decomposition-table.c: New file.
47026         * lib/uninorm/decomposition-table1.h: New file, generated by
47027         gen-uni-tables.
47028         * lib/uninorm/decomposition-table2.h: New file, generated by
47029         gen-uni-tables.
47030         * modules/uninorm/decomposition-table: New file.
47031
47032         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
47033         (UC_DECOMP_*): New enumeration items.
47034         (get_decomposition): New function.
47035         (struct decomp_table): New type.
47036         (output_decomposition, output_decomposition_tables): New functions.
47037         (unicode_composition_exclusions): New variable.
47038         (fill_composition_exclusions, debug_output_composition_tables): New
47039         functions.
47040         (main): Accept one more argument. Invoke fill_composition_exclusions.
47041         Output decomposition and composition tables.
47042
47043         New module 'uninorm/base'.
47044         * lib/uninorm.h: New file.
47045         * lib/unictype.h: Update comment.
47046         * modules/uninorm/base: New file.
47047
47048 2009-02-21  David Lutterkort  <lutter@redhat.com>
47049
47050         Tests for module 'safe-alloc'.
47051         * tests/test-safe-alloc.c: New file.
47052         * modules/safe-alloc-tests: New file.
47053
47054         New module 'safe-alloc'.
47055         * lib/safe-alloc.h: New file.
47056         * lib/safe-alloc.c: New file.
47057         * m4/safe-alloc.m4: New file.
47058         * modules/safe-alloc: New file.
47059         * doc/safe-alloc.texi: New file.
47060         * doc/gnulib.texi: Include it.
47061         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
47062         safe-alloc.
47063
47064 2009-02-18  Bruno Haible  <bruno@clisp.org>
47065
47066         Fix link error on non-glibc systems.
47067         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
47068         variable.
47069         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47070
47071 2009-02-18  Jim Meyering  <meyering@redhat.com>
47072
47073         fts: avoid used-uninitialized error due to recent change
47074         * lib/fts.c (fts_read): Guard uses of the new member,
47075         parent->fts_n_dirs_remaining, since it's not relevant for
47076         the parent of a directory specified on the command-line.
47077
47078 2009-02-17  James Youngman  <jay@gnu.org>
47079             Bruno Haible  <bruno@clisp.org>
47080
47081         * m4/include_next.m4: Reformulate comment.
47082
47083 2009-02-16  Jim Meyering  <meyering@redhat.com>
47084
47085         fts: add #if guards so that the fts_lgpl module still builds
47086         * lib/fts.c: Guard just-added hash-table-using parts with
47087         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
47088         Reported by Simon Josefsson.
47089
47090 2009-02-15  Bruno Haible  <bruno@clisp.org>
47091
47092         * modules/array-mergesort-tests: New file.
47093         * tests/test-array-mergesort.c: New file.
47094
47095         New module 'array-mergesort'.
47096         * modules/array-mergesort: New file.
47097         * lib/array-mergesort.h: New file.
47098
47099 2009-02-15  Bruno Haible  <bruno@clisp.org>
47100
47101         Fix 2009-02-07 commit.
47102         * lib/gen-uni-tables.c (output_predicate, output_category,
47103         output_combclass, output_bidi_category, output_decimal_digit,
47104         output_digit, output_numeric, output_mirror, output_scripts,
47105         output_ident_category, output_simple_mapping): Fix format directives.
47106         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
47107
47108 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
47109
47110         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
47111         fixes are available from IBM.
47112
47113 2009-02-13  Jim Meyering  <meyering@redhat.com>
47114
47115         fts: arrange not to stat non-directories in more cases
47116         This makes GNU find (when it doesn't need to stat each file)
47117         *much* more efficient at traversing reiserfs file systems.
47118         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
47119         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
47120         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
47121         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
47122         (leaf_optimization_applies): New function.
47123         (LCO_hash, LCO_compare): New helper functions.
47124         (link_count_optimize_ok): New function.
47125         (fts_stat): Initialize new member (if dir).
47126         (fts_read): Decrement parent's fts_n_dirs_remaining count if
47127         we've just stat'ed a directory.  Skip the stat call when possible.
47128         ---
47129         Note this AFS-related exchange:
47130         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
47131         and note find's pioctl call in find/fstype.c.
47132         But that is necessary only if you want to enable the
47133         optimization for AFS, and for now, I don't.
47134
47135         fts: move a function definition "up" (no semantic change)
47136         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
47137         "up" to precede upcoming use of a related function.
47138
47139 2009-02-11  Jim Meyering  <meyering@redhat.com>
47140
47141         fts: correct internal computation of nlinks (optimization-related)
47142         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
47143         whether the current entry is a directory, so don't test it.
47144
47145 2009-02-10  Bruno Haible  <bruno@clisp.org>
47146
47147         Tests for module 'uniwbrk/ulc-wordbreaks'.
47148         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
47149         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
47150         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
47151
47152         Tests for module 'uniwbrk/u32-wordbreaks'.
47153         * modules/uniwbrk/u32-wordbreaks-tests: New file.
47154         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
47155
47156         Tests for module 'uniwbrk/u16-wordbreaks'.
47157         * modules/uniwbrk/u16-wordbreaks-tests: New file.
47158         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
47159
47160         Tests for module 'uniwbrk/u8-wordbreaks'.
47161         * modules/uniwbrk/u8-wordbreaks-tests: New file.
47162         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
47163
47164 2009-02-10  Bruno Haible  <bruno@clisp.org>
47165
47166         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
47167         property.
47168         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
47169         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
47170         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
47171
47172 2009-02-10  Simon Josefsson  <simon@josefsson.org>
47173
47174         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
47175         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
47176
47177 2009-02-10  Bruno Haible  <bruno@clisp.org>
47178
47179         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
47180         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
47181         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
47182         * lib/unilbrk/u8-possible-linebreaks.c: Update.
47183         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
47184         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
47185
47186 2009-02-09  Simon Josefsson  <simon@josefsson.org>
47187
47188         * lib/sockets.h (gl_fd_to_handle): New function.
47189
47190         * tests/test-sockets.c: Call gl_fd_to_handle.
47191
47192 2009-02-09  Bruno Haible  <bruno@clisp.org>
47193
47194         * doc/havelib.texi: Document the conventions on bi-arch systems.
47195
47196 2009-02-08  Bruno Haible  <bruno@clisp.org>
47197
47198         Document the AC_LIB_LINKFLAGS macro.
47199         * doc/havelib.texi: New file, mostly written on 2005-05-24.
47200         * doc/gnulib.texi: Include it.
47201
47202 2009-02-08  Bruno Haible  <bruno@clisp.org>
47203
47204         Fix wrong order of sections, compared to TOC.
47205         * doc/gnulib.texi: Include relocatable-maint.texi after the
47206         "Regular expressions" node, not before.
47207
47208 2009-02-08  Bruno Haible  <bruno@clisp.org>
47209
47210         Tests for module 'unicase/totitle'.
47211         * modules/unicase/totitle-tests: New file.
47212
47213         Tests for module 'unicase/tolower'.
47214         * modules/unicase/tolower-tests: New file.
47215
47216         Tests for module 'unicase/toupper'.
47217         * modules/unicase/toupper-tests: New file.
47218         * tests/unicase/test-mapping-part1.h: New file.
47219         * tests/unicase/test-mapping-part2.h: New file.
47220
47221         New module 'unicase/totitle'.
47222         * modules/unicase/totitle: New file.
47223         * lib/unicase/totitle.c: New file.
47224
47225         New module 'unicase/tolower'.
47226         * modules/unicase/tolower: New file.
47227         * lib/unicase/tolower.c: New file.
47228
47229         New module 'unicase/toupper'.
47230         * modules/unicase/toupper: New file.
47231         * lib/unicase/toupper.c: New file.
47232         * lib/unicase/simple-mapping.h: New file.
47233
47234         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
47235         (mapping_table): New structure.
47236         (output_simple_mapping): New function.
47237         (main): Invoke output_simple_mapping_test and output_simple_mapping.
47238         * modules/gen-uni-tables (Description): Update.
47239         * lib/unicase/toupper.h: New file, automatically generated by
47240         gen-uni-tables.
47241         * lib/unicase/tolower.h: New file, automatically generated by
47242         gen-uni-tables.
47243         * lib/unicase/totitle.h: New file, automatically generated by
47244         gen-uni-tables.
47245         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
47246         gen-uni-tables.
47247         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
47248         gen-uni-tables.
47249         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
47250         gen-uni-tables.
47251
47252         New module 'unicase/base'.
47253         * modules/unicase/base: New file.
47254         * lib/unicase.h: New file.
47255
47256 2009-02-08  Bruno Haible  <bruno@clisp.org>
47257
47258         New module 'uniwbrk/ulc-wordbreaks'.
47259         * modules/uniwbrk/ulc-wordbreaks: New file.
47260         * lib/uniwbrk/ulc-wordbreaks.c: New file.
47261
47262         New module 'uniwbrk/u32-wordbreaks'.
47263         * modules/uniwbrk/u32-wordbreaks: New file.
47264         * lib/uniwbrk/u32-wordbreaks.c: New file.
47265
47266         New module 'uniwbrk/u16-wordbreaks'.
47267         * modules/uniwbrk/u16-wordbreaks: New file.
47268         * lib/uniwbrk/u16-wordbreaks.c: New file.
47269
47270         New module 'uniwbrk/u8-wordbreaks'.
47271         * modules/uniwbrk/u8-wordbreaks: New file.
47272         * lib/uniwbrk/u8-wordbreaks.c: New file.
47273         * lib/uniwbrk/u-wordbreaks.h: New file.
47274
47275         New module 'uniwbrk/table'.
47276         * modules/uniwbrk/table: New file.
47277         * lib/uniwbrk/wbrktable.h: New file.
47278         * lib/uniwbrk/wbrktable.c: New file.
47279
47280         New module 'uniwbrk/wordbreak-property'.
47281         * modules/uniwbrk/wordbreak-property: New file.
47282         * lib/uniwbrk/wordbreak-property.c: New file.
47283
47284         * lib/gen-uni-tables.c (WBP_*): New enum items.
47285         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
47286         (unicode_org_wbp): New variable.
47287         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
47288         New functions.
47289         (wbp_table): New structure.
47290         (output_wbp, output_wbrk_tables): New functions.
47291         (main): Accept additional argument. Invoke fill_org_wbp,
47292         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
47293         output_wbrk_tables.
47294         * modules/gen-uni-tables (Description): Update.
47295         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
47296         gen-uni-tables.
47297
47298         New module 'uniwbrk/base'.
47299         * modules/uniwbrk/base: New file.
47300         * lib/uniwbrk.h: New file.
47301
47302 2009-02-08  Bruno Haible  <bruno@clisp.org>
47303
47304         Update to Unicode 5.1.0.
47305         * lib/gen-uni-tables.c (is_property_alphabetic): Include
47306         U+2185..U+2188.
47307         (is_property_default_ignorable_code_point): Don't include characters
47308         of category Cc or Cs and not-a-characters.
47309         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
47310         U+0D79, U+109E, U+109F, U+A60C.
47311         * lib/unictype/bidi_of.h: Regenerated.
47312         * lib/unictype/blocks.h: Regenerated.
47313         * lib/unictype/categ_C.h: Regenerated.
47314         * lib/unictype/categ_Cf.h: Regenerated.
47315         * lib/unictype/categ_Cn.h: Regenerated.
47316         * lib/unictype/categ_L.h: Regenerated.
47317         * lib/unictype/categ_Ll.h: Regenerated.
47318         * lib/unictype/categ_Lm.h: Regenerated.
47319         * lib/unictype/categ_Lo.h: Regenerated.
47320         * lib/unictype/categ_Lu.h: Regenerated.
47321         * lib/unictype/categ_M.h: Regenerated.
47322         * lib/unictype/categ_Mc.h: Regenerated.
47323         * lib/unictype/categ_Me.h: Regenerated.
47324         * lib/unictype/categ_Mn.h: Regenerated.
47325         * lib/unictype/categ_N.h: Regenerated.
47326         * lib/unictype/categ_Nd.h: Regenerated.
47327         * lib/unictype/categ_Nl.h: Regenerated.
47328         * lib/unictype/categ_No.h: Regenerated.
47329         * lib/unictype/categ_P.h: Regenerated.
47330         * lib/unictype/categ_Pd.h: Regenerated.
47331         * lib/unictype/categ_Pe.h: Regenerated.
47332         * lib/unictype/categ_Pf.h: Regenerated.
47333         * lib/unictype/categ_Pi.h: Regenerated.
47334         * lib/unictype/categ_Po.h: Regenerated.
47335         * lib/unictype/categ_Ps.h: Regenerated.
47336         * lib/unictype/categ_S.h: Regenerated.
47337         * lib/unictype/categ_Sk.h: Regenerated.
47338         * lib/unictype/categ_Sm.h: Regenerated.
47339         * lib/unictype/categ_So.h: Regenerated.
47340         * lib/unictype/categ_of.h: Regenerated.
47341         * lib/unictype/combining.h: Regenerated.
47342         * lib/unictype/ctype_alnum.h: Regenerated.
47343         * lib/unictype/ctype_alpha.h: Regenerated.
47344         * lib/unictype/ctype_graph.h: Regenerated.
47345         * lib/unictype/ctype_lower.h: Regenerated.
47346         * lib/unictype/ctype_print.h: Regenerated.
47347         * lib/unictype/ctype_punct.h: Regenerated.
47348         * lib/unictype/ctype_upper.h: Regenerated.
47349         * lib/unictype/decdigit.h: Regenerated.
47350         * lib/unictype/digit.h: Regenerated.
47351         * lib/unictype/mirror.h: Regenerated.
47352         * lib/unictype/numeric.h: Regenerated.
47353         * lib/unictype/pr_alphabetic.h: Regenerated.
47354         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
47355         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
47356         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
47357         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
47358         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
47359         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
47360         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
47361         * lib/unictype/pr_combining.h: Regenerated.
47362         * lib/unictype/pr_dash.h: Regenerated.
47363         * lib/unictype/pr_decimal_digit.h: Regenerated.
47364         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
47365         * lib/unictype/pr_deprecated.h: Regenerated.
47366         * lib/unictype/pr_diacritic.h: Regenerated.
47367         * lib/unictype/pr_extender.h: Regenerated.
47368         * lib/unictype/pr_format_control.h: Regenerated.
47369         * lib/unictype/pr_grapheme_base.h: Regenerated.
47370         * lib/unictype/pr_grapheme_extend.h: Regenerated.
47371         * lib/unictype/pr_grapheme_link.h: Regenerated.
47372         * lib/unictype/pr_id_continue.h: Regenerated.
47373         * lib/unictype/pr_id_start.h: Regenerated.
47374         * lib/unictype/pr_ideographic.h: Regenerated.
47375         * lib/unictype/pr_ignorable_control.h: Regenerated.
47376         * lib/unictype/pr_lowercase.h: Regenerated.
47377         * lib/unictype/pr_math.h: Regenerated.
47378         * lib/unictype/pr_numeric.h: Regenerated.
47379         * lib/unictype/pr_other_alphabetic.h: Regenerated.
47380         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
47381         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
47382         * lib/unictype/pr_other_id_continue.h: Regenerated.
47383         * lib/unictype/pr_other_lowercase.h: Regenerated.
47384         * lib/unictype/pr_other_math.h: Regenerated.
47385         * lib/unictype/pr_punctuation.h: Regenerated.
47386         * lib/unictype/pr_sentence_terminal.h: Regenerated.
47387         * lib/unictype/pr_soft_dotted.h: Regenerated.
47388         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
47389         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
47390         * lib/unictype/pr_unified_ideograph.h: Regenerated.
47391         * lib/unictype/pr_uppercase.h: Regenerated.
47392         * lib/unictype/pr_xid_continue.h: Regenerated.
47393         * lib/unictype/pr_xid_start.h: Regenerated.
47394         * lib/unictype/pr_zero_width.h: Regenerated.
47395         * lib/unictype/scripts.h: Regenerated.
47396         * lib/unictype/scripts_byname.gperf: Regenerated.
47397         * lib/unictype/sy_java_ident.h: Regenerated.
47398         * lib/unilbrk/lbrkprop1.h: Regenerated.
47399         * lib/unilbrk/lbrkprop2.h: Regenerated.
47400         * tests/unictype/test-categ_C.c: Regenerated.
47401         * tests/unictype/test-categ_Cf.c: Regenerated.
47402         * tests/unictype/test-categ_Cn.c: Regenerated.
47403         * tests/unictype/test-categ_L.c: Regenerated.
47404         * tests/unictype/test-categ_Ll.c: Regenerated.
47405         * tests/unictype/test-categ_Lm.c: Regenerated.
47406         * tests/unictype/test-categ_Lo.c: Regenerated.
47407         * tests/unictype/test-categ_Lu.c: Regenerated.
47408         * tests/unictype/test-categ_M.c: Regenerated.
47409         * tests/unictype/test-categ_Mc.c: Regenerated.
47410         * tests/unictype/test-categ_Me.c: Regenerated.
47411         * tests/unictype/test-categ_Mn.c: Regenerated.
47412         * tests/unictype/test-categ_N.c: Regenerated.
47413         * tests/unictype/test-categ_Nd.c: Regenerated.
47414         * tests/unictype/test-categ_Nl.c: Regenerated.
47415         * tests/unictype/test-categ_No.c: Regenerated.
47416         * tests/unictype/test-categ_P.c: Regenerated.
47417         * tests/unictype/test-categ_Pd.c: Regenerated.
47418         * tests/unictype/test-categ_Pe.c: Regenerated.
47419         * tests/unictype/test-categ_Pf.c: Regenerated.
47420         * tests/unictype/test-categ_Pi.c: Regenerated.
47421         * tests/unictype/test-categ_Po.c: Regenerated.
47422         * tests/unictype/test-categ_Ps.c: Regenerated.
47423         * tests/unictype/test-categ_S.c: Regenerated.
47424         * tests/unictype/test-categ_Sk.c: Regenerated.
47425         * tests/unictype/test-categ_Sm.c: Regenerated.
47426         * tests/unictype/test-categ_So.c: Regenerated.
47427         * tests/unictype/test-ctype_alnum.c: Regenerated.
47428         * tests/unictype/test-ctype_alpha.c: Regenerated.
47429         * tests/unictype/test-ctype_graph.c: Regenerated.
47430         * tests/unictype/test-ctype_lower.c: Regenerated.
47431         * tests/unictype/test-ctype_print.c: Regenerated.
47432         * tests/unictype/test-ctype_punct.c: Regenerated.
47433         * tests/unictype/test-ctype_upper.c: Regenerated.
47434         * tests/unictype/test-decdigit.h: Regenerated.
47435         * tests/unictype/test-digit.h: Regenerated.
47436         * tests/unictype/test-numeric.h: Regenerated.
47437         * tests/unictype/test-pr_alphabetic.c: Regenerated.
47438         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
47439         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
47440         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
47441         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
47442         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
47443         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
47444         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
47445         * tests/unictype/test-pr_combining.c: Regenerated.
47446         * tests/unictype/test-pr_dash.c: Regenerated.
47447         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
47448         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
47449         * tests/unictype/test-pr_deprecated.c: Regenerated.
47450         * tests/unictype/test-pr_diacritic.c: Regenerated.
47451         * tests/unictype/test-pr_extender.c: Regenerated.
47452         * tests/unictype/test-pr_format_control.c: Regenerated.
47453         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
47454         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
47455         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
47456         * tests/unictype/test-pr_id_continue.c: Regenerated.
47457         * tests/unictype/test-pr_id_start.c: Regenerated.
47458         * tests/unictype/test-pr_ideographic.c: Regenerated.
47459         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
47460         * tests/unictype/test-pr_lowercase.c: Regenerated.
47461         * tests/unictype/test-pr_math.c: Regenerated.
47462         * tests/unictype/test-pr_numeric.c: Regenerated.
47463         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
47464         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
47465         Regenerated.
47466         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
47467         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
47468         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
47469         * tests/unictype/test-pr_other_math.c: Regenerated.
47470         * tests/unictype/test-pr_punctuation.c: Regenerated.
47471         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
47472         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
47473         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
47474         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
47475         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
47476         * tests/unictype/test-pr_uppercase.c: Regenerated.
47477         * tests/unictype/test-pr_xid_continue.c: Regenerated.
47478         * tests/unictype/test-pr_xid_start.c: Regenerated.
47479         * tests/unictype/test-pr_zero_width.c: Regenerated.
47480
47481         Update to Unicode 5.1.0.
47482         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
47483         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
47484         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
47485         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
47486         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
47487         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
47488         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
47489         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
47490         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
47491         (nonspacing_table_ind): Update.
47492         * tests/uniwidth/test-uc_width2.sh: Update expected result.
47493
47494         Update to Unicode 5.1.0.
47495         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
47496         code transform.
47497         * lib/uniname/uniname.c (unicode_character_name,
47498         unicode_name_character): Add the range 0x1Fxxx to the code transform.
47499         * lib/uniname/uninames.h: Regenerated.
47500         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
47501
47502 2009-02-07  Bruno Haible  <bruno@clisp.org>
47503
47504         Merge gen-ctype and gen-lbrk into a single program.
47505         * lib/gen-uni-tables.c: New file, incorporating
47506         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
47507         Add directory prefixes to the names of the generated files.
47508         * lib/unictype/gen-ctype.c: Remove file.
47509         * lib/unilbrk/gen-lbrk.c: Remove file.
47510         * modules/gen-uni-tables: New file.
47511         * modules/unictype/gen-ctype: Remove file.
47512         * modules/unilbrk/gen-lbrk: Remove file.
47513
47514 2009-02-07  Bruno Haible  <bruno@clisp.org>
47515
47516         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
47517
47518         New module 'unistr/u32-strcoll'.
47519         * modules/unistr/u32-strcoll: New file.
47520         * lib/unistr/u32-strcoll.c: New file.
47521
47522         New module 'unistr/u16-strcoll'.
47523         * modules/unistr/u16-strcoll: New file.
47524         * lib/unistr/u16-strcoll.c: New file.
47525
47526         New module 'unistr/u8-strcoll'.
47527         * modules/unistr/u8-strcoll: New file.
47528         * lib/unistr/u8-strcoll.c: New file.
47529         * lib/unistr/u-strcoll.h: New file.
47530
47531 2009-02-07  Bruno Haible  <bruno@clisp.org>
47532
47533         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
47534         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47535         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47536         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
47537         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
47538         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
47539
47540 2009-02-07  Bruno Haible  <bruno@clisp.org>
47541
47542         Make 64-bit clean.
47543         * lib/unictype/gen-ctype.c (output_predicate, output_category,
47544         output_combclass, output_bidi_category, output_decimal_digit,
47545         output_digit, output_numeric, output_mirror, output_scripts,
47546         output_ident_category): Use proper width specifier in format strings.
47547
47548 2009-02-07  Bruno Haible  <bruno@clisp.org>
47549
47550         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
47551         failure behaviour.
47552
47553 2009-02-07  Jim Meyering  <meyering@redhat.com>
47554
47555         regex: avoid compilation failure with upcoming gcc-4.4
47556         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
47557         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
47558         "... error: integer overflow in preprocessor expression".
47559
47560 2009-02-05  Ben Pfaff  <blp@gnu.org>
47561
47562         Fix link errors on Windows when close module is used.
47563         * modules/close: Add $(LIB_CLOSE) to Link section.
47564         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
47565         $(LIB_CLOSE) on Windows.
47566
47567 2009-02-05  Jim Meyering  <meyering@redhat.com>
47568
47569         still avoid unused-parameter warnings, but do it cleanly
47570         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
47571         (get_fs_usage): Cast to void instead.
47572         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
47573         (dev_from_mount_options, read_file_system_list): Cast to void.
47574         Prompted by Bruno Haible.
47575
47576 2009-02-04  Jim Meyering  <meyering@redhat.com>
47577
47578         fsusage.c: correct copyright year
47579         * lib/fsusage.c: Reflect year in which the change is pushed into
47580
47581         avoid misc. warnings
47582         * lib/fsusage.c (UNUSED_PARAM): Define.
47583         (get_fs_usage): Mark parameter "disk" as unused.
47584         * lib/getugroups.c (getgrent): Use "void" in prototype.
47585         * lib/mountlist.c: Mark unused parameters.
47586         (read_file_system_list): Declare a local with "const".
47587         * lib/nanosleep.c (getnow): Declare static.
47588         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
47589
47590         dirfd: set errno upon failure
47591         * lib/dirfd.c: Include <errno.h>.
47592         Set errno to ENOTSUP when returning -1.
47593         * modules/dirfd (Depends-on): Add errno.
47594         Suggested by John Kodis <kodis@comcast.net>.
47595
47596 2009-02-01  Bruno Haible  <bruno@clisp.org>
47597
47598         Don't assume sizeof (long) >= sizeof (void *).
47599         * lib/memcmp.c: Include stdint.h.
47600         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
47601         srcp2 to 'const byte *'.
47602         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
47603         types to uintptr_t.
47604         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
47605         * modules/memcmp (Depends-on): Add stdint.
47606         Reported by Ozkan Sezer <sezeroz@gmail.com>.
47607
47608 2009-01-30  Eric Blake  <ebb9@byu.net>
47609
47610         fix more require-before-expand issues
47611         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
47612         expand, AC_PROG_AWK.
47613         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
47614
47615 2009-01-28  Eric Blake  <ebb9@byu.net>
47616
47617         version-etc: use consistent URL formatting
47618         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
47619         Improve formatting.  Use fputs for string without %.
47620
47621 2009-01-28  Jim Meyering  <meyering@redhat.com>
47622
47623         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
47624         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
47625         "underquoted definition of NAME" from autoconf-2.59.
47626
47627 2009-01-28  Bruno Haible  <bruno@clisp.org>
47628
47629         * doc/gnulib.texi: Add "Obsolete modules" to index.
47630
47631 2009-01-28  Jim Meyering  <meyering@redhat.com>
47632
47633         useless-if-before-free: recognize more variants
47634         * build-aux/useless-if-before-free: Also recognize e.g.,
47635         if (NULL != p) free (p);
47636
47637 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
47638
47639         test-getaddrinfo: skip (don't fail) this test when there's no network
47640         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
47641         on the presumption that it means you lack network access.
47642
47643 2009-01-26  Jim Meyering  <meyering@redhat.com>
47644
47645         fflush: avoid warnings on modern systems
47646         * lib/fflush.c (rpl_fflush): Move declarations of locals,
47647         pos and result, into scopes where they're used.
47648
47649 2009-01-26  Eric Blake  <ebb9@byu.net>
47650
47651         Silence warning reintroduced by recent extensions patch.
47652         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
47653         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
47654         autoconf.
47655
47656         Backport improved autoconf semantics of AC_DEFUN_ONCE.
47657         * m4/00gnulib.m4: New file.
47658         * gnulib-tool (func_get_filelist): Always use it.
47659         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
47660         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
47661
47662 2009-01-25  Bruno Haible  <bruno@clisp.org>
47663
47664         Make test-quotearg work on MacOS X and AIX.
47665         * tests/test-quotearg.sh: New file.
47666         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
47667         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
47668         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
47669         include <libintl.h>.
47670         (fake_locale): Remove variable.
47671         (gettext, dgettext, dcgettext): Remove functions.
47672         (main): Instead of setting a fake locale, set a real locale. Call
47673         textdomain and bindtextdomain.
47674         * modules/quotearg-tests (Files): Add the new files.
47675         (Depends-on): Add gettext, setenv, unsetenv.
47676         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
47677         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
47678         Augment TESTS_ENVIRONMENT.
47679
47680 2009-01-25  Bruno Haible  <bruno@clisp.org>
47681
47682         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
47683         fr_FR.ISO8859-1 locale on MacOS X.
47684         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
47685         ja_JP.eucJP locale on MacOS X.
47686         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
47687         zh_CN.GB18030 locale on MacOS X.
47688
47689 2009-01-25  Bruno Haible  <bruno@clisp.org>
47690
47691         Avoid link errors on MacOS X 10.3.
47692         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
47693         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
47694
47695 2009-01-25  Bruno Haible  <bruno@clisp.org>
47696
47697         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47698         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
47699         * modules/pipe (Files): Remove m4/posix_spawn.m4.
47700         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47701         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
47702         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47703         posix_spawnattr_init, posix_spawnattr_setsigmask,
47704         posix_spawnattr_setflags, posix_spawnattr_destroy.
47705
47706         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47707         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
47708         * modules/execute (Files): Remove m4/posix_spawn.m4.
47709         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47710         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47711         posix_spawnattr_init, posix_spawnattr_setsigmask,
47712         posix_spawnattr_setflags, posix_spawnattr_destroy.
47713
47714 2009-01-25  Bruno Haible  <bruno@clisp.org>
47715
47716         * lib/glthread/threadlib.c: Include <stdlib.h>.
47717
47718 2009-01-25  Bruno Haible  <bruno@clisp.org>
47719
47720         * lib/glthread/threadlib.c (dummy): New declaration.
47721
47722 2009-01-25  Bruno Haible  <bruno@clisp.org>
47723
47724         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
47725         multibyte characters also for the GB18030 encoding. Don't crash when
47726         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
47727
47728 2009-01-25  Bruno Haible  <bruno@clisp.org>
47729
47730         Avoid redefining 'struct random_data' on OSF/1 5.1.
47731         * lib/stdlib.in.h: Include <random.h> if it exists.
47732         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
47733         HAVE_RANDOM_H. Include <random.h> when testing whether
47734         'struct random_data' exists.
47735         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
47736
47737 2009-01-25  Bruno Haible  <bruno@clisp.org>
47738
47739         Don't install charset.alias on MacOS X >= 10.3.
47740         * lib/localcharset.c (DARWIN7): New macro.
47741         (get_charset_aliases): Hardcode the result for Darwin7.
47742         * modules/localcharset (install-exec-local): Don't install
47743         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
47744
47745 2009-01-25  Bruno Haible  <bruno@clisp.org>
47746
47747         Don't install charset.alias on mingw and Cygwin.
47748         * modules/localcharset (install-exec-local): Don't install
47749         charset.alias on mingw and Cygwin, if the file does not yet exist.
47750         The result for these platforms is hardcoded in localcharset.c.
47751
47752 2009-01-25  Bruno Haible  <bruno@clisp.org>
47753
47754         Make it possible again to use AC_GNU_SOURCE together with gnulib.
47755         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
47756         before requiring AC_USE_SYSTEM_EXTENSIONS.
47757
47758 2009-01-25  Jim Meyering  <meyering@redhat.com>
47759
47760         c-strtod: avoid warnings
47761         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
47762         "assignment discards qualifiers from pointer target type" warnings.
47763
47764 2009-01-24  Bruno Haible  <bruno@clisp.org>
47765
47766         Add support for non-UTF-8 locales on MacOS X.
47767         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
47768         canonical encodings. For Darwin 7 and newer, don't map traditional
47769         encodings to UTF-8.
47770         Reported by Vincent Lefevre <vincent@vinc17.org>
47771         at <http://savannah.gnu.org/bugs/?25235>.
47772
47773 2009-01-24  Bruno Haible  <bruno@clisp.org>
47774
47775         * doc/gnulib.texi (Obsolete modules): New section.
47776         Reported by Mike Frysinger <vapier@gentoo.org>.
47777
47778 2009-01-24  Bruno Haible  <bruno@clisp.org>
47779
47780         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
47781         (%.dvi): New rule.
47782
47783 2009-01-24  Bruno Haible  <bruno@clisp.org>
47784
47785         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
47786         Reported by Eric Blake.
47787
47788 2009-01-24  Bruno Haible  <bruno@clisp.org>
47789
47790         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
47791         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
47792         Reported by Gary V. Vaughan <gary@gnu.org>.
47793
47794 2009-01-24  Bruno Haible  <bruno@clisp.org>
47795
47796         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
47797
47798 2009-01-23  Bruno Haible  <bruno@clisp.org>
47799
47800         Make c-strtod, c-strtold usable in libraries.
47801         * lib/c-strtod.c: Include string.h instead of xalloc.h.
47802         (C_STRTOD): Call strdup instead of xstrdup.
47803         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
47804         * modules/c-strtold (Depends-on): Likewise.
47805         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
47806         * NEWS: Mention the change.
47807         Reported by Michael Gold <mgold@ncf.ca>.
47808
47809 2009-01-23  Jim Meyering  <meyering@redhat.com>
47810
47811         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
47812         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
47813         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
47814
47815 2009-01-23  Simon Josefsson  <simon@josefsson.org>
47816
47817         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
47818         GNU CoreUtils.
47819         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
47820         * modules/version-etc (Description): Update.
47821
47822 2009-01-22  Bruno Haible  <bruno@clisp.org>
47823
47824         Cache the C locale object.
47825         * lib/c-strtod.c (c_locale_cache): New variable.
47826         (c_locale): New function.
47827         (C_STRTOD): Use it, and don't call freelocale.
47828         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
47829         Suggested by Paolo Bonzini.
47830
47831 2009-01-21  Bruno Haible  <bruno@clisp.org>
47832
47833         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
47834         conditions other than overflow.
47835
47836 2009-01-21  Bruno Haible  <bruno@clisp.org>
47837
47838         * lib/c-strtod.c: Include errno.h.
47839         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
47840         value from STRTOD_L and STRTOD.
47841
47842 2009-01-21  Bruno Haible  <bruno@clisp.org>
47843         and Jim Meyering  <meyering@redhat.com>
47844
47845         nanosleep: skip configure test (fail it) for apple universal builds
47846         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
47847         universal builds, assume that nanosleep does not work.
47848         * modules/nanosleep (Depends-on): Add multiarch.
47849
47850         mktime: skip configure test (fail it) for apple universal builds
47851         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
47852         universal builds, assume that mktime does not work.
47853         * modules/mktime (Depends-on): Add multiarch.
47854
47855 2009-01-21  Eric Blake  <ebb9@byu.net>
47856
47857         multiarch: avoid expand-before-require warning
47858         * modules/multiarch (configure.ac): Require, rather than expand,
47859         gl_MULTIARCH.
47860         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
47861         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
47862         enforce that all clients require it.  Partial reversion of
47863         2008-12-29 patch.
47864
47865         error: avoid expand-before-require warning
47866         * modules/errno (configure.ac): Require, rather than expand,
47867         gl_HEADER_ERRNO_H.
47868         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
47869         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
47870         enforce that all clients require it.
47871
47872         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
47873         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
47874         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
47875         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
47876
47877 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
47878
47879         Revert:
47880         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47881
47882         regex: do not depend on obsolete modules.
47883         * modules/regex: Remove memcmp and memmove.
47884
47885 2009-01-20  Bruno Haible  <bruno@clisp.org>
47886
47887         Make the 'link' module link on Windows NT 4.
47888         * lib/link.c (_WIN32_WINNT): Don't define.
47889         (CreateHardLinkFuncType): New type.
47890         (CreateHardLinkFunc, initialized): New variables.
47891         (initialize): New function.
47892         (link): Invoke CreateHardLink indirectly through the function pointer.
47893
47894 2009-01-20  Bruno Haible  <bruno@clisp.org>
47895
47896         Fix compilation failure on mingw.
47897         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
47898
47899 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
47900
47901         * doc/c-strtod.texi: Mention a couple of restrictions.
47902
47903 2009-01-20  Jim Meyering  <meyering@redhat.com>
47904
47905         gettimeofday: move more declarations out of functions
47906         * lib/gettimeofday.c: Move extern declarations of tzset and
47907         gmtime out of containing functions.  Prompted by Bruno Haible.
47908
47909 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47910
47911         regex: do not depend on obsolete modules.
47912         * modules/regex: Remove memcmp and memmove.
47913
47914 2009-01-19  Bruno Haible  <bruno@clisp.org>
47915
47916         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47917         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
47918         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47919         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
47920         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
47921
47922 2009-01-19  Bruno Haible  <bruno@clisp.org>
47923
47924         * tests/test-link.c: Include <errno.h>.
47925         (main): Exit with code 77 when a hard link cannot be created due to
47926         the file system.
47927         * tests/test-link.sh: Skip test when a hard link cannot be created due
47928         to the file system.
47929         Suggested by Eric Blake.
47930
47931 2009-01-19  Martin Lambers  <marlam@marlam.de>
47932
47933         * modules/link-tests: New file.
47934         * tests/test-link.sh: New file.
47935         * tests/test-link.c: New file.
47936
47937 2009-01-19  Eric Blake  <ebb9@byu.net>
47938
47939         doc: mention another function added in cygwin 1.7.0
47940         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
47941         Another new function in cygwin 1.7.
47942
47943 2009-01-19  Bruno Haible  <bruno@clisp.org>
47944
47945         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47946         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
47947         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
47948         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47949         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
47950         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
47951         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
47952         * m4/md4.m4 (gl_MD4): Likewise.
47953         * m4/md5.m4 (gl_MD5): Likewise.
47954         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
47955         * m4/sha1.m4 (gl_SHA1): Likewise.
47956         * m4/sha256.m4 (gl_SHA256): Likewise.
47957         * m4/sha512.m4 (gl_SHA512): Likewise.
47958
47959 2009-01-19  Bruno Haible  <bruno@clisp.org>
47960
47961         * modules/uniname/uniname-tests (Depends-on): Add progname.
47962         * tests/uniname/test-uninames.c: Include progname.h.
47963         (main): Call set_program_name.
47964
47965         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
47966         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
47967         (main): Call set_program_name.
47968
47969         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
47970         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
47971         (main): Call set_program_name.
47972
47973         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
47974         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
47975         (main): Call set_program_name.
47976
47977         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
47978         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
47979         (main): Call set_program_name.
47980
47981         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
47982         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
47983         (main): Call set_program_name.
47984
47985         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
47986         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
47987         (main): Call set_program_name.
47988
47989         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
47990         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
47991         (main): Call set_program_name.
47992
47993         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
47994         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
47995         (main): Call set_program_name.
47996
47997 2009-01-19  Eric Blake  <ebb9@byu.net>
47998
47999         test-unistd: test previous patch
48000         * tests/test-unistd.c: Test *_FILENO macros.
48001
48002         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
48003         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48004         Guarantee a definition.
48005         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
48006         * modules/unistd-safer (Depends-on): Add dependency on unistd.
48007         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
48008         * lib/dup-safer.c (STDERR_FILENO): Likewise.
48009         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48010         Likewise.
48011         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
48012         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
48013         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48014         Likewise.
48015         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
48016         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
48017         (STDERR_FILENO): Likewise.
48018         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
48019         (STDERR_FILENO): Likewise.
48020         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
48021         (STDERR_FILENO): Likewise.
48022         Reported by Elbert Pol.
48023
48024 2009-01-19  Eric Blake  <ebb9@byu.net>
48025
48026         doc: mention more functions added in cygwin 1.7.0
48027         * doc/posix-functions/abort.texi (abort): Update wording related
48028         to cygwin.
48029         * doc/posix-functions/daylight.texi (daylight): Likewise.
48030         * doc/posix-functions/optarg.texi (optarg): Likewise.
48031         * doc/posix-functions/optarg.texi (opterr): Likewise.
48032         * doc/posix-functions/optarg.texi (optind): Likewise.
48033         * doc/posix-functions/optarg.texi (optopt): Likewise.
48034         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
48035         worked in 1.5.x, and was withdrawn in 1.7.
48036         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
48037         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
48038         cygwin versions.
48039         * doc/posix-functions/perror.texi (perror): Likewise.
48040         * doc/posix-functions/printf.texi (printf): Likewise.
48041         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
48042         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
48043         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
48044         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
48045         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
48046         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
48047         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48048         Likewise.
48049         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48050         Likewise.
48051         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
48052         this function.
48053         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
48054         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
48055         Likewise.
48056         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
48057         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
48058         * doc/posix-functions/confstr.texi (confstr): Likewise.
48059         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
48060         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
48061         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
48062         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
48063         * doc/posix-functions/fputws.texi (fputws): Likewise.
48064         * doc/posix-functions/fwide.texi (fwide): Likewise.
48065         * doc/posix-functions/getwc.texi (getwc): Likewise.
48066         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
48067         * doc/posix-functions/putwc.texi (putwc): Likewise.
48068         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
48069         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
48070         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
48071         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
48072         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
48073         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
48074         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
48075         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
48076         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
48077         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
48078         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
48079
48080 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
48081
48082         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
48083         * lib/ioctl.c: Include <sys/ioctl.h>.
48084
48085 2009-01-19  Simon Josefsson  <simon@josefsson.org>
48086
48087         * modules/getdate-tests (Depends-on): Add progname.
48088         * tests/test-getdate.c: Use progname module, to avoid link errors
48089         on non-glibc systems.
48090
48091 2009-01-18  Simon Josefsson  <simon@josefsson.org>
48092
48093         * modules/filenamecat-tests (Depends-on): Add progname.
48094         * modules/fstrcmp-tests (Depends-on): Likewise.
48095
48096         * tests/test-filenamecat.c: Use progname module, to avoid link
48097         errors on non-glibc systems.
48098         * tests/test-fstrcmp.c: Likewise.
48099
48100 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
48101
48102         gettimeofday: avoid warning: nested extern declaration of 'localtime'
48103         * lib/gettimeofday.c: Move extern declaration out of function.
48104
48105 2009-01-18  Bruno Haible  <bruno@clisp.org>
48106
48107         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
48108         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
48109         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
48110
48111 2009-01-18  Bruno Haible  <bruno@clisp.org>
48112
48113         * lib/strftime.c (MEMPCPY): Remove unused macro.
48114         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
48115
48116 2009-01-18  Martin Lambers  <marlam@marlam.de>
48117
48118         New module 'link'.
48119         * lib/unistd.in.h (link): New declaration.
48120         * lib/link.c: New file.
48121         * m4/link.m4: New file.
48122         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
48123         HAVE_LINK.
48124         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
48125         * modules/link: New file.
48126         * doc/posix-functions/link.texi: Mention the new module.
48127
48128 2009-01-18  Bruno Haible  <bruno@clisp.org>
48129
48130         * tests/test-avltree_list.c (main): Call set_program_name.
48131         * tests/test-avltree_oset.c (main): Likewise.
48132         * tests/test-obstack-printf.c: Include progname.h.
48133         (main): Call set_program_name.
48134         * tests/test-quotearg.c: Include progname.h.
48135         (main): Call set_program_name.
48136         * tests/test-xmemdup0.c: Include progname.h.
48137         (main): Call set_program_name.
48138
48139 2009-01-18  Bruno Haible  <bruno@clisp.org>
48140
48141         New module 'alphasort'.
48142         * lib/dirent.in.h (alphasort): New declaration.
48143         * lib/alphasort.c: New file, from glibc with modifications.
48144         * m4/alphasort.m4: New file.
48145         * modules/alphasort: New file.
48146         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
48147         HAVE_ALPHASORT.
48148         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
48149         HAVE_ALPHASORT.
48150         * doc/posix-functions/alphasort.texi: Mention the new module and the
48151         portability problems.
48152
48153 2009-01-18  Bruno Haible  <bruno@clisp.org>
48154
48155         New module 'scandir'.
48156         * lib/dirent.in.h (scandir): New declaration.
48157         * lib/scandir.c: New file, from glibc with modifications.
48158         * m4/scandir.m4: New file.
48159         * modules/scandir: New file.
48160         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
48161         HAVE_SCANDIR.
48162         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
48163         HAVE_SCANDIR.
48164         * doc/posix-functions/scandir.texi: Mention the new module and the
48165         portability problems.
48166
48167 2009-01-17  Bruno Haible  <bruno@clisp.org>
48168
48169         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
48170         Update documentation.
48171         (func_remove_suffix): Escape all dots in the suffix. Update
48172         documentation.
48173         (func_filter_filelist): Update documentation.
48174         Reported by Ralf Wildenhues.
48175
48176 2009-01-17  Bruno Haible  <bruno@clisp.org>
48177
48178         * modules/dprintf-posix-tests: New file.
48179         * tests/test-dprintf-posix.sh: New file.
48180         * tests/test-dprintf-posix.c: New file.
48181
48182         New modules 'dprintf', 'dprintf-posix'.
48183         * lib/stdio.in.h (dprintf): New declaration.
48184         * lib/dprintf.c: New file.
48185         * m4/dprintf.m4: New file.
48186         * m4/dprintf-posix.m4: New file.
48187         * modules/dprintf: New file.
48188         * modules/dprintf-posix: New file.
48189         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
48190         HAVE_DPRINTF, REPLACE_DPRINTF.
48191         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
48192         HAVE_DPRINTF, REPLACE_DPRINTF.
48193         * doc/posix-functions/dprintf.texi: Mention the new modules.
48194
48195 2009-01-17  Bruno Haible  <bruno@clisp.org>
48196
48197         * modules/vdprintf-posix-tests: New file.
48198         * tests/test-vdprintf-posix.sh: New file.
48199         * tests/test-vdprintf-posix.c: New file.
48200
48201         New modules 'vdprintf', 'vdprintf-posix'.
48202         * lib/stdio.in.h (vdprintf): New declaration.
48203         * lib/vdprintf.c: New file.
48204         * m4/vdprintf.m4: New file.
48205         * m4/vdprintf-posix.m4: New file.
48206         * modules/vdprintf: New file.
48207         * modules/vdprintf-posix: New file.
48208         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
48209         HAVE_VDPRINTF, REPLACE_VDPRINTF.
48210         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
48211         HAVE_VDPRINTF, REPLACE_VDPRINTF.
48212         * doc/posix-functions/vdprintf.texi: Mention the new modules.
48213
48214 2009-01-17  Bruno Haible  <bruno@clisp.org>
48215
48216         Fix replacement of fopen on mingw.
48217         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
48218         mingw.
48219
48220 2009-01-17  Bruno Haible  <bruno@clisp.org>
48221
48222         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
48223         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
48224
48225 2009-01-17  Bruno Haible  <bruno@clisp.org>
48226
48227         Avoid test-fflush2.sh failure on mingw.
48228         * tests/test-fflush2.c: Include binary-io.h.
48229         (main): Put standard input into binary mode.
48230         * modules/fflush-tests (Depends-on): Add binary-io.
48231
48232 2009-01-17  Bruno Haible  <bruno@clisp.org>
48233
48234         * lib/wchar.in.h: In another particular situation, include only the
48235         system's <wchar.h> file.
48236         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
48237         Reported by Albert Chin-A-Young <china@thewrittenword.com>
48238         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
48239
48240 2009-01-17  Bruno Haible  <bruno@clisp.org>
48241
48242         Support for stripping executables in --enable-relocatable.
48243         * build-aux/install-reloc: Expect one more argument, or an environment
48244         variable RELOC_STRIP_PROG. If set, strip the destination program and
48245         its wrapper.
48246         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
48247         RELOC_STRIP_PROG.
48248         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
48249         to set RELOCATABLE_STRIP.
48250         * NEWS: Mention the new Makefile requirement.
48251
48252 2009-01-17  Bruno Haible  <bruno@clisp.org>
48253
48254         * build-aux/install-reloc: Remove debugging information left over by
48255         C compiler on MacOS X.
48256
48257 2009-01-17  Bruno Haible  <bruno@clisp.org>
48258
48259         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
48260         * lib/progreloc.c (find_executable): Fix type of pointer passed to
48261         _NSGetExecutablePath.
48262
48263 2009-01-16  Jim Meyering  <meyering@redhat.com>
48264
48265         strerror: avoid warnings about discarding "const"
48266         * lib/strerror.c (rpl_strerror): Instead of returning a const
48267         string from each and every "case", use a variable, and add a single
48268         cast after the switch.
48269
48270 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
48271
48272         * lib/arpa_inet.in.h: Add extern "C" block for C++.
48273
48274 2009-01-16  Bruno Haible  <bruno@clisp.org>
48275
48276         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
48277         array initializer syntax that also works in C++ mode.
48278         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48279
48280 2009-01-16  Jim Meyering  <meyering@redhat.com>
48281
48282         poll: suppress a warning
48283         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
48284         to ignore "...unsigned expression < 0 is always false" warnings.
48285
48286 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
48287
48288         poll: remove declarations of unused variables
48289         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
48290         sockbuf and optlen.
48291
48292 2009-01-15  Bruno Haible  <bruno@clisp.org>
48293
48294         Make fflush-after-ungetc POSIX compliant on BSD systems.
48295         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
48296         (clear_ungetc_buffer): Implement also for other systems.
48297         (rpl_fflush): On glibc systems, invoke
48298         clear_ungetc_buffer_preserving_position. Otherwise, invoke
48299         clear_ungetc_buffer after fetching the stream's position, not before.
48300
48301 2009-01-15  Bruno Haible  <bruno@clisp.org>
48302
48303         Make fflush-after-ungetc POSIX compliant on glibc systems.
48304         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
48305         after ungetc.
48306         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
48307         (rpl_fflush): On glibc systems, simply call the system's fflush
48308         function after clearing the ungetc buffer.
48309         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
48310         Instead, lseek only to the end of file, then use the system's fseeko
48311         for the rest. On glibc systems, reset the EOF indicator bit.
48312
48313 2009-01-15  Jim Meyering  <meyering@redhat.com>
48314
48315         openmp.m4: revert quote-adding change, for portability to older autoconf
48316         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
48317         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
48318         Simon Josefsson noticed the problem when using autoconf-2.61.
48319
48320 2009-01-15  Bruno Haible  <bruno@clisp.org>
48321
48322         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
48323         * tests/test-fflush2.c (ASSERT): Always fail.
48324         (main): Add two tests for fflush() after ungetc(), taking into account
48325         the Austin Group's clarification.
48326         Suggested by Eric Blake.
48327
48328 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
48329
48330         mktime.m4: remove K&R-style function prototypes
48331         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
48332         for the Sun C++ compiler.
48333
48334 2009-01-14  Bruno Haible  <bruno@clisp.org>
48335
48336         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
48337         while including <wchar.h>.
48338         * lib/wchar.in.h: In two particular situations on HP-UX, include only
48339         the system's <wchar.h> file.
48340         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48341
48342 2009-01-14  Bruno Haible  <bruno@clisp.org>
48343
48344         * m4/csharp.m4: Don't mention gettext on the serial number line.
48345         * m4/csharpexec.m4: Likewise.
48346         * m4/eaccess.m4: Likewise.
48347         * m4/javaexec.m4: Likewise.
48348         * m4/sig_atomic_t.m4: Likewise.
48349         * m4/tmpdir.m4: Likewise.
48350         * m4/intldir.m4: Bump gettext version.
48351         * m4/lib-ld.m4: Likewise.
48352
48353 2009-01-14  Bruno Haible  <bruno@clisp.org>
48354
48355         * lib/progname.c (set_program_name): Add more comments.
48356         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
48357
48358 2009-01-14  Simon Josefsson  <simon@josefsson.org>
48359
48360         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
48361         were sys/stat.h does not define it.
48362
48363 2009-01-14  Jim Meyering  <meyering@redhat.com>
48364
48365         many *.m4 files: improve m4 quoting
48366         99% of this change was performed by running the following commands:
48367         git ls-files | grep '\.m4$' | xargs perl -pi \
48368           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
48369           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48370           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48371           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
48372         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
48373         The remainder were to add Copyright dates, increment serial numbers,
48374         undo some changes in comments, exclude m4/intl.m4, and add quotes
48375         around the "1" in ",1" where the unusual spacing prohibited the
48376         above regexps from doing the job.  For more details, see
48377         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
48378         * m4/acl.m4: Modified.
48379         * m4/afs.m4: Likewise.
48380         * m4/alloca.m4: Likewise.
48381         * m4/argp.m4: Likewise.
48382         * m4/argz.m4: Likewise.
48383         * m4/atexit.m4: Likewise.
48384         * m4/bison-i18n.m4: Likewise.
48385         * m4/bison.m4: Likewise.
48386         * m4/byteswap.m4: Likewise.
48387         * m4/c-stack.m4: Likewise.
48388         * m4/c-strtod.m4: Likewise.
48389         * m4/calloc.m4: Likewise.
48390         * m4/canonicalize-lgpl.m4: Likewise.
48391         * m4/chown.m4: Likewise.
48392         * m4/clock_time.m4: Likewise.
48393         * m4/codeset.m4: Likewise.
48394         * m4/copy-file.m4: Likewise.
48395         * m4/csharp.m4: Likewise.
48396         * m4/csharpcomp.m4: Likewise.
48397         * m4/csharpexec.m4: Likewise.
48398         * m4/d-ino.m4: Likewise.
48399         * m4/d-type.m4: Likewise.
48400         * m4/dirfd.m4: Likewise.
48401         * m4/double-slash-root.m4: Likewise.
48402         * m4/eaccess.m4: Likewise.
48403         * m4/eealloc.m4: Likewise.
48404         * m4/environ.m4: Likewise.
48405         * m4/errno_h.m4: Likewise.
48406         * m4/euidaccess.m4: Likewise.
48407         * m4/execute.m4: Likewise.
48408         * m4/fatal-signal.m4: Likewise.
48409         * m4/fchdir.m4: Likewise.
48410         * m4/fcntl_h.m4: Likewise.
48411         * m4/fileblocks.m4: Likewise.
48412         * m4/filenamecat.m4: Likewise.
48413         * m4/findprog.m4: Likewise.
48414         * m4/flexmember.m4: Likewise.
48415         * m4/fnmatch.m4: Likewise.
48416         * m4/fopen.m4: Likewise.
48417         * m4/fpending.m4: Likewise.
48418         * m4/fprintf-posix.m4: Likewise.
48419         * m4/free.m4: Likewise.
48420         * m4/frexp.m4: Likewise.
48421         * m4/frexpl.m4: Likewise.
48422         * m4/fsusage.m4: Likewise.
48423         * m4/ftruncate.m4: Likewise.
48424         * m4/gc-camellia.m4: Likewise.
48425         * m4/gc-random.m4: Likewise.
48426         * m4/gc.m4: Likewise.
48427         * m4/getaddrinfo.m4: Likewise.
48428         * m4/getcwd-abort-bug.m4: Likewise.
48429         * m4/getcwd-path-max.m4: Likewise.
48430         * m4/getdate.m4: Likewise.
48431         * m4/getdomainname.m4: Likewise.
48432         * m4/getgroups.m4: Likewise.
48433         * m4/gethostname.m4: Likewise.
48434         * m4/gethrxtime.m4: Likewise.
48435         * m4/getline.m4: Likewise.
48436         * m4/getloadavg.m4: Likewise.
48437         * m4/getndelim2.m4: Likewise.
48438         * m4/getpass.m4: Likewise.
48439         * m4/gettext.m4: Likewise.
48440         * m4/gettime.m4: Likewise.
48441         * m4/gettimeofday.m4: Likewise.
48442         * m4/gnulib-common.m4: Likewise.
48443         * m4/group-member.m4: Likewise.
48444         * m4/host-os.m4: Likewise.
48445         * m4/iconv.m4: Likewise.
48446         * m4/iconv_open.m4: Likewise.
48447         * m4/inet_ntop.m4: Likewise.
48448         * m4/inet_pton.m4: Likewise.
48449         * m4/inline.m4: Likewise.
48450         * m4/intldir.m4: Likewise.
48451         * m4/intlmacosx.m4: Likewise.
48452         * m4/intmax.m4: Likewise.
48453         * m4/intmax_t.m4: Likewise.
48454         * m4/inttypes.m4: Likewise.
48455         * m4/inttypes_h.m4: Likewise.
48456         * m4/inttypes-pri.m4: Likewise.
48457         * m4/isapipe.m4: Likewise.
48458         * m4/isnand.m4: Likewise.
48459         * m4/isnanf.m4: Likewise.
48460         * m4/isnanl.m4: Likewise.
48461         * m4/javacomp.m4: Likewise.
48462         * m4/javaexec.m4: Likewise.
48463         * m4/jm-winsz1.m4: Likewise.
48464         * m4/jm-winsz2.m4: Likewise.
48465         * m4/lchown.m4: Likewise.
48466         * m4/lcmessage.m4: Likewise.
48467         * m4/ldexpl.m4: Likewise.
48468         * m4/lib-ld.m4: Likewise.
48469         * m4/lib-link.m4: Likewise.
48470         * m4/libsigsegv.m4: Likewise.
48471         * m4/link-follow.m4: Likewise.
48472         * m4/localcharset.m4: Likewise.
48473         * m4/locale-fr.m4: Likewise.
48474         * m4/locale-ja.m4: Likewise.
48475         * m4/locale-tr.m4: Likewise.
48476         * m4/locale-zh.m4: Likewise.
48477         * m4/lock.m4: Likewise.
48478         * m4/longlong.m4: Likewise.
48479         * m4/ls-mntd-fs.m4: Likewise.
48480         * m4/lstat.m4: Likewise.
48481         * m4/malloc.m4: Likewise.
48482         * m4/mathl.m4: Likewise.
48483         * m4/mbrtowc.m4: Likewise.
48484         * m4/mbstate_t.m4: Likewise.
48485         * m4/mbswidth.m4: Likewise.
48486         * m4/memchr.m4: Likewise.
48487         * m4/memcmp.m4: Likewise.
48488         * m4/memcpy.m4: Likewise.
48489         * m4/memmem.m4: Likewise.
48490         * m4/memmove.m4: Likewise.
48491         * m4/mempcpy.m4: Likewise.
48492         * m4/memrchr.m4: Likewise.
48493         * m4/memset.m4: Likewise.
48494         * m4/minmax.m4: Likewise.
48495         * m4/mkdir-slash.m4: Likewise.
48496         * m4/mkdtemp.m4: Likewise.
48497         * m4/mktime.m4: Likewise.
48498         * m4/mmap-anon.m4: Likewise.
48499         * m4/mountlist.m4: Likewise.
48500         * m4/nanosleep.m4: Likewise.
48501         * m4/nls.m4: Likewise.
48502         * m4/nocrash.m4: Likewise.
48503         * m4/open.m4: Likewise.
48504         * m4/openat.m4: Likewise.
48505         * m4/openmp.m4: Likewise.
48506         * m4/pathmax.m4: Likewise.
48507         * m4/perl.m4: Likewise.
48508         * m4/physmem.m4: Likewise.
48509         * m4/pipe.m4: Likewise.
48510         * m4/po.m4: Likewise.
48511         * m4/poll.m4: Likewise.
48512         * m4/posixtm.m4: Likewise.
48513         * m4/posixver.m4: Likewise.
48514         * m4/printf-frexp.m4: Likewise.
48515         * m4/printf-frexpl.m4: Likewise.
48516         * m4/printf-posix.m4: Likewise.
48517         * m4/printf-posix-rpl.m4: Likewise.
48518         * m4/printf.m4: Likewise.
48519         * m4/progtest.m4: Likewise.
48520         * m4/putenv.m4: Likewise.
48521         * m4/readline.m4: Likewise.
48522         * m4/readlink.m4: Likewise.
48523         * m4/readutmp.m4: Likewise.
48524         * m4/realloc.m4: Likewise.
48525         * m4/regex.m4: Likewise.
48526         * m4/relocatable.m4: Likewise.
48527         * m4/relocatable-lib.m4: Likewise.
48528         * m4/rename-dest-slash.m4: Likewise.
48529         * m4/rename.m4: Likewise.
48530         * m4/rmdir-errno.m4: Likewise.
48531         * m4/rmdir.m4: Likewise.
48532         * m4/roundf.m4: Likewise.
48533         * m4/roundl.m4: Likewise.
48534         * m4/rpmatch.m4: Likewise.
48535         * m4/save-cwd.m4: Likewise.
48536         * m4/selinux-selinux-h.m4: Likewise.
48537         * m4/setenv.m4: Likewise.
48538         * m4/settime.m4: Likewise.
48539         * m4/sig2str.m4: Likewise.
48540         * m4/sig_atomic_t.m4: Likewise.
48541         * m4/signalblocking.m4: Likewise.
48542         * m4/signbit.m4: Likewise.
48543         * m4/sigpipe.m4: Likewise.
48544         * m4/sockets.m4: Likewise.
48545         * m4/sockpfaf.m4: Likewise.
48546         * m4/st_dm_mode.m4: Likewise.
48547         * m4/stat-time.m4: Likewise.
48548         * m4/stdbool.m4: Likewise.
48549         * m4/stdint.m4: Likewise.
48550         * m4/stdint_h.m4: Likewise.
48551         * m4/stpcpy.m4: Likewise.
48552         * m4/stpncpy.m4: Likewise.
48553         * m4/strcase.m4: Likewise.
48554         * m4/strchrnul.m4: Likewise.
48555         * m4/strcspn.m4: Likewise.
48556         * m4/strdup.m4: Likewise.
48557         * m4/strftime.m4: Likewise.
48558         * m4/strndup.m4: Likewise.
48559         * m4/strnlen.m4: Likewise.
48560         * m4/strpbrk.m4: Likewise.
48561         * m4/strptime.m4: Likewise.
48562         * m4/strsep.m4: Likewise.
48563         * m4/strtod.m4: Likewise.
48564         * m4/strtoimax.m4: Likewise.
48565         * m4/strtok_r.m4: Likewise.
48566         * m4/strtol.m4: Likewise.
48567         * m4/strtoll.m4: Likewise.
48568         * m4/strtoul.m4: Likewise.
48569         * m4/strtoull.m4: Likewise.
48570         * m4/strtoumax.m4: Likewise.
48571         * m4/strverscmp.m4: Likewise.
48572         * m4/threadlib.m4: Likewise.
48573         * m4/timegm.m4: Likewise.
48574         * m4/tm_gmtoff.m4: Likewise.
48575         * m4/tmpdir.m4: Likewise.
48576         * m4/tmpfile.m4: Likewise.
48577         * m4/tzset.m4: Likewise.
48578         * m4/uintmax_t.m4: Likewise.
48579         * m4/unlinkdir.m4: Likewise.
48580         * m4/unlocked-io.m4: Likewise.
48581         * m4/uptime.m4: Likewise.
48582         * m4/userspec.m4: Likewise.
48583         * m4/utimbuf.m4: Likewise.
48584         * m4/utime.m4: Likewise.
48585         * m4/utimes-null.m4: Likewise.
48586         * m4/utimes.m4: Likewise.
48587         * m4/vararrays.m4: Likewise.
48588         * m4/vasnprintf.m4: Likewise.
48589         * m4/vfprintf-posix.m4: Likewise.
48590         * m4/vprintf-posix.m4: Likewise.
48591         * m4/wait-process.m4: Likewise.
48592         * m4/wchar_t.m4: Likewise.
48593         * m4/wint_t.m4: Likewise.
48594         * m4/write-any-file.m4: Likewise.
48595         * m4/yield.m4: Likewise.
48596
48597 2009-01-13  Bruno Haible  <bruno@clisp.org>
48598
48599         Avoid test-copy-file.sh failures when ACL support insufficient.
48600         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
48601         TESTS_ENVIRONMENT.
48602         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
48603         Reported by Jim Meyering.
48604
48605 2009-01-13  Bruno Haible  <bruno@clisp.org>
48606
48607         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
48608         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
48609         * modules/unistdio/u8-printf-parse (Files): Likewise.
48610         * modules/unistdio/u32-printf-parse (Files): Likewise.
48611         * modules/unistdio/ulc-printf-parse (Files): Likewise.
48612
48613 2009-01-13  Simon Josefsson  <simon@josefsson.org>
48614
48615         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
48616         and m4/inttypes_h.m4 too.
48617
48618 2009-01-12  Eric Blake  <ebb9@byu.net>
48619
48620         tests: IRIX 6.2 cc can't compile -0.0 into .data
48621         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
48622         rather than at compile-time.
48623         * tests/test-floorl.c (minus_zero): Likewise.
48624         * tests/test-frexpl.c (minus_zero): Likewise.
48625         * tests/test-isnan.c (minus_zerol): Likewise.
48626         * tests/test-isnanl.h (minus_zero): Likewise.
48627         * tests/test-ldexpl.c (minus_zero): Likewise.
48628         * tests/test-roundl.c (minus_zero): Likewise.
48629         * tests/test-signbit.c (minus_zerol): Likewise.
48630         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
48631         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
48632         * tests/test-truncl.c (minus_zero): Likewise.
48633         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
48634         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
48635         Reported by Tom G. Christensen and Nelson H. F. Beebe.
48636
48637 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48638
48639         regex: fix glibc bug 9697
48640         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
48641         handling.
48642
48643 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48644
48645         regex: fix glibc bug 697
48646         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
48647         being NULL also if there are no backreferences.
48648
48649 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48650
48651         regex: merge glibc changes
48652         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
48653         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
48654         re_string_skip_chars, re_string_reconstruct): Likewise.
48655         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
48656
48657 2009-01-07  Jim Meyering  <meyering@redhat.com>
48658
48659         poll: filter through cppi
48660         * lib/poll.c: Indent cpp directives to reflect nesting.
48661
48662 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
48663
48664         poll: don't return uninitialized
48665         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
48666
48667 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
48668
48669         avoid compile failure on AIX 6.1
48670         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
48671         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
48672
48673 2009-01-04  Jim Meyering  <meyering@redhat.com>
48674
48675         remove duplicate inclusion of <stdio.h>
48676         * tests/test-fprintf-posix.c: Likewise.
48677         * tests/test-printf-posix.c: Likewise.
48678         * tests/test-snprintf-posix.c: Likewise.
48679         * tests/test-sprintf-posix.c: Likewise.
48680         * tests/test-vasprintf-posix.c: Likewise.
48681         * tests/test-vfprintf-posix.c: Likewise.
48682         * tests/test-vprintf-posix.c: Likewise.
48683         * tests/test-vsnprintf-posix.c: Likewise.
48684         * tests/test-vsprintf-posix.c: Likewise.
48685
48686 2009-01-03  Jim Meyering  <meyering@redhat.com>
48687
48688         gnulib-tool: fix sed-based filtering
48689         * gnulib-tool (func_filter_filelist): Remove extra backslash
48690         in sed_fff_filter definition.
48691
48692 2009-01-02  Jim Meyering  <meyering@redhat.com>
48693
48694         strftime: avoid compilation failure on Solaris 2.6
48695         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
48696         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
48697         Don't #define mbrlen or mbsinit, since now they're guaranteed to
48698         be available.  Reported by Tom G. Christensen.  Details in
48699         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
48700
48701 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48702             Bruno Haible  <bruno@clisp.org>
48703
48704         Speed up gnulib-tool by doing more string processing through shell
48705         built-ins.
48706         * gnulib-tool (fast_func_append): New variable.
48707         (func_remove_prefix, func_remove_suffix): New functions.
48708         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
48709         (func_filter_filelist): New function.
48710         (func_get_dependencies): Use func_remove_suffix instead of sed.
48711         (func_get_automake_snippet): Use func_filter_filelist instead of a
48712         subshell and sed invocation.
48713
48714 2009-01-01  Bruno Haible  <bruno@clisp.org>
48715
48716         Fix a security bug.
48717         * gnulib-tool (func_import, import, update): Don't allow the characters
48718         '"', '$', '`', '\' in macro arguments that become part of commands that
48719         are evaluated.
48720
48721 2009-01-01  Bruno Haible  <bruno@clisp.org>
48722
48723         * gnulib-tool (func_reset_sigpipe): Add more comments.
48724
48725 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48726
48727         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
48728         func_emit_tests_Makefile_am, func_import): Abort loops early if we
48729         already know the answer.
48730
48731 2009-01-01  Jim Meyering  <meyering@redhat.com>
48732
48733         * lib/version-etc.c (version_etc_va): Update copyright year.
48734
48735 2008-12-30  Bruno Haible  <bruno@clisp.org>
48736
48737         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
48738         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
48739         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
48740
48741 2008-12-29  Eric Blake  <ebb9@byu.net>
48742
48743         multiarch: avoid autoconf AC_REQUIRE bug
48744         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
48745         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
48746         2.63 and older.
48747         Reported by Bruno Haible, and analyzed in
48748         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
48749
48750 2008-12-29  Bruno Haible  <bruno@clisp.org>
48751
48752         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
48753         files in subdirectories correctly.
48754         Reported by Ralf Wildenhues.
48755
48756 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48757
48758         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
48759         rather than 'join FILE -', for Solaris join.
48760
48761 2008-12-29  Bruno Haible  <bruno@clisp.org>
48762
48763         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
48764         quoting.
48765         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
48766         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
48767         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
48768         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
48769         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
48770         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
48771         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
48772         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
48773         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
48774         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
48775         * m4/nls.m4 (AM_NLS): Likewise.
48776         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
48777         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
48778         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
48779         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
48780         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
48781         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
48782         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
48783         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
48784         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
48785         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
48786         * m4/xsize.m4 (gl_XSIZE): Likewise.
48787         Suggested by Jim Meyering.
48788
48789 2008-11-17  Bruce Korb  <bkorb@gnu.org>
48790
48791         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
48792         * lib/parse-duration.c: use a switch instead of cascading if's.
48793
48794 2008-12-29  Eric Blake  <ebb9@byu.net>
48795
48796         wchar.h: supply WEOF on Irix 5.3
48797         * lib/wchar.in.h (wint_t): Also supply WEOF.
48798         * lib/wctype.in.h (wint_t): Likewise.
48799         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
48800         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
48801         Reported by Tom G. Christensen.
48802
48803 2008-12-26  Bruno Haible  <bruno@clisp.org>
48804
48805         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
48806         i486, i586, i686.
48807
48808 2008-12-26  Bruno Haible  <bruno@clisp.org>
48809
48810         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
48811
48812 2008-12-26  Bruno Haible  <bruno@clisp.org>
48813
48814         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
48815         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
48816         not __STDC_CONSTANT_MACROS.
48817         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
48818
48819 2008-12-25  Bruno Haible  <bruno@clisp.org>
48820
48821         Add support for universal builds to vasnprintf.
48822         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
48823         universal builds, guess no.
48824         * modules/vasnprintf-posix (Depends-on): Add multiarch.
48825         * modules/vasprintf-posix (Depends-on): Likewise.
48826         * modules/fprintf-posix (Depends-on): Likewise.
48827         * modules/vfprintf-posix (Depends-on): Likewise.
48828         * modules/snprintf-posix (Depends-on): Likewise.
48829         * modules/vsnprintf-posix (Depends-on): Likewise.
48830         * modules/sprintf-posix (Depends-on): Likewise.
48831         * modules/vsprintf-posix (Depends-on): Likewise.
48832         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48833         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48834         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48835         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48836         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48837         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48838         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48839
48840         Add support for universal builds to <inttypes.h>.
48841         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
48842         _SCNu64_PREFIX): In Apple
48843         universal builds, define directly, using _LP64.
48844         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
48845         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
48846         * modules/inttypes (Depends-on): Add multiarch.
48847         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48848
48849         Add support for universal builds to <stdint.h>.
48850         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
48851         universal builds, define directly, using _LP64.
48852         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
48853         Apple universal builds, don't test for the size and suffix of ptrdiff_t
48854         and size_t.
48855         * modules/stdint (Depends-on): Add multiarch.
48856         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48857
48858         New module 'multiarch'.
48859         * modules/multiarch: New file.
48860         * m4/multiarch.m4: New file.
48861
48862 2008-12-25  Bruno Haible  <bruno@clisp.org>
48863
48864         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
48865
48866 2008-12-25  Bruno Haible  <bruno@clisp.org>
48867
48868         * modules/btowc (License): Relicense under LGPLv2+.
48869         * modules/mbsinit (License): Likewise.
48870         * modules/mbrtowc (License): Likewise.
48871         * modules/wcrtomb (License): Likewise.
48872         * modules/streq (License): Likewise.
48873         Reported by David Lutterkort <lutter@redhat.com>.
48874
48875 2008-12-23  Bruno Haible  <bruno@clisp.org>
48876
48877         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
48878
48879 2008-12-23  Bruno Haible  <bruno@clisp.org>
48880
48881         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
48882         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
48883         GETADDRINFO_LIB, not in LIBS.
48884         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
48885         * modules/canon-host (Link): Likewise.
48886         * NEWS: Mention the change.
48887         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
48888         GETADDRINFO_LIB.
48889
48890 2008-12-22  Bruno Haible  <bruno@clisp.org>
48891
48892         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
48893         * doc/posix-functions/iswalpha_l.texi: Likewise.
48894         * doc/posix-functions/iswblank_l.texi: Likewise.
48895         * doc/posix-functions/iswcntrl_l.texi: Likewise.
48896         * doc/posix-functions/iswctype_l.texi: Likewise.
48897         * doc/posix-functions/iswdigit_l.texi: Likewise.
48898         * doc/posix-functions/iswgraph_l.texi: Likewise.
48899         * doc/posix-functions/iswlower_l.texi: Likewise.
48900         * doc/posix-functions/iswprint_l.texi: Likewise.
48901         * doc/posix-functions/iswpunct_l.texi: Likewise.
48902         * doc/posix-functions/iswspace_l.texi: Likewise.
48903         * doc/posix-functions/iswupper_l.texi: Likewise.
48904         * doc/posix-functions/iswxdigit_l.texi: Likewise.
48905         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
48906         * doc/posix-functions/open_wmemstream.texi: Likewise.
48907         * doc/posix-functions/swscanf.texi: Likewise.
48908         * doc/posix-functions/towctrans_l.texi: Likewise.
48909         * doc/posix-functions/towlower.texi: Likewise.
48910         * doc/posix-functions/towlower_l.texi: Likewise.
48911         * doc/posix-functions/towupper.texi: Likewise.
48912         * doc/posix-functions/towupper_l.texi: Likewise.
48913         * doc/posix-functions/vfwprintf.texi: Likewise.
48914         * doc/posix-functions/vfwscanf.texi: Likewise.
48915         * doc/posix-functions/vswscanf.texi: Likewise.
48916         * doc/posix-functions/vwprintf.texi: Likewise.
48917         * doc/posix-functions/vwscanf.texi: Likewise.
48918         * doc/posix-functions/wcpcpy.texi: Likewise.
48919         * doc/posix-functions/wcpncpy.texi: Likewise.
48920         * doc/posix-functions/wcscasecmp.texi: Likewise.
48921         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
48922         * doc/posix-functions/wcscoll_l.texi: Likewise.
48923         * doc/posix-functions/wcsdup.texi: Likewise.
48924         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48925         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
48926         * doc/posix-functions/wcsnlen.texi: Likewise.
48927         * doc/posix-functions/wcsnrtombs.texi: Likewise.
48928         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
48929         * doc/posix-functions/wctrans_l.texi: Likewise.
48930         * doc/posix-functions/wctype_l.texi: Likewise.
48931         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
48932         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
48933         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
48934         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
48935         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
48936         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
48937         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
48938         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
48939         * doc/glibc-functions/wcschrnul.texi: Likewise.
48940         * doc/glibc-functions/wcsftime_l.texi: Likewise.
48941         * doc/glibc-functions/wcstod_l.texi: Likewise.
48942         * doc/glibc-functions/wcstof_l.texi: Likewise.
48943         * doc/glibc-functions/wcstol_l.texi: Likewise.
48944         * doc/glibc-functions/wcstold_l.texi: Likewise.
48945         * doc/glibc-functions/wcstoll_l.texi: Likewise.
48946         * doc/glibc-functions/wcstoq.texi: Likewise.
48947         * doc/glibc-functions/wcstoul_l.texi: Likewise.
48948         * doc/glibc-functions/wcstoull_l.texi: Likewise.
48949         * doc/glibc-functions/wcstouq.texi: Likewise.
48950         * doc/glibc-functions/wmempcpy.texi: Likewise.
48951
48952 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
48953             Eric Blake  <ebb9@byu.net>
48954             Paolo Bonzini  <bonzini@gnu.org>
48955             Bruno Haible  <bruno@clisp.org>
48956
48957         Make c-stack work on Haiku.
48958         * lib/c-stack.c (SA_ONSTACK): Define fallback.
48959         (c_stack_action): Use SA_ONSTACK flag.
48960
48961 2008-12-22  Bruno Haible  <bruno@clisp.org>
48962
48963         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
48964
48965 2008-12-22  Bruno Haible  <bruno@clisp.org>
48966
48967         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
48968         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
48969         being overridden.
48970         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
48971         New macros.
48972         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
48973         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
48974         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
48975         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
48976
48977 2008-12-22  Bruno Haible  <bruno@clisp.org>
48978
48979         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
48980         from test code.
48981
48982 2008-12-22  Eric Blake  <ebb9@byu.net>
48983
48984         Avoid gcc warnings on cygwin.
48985         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
48986         Avoid unused variable.
48987         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
48988         Likewise.
48989
48990 2008-12-22  Bruno Haible  <bruno@clisp.org>
48991
48992         Remove HAVE_MBRTOWC conditionals.
48993         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
48994         (mbscasecmp): Assume mbrtowc function.
48995         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
48996         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
48997         * lib/mbschr.c: Include mbuiter.h unconditionally.
48998         (mbschr): Assume mbrtowc function.
48999         * lib/mbscspn.c: Include mbuiter.h unconditionally.
49000         (mbscspn): Assume mbrtowc function.
49001         * lib/mbslen.c: Include mbuiter.h unconditionally.
49002         (mbslen): Assume mbrtowc function.
49003         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
49004         (mbsncasecmp): Assume mbrtowc function.
49005         * lib/mbsnlen.c: Include mbiter.h unconditionally.
49006         (mbsnlen): Assume mbrtowc function.
49007         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
49008         (mbspbrk): Assume mbrtowc function.
49009         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
49010         (mbspcasecmp): Assume mbrtowc function.
49011         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
49012         (mbsrchr): Assume mbrtowc function.
49013         * lib/mbssep.c: Include mbuiter.h unconditionally.
49014         (mbssep): Assume mbrtowc function.
49015         * lib/mbsspn.c: Include mbuiter.h unconditionally.
49016         (mbsspn): Assume mbrtowc function.
49017         * lib/mbsstr.c: Include mbuiter.h unconditionally.
49018         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
49019         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
49020         (mbstok_r): Assume mbrtowc function.
49021         * lib/propername.c: Include mbuiter.h unconditionally.
49022         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
49023         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
49024         (trim2): Assume mbrtowc function.
49025         * lib/mbswidth.c (mbsinit): Remove fallback definition.
49026         (mbsnwidth): Assume mbrtowc function.
49027         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
49028         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
49029         fallback definitions.
49030         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
49031
49032 2008-12-22  Bruno Haible  <bruno@clisp.org>
49033
49034         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
49035
49036 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
49037
49038         * modules/regex: Request emulations for the mb*/wc* functions we need.
49039         * m4/regex.m4: Don't look for those functions here.
49040         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
49041
49042 2008-12-22  Bruno Haible  <bruno@clisp.org>
49043
49044         * modules/fnmatch (Depends-on): Remove duplicated dependency.
49045
49046 2008-12-21  Bruno Haible  <bruno@clisp.org>
49047
49048         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
49049         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
49050         (Include): Remove conditionalization.
49051         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
49052         (Include): Remove conditionalization.
49053         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
49054         (Include): Remove conditionalization.
49055         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
49056         * m4/mbfile.m4 (gl_MBFILE): Likewise.
49057         * NEWS: Mention the change.
49058         Reported by Alan Hourihane <alanh@fairlite.co.uk>
49059         via Sergey Poznyakoff <gray@gnu.org.ua>.
49060
49061 2008-12-21  Bruno Haible  <bruno@clisp.org>
49062
49063         * MODULES.html.sh (Extended multibyte and wide character utilities
49064         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
49065         wcrtomb, wcsrtombs.
49066         (Support for systems lacking POSIX:2008): Add accept, bind, close,
49067         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
49068         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
49069         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
49070
49071 2008-12-21  Bruno Haible  <bruno@clisp.org>
49072
49073         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
49074
49075 2008-12-21  Bruno Haible  <bruno@clisp.org>
49076
49077         * modules/wcsnrtombs-tests: New file.
49078         * tests/test-wcsnrtombs1.sh: New file.
49079         * tests/test-wcsnrtombs2.sh: New file.
49080         * tests/test-wcsnrtombs3.sh: New file.
49081         * tests/test-wcsnrtombs4.sh: New file.
49082         * tests/test-wcsnrtombs.c: New file.
49083
49084         New module 'wcsnrtombs'.
49085         * lib/wchar.in.h (wcsnrtombs): New declaration.
49086         * lib/wcsnrtombs.c: New file.
49087         * lib/wcsrtombs-state.c: New file.
49088         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
49089         (internal_state): Remove variable.
49090         * m4/wcsnrtombs.m4: New file.
49091         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
49092         compilation units.
49093         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
49094         HAVE_WCSNRTOMBS.
49095         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
49096         HAVE_WCSNRTOMBS.
49097         * modules/wcsnrtombs: New file.
49098         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
49099         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
49100
49101 2008-12-21  Bruno Haible  <bruno@clisp.org>
49102
49103         * modules/wcsrtombs-tests: New file.
49104         * tests/test-wcsrtombs1.sh: New file.
49105         * tests/test-wcsrtombs2.sh: New file.
49106         * tests/test-wcsrtombs3.sh: New file.
49107         * tests/test-wcsrtombs4.sh: New file.
49108         * tests/test-wcsrtombs.c: New file.
49109
49110         New module 'wcsrtombs'.
49111         * lib/wchar.in.h (wcsrtombs): New declaration.
49112         * lib/wcsrtombs.c: New file.
49113         * m4/wcsrtombs.m4: New file.
49114         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
49115         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
49116         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
49117         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
49118         * modules/wcsrtombs: New file.
49119         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
49120         bugs.
49121
49122 2008-12-21  Bruno Haible  <bruno@clisp.org>
49123
49124         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
49125         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
49126         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
49127         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
49128         if not correct.
49129         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
49130         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
49131         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49132         m4/locale-zh.m4, m4/codeset.m4.
49133         * doc/posix-functions/wcrtomb.texi: Document the bug.
49134
49135 2008-12-21  Bruno Haible  <bruno@clisp.org>
49136
49137         Work around a btowc() bug on IRIX 6.5.
49138         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
49139         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
49140         REPLACE_WTOBC if not.
49141         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
49142         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
49143         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
49144
49145 2008-12-21  Bruno Haible  <bruno@clisp.org>
49146
49147         * modules/wcrtomb-tests: New file.
49148         * tests/test-wcrtomb.sh: New file.
49149         * tests/test-wcrtomb.c: New file.
49150
49151         New module 'wcrtomb'.
49152         * lib/wchar.in.h (wcrtomb): New declaration.
49153         * lib/wcrtomb.c: New file.
49154         * m4/wcrtomb.m4: New file.
49155         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
49156         HAVE_WCRTOMB.
49157         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
49158         HAVE_WCRTOMB.
49159         * modules/wcrtomb: New file.
49160         * doc/posix-functions/wcrtomb.texi: Mention the new module.
49161
49162 2008-12-21  Bruno Haible  <bruno@clisp.org>
49163
49164         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
49165         * modules/mbsrtowcs (Files): Likewise.
49166         * modules/wctob (Files): Likewise.
49167         * modules/c-strcase-tests (Files): Likewise.
49168         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
49169         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
49170         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
49171         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
49172         * modules/vasnprintf-posix-tests (Files): Likewise.
49173
49174 2008-12-21  William Pursell  <bill.pursell@gmail.com>
49175
49176         gitlog-to-changelog: pass all command-line arguments to git-log
49177         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
49178         it is sometimes convenient to filter the commits in various ways.
49179         gitlog-to-changelog only allows --since to specify a start date,
49180         but git-log itself supports many other filtering mechanisms.
49181         At the moment, I want to filter by branch name.  Rather than
49182         adding a --branch option to gitlog-to-changelog, it seems more
49183         flexible to simply pass all options directly to git-log and let
49184         git do the work.  Notice that this effectively makes --since a
49185         redundant option for gitlog-to-changelog, but removing it would
49186         require current usage to change since calls would then require
49187         an additional '--'.
49188
49189 2008-12-21  Bruno Haible  <bruno@clisp.org>
49190
49191         * modules/mbsnrtowcs-tests: New file.
49192         * tests/test-mbsnrtowcs1.sh: New file.
49193         * tests/test-mbsnrtowcs2.sh: New file.
49194         * tests/test-mbsnrtowcs3.sh: New file.
49195         * tests/test-mbsnrtowcs4.sh: New file.
49196         * tests/test-mbsnrtowcs.c: New file.
49197
49198         New module 'mbsnrtowcs'.
49199         * lib/wchar.in.h (mbsnrtowcs): New declaration.
49200         * lib/mbsnrtowcs.c: New file.
49201         * lib/mbsrtowcs-state.c: New file.
49202         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
49203         (internal_state): Remove variable.
49204         * m4/mbsnrtowcs.m4: New file.
49205         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
49206         compilation units.
49207         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
49208         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
49209         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
49210         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
49211         * modules/mbsnrtowcs: New file.
49212         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
49213         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
49214         portability problem.
49215
49216 2008-12-21  Bruno Haible  <bruno@clisp.org>
49217
49218         Work around mbsrtowcs bug.
49219         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
49220         (gl_FUNC_MBSRTOWCS): Invoke it.
49221         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49222         m4/locale-zh.m4.
49223         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
49224
49225 2008-12-21  Bruno Haible  <bruno@clisp.org>
49226
49227         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
49228
49229 2008-12-21  Bruno Haible  <bruno@clisp.org>
49230
49231         Update doc for AIX.
49232         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
49233         16-bit wchar_t type.
49234         * doc/posix-functions/btowc.texi: Likewise.
49235         * doc/posix-functions/fgetwc.texi: Likewise.
49236         * doc/posix-functions/fgetws.texi: Likewise.
49237         * doc/posix-functions/fputwc.texi: Likewise.
49238         * doc/posix-functions/fputws.texi: Likewise.
49239         * doc/posix-functions/fwide.texi: Likewise.
49240         * doc/posix-functions/fwprintf.texi: Likewise.
49241         * doc/posix-functions/fwscanf.texi: Likewise.
49242         * doc/posix-functions/getwchar.texi: Likewise.
49243         * doc/posix-functions/getwc.texi: Likewise.
49244         * doc/posix-functions/iswalnum.texi: Likewise.
49245         * doc/posix-functions/iswalpha.texi: Likewise.
49246         * doc/posix-functions/iswblank.texi: Likewise.
49247         * doc/posix-functions/iswcntrl.texi: Likewise.
49248         * doc/posix-functions/iswctype.texi: Likewise.
49249         * doc/posix-functions/iswdigit.texi: Likewise.
49250         * doc/posix-functions/iswgraph.texi: Likewise.
49251         * doc/posix-functions/iswlower.texi: Likewise.
49252         * doc/posix-functions/iswprint.texi: Likewise.
49253         * doc/posix-functions/iswpunct.texi: Likewise.
49254         * doc/posix-functions/iswspace.texi: Likewise.
49255         * doc/posix-functions/iswupper.texi: Likewise.
49256         * doc/posix-functions/iswxdigit.texi: Likewise.
49257         * doc/posix-functions/mbrtowc.texi: Likewise.
49258         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49259         * doc/posix-functions/mbstowcs.texi: Likewise.
49260         * doc/posix-functions/mbtowc.texi: Likewise.
49261         * doc/posix-functions/putwchar.texi: Likewise.
49262         * doc/posix-functions/putwc.texi: Likewise.
49263         * doc/posix-functions/swprintf.texi: Likewise.
49264         * doc/posix-functions/tolower.texi: Likewise.
49265         * doc/posix-functions/toupper.texi: Likewise.
49266         * doc/posix-functions/towctrans.texi: Likewise.
49267         * doc/posix-functions/ungetwc.texi: Likewise.
49268         * doc/posix-functions/vswprintf.texi: Likewise.
49269         * doc/posix-functions/wcrtomb.texi: Likewise.
49270         * doc/posix-functions/wcscat.texi: Likewise.
49271         * doc/posix-functions/wcschr.texi: Likewise.
49272         * doc/posix-functions/wcscmp.texi: Likewise.
49273         * doc/posix-functions/wcscoll.texi: Likewise.
49274         * doc/posix-functions/wcscpy.texi: Likewise.
49275         * doc/posix-functions/wcscspn.texi: Likewise.
49276         * doc/posix-functions/wcsftime.texi: Likewise.
49277         * doc/posix-functions/wcslen.texi: Likewise.
49278         * doc/posix-functions/wcsncat.texi: Likewise.
49279         * doc/posix-functions/wcsncmp.texi: Likewise.
49280         * doc/posix-functions/wcsncpy.texi: Likewise.
49281         * doc/posix-functions/wcspbrk.texi: Likewise.
49282         * doc/posix-functions/wcsrchr.texi: Likewise.
49283         * doc/posix-functions/wcsrtombs.texi: Likewise.
49284         * doc/posix-functions/wcsspn.texi: Likewise.
49285         * doc/posix-functions/wcsstr.texi: Likewise.
49286         * doc/posix-functions/wcstod.texi: Likewise.
49287         * doc/posix-functions/wcstof.texi: Likewise.
49288         * doc/posix-functions/wcstoimax.texi: Likewise.
49289         * doc/posix-functions/wcstok.texi: Likewise.
49290         * doc/posix-functions/wcstold.texi: Likewise.
49291         * doc/posix-functions/wcstoll.texi: Likewise.
49292         * doc/posix-functions/wcstol.texi: Likewise.
49293         * doc/posix-functions/wcstombs.texi: Likewise.
49294         * doc/posix-functions/wcstoull.texi: Likewise.
49295         * doc/posix-functions/wcstoul.texi: Likewise.
49296         * doc/posix-functions/wcstoumax.texi: Likewise.
49297         * doc/posix-functions/wcswidth.texi: Likewise.
49298         * doc/posix-functions/wcsxfrm.texi: Likewise.
49299         * doc/posix-functions/wctob.texi: Likewise.
49300         * doc/posix-functions/wctomb.texi: Likewise.
49301         * doc/posix-functions/wctrans.texi: Likewise.
49302         * doc/posix-functions/wctype.texi: Likewise.
49303         * doc/posix-functions/wcwidth.texi: Likewise.
49304         * doc/posix-functions/wmemchr.texi: Likewise.
49305         * doc/posix-functions/wmemcmp.texi: Likewise.
49306         * doc/posix-functions/wmemcpy.texi: Likewise.
49307         * doc/posix-functions/wmemmove.texi: Likewise.
49308         * doc/posix-functions/wmemset.texi: Likewise.
49309         * doc/posix-functions/wprintf.texi: Likewise.
49310         * doc/posix-functions/wscanf.texi: Likewise.
49311
49312 2008-12-21  Bruno Haible  <bruno@clisp.org>
49313
49314         Update doc for HP-UX 11.11.
49315         * doc/posix-functions/btowc.texi: Clarify that the function is missing
49316         in HP-UX version 11.00, not in all versions of HP-UX 11.
49317         * doc/posix-functions/fwide.texi: Likewise.
49318         * doc/posix-functions/fwprintf.texi: Likewise.
49319         * doc/posix-functions/fwscanf.texi: Likewise.
49320         * doc/posix-functions/inet_ntop.texi: Likewise.
49321         * doc/posix-functions/inet_pton.texi: Likewise.
49322         * doc/posix-functions/mbrlen.texi: Likewise.
49323         * doc/posix-functions/mbrtowc.texi: Likewise.
49324         * doc/posix-functions/mbsinit.texi: Likewise.
49325         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49326         * doc/posix-functions/swprintf.texi: Likewise.
49327         * doc/posix-functions/swscanf.texi: Likewise.
49328         * doc/posix-functions/towctrans.texi: Likewise.
49329         * doc/posix-functions/vfwprintf.texi: Likewise.
49330         * doc/posix-functions/vswprintf.texi: Likewise.
49331         * doc/posix-functions/vwprintf.texi: Likewise.
49332         * doc/posix-functions/wcrtomb.texi: Likewise.
49333         * doc/posix-functions/wcsrtombs.texi: Likewise.
49334         * doc/posix-functions/wcsstr.texi: Likewise.
49335         * doc/posix-functions/wctob.texi: Likewise.
49336         * doc/posix-functions/wctrans.texi: Likewise.
49337         * doc/posix-functions/wmemchr.texi: Likewise.
49338         * doc/posix-functions/wmemcmp.texi: Likewise.
49339         * doc/posix-functions/wmemcpy.texi: Likewise.
49340         * doc/posix-functions/wmemmove.texi: Likewise.
49341         * doc/posix-functions/wmemset.texi: Likewise.
49342         * doc/posix-functions/wprintf.texi: Likewise.
49343         * doc/posix-functions/wscanf.texi: Likewise.
49344
49345 2008-12-21  Bruno Haible  <bruno@clisp.org>
49346
49347         Work around a portability problem.
49348         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
49349         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
49350
49351 2008-12-20  Bruno Haible  <bruno@clisp.org>
49352
49353         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
49354         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
49355         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
49356         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
49357         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
49358
49359         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
49360         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
49361         set.
49362         (GNULIB_defined_mbstate_t): New macro.
49363         (mbsinit): Redefine if REPLACE_MBSINIT is set.
49364         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
49365         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
49366         reuses the system's mbrtowc function but works around the bugs.
49367         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
49368         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
49369         macros.
49370         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
49371         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
49372         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
49373         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
49374         REPLACE_MBSINIT if mbsinit needs to be overridden.
49375         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
49376         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49377         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
49378         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49379         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49380         m4/locale-zh.m4.
49381         (Depends): Add mbsinit.
49382         * modules/mbsinit (Depends): Add mbrtowc.
49383         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
49384
49385 2008-12-20  Bruno Haible  <bruno@clisp.org>
49386
49387         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
49388         so that there are no conversion errors on AIX.
49389         * tests/test-mbsrtowcs.c (main): LIkewise.
49390
49391 2008-12-20  Bruno Haible  <bruno@clisp.org>
49392
49393         Work around wctob bug on Solaris <= 9.
49394         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
49395         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
49396         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
49397         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
49398         * modules/wctob (Files): Add m4/locale-fr.m4.
49399         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
49400
49401 2008-12-20  Bruno Haible  <bruno@clisp.org>
49402
49403         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
49404         /dev/null.
49405         * tests/test-select-in.sh: Likewise.
49406         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49407
49408 2008-12-20  Bruno Haible  <bruno@clisp.org>
49409
49410         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
49411         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
49412         Cygwin 1.5.x.
49413
49414 2008-12-20  Bruno Haible  <bruno@clisp.org>
49415
49416         Ensure mbstate_t is defined on HP-UX 11.11.
49417         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
49418         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
49419         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
49420         AC_USE_SYSTEM_EXTENSIONS.
49421         * modules/fnmatch (Depends-on): Add extensions.
49422         * modules/mbrlen (Depends-on): Likewise.
49423         * modules/mbrtowc (Depends-on): Likewise.
49424         * modules/mbsinit (Depends-on): Likewise.
49425         * modules/mbsrtowcs (Depends-on): Likewise.
49426         * modules/mbswidth (Depends-on): Likewise.
49427         * modules/quotearg (Depends-on): Likewise.
49428         * modules/strftime (Depends-on): Likewise.
49429
49430 2008-12-20  Bruno Haible  <bruno@clisp.org>
49431
49432         Ensure wctob is declared on IRIX 6.5.
49433         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
49434         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
49435         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
49436         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
49437         of HAVE_WCTOB.
49438         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
49439         HAVE_WCTOB.
49440         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
49441
49442 2008-12-19  Bruno Haible  <bruno@clisp.org>
49443
49444         * modules/mbsrtowcs-tests: New file.
49445         * tests/test-mbsrtowcs1.sh: New file.
49446         * tests/test-mbsrtowcs2.sh: New file.
49447         * tests/test-mbsrtowcs3.sh: New file.
49448         * tests/test-mbsrtowcs4.sh: New file.
49449         * tests/test-mbsrtowcs.c: New file.
49450
49451         New module 'mbsrtowcs'.
49452         * lib/wchar.in.h (mbsrtowcs): New declaration.
49453         * lib/mbsrtowcs.c: New file.
49454         * m4/mbsrtowcs.m4: New file.
49455         * modules/mbsrtowcs: New file.
49456         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
49457         HAVE_MBSRTOWCS.
49458         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
49459         HAVE_MBSRTOWCS.
49460         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
49461
49462 2008-12-19  Bruno Haible  <bruno@clisp.org>
49463
49464         New module 'mbrlen'.
49465         * lib/wchar.in.h (mbrlen): New declaration.
49466         * lib/mbrlen.c: New file.
49467         * m4/mbrlen.m4: New file.
49468         * modules/mbrlen: New file.
49469         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
49470         HAVE_MBRLEN.
49471         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
49472         HAVE_MBRLEN.
49473         * doc/posix-functions/mbrlen.texi: Document the new module.
49474
49475 2008-12-19  Bruno Haible  <bruno@clisp.org>
49476
49477         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
49478         * modules/mbrtowc (Depends-on): Add verify.
49479         Suggested by Paul Eggert.
49480
49481 2008-12-18  Bruno Haible  <bruno@clisp.org>
49482
49483         * modules/mbsinit-tests: New file.
49484         * tests/test-mbsinit.sh: New file.
49485         * tests/test-mbsinit.c: New file.
49486
49487 2008-12-18  Bruno Haible  <bruno@clisp.org>
49488
49489         * modules/mbrtowc-tests: New file.
49490         * tests/test-mbrtowc1.sh: New file.
49491         * tests/test-mbrtowc2.sh: New file.
49492         * tests/test-mbrtowc3.sh: New file.
49493         * tests/test-mbrtowc4.sh: New file.
49494         * tests/test-mbrtowc.c: New file.
49495
49496         New module 'mbrtowc'.
49497         * lib/wchar.in.h (mbstate_t): Override when the system does not have
49498         mbsinit and mbrtowc.
49499         (mbrtowc): New declaration.
49500         * lib/mbrtowc.c: New file.
49501         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
49502         * modules/mbrtowc: New file.
49503         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
49504         HAVE_MBRTOWC.
49505         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
49506         HAVE_MBRTOWC.
49507         * doc/posix-functions/mbrtowc.texi: Document the new module.
49508
49509 2008-12-18  Bruno Haible  <bruno@clisp.org>
49510
49511         New module 'wctob'.
49512         * lib/wchar.in.h (wctob): New declaration.
49513         * lib/wctob.c: New file.
49514         * m4/wctob.m4: New file.
49515         * modules/wctob: New file.
49516         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
49517         HAVE_WCTOB.
49518         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
49519         * doc/posix-functions/wctob.texi: Document the new module.
49520
49521 2008-12-18  Bruno Haible  <bruno@clisp.org>
49522
49523         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
49524         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
49525
49526 2008-12-18  Simon Josefsson  <simon@josefsson.org>
49527
49528         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
49529         G. Christensen" <tgc@jupiterrise.com>.
49530
49531         * lib/flock.c: Need to include errno.h.  Reported by "Tom
49532         G. Christensen" <tgc@jupiterrise.com>.
49533
49534         * lib/flock.c: Need to include string.h.  Reported by "Tom
49535         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
49536         <ebb9@byu.net>.
49537
49538 2008-12-18  Bruno Haible  <bruno@clisp.org>
49539
49540         * m4/locale-ja.m4: New file, from GNU gettext.
49541
49542 2008-12-17  Bruno Haible  <bruno@clisp.org>
49543
49544         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
49545         Suggested by Eric Blake.
49546
49547 2008-12-17  Bruno Haible  <bruno@clisp.org>
49548
49549         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
49550
49551 2008-12-17  Bruno Haible  <bruno@clisp.org>
49552
49553         * lib/mbsinit.c: Include verify.h. Verify an assumption.
49554         * modules/mbsinit (Depends-on): Add verify.
49555         Suggested by Paul Eggert.
49556
49557 2008-12-17  Bruno Haible  <bruno@clisp.org>
49558
49559         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
49560         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
49561         gl_FUNC_MBRTOWC.
49562         * m4/mbiter.m4 (gl_MBITER): LIkewise.
49563         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
49564         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
49565         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
49566         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
49567         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
49568         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
49569         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
49570         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
49571         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
49572         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
49573         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
49574         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
49575         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
49576         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
49577         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49578         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
49579         * modules/trim (configure.ac): Likewise.
49580
49581 2008-12-17  Bruno Haible  <bruno@clisp.org>
49582
49583         * modules/btowc-tests: New file.
49584         * tests/test-btowc1.sh: New file.
49585         * tests/test-btowc2.sh: New file.
49586         * tests/test-btowc.c: New file.
49587
49588         New module 'btowc'.
49589         * lib/wchar.in.h (btowc): New declaration.
49590         * lib/btowc.c: New file.
49591         * m4/btowc.m4: New file.
49592         * modules/btowc: New file.
49593         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
49594         HAVE_BTOWC.
49595         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
49596         * doc/posix-functions/btowc.texi: Document the new module.
49597
49598 2008-12-17  Bruno Haible  <bruno@clisp.org>
49599
49600         New module 'mbsinit'.
49601         * lib/wchar.in.h (mbsinit): New declaration.
49602         * lib/mbsinit.c: New file.
49603         * m4/mbsinit.m4: New file.
49604         * modules/mbsinit: New file.
49605         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
49606         HAVE_MBSINIT.
49607         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
49608         HAVE_MBSINIT.
49609         * doc/posix-functions/mbsinit.texi: Document the new module.
49610
49611 2008-12-16  Bruno Haible  <bruno@clisp.org>
49612
49613         * lib/unistd.in.h: Add comment.
49614         * tests/test-environ.c: Don't include <stdlib.h>.
49615
49616 2008-12-16  Bruno Haible  <bruno@clisp.org>
49617
49618         * lib/parse-duration.h (parse_duration): Document return value
49619         convention.
49620         * lib/parse-duration.c: Include specification header first. Add
49621         comments.
49622         (_): Remove macro.
49623         (parse_year_month_day, parse_hour_minute_second): Move side effects
49624         outside of strchr call.
49625         (parse_non_iso8601): Move side effects outside of isspace call.
49626         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
49627         call.
49628
49629 2008-12-16  Bruno Haible  <bruno@clisp.org>
49630
49631         * tests/test-parse-duration.sh: Produce no output when the test
49632         succeeds.
49633
49634 2008-12-16  Bruno Haible  <bruno@clisp.org>
49635
49636         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
49637         expressions.
49638
49639 2008-12-15  Bruno Haible  <bruno@clisp.org>
49640
49641         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
49642         * doc/glibc-functions/flistxattr.texi: Likewise.
49643         * doc/glibc-functions/fopencookie.texi: Likewise.
49644         * doc/glibc-functions/fremovexattr.texi: Likewise.
49645         * doc/glibc-functions/fsetxattr.texi: Likewise.
49646         * doc/glibc-functions/getxattr.texi: Likewise.
49647         * doc/glibc-functions/lgetxattr.texi: Likewise.
49648         * doc/glibc-functions/listxattr.texi: Likewise.
49649         * doc/glibc-functions/llistxattr.texi: Likewise.
49650         * doc/glibc-functions/lremovexattr.texi: Likewise.
49651         * doc/glibc-functions/lsetxattr.texi: Likewise.
49652         * doc/glibc-functions/removexattr.texi: Likewise.
49653         * doc/glibc-functions/setxattr.texi: Likewise.
49654         * doc/posix-functions/open_memstream.texi: Likewise.
49655
49656 2008-12-15  Eric Blake  <ebb9@byu.net>
49657
49658         Update doc for cygwin 1.7.
49659         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
49660         functions.
49661         * doc/posix-functions/fchmodat.texi: Likewise.
49662         * doc/posix-functions/fchownat.texi: Likewise.
49663         * doc/posix-functions/fdopendir.texi: Likewise.
49664         * doc/posix-functions/fmemopen.texi: Likewise.
49665         * doc/posix-functions/freeaddrinfo.texi: Likewise.
49666         * doc/posix-functions/fstatat.texi: Likewise.
49667         * doc/posix-functions/futimens.texi: Likewise.
49668         * doc/posix-functions/gai_strerror.texi: Likewise.
49669         * doc/posix-functions/getaddrinfo.texi: Likewise.
49670         * doc/posix-functions/getnameinfo.texi: Likewise.
49671         * doc/posix-functions/if_freenameindex.texi: Likewise.
49672         * doc/posix-functions/if_indextoname.texi: Likewise.
49673         * doc/posix-functions/if_nameindex.texi: Likewise.
49674         * doc/posix-functions/if_nametoindex.texi: Likewise.
49675         * doc/posix-functions/insque.texi: Likewise.
49676         * doc/posix-functions/linkat.texi: Likewise.
49677         * doc/posix-functions/llrint.texi: Likewise.
49678         * doc/posix-functions/llrintf.texi: Likewise.
49679         * doc/posix-functions/llrintl.texi: Likewise.
49680         * doc/posix-functions/lockf.texi: Likewise.
49681         * doc/posix-functions/lrintl.texi: Likewise.
49682         * doc/posix-functions/mkdirat.texi: Likewise.
49683         * doc/posix-functions/mkfifoat.texi: Likewise.
49684         * doc/posix-functions/mknodat.texi: Likewise.
49685         * doc/posix-functions/mq_close.texi: Likewise.
49686         * doc/posix-functions/mq_getattr.texi: Likewise.
49687         * doc/posix-functions/mq_notify.texi: Likewise.
49688         * doc/posix-functions/mq_open.texi: Likewise.
49689         * doc/posix-functions/mq_receive.texi: Likewise.
49690         * doc/posix-functions/mq_send.texi: Likewise.
49691         * doc/posix-functions/mq_setattr.texi: Likewise.
49692         * doc/posix-functions/mq_timedreceive.texi: Likewise.
49693         * doc/posix-functions/mq_timedsend.texi: Likewise.
49694         * doc/posix-functions/mq_unlink.texi: Likewise.
49695         * doc/posix-functions/open_memstream.texi: Likewise.
49696         * doc/posix-functions/openat.texi: Likewise.
49697         * doc/posix-functions/posix_fadvise.texi: Likewise.
49698         * doc/posix-functions/posix_fallocate.texi: Likewise.
49699         * doc/posix-functions/posix_madvise.texi: Likewise.
49700         * doc/posix-functions/posix_memalign.texi: Likewise.
49701         * doc/posix-functions/posix_openpt.texi: Likewise.
49702         * doc/posix-functions/readlinkat.texi: Likewise.
49703         * doc/posix-functions/remque.texi: Likewise.
49704         * doc/posix-functions/renameat.texi: Likewise.
49705         * doc/posix-functions/rintl.texi: Likewise.
49706         * doc/posix-functions/sem_unlink.texi: Likewise.
49707         * doc/posix-functions/shm_open.texi: Likewise.
49708         * doc/posix-functions/shm_unlink.texi: Likewise.
49709         * doc/posix-functions/signgam.texi: Likewise.
49710         * doc/posix-functions/sigset.texi: Likewise.
49711         * doc/posix-functions/stpcpy.texi: Likewise.
49712         * doc/posix-functions/stpncpy.texi: Likewise.
49713         * doc/posix-functions/strerror.texi: Likewise.
49714         * doc/posix-functions/strtod.texi: Likewise.
49715         * doc/posix-functions/symlinkat.texi: Likewise.
49716         * doc/posix-functions/unlinkat.texi: Likewise.
49717         * doc/posix-functions/utimensat.texi: Likewise.
49718         * doc/glibc-functions/bindresvport.texi: Likewise.
49719         * doc/glibc-functions/dn_expand.texi: Likewise.
49720         * doc/glibc-functions/exp10.texi: Likewise.
49721         * doc/glibc-functions/exp10f.texi: Likewise.
49722         * doc/glibc-functions/fgetxattr.texi: Likewise.
49723         * doc/glibc-functions/flistxattr.texi: Likewise.
49724         * doc/glibc-functions/fopencookie.texi: Likewise.
49725         * doc/glibc-functions/freeifaddrs.texi: Likewise.
49726         * doc/glibc-functions/fremovexattr.texi: Likewise.
49727         * doc/glibc-functions/fsetxattr.texi: Likewise.
49728         * doc/glibc-functions/getifaddrs.texi: Likewise.
49729         * doc/glibc-functions/getxattr.texi: Likewise.
49730         * doc/glibc-functions/lgetxattr.texi: Likewise.
49731         * doc/glibc-functions/listxattr.texi: Likewise.
49732         * doc/glibc-functions/llistxattr.texi: Likewise.
49733         * doc/glibc-functions/lremovexattr.texi: Likewise.
49734         * doc/glibc-functions/lsetxattr.texi: Likewise.
49735         * doc/glibc-functions/pow10.texi: Likewise.
49736         * doc/glibc-functions/pow10f.texi: Likewise.
49737         * doc/glibc-functions/rcmd_af.texi: Likewise.
49738         * doc/glibc-functions/removexattr.texi: Likewise.
49739         * doc/glibc-functions/res_init.texi: Likewise.
49740         * doc/glibc-functions/res_mkquery.texi: Likewise.
49741         * doc/glibc-functions/res_query.texi: Likewise.
49742         * doc/glibc-functions/res_querydomain.texi: Likewise.
49743         * doc/glibc-functions/res_send.texi: Likewise.
49744         * doc/glibc-functions/rresvport_af.texi: Likewise.
49745         * doc/glibc-functions/setxattr.texi: Likewise.
49746         * doc/glibc-functions/strcasestr.texi: Likewise.
49747
49748 2008-12-15  Bruno Haible  <bruno@clisp.org>
49749
49750         Fix compilation error on OSF/1 4.0.
49751         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
49752         <sys/time.h>, simply delegate to the system header.
49753         Reported by Daniel Richard G. <oss@teragram.com>.
49754
49755 2008-12-15  Bruno Haible  <bruno@clisp.org>
49756
49757         * doc/posix-functions/openat.texi: Mention the 'openat' module.
49758         * doc/posix-functions/fchmodat.texi: Likewise.
49759         * doc/posix-functions/fchownat.texi: Likewise.
49760         * doc/posix-functions/fdopendir.texi: Likewise.
49761         * doc/posix-functions/fstatat.texi: Likewise.
49762         * doc/posix-functions/mkdirat.texi: Likewise.
49763         * doc/posix-functions/unlinkat.texi: Likewise.
49764
49765 2008-12-14  Bruno Haible  <bruno@clisp.org>
49766
49767         Update doc for POSIX:2008.
49768         * doc/posix-functions/faccessat.texi: New file.
49769         * doc/posix-functions/fchmodat.texi: New file.
49770         * doc/posix-functions/fchownat.texi: New file.
49771         * doc/posix-functions/fdopendir.texi: New file.
49772         * doc/posix-functions/fstatat.texi: New file.
49773         * doc/posix-functions/futimens.texi: New file.
49774         * doc/posix-functions/linkat.texi: New file.
49775         * doc/posix-functions/mkdirat.texi: New file.
49776         * doc/posix-functions/mkfifoat.texi: New file.
49777         * doc/posix-functions/mknodat.texi: New file.
49778         * doc/posix-functions/open_wmemstream.texi: New file.
49779         * doc/posix-functions/openat.texi: New file.
49780         * doc/posix-functions/psiginfo.texi: New file.
49781         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
49782         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
49783         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
49784         * doc/posix-functions/readlinkat.texi: New file.
49785         * doc/posix-functions/renameat.texi: New file.
49786         * doc/posix-functions/strerror_l.texi: New file.
49787         * doc/posix-functions/symlinkat.texi: New file.
49788         * doc/posix-functions/unlinkat.texi: New file.
49789         * doc/posix-functions/utimensat.texi: New file.
49790         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49791
49792 2008-12-14  Bruno Haible  <bruno@clisp.org>
49793
49794         Update doc for POSIX:2008.
49795         * doc/posix-functions/alphasort.texi: Renamed from
49796         doc/glibc-functions/alphasort.texi.
49797         * doc/posix-functions/dirfd.texi: Renamed from
49798         doc/glibc-functions/dirfd.texi.
49799         * doc/posix-functions/dprintf.texi: Renamed from
49800         doc/glibc-functions/dprintf.texi.
49801         * doc/posix-functions/duplocale.texi: Renamed from
49802         doc/glibc-functions/duplocale.texi.
49803         * doc/posix-functions/fexecve.texi: Renamed from
49804         doc/glibc-functions/fexecve.texi.
49805         * doc/posix-functions/fmemopen.texi: Renamed from
49806         doc/glibc-functions/fmemopen.texi.
49807         * doc/posix-functions/freelocale.texi: Renamed from
49808         doc/glibc-functions/freelocale.texi.
49809         * doc/posix-functions/getdate_err.texi: Renamed from
49810         doc/glibc-functions/getdate_err.texi.
49811         * doc/posix-functions/isalnum_l.texi: Renamed from
49812         doc/glibc-functions/isalnum_l.texi.
49813         * doc/posix-functions/isalpha_l.texi: Renamed from
49814         doc/glibc-functions/isalpha_l.texi.
49815         * doc/posix-functions/isblank_l.texi: Renamed from
49816         doc/glibc-functions/isblank_l.texi.
49817         * doc/posix-functions/iscntrl_l.texi: Renamed from
49818         doc/glibc-functions/iscntrl_l.texi.
49819         * doc/posix-functions/isdigit_l.texi: Renamed from
49820         doc/glibc-functions/isdigit_l.texi.
49821         * doc/posix-functions/isgraph_l.texi: Renamed from
49822         doc/glibc-functions/isgraph_l.texi.
49823         * doc/posix-functions/islower_l.texi: Renamed from
49824         doc/glibc-functions/islower_l.texi.
49825         * doc/posix-functions/isprint_l.texi: Renamed from
49826         doc/glibc-functions/isprint_l.texi.
49827         * doc/posix-functions/ispunct_l.texi: Renamed from
49828         doc/glibc-functions/ispunct_l.texi.
49829         * doc/posix-functions/isspace_l.texi: Renamed from
49830         doc/glibc-functions/isspace_l.texi.
49831         * doc/posix-functions/isupper_l.texi: Renamed from
49832         doc/glibc-functions/isupper_l.texi.
49833         * doc/posix-functions/iswalnum_l.texi: Renamed from
49834         doc/glibc-functions/iswalnum_l.texi.
49835         * doc/posix-functions/iswalpha_l.texi: Renamed from
49836         doc/glibc-functions/iswalpha_l.texi.
49837         * doc/posix-functions/iswblank_l.texi: Renamed from
49838         doc/glibc-functions/iswblank_l.texi.
49839         * doc/posix-functions/iswcntrl_l.texi: Renamed from
49840         doc/glibc-functions/iswcntrl_l.texi.
49841         * doc/posix-functions/iswctype_l.texi: Renamed from
49842         doc/glibc-functions/iswctype_l.texi.
49843         * doc/posix-functions/iswdigit_l.texi: Renamed from
49844         doc/glibc-functions/iswdigit_l.texi.
49845         * doc/posix-functions/iswgraph_l.texi: Renamed from
49846         doc/glibc-functions/iswgraph_l.texi.
49847         * doc/posix-functions/iswlower_l.texi: Renamed from
49848         doc/glibc-functions/iswlower_l.texi.
49849         * doc/posix-functions/iswprint_l.texi: Renamed from
49850         doc/glibc-functions/iswprint_l.texi.
49851         * doc/posix-functions/iswpunct_l.texi: Renamed from
49852         doc/glibc-functions/iswpunct_l.texi.
49853         * doc/posix-functions/iswspace_l.texi: Renamed from
49854         doc/glibc-functions/iswspace_l.texi.
49855         * doc/posix-functions/iswupper_l.texi: Renamed from
49856         doc/glibc-functions/iswupper_l.texi.
49857         * doc/posix-functions/iswxdigit_l.texi: Renamed from
49858         doc/glibc-functions/iswxdigit_l.texi.
49859         * doc/posix-functions/isxdigit_l.texi: Renamed from
49860         doc/glibc-functions/isxdigit_l.texi.
49861         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
49862         doc/glibc-functions/mbsnrtowcs.texi.
49863         * doc/posix-functions/mkdtemp.texi: Renamed from
49864         doc/glibc-functions/mkdtemp.texi.
49865         * doc/posix-functions/newlocale.texi: Renamed from
49866         doc/glibc-functions/newlocale.texi.
49867         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
49868         doc/glibc-functions/nl_langinfo_l.texi.
49869         * doc/posix-functions/open_memstream.texi: Renamed from
49870         doc/glibc-functions/open_memstream.texi.
49871         * doc/posix-functions/opterr.texi: Renamed from
49872         doc/glibc-functions/opterr.texi.
49873         * doc/posix-functions/optind.texi: Renamed from
49874         doc/glibc-functions/optind.texi.
49875         * doc/posix-functions/optopt.texi: Renamed from
49876         doc/glibc-functions/optopt.texi.
49877         * doc/posix-functions/psignal.texi: Renamed from
49878         doc/glibc-functions/psignal.texi.
49879         * doc/posix-functions/scandir.texi: Renamed from
49880         doc/glibc-functions/scandir.texi.
49881         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
49882         doc/glibc-functions/sched_get_priority_min.texi.
49883         * doc/posix-functions/signgam.texi: Renamed from
49884         doc/glibc-functions/signgam.texi.
49885         * doc/posix-functions/stpcpy.texi: Renamed from
49886         doc/glibc-functions/stpcpy.texi.
49887         * doc/posix-functions/stpncpy.texi: Renamed from
49888         doc/glibc-functions/stpncpy.texi.
49889         * doc/posix-functions/strcasecmp_l.texi: Renamed from
49890         doc/glibc-functions/strcasecmp_l.texi.
49891         * doc/posix-functions/strcoll_l.texi: Renamed from
49892         doc/glibc-functions/strcoll_l.texi.
49893         * doc/posix-functions/strfmon_l.texi: Renamed from
49894         doc/glibc-functions/strfmon_l.texi.
49895         * doc/posix-functions/strftime_l.texi: Renamed from
49896         doc/glibc-functions/strftime_l.texi.
49897         * doc/posix-functions/strncasecmp_l.texi: Renamed from
49898         doc/glibc-functions/strncasecmp_l.texi.
49899         * doc/posix-functions/strndup.texi: Renamed from
49900         doc/glibc-functions/strndup.texi.
49901         * doc/posix-functions/strnlen.texi: Renamed from
49902         doc/glibc-functions/strnlen.texi.
49903         * doc/posix-functions/strsignal.texi: Renamed from
49904         doc/glibc-functions/strsignal.texi.
49905         * doc/posix-functions/strxfrm_l.texi: Renamed from
49906         doc/glibc-functions/strxfrm_l.texi.
49907         * doc/posix-functions/timer_gettime.texi: Renamed from
49908         doc/glibc-functions/timer_gettime.texi.
49909         * doc/posix-functions/tolower_l.texi: Renamed from
49910         doc/glibc-functions/tolower_l.texi.
49911         * doc/posix-functions/toupper_l.texi: Renamed from
49912         doc/glibc-functions/toupper_l.texi.
49913         * doc/posix-functions/towctrans_l.texi: Renamed from
49914         doc/glibc-functions/towctrans_l.texi.
49915         * doc/posix-functions/towlower_l.texi: Renamed from
49916         doc/glibc-functions/towlower_l.texi.
49917         * doc/posix-functions/towupper_l.texi: Renamed from
49918         doc/glibc-functions/towupper_l.texi.
49919         * doc/posix-functions/uselocale.texi: Renamed from
49920         doc/glibc-functions/uselocale.texi.
49921         * doc/posix-functions/vdprintf.texi: Renamed from
49922         doc/glibc-functions/vdprintf.texi.
49923         * doc/posix-functions/wcpcpy.texi:
49924         Renamed from doc/glibc-functions/wcpcpy.texi.
49925         * doc/posix-functions/wcpncpy.texi: Renamed from
49926         doc/glibc-functions/wcpncpy.texi.
49927         * doc/posix-functions/wcscasecmp.texi: Renamed from
49928         doc/glibc-functions/wcscasecmp.texi.
49929         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
49930         doc/glibc-functions/wcscasecmp_l.texi.
49931         * doc/posix-functions/wcscoll_l.texi: Renamed from
49932         doc/glibc-functions/wcscoll_l.texi.
49933         * doc/posix-functions/wcsdup.texi: Renamed from
49934         doc/glibc-functions/wcsdup.texi.
49935         * doc/posix-functions/wcsncasecmp.texi: Renamed from
49936         doc/glibc-functions/wcsncasecmp.texi.
49937         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
49938         doc/glibc-functions/wcsncasecmp_l.texi.
49939         * doc/posix-functions/wcsnlen.texi: Renamed from
49940         doc/glibc-functions/wcsnlen.texi.
49941         * doc/posix-functions/wcsnrtombs.texi: Renamed from
49942         doc/glibc-functions/wcsnrtombs.texi.
49943         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
49944         doc/glibc-functions/wcsxfrm_l.texi.
49945         * doc/posix-functions/wctrans_l.texi: Renamed from
49946         doc/glibc-functions/wctrans_l.texi.
49947         * doc/posix-functions/wctype_l.texi: Renamed from
49948         doc/glibc-functions/wctype_l.texi.
49949         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49950         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
49951         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
49952         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
49953         these subsections.
49954         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
49955         Remove sections.
49956
49957 2008-12-14  Bruno Haible  <bruno@clisp.org>
49958
49959         Update doc for POSIX:2008.
49960         * doc/posix-functions/*.texi: Update URL of POSIX specification.
49961
49962 2008-12-14  Bruno Haible  <bruno@clisp.org>
49963
49964         Update doc for POSIX:2008.
49965         * doc/pastposix-functions/bcmp.texi: Renamed from
49966         doc/posix-functions/bcmp.texi.
49967         * doc/pastposix-functions/bcopy.texi: Renamed from
49968         doc/posix-functions/bcopy.texi.
49969         * doc/pastposix-functions/bsd_signal.texi: Renamed from
49970         doc/posix-functions/bsd_signal.texi.
49971         * doc/pastposix-functions/bzero.texi: Renamed from
49972         doc/posix-functions/bzero.texi.
49973         * doc/pastposix-functions/ecvt.texi: Renamed from
49974         doc/posix-functions/ecvt.texi.
49975         * doc/pastposix-functions/fcvt.texi: Renamed from
49976         doc/posix-functions/fcvt.texi.
49977         * doc/pastposix-functions/ftime.texi: Renamed from
49978         doc/posix-functions/ftime.texi.
49979         * doc/pastposix-functions/gcvt.texi: Renamed from
49980         doc/posix-functions/gcvt.texi.
49981         * doc/pastposix-functions/getcontext.texi: Renamed from
49982         doc/posix-functions/getcontext.texi.
49983         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
49984         doc/posix-functions/gethostbyaddr.texi.
49985         * doc/pastposix-functions/gethostbyname.texi: Renamed from
49986         doc/posix-functions/gethostbyname.texi.
49987         * doc/pastposix-functions/getwd.texi: Renamed from
49988         doc/posix-functions/getwd.texi.
49989         * doc/pastposix-functions/h_errno.texi: Renamed from
49990         doc/posix-functions/h_errno.texi.
49991         * doc/pastposix-functions/index.texi: Renamed from
49992         doc/posix-functions/index.texi.
49993         * doc/pastposix-functions/makecontext.texi: Renamed from
49994         doc/posix-functions/makecontext.texi.
49995         * doc/pastposix-functions/mktemp.texi: Renamed from
49996         doc/posix-functions/mktemp.texi.
49997         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
49998         doc/posix-functions/pthread_attr_getstackaddr.texi.
49999         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
50000         doc/posix-functions/pthread_attr_setstackaddr.texi.
50001         * doc/pastposix-functions/rindex.texi: Renamed from
50002         doc/posix-functions/rindex.texi.
50003         * doc/pastposix-functions/scalb.texi: Renamed from
50004         doc/posix-functions/scalb.texi.
50005         * doc/pastposix-functions/setcontext.texi: Renamed from
50006         doc/posix-functions/setcontext.texi.
50007         * doc/pastposix-functions/swapcontext.texi: Renamed from
50008         doc/posix-functions/swapcontext.texi.
50009         * doc/pastposix-functions/ualarm.texi: Renamed from
50010         doc/posix-functions/ualarm.texi.
50011         * doc/pastposix-functions/usleep.texi: Renamed from
50012         doc/posix-functions/usleep.texi.
50013         * doc/pastposix-functions/vfork.texi: Renamed from
50014         doc/posix-functions/vfork.texi.
50015         * doc/pastposix-functions/wcswcs.texi: Renamed from
50016         doc/posix-functions/wcswcs.texi.
50017         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
50018         (Function Substitutes): Update.
50019
50020 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50021
50022         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
50023         m4/strerror.m4.
50024
50025 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50026             Bruno Haible  <bruno@clisp.org>
50027
50028         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
50029
50030 2008-12-13  Bruno Haible  <bruno@clisp.org>
50031
50032         * modules/strtoull (Depends-on): Remove unistd.
50033
50034 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50035
50036         * modules/strtoull (Depends-on): Add stdlib.
50037
50038 2008-12-11  Simon Josefsson  <simon@josefsson.org>
50039
50040         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
50041
50042 2008-12-10  Jim Meyering  <meyering@redhat.com>
50043
50044         gl_ASSERT: don't say assertions are disabled when they're not
50045         * m4/assert.m4 (gl_ASSERT): Do not make configure report
50046         "checking whether to enable assertions... no", when they are in
50047         fact enabled.  This is solely a bug in the output of configure.
50048         In spite of saying "no", NDEBUG was not defined in that case.
50049         Also, as noted by Eric Blake, leave assertions enabled upon
50050         --enable-assert=INVALID.
50051
50052 2008-12-10  Bruno Haible  <bruno@clisp.org>
50053
50054         Change MODULES.html to refer to POSIX:2008 where possible.
50055         * MODULES.html.sh (POSIX2008_URL): New variable.
50056         (posix_headers): Remove sys/timeb, ucontext.
50057         (posix2001_headers): New variable.
50058         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
50059         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
50060         index, makecontext, mktemp, pthread_attr_getstackaddr,
50061         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
50062         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
50063         (posix2001_functions): New variable.
50064         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
50065         otherwise.
50066
50067 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50068
50069         add missing include to parse-duration.c
50070         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
50071         * modules/parse-duration (Depends-on): Add xalloc.
50072
50073         fix sed script reading maint.mk
50074         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
50075         (syntax-check-rules): Use it.
50076
50077 2008-12-09  Bruno Haible  <bruno@clisp.org>
50078
50079         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
50080         MacOS X 10.4/PowerPC.
50081         Reported by Simon Josefsson.
50082
50083 2008-12-08  Jim Meyering  <meyering@redhat.com>
50084
50085         work around mingw's lack of some S_IF definitions
50086         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
50087         Reported by Simon Josefsson.
50088
50089 2008-12-08  Bruno Haible  <bruno@clisp.org>
50090
50091         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
50092         applied to variables. Needed on MacOS X 10.4/PowerPC.
50093         Reported by Simon Josefsson.
50094
50095 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
50096         and Eric Blake  <ebb9@byu.net>
50097
50098         assert: honor --enable-assert
50099         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
50100         order to honor --enable-assert, rather than treating it as a
50101         synonym for --disable-assert.
50102
50103 2008-12-08  Jim Meyering  <meyering@redhat.com>
50104
50105         * lib/posixtm.c: Remove now-useless declaration of mktime.
50106
50107         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
50108
50109 2008-12-07  Bruno Haible  <bruno@clisp.org>
50110
50111         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
50112         test_once): Mark functions as static.
50113         * tests/test-tls.c (test_tls): Likewise.
50114
50115 2008-12-07  Bruno Haible  <bruno@clisp.org>
50116
50117         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
50118         iconv_register_autodetect.
50119
50120 2008-12-07  Jim Meyering  <meyering@redhat.com>
50121
50122         posixtm.c: avoid a warning
50123         * lib/posixtm.c (posixtime): Don't initialize tm0.
50124         It's no longer needed to placate gcc4's -Wuninitialized,
50125         and the attempt to placate would elicit a new warning.
50126
50127         unicodeio.c: mark unused parameters
50128         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
50129         (fallback_failure_callback): Likewise.
50130
50131 2008-12-07  Bruno Haible  <bruno@clisp.org>
50132
50133         * gnulib-tool (func_create_testdir): When building the tests
50134         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
50135         Reported by Simon Josefsson.
50136
50137 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50138
50139         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
50140
50141 2008-12-06  Bruno Haible  <bruno@clisp.org>
50142
50143         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
50144         Suggested by Eric Blake.
50145
50146 2008-12-06  Bruno Haible  <bruno@clisp.org>
50147
50148         Fix a c-stack test failure on MacOS X.
50149         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
50150         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
50151         handler for SIGBUS as well.
50152         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
50153         install a signal handler for SIGBUS as well.
50154         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
50155
50156 2008-12-06  Bruno Haible  <bruno@clisp.org>
50157
50158         Advocacy documentation.
50159         * doc/gnulib-intro.texi (Benefits): New section.
50160         * doc/gnulib.texi: Update.
50161
50162 2008-12-06  Bruno Haible  <bruno@clisp.org>
50163
50164         Document the 'manywarnings' module.
50165         * doc/manywarnings.texi: New file.
50166         * doc/gnulib.texi: Include it.
50167
50168 2008-12-05  Eric Blake  <ebb9@byu.net>
50169
50170         tests: silence some gcc warnings
50171         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
50172         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
50173         type mismatches.
50174
50175 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50176             Bruno Haible  <bruno@clisp.org>
50177
50178         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
50179
50180 2008-11-29  Jim Meyering  <meyering@redhat.com>
50181
50182         unicodeio.c: mark unused parameters
50183         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
50184         (fallback_failure_callback): Likewise.
50185
50186         fts: fix a thinko
50187         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
50188         (set_stat_type): Return S_IF*-valued "type" directly.
50189         Prompted by James Youngman's spotting a related bug.
50190         Confirmed by further testing through find.
50191
50192         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
50193         * lib/fts.c (D_TYPE): Define.
50194         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
50195         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
50196         (s_ifmt_shift_bits): New function.
50197         (set_stat_type): New function.
50198         (fts_build): When not calling fts_stat, call set_stat_type
50199         to propagate dirent.d_type info to fts_read caller.
50200         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
50201         fts_statp->st_mode type information may be valid.
50202
50203 2008-11-28  Simon Josefsson  <simon@josefsson.org>
50204
50205         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
50206         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
50207         <sds@gnu.org>.
50208
50209 2008-11-20  Bruno Haible  <bruno@clisp.org>
50210
50211         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
50212         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
50213         INCLUDE_NEXT.
50214         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
50215         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
50216         * modules/math (Makefile.am): Substitute
50217         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
50218         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50219
50220 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
50221             Bruno Haible  <bruno@clisp.org>
50222
50223         * lib/stdint.in.h: Define all type macros so that their expansion is
50224         a single typedef'ed token. Fixes a compilation failure in Boost which
50225         does "using ::int8_t;".
50226
50227 2008-11-18  Simon Josefsson  <simon@josefsson.org>
50228
50229         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
50230         gl_MANYWARN_ALL_GCC.
50231         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
50232         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
50233         * modules/manywarnings: New file.
50234         * MODULES.html.sh: Mention manywarnings module.
50235
50236 2008-11-18  Bruno Haible  <bruno@clisp.org>
50237
50238         * doc/gnulib-tool.texi (Unit tests): New section.
50239
50240 2008-11-18  Simon Josefsson  <simon@josefsson.org>
50241
50242         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
50243         paths like 'lib/po/foo.po'.
50244
50245 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50246
50247         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
50248         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
50249
50250 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50251
50252         * m4/warnings.m4: Use CPPFLAGS to really check whether the
50253         parameter works.
50254
50255 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50256
50257         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
50258
50259 2008-11-17  Bruce Korb  <bkorb@gnu.org>
50260
50261         * modules/parse-duration-tests: New file.
50262         * tests/test-parse-duration.sh: New file.
50263         * tests/test-parse-duration.c: New file.
50264
50265         New module 'parse-duration'.
50266         * lib/parse-duration.h: New file.
50267         * lib/parse-duration.c: New file.
50268         * modules/parse-duration: New file.
50269
50270 2008-11-17  Bruno Haible  <bruno@clisp.org>
50271
50272         * tests/test-select-out.sh: Comment out the first pipe test.
50273         Reported by Simon Josefsson.
50274
50275 2008-11-17  Bruno Haible  <bruno@clisp.org>
50276
50277         * modules/getaddrinfo (Depends-on): Add servent, hostent.
50278         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
50279         gl_HOSTENT.
50280
50281 2008-11-17  Bruno Haible  <bruno@clisp.org>
50282
50283         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
50284         -lnetwork and -lnet. Needed for Haiku and BeOS.
50285
50286 2008-11-16  Bruno Haible  <bruno@clisp.org>
50287
50288         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
50289
50290 2008-11-16  Bruno Haible  <bruno@clisp.org>
50291
50292         Avoid test failure on Haiku.
50293         * tests/test-fsync.c: Include <errno.h>.
50294         (main): Don't require that fsync (0) fails.
50295
50296 2008-11-15  Bruno Haible  <bruno@clisp.org>
50297
50298         New module 'hostent'.
50299         * modules/hostent: New file.
50300         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
50301
50302 2008-11-15  Bruno Haible  <bruno@clisp.org>
50303
50304         New module 'servent'.
50305         * modules/servent: New file.
50306         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
50307
50308 2008-11-15  Bruno Haible  <bruno@clisp.org>
50309
50310         Avoid generating same test program with two different rules.
50311         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
50312         test-frexp to test-frexp-nolibm.
50313         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
50314         test-frexpl to test-frexpl-nolibm.
50315
50316 2008-11-15  Bruno Haible  <bruno@clisp.org>
50317
50318         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
50319         $(FREXPL_LIBM).
50320
50321 2008-11-15  Bruno Haible  <bruno@clisp.org>
50322
50323         * lib/netdb.in.h: Activate the definitions also when the system's
50324         <netdb.h> has 'struct addrinfo'.
50325         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
50326         EAI_OVERFLOW or AI_NUMERICSERV.
50327         * doc/posix-headers/netdb.texi: Document the problem.
50328
50329 2008-11-15  Bruno Haible  <bruno@clisp.org>
50330
50331         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
50332
50333         Make the 'sched' module work on platforms where <sched.h> exists but
50334         is incomplete (such as Haiku).
50335         * lib/sched.in.h; Include the system's <sched.h> if it exists.
50336         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
50337         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
50338         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
50339         HAVE_STRUCT_SCHED_PARAM.
50340         * modules/sched (Depends-on): Add include_next.
50341         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
50342         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
50343         * doc/posix-headers/sched.texi: Document the issue.
50344
50345 2008-11-13  Jim Meyering  <meyering@redhat.com>
50346
50347         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
50348         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
50349         test would fail due to the difference in the Report bugs to ...
50350         line.  The expected address is empty, "<>", while the actual
50351         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
50352
50353 2008-11-12  Bruno Haible  <bruno@clisp.org>
50354
50355         lstat: don't compile lstat.c on systems lacking lstat
50356         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
50357         which don't have lstat; this is handled by lib/sys_stat.in.h already.
50358         Reported by Daniel P. Berrange via Jim Meyering.
50359
50360 2008-11-12  Jim Meyering  <meyering@redhat.com>
50361
50362         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
50363
50364 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50365
50366         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
50367         instead.
50368
50369 2008-11-12  Bruno Haible  <bruno@clisp.org>
50370
50371         * lib/unicodeio.c: Include unistr.h.
50372         (utf8_wctomb): Remove function.
50373         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
50374
50375 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50376
50377         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
50378         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
50379         <bruno@clisp.org>.
50380         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
50381
50382 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50383
50384         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
50385         * doc/gnulib.texi: Add section for warnings.
50386
50387 2008-11-11  Bruno Haible  <bruno@clisp.org>
50388
50389         * lib/sockets.h: Add a comment.
50390
50391 2008-11-11  Karl Berry  <karl@gnu.org>
50392
50393         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
50394
50395 2008-11-11  Eric Blake  <ebb9@byu.net>
50396
50397         fdl.texi: avoid git symlinks
50398         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
50399
50400 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50401
50402         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
50403
50404 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50405
50406         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
50407         (gl_WARN_ADD): Substitute $2 if literal.
50408
50409 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50410
50411         * m4/warning.m4: Remove.
50412
50413 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50414
50415         * m4/warnings.m4: Almost complete rewrite. :-)
50416
50417 2008-11-10  Simon Josefsson  <simon@josefsson.org>
50418
50419         * modules/warnings: New module.
50420         * m4/warnings.m4: New file.
50421         * MODULES.html.sh: Mention warnings module.
50422         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
50423         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50424
50425 2008-11-10  Eric Blake  <ebb9@byu.net>
50426
50427         fdl.texi: make a symlink to the latest version
50428         * doc/standards.texi: Revert today's earlier change.
50429         * doc/fdl-1.2.texi: Rename from old fdl.texi...
50430         * doc/fdl.texi: ...and replace this with a symlink to the newer
50431         fdl-1.3.texi.
50432
50433 2008-11-10  Bruno Haible  <bruno@clisp.org>
50434
50435         * tests/test-select-fd.c (main): Accept the result file name as fourth
50436         argument.
50437         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
50438         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
50439
50440 2008-11-10  Bruno Haible  <bruno@clisp.org>
50441
50442         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
50443         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
50444         as autoconf-substituted macros.
50445         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
50446         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
50447         gl_NETDB_H_DEFAULTS. Set these variables.
50448         * modules/netdb (Makefile.am): Substitute these variables.
50449
50450 2008-11-10  Eric Blake  <ebb9@byu.net>
50451
50452         standards.texi: include correct file for FDL 1.3
50453         * doc/standards.texi (GNU Free Documentation License): Change
50454         include file to pull in FDL 1.3, not 1.2.
50455
50456         fdl.texi: revert accidental change to license
50457         * doc/fdl.texi: This is FDL 1.2, not 1.3.
50458
50459 2008-11-10  Bruno Haible  <bruno@clisp.org>
50460
50461         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
50462         cross-compiling guesses also when the native compile gives no result.
50463
50464 2008-11-10  Bruno Haible  <bruno@clisp.org>
50465
50466         * lib/spawni.c (__spawni): Force variable into the stack.
50467
50468 2008-11-10  Bruno Haible  <bruno@clisp.org>
50469
50470         Add support for Haiku.
50471         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
50472         glibc and BeOS, but also on Haiku.
50473         * lib/fpurge.c (fpurge): Likewise.
50474         * lib/freadable.c (freadable): Likewise.
50475         * lib/freadahead.c (freadahead): Likewise.
50476         * lib/freading.c (freading): Likewise.
50477         * lib/freadptr.c (freadptr): Likewise.
50478         * lib/freadseek.c (freadptrinc): Likewise.
50479         * lib/fseeko.c (rpl_fseeko): Likewise.
50480         * lib/fseterr.c (fseterr): Likewise.
50481         * lib/fwritable.c (fwritable): Likewise.
50482         * lib/fwriting.c (fwriting): Likewise.
50483         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
50484
50485 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50486
50487         * lib/config.charset: Treat Haiku like BeOS.
50488
50489 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50490
50491         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
50492         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
50493
50494 2008-11-08  Bruno Haible  <bruno@clisp.org>
50495
50496         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
50497         AC_CACHE_CHECK.
50498
50499 2008-11-08  Bruno Haible  <bruno@clisp.org>
50500
50501         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
50502
50503 2008-11-08  Bruno Haible  <bruno@clisp.org>
50504
50505         * tests/test-select-fd.c: New file.
50506         * tests/test-select-in.sh: New file.
50507         * tests/test-select-out.sh: New file.
50508         * tests/test-select-stdin.c: New file.
50509         * modules/select-tests (Files): Add the new files.
50510         (Depends-on): Add gettimeofday.
50511         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
50512         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
50513         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
50514
50515 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
50516             Bruno Haible  <bruno@clisp.org>
50517
50518         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
50519
50520 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
50521
50522         * build-aux/pmccabe2html: Added support for C++ source files.
50523
50524 2008-11-05  Ben Pfaff  <blp@gnu.org>
50525
50526         Fix lib/close.c build on Windows.
50527         * modules/close (Files): Add lib/w32sock.h.
50528
50529 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
50530
50531         Accept Bison's NEWS format.
50532         * build-aux/announce-gen (print_news_deltas): Tweak
50533         $re_prefix.
50534
50535 2008-11-04  Bruno Haible  <bruno@clisp.org>
50536
50537         * modules/random_r (Maintainer): Add glibc.
50538
50539 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50540
50541         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
50542         by karl@freefriends.org (Karl Berry).
50543         * doc/alloca.texi: Likewise.
50544         * doc/c-ctype.texi: Likewise.
50545         * doc/c-strcase.texi: Likewise.
50546         * doc/c-strcaseeq.texi: Likewise.
50547         * doc/c-strcasestr.texi: Likewise.
50548         * doc/c-strstr.texi: Likewise.
50549         * doc/c-strtod.texi: Likewise.
50550         * doc/c-strtold.texi: Likewise.
50551         * doc/ctime.texi: Likewise.
50552         * doc/error.texi: Likewise.
50553         * doc/fdl.texi: Likewise.
50554         * doc/gcd.texi: Likewise.
50555         * doc/getdate.texi: Likewise.
50556         * doc/gnulib-intro.texi: Likewise.
50557         * doc/gnulib-tool.texi: Likewise.
50558         * doc/gnulib.texi: Likewise.
50559         * doc/inet_ntoa.texi: Likewise.
50560         * doc/maintain.texi: Likewise.
50561         * doc/make-stds.texi: Likewise.
50562         * doc/quote.texi: Likewise.
50563         * doc/regexprops-generic.texi: Likewise.
50564         * doc/standards.texi: Likewise.
50565         * doc/verify.texi: Likewise.
50566         * doc/visibility.texi: Likewise.
50567         * doc/gnulib.texi (GNU Free Documentation License): Include
50568         fdl-1.3.texi instead of fdl.texi.
50569
50570 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50571
50572         * doc/fdl-1.3.texi: New file, from
50573         <http://www.gnu.org/licenses/fdl-1.3.texi>.
50574         * modules/fdl-1.3: Add.
50575         * MODULES.html.sh: Add fdl-1.3.
50576
50577 2008-11-03  Bruno Haible  <bruno@clisp.org>
50578
50579         Make determination of absolute name of header file work with AIX xlc.
50580         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
50581         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
50582         preprocessing.
50583         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50584         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
50585
50586 2008-11-03  Simon Josefsson  <simon@josefsson.org>
50587
50588         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
50589         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
50590         <ludo@gnu.org>.
50591
50592 2008-11-02  Bruno Haible  <bruno@clisp.org>
50593
50594         Mark 'strpbrk' obsolete.
50595         * modules/strpbrk (Status, Notice): New sections.
50596         * modules/strtok_r (Depends-on): Add strpbrk.
50597
50598 2008-11-02  Bruno Haible  <bruno@clisp.org>
50599
50600         Mark 'strdup' obsolete.
50601         * modules/strdup (Status, Notice): New sections.
50602         * modules/findprog (Depends-on): Add strdup.
50603         * modules/getaddrinfo (Depends-on): Likewise.
50604         * modules/localename (Depends-on): Likewise.
50605         * modules/relocatable-lib (Depends-on): Likewise.
50606         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
50607         * modules/relocatable-prog (Depends-on): Likewise.
50608         * modules/trim (Depends-on): Likewise.
50609         * modules/unictype/gen-ctype (Depends-on): Likewise.
50610         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50611
50612 2008-11-02  Bruno Haible  <bruno@clisp.org>
50613
50614         Mark 'strcspn' obsolete.
50615         * modules/strcspn (Status, Notice): New sections.
50616
50617 2008-11-02  Bruno Haible  <bruno@clisp.org>
50618
50619         Mark 'rmdir' obsolete.
50620         * modules/rmdir (Status, Notice): New sections.
50621         * modules/clean-temp (Depends-on): Add rmdir.
50622         * modules/openat (Depends-on): Likewise.
50623
50624 2008-11-02  Bruno Haible  <bruno@clisp.org>
50625
50626         Mark 'raise' obsolete.
50627         * modules/raise (Status, Notice): New sections.
50628         (Include): Specify <signal.h>.
50629         * modules/stdio (Depends-on): Add raise.
50630         * modules/write (Depends-on): Likewise.
50631
50632 2008-11-02  Bruno Haible  <bruno@clisp.org>
50633
50634         Mark 'memset' obsolete.
50635         * modules/memset (Status, Notice): New sections.
50636
50637 2008-11-02  Bruno Haible  <bruno@clisp.org>
50638
50639         Mark 'memmove' obsolete.
50640         * modules/memmove (Status, Notice): New sections.
50641         * modules/argp (Depends-on): Add memmove.
50642         * modules/argz (Depends-on): Likewise.
50643         * modules/canonicalize (Depends-on): Likewise.
50644         * modules/canonicalize-lgpl (Depends-on): Likewise.
50645         * modules/fts (Depends-on): Likewise.
50646         * modules/getcwd (Depends-on): Likewise.
50647         * modules/human (Depends-on): Likewise.
50648         * modules/regex (Depends-on): Likewise.
50649         * modules/striconveh (Depends-on): Likewise.
50650         * modules/trim (Depends-on): Likewise.
50651         * modules/unistr/u8-move (Depends-on): Likewise.
50652         * modules/unistr/u16-move (Depends-on): Likewise.
50653         * modules/unistr/u32-move (Depends-on): Likewise.
50654
50655 2008-11-02  Bruno Haible  <bruno@clisp.org>
50656
50657         Mark 'memcpy' obsolete.
50658         * modules/memcpy (Status, Notice): New sections.
50659
50660 2008-11-02  Bruno Haible  <bruno@clisp.org>
50661
50662         Mark 'memcmp' obsolete.
50663         * modules/memcmp (Status, Notice): New sections.
50664         * modules/argmatch (Depends-on): Add memchr.
50665         * modules/backupfile (Depends-on): Likewise.
50666         * modules/c-strcasestr (Depends-on): Likewise.
50667         * modules/crypto/des (Depends-on): Likewise.
50668         * modules/csharpcomp (Depends-on): Likewise.
50669         * modules/fnmatch (Depends-on): Likewise.
50670         * modules/git-merge-changelog (Depends-on): Likewise.
50671         * modules/isnand (Depends-on): Likewise.
50672         * modules/isnand-nolibm (Depends-on): Likewise.
50673         * modules/isnanf (Depends-on): Likewise.
50674         * modules/isnanf-nolibm (Depends-on): Likewise.
50675         * modules/isnanl (Depends-on): Likewise.
50676         * modules/isnanl-nolibm (Depends-on): Likewise.
50677         * modules/mbchar (Depends-on): Likewise.
50678         * modules/memcoll (Depends-on): Likewise.
50679         * modules/quotearg (Depends-on): Likewise.
50680         * modules/regex (Depends-on): Likewise.
50681         * modules/relocatable-prog (Depends-on): Likewise.
50682         * modules/same (Depends-on): Likewise.
50683         * modules/signbit (Depends-on): Likewise.
50684         * modules/strcasestr-simple (Depends-on): Likewise.
50685         * modules/unictype/gen-ctype (Depends-on): Likewise.
50686         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50687         * modules/uniname/uniname (Depends-on): Likewise.
50688         * modules/unistr/u8-cmp (Depends-on): Likewise.
50689
50690 2008-11-02  Bruno Haible  <bruno@clisp.org>
50691
50692         Mark 'memchr' obsolete.
50693         * modules/memchr (Status, Notice): New sections.
50694         * modules/argp (Depends-on): Add memchr.
50695         * modules/base64 (Depends-on): Likewise.
50696         * modules/c-strcasestr (Depends-on): Likewise.
50697         * modules/chdir-long (Depends-on): Likewise.
50698         * modules/fnmatch (Depends-on): Likewise.
50699         * modules/getsubopt (Depends-on): Likewise.
50700         * modules/git-merge-changelog (Depends-on): Likewise.
50701         * modules/glob (Depends-on): Likewise.
50702         * modules/strcasestr-simple (Depends-on): Likewise.
50703         * modules/strnlen (Depends-on): Likewise.
50704
50705 2008-11-02  Bruno Haible  <bruno@clisp.org>
50706
50707         Mark 'atexit' obsolete.
50708         * modules/atexit (Status, Notice): New sections.
50709         * modules/chdir-long (Depends-on): Add atexit.
50710         * modules/wait-process (Depends-on): Likewise.
50711
50712 2008-11-02  Bruno Haible  <bruno@clisp.org>
50713
50714         * gnulib-tool: New option --with-obsolete.
50715         (func_usage): Document it.
50716         (func_modules_transitive_closure): Drop obsolete dependencies if
50717         incobsolete is not true.
50718         (func_import): Read and save the incobsolete variable to the cache.
50719
50720 2008-11-02  Bruno Haible  <bruno@clisp.org>
50721
50722         * modules/TEMPLATE-EXTENDED: New field 'Status'.
50723         * gnulib-tool: New option --extract-status.
50724         (func_usage): Document it.
50725         (sed_extract_prog): Recognize it.
50726         (func_get_status): New function.
50727
50728 2008-10-30  Simon Josefsson  <simon@josefsson.org>
50729
50730         * modules/sockets (License): Change from LGPL to LGPLv2+.
50731
50732 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50733
50734         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
50735
50736 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50737
50738         * MODULES.html.sh (Support for systems lacking POSIX:2001):
50739         Mention times and sys_times.
50740         * modules/sys_times, modules/sys_times-tests: New modules.
50741         * modules/times, modules/times-tests: Likewise
50742         * m4/sys_times_h.m4: New file.
50743         * lib/sys_times.in.h: Likewise
50744         * lib/times.c: Likewise.
50745         * tests/test-sys_times.c: Likewise.
50746         * tests/test-times.c: Likewise.
50747         * doc/posix-headers/sys_times.texi: Update.
50748         * doc/posix-functions/times.texi: Update.
50749
50750 2008-10-28  Jim Meyering  <meyering@redhat.com>
50751
50752         * modules/tempname (Depends-on): Add lstat.
50753
50754         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
50755
50756 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50757
50758         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
50759         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
50760         using idiom used elsewhere in gnulib.
50761
50762 2008-10-27  Jim Meyering  <meyering@redhat.com>
50763
50764         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
50765
50766 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50767
50768         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
50769         TESTS_ENVIRONMENT, for shell scripts that needs to call built
50770         programs.
50771         * tests/test-argp-2.sh: Use $EXEEXT when needed.
50772
50773 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50774
50775         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
50776
50777 2008-10-27  Bruno Haible  <bruno@clisp.org>
50778
50779         * tests/test-lstat.c: Include <stdio.h>.
50780
50781 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50782
50783         * modules/lstat-tests: New module.
50784         * tests/test-lstat.c: New file.
50785
50786 2008-10-26  Jim Meyering  <meyering@redhat.com>
50787
50788         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
50789
50790 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50791             Bruno Haible  <bruno@clisp.org>
50792
50793         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
50794         * modules/configmake (Include): Add a note that the include must come
50795         after all system headers.
50796         * lib/javaversion.c: Include configmake.h after all other includes.
50797
50798 2008-10-26  Bruno Haible  <bruno@clisp.org>
50799
50800         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
50801         HAVE_STRUCT_RANDOM_DATA to 1.
50802         (gl_STDLIB_H): Simplify.
50803
50804 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50805
50806         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
50807         substitute HAVE_STRUCT_RANDOM_DATA.
50808         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
50809         random_data.
50810         * modules/stdlib (Makefile.am): Substitute
50811         HAVE_STRUCT_RANDOM_DATA.
50812
50813 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50814
50815         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
50816         * doc/gnulib-intro.texi (Copyright): Likewise.
50817
50818 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50819
50820         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
50821         findings.
50822
50823 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
50824             Bruno Haible  <bruno@clisp.org>
50825
50826         * lib/unistd.in.h: Include <winsock2.h>.
50827         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
50828         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
50829         Provide dummy declarations.
50830         (gethostname): Override.
50831         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
50832         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
50833         gl_PREREQ_SYS_H_WINSOCK2.
50834         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
50835         * doc/posix-functions/gethostname.texi: More details.
50836
50837 2008-10-25  Bruno Haible  <bruno@clisp.org>
50838
50839         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50840         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
50841         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
50842
50843         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
50844         here ...
50845         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
50846         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
50847         gl_UNISTD_H_DEFAULTS.
50848
50849 2008-10-25  Eric Blake  <ebb9@byu.net>
50850
50851         signbit: avoid spurious compiler failure
50852         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
50853         declarations inside function.
50854
50855 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50856             Bruno Haible  <bruno@clisp.org>
50857
50858         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
50859         * modules/random_r (Depends-on): Add stdint.
50860
50861 2008-10-24  Bruno Haible  <bruno@clisp.org>
50862
50863         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
50864         Eggert.
50865         * modules/strerror (License): Likewise.
50866
50867 2008-10-24  Jim Meyering  <meyering@redhat.com>
50868
50869         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
50870         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
50871
50872 2008-10-24  Eric Blake  <ebb9@byu.net>
50873
50874         getgroups: fix compilation when getgroups is available
50875         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
50876         but with <config.h> override of getgroups disabled.
50877
50878 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50879
50880         * doc/gnulib.texi (Header files): Add note about C++ problems.
50881         Explained by Bruno Haible <bruno@clisp.org>.
50882
50883 2008-10-23  Bruno Haible  <bruno@clisp.org>
50884
50885         Define a dummy SA_NODEFER macro on Interix.
50886         * lib/signal.in.h (SA_NODEFER): Define fallback.
50887         Reported by Aleksey Cheusov <cheusov@tut.by> via
50888         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
50889
50890 2008-10-23  Bruno Haible  <bruno@clisp.org>
50891
50892         * modules/freadahead (License): Change to LGPLv2+.
50893         Suggested by Simon Josefsson.
50894
50895 2008-10-23  Jim Meyering  <meyering@redhat.com>
50896
50897         random_r: new module
50898         * modules/random_r: New file.
50899         * m4/random_r.m4: New file.
50900         * lib/random_r.c: New file, from glibc.
50901         * modules/random_r-tests: New file.
50902         * tests/test-random_r.c: New file.
50903         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
50904          Declare.
50905         (RAND_MAX): Define.
50906         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
50907         * modules/stdlib: Substitute them, too.
50908         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
50909         * doc/glibc-functions/initstate_r.texi: Mention the new module.
50910         * doc/glibc-functions/random_r.texi: Likewise.
50911         * doc/glibc-functions/setstate_r.texi: Likewise.
50912         * doc/glibc-functions/srandom_r.texi: Likewise.
50913         * config/srclist.txt: Mention it.
50914
50915 2008-10-23  David Lutterkort  <lutter@redhat.com>
50916
50917         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
50918         link requirement
50919
50920 2008-10-23  Jim Meyering  <meyering@redhat.com>
50921
50922         selinux-h: mark parameters of stub functions as intentionally unused
50923         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
50924         * lib/se-context.in.h: Likewise.
50925
50926 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50927
50928         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
50929
50930 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50931
50932         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
50933
50934 2008-10-22  Eric Blake  <ebb9@byu.net>
50935
50936         glthread/thread: avoid compiler warning
50937         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
50938         Add unreachable abort to silence compiler.
50939
50940 2008-10-22  Eric Blake  <ebb9@byu.net>
50941
50942         netdb: also supply struct addrinfo for cygwin 1.5.x
50943         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
50944         older cygwin.
50945         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
50946         cygwin.
50947         * doc/posix-headers/netdb.texi (netdb.h): Document this.
50948
50949 2008-10-22  Bruno Haible  <bruno@clisp.org>
50950
50951         * users.txt: Update entry about pspp.
50952
50953 2008-10-21  Bruno Haible  <bruno@clisp.org>
50954
50955         Simplification.
50956         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
50957         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
50958
50959         Simplification.
50960         * lib/ioctl.c (ioctl): Don't undefine.
50961         * lib/socket.c (socket): Don't undefine.
50962
50963         Remove unused module indicator macros.
50964         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
50965         GNULIB_$1 as a C macro.
50966
50967         * doc/posix-functions/close.texi: Undo last change.
50968         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
50969         Windows platforms.
50970
50971 2008-10-21  Bruno Haible  <bruno@clisp.org>
50972
50973         Add gethostname() declaration to <unistd.h>.
50974         * lib/unistd.in.h (gethostname): New declaration.
50975         * lib/gethostname.c: Include <unistd.h>.
50976         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
50977         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
50978         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
50979         and HAVE_GETHOSTNAME.
50980         * modules/gethostname (Depends-on): Add unistd.
50981         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50982         (Include): Specify <unistd.h>.
50983         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
50984         HAVE_GETHOSTNAME.
50985         * tests/test-gethostname.c: Include <unistd.h> first.
50986
50987 2008-10-21  Bruno Haible  <bruno@clisp.org>
50988
50989         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
50990         * modules/select-tests (Depends-on): Likewise.
50991         Reported by Simon Josefsson.
50992
50993 2008-10-21  Simon Josefsson  <simon@josefsson.org>
50994
50995         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
50996         * lib/accept.c: New file, based on winsock.c.
50997         * lib/bind.c: New file, based on winsock.c.
50998         * lib/connect.c: New file, based on winsock.c.
50999         * lib/getpeername.c: New file, based on winsock.c.
51000         * lib/getsockname.c: New file, based on winsock.c.
51001         * lib/getsockopt.c: New file, based on winsock.c.
51002         * lib/ioctl.c: New file, based on winsock.c.
51003         * lib/listen.c: New file, based on winsock.c.
51004         * lib/recv.c: New file, based on winsock.c.
51005         * lib/recvfrom.c: New file, based on winsock.c.
51006         * lib/send.c: New file, based on winsock.c.
51007         * lib/sendto.c: New file, based on winsock.c.
51008         * lib/setsockopt.c: New file, based on winsock.c.
51009         * lib/shutdown.c: New file, based on winsock.c.
51010         * lib/socket.c: New file, based on winsock.c.
51011         * lib/w32sock.h: New file, based on winsock.c.
51012         * lib/winsock.c: Remove file.
51013         * modules/accept: Likewise.
51014         * modules/bind: Likewise.
51015         * modules/connect: Likewise.
51016         * modules/getpeername: Likewise.
51017         * modules/getsockname: Likewise.
51018         * modules/getsockopt: Likewise.
51019         * modules/ioctl: Likewise.
51020         * modules/listen: Likewise.
51021         * modules/recv: Likewise.
51022         * modules/recvfrom: Likewise.
51023         * modules/send: Likewise.
51024         * modules/sendto: Likewise.
51025         * modules/setsockopt: Likewise.
51026         * modules/shutdown: Likewise.
51027         * modules/socket: Use socket.c instead of winsock.c.
51028         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
51029         * doc/posix-functions/accept.texi: Doc fix.
51030         * doc/posix-functions/bind.texi: Doc fix.
51031         * doc/posix-functions/close.texi: Doc fix.
51032         * doc/posix-functions/connect.texi: Doc fix.
51033         * doc/posix-functions/getpeername.texi: Doc fix.
51034         * doc/posix-functions/getsockname.texi: Doc fix.
51035         * doc/posix-functions/getsockopt.texi: Doc fix.
51036         * doc/posix-functions/ioctl.texi: Doc fix.
51037         * doc/posix-functions/listen.texi: Doc fix.
51038         * doc/posix-functions/recv.texi: Doc fix.
51039         * doc/posix-functions/recvfrom.texi: Doc fix.
51040         * doc/posix-functions/send.texi: Doc fix.
51041         * doc/posix-functions/sendto.texi: Doc fix.
51042         * doc/posix-functions/setsockopt.texi: Doc fix.
51043         * doc/posix-functions/shutdown.texi: Doc fix.
51044         * doc/posix-functions/socket.texi: Doc fix.
51045
51046 2008-10-20  Bruno Haible  <bruno@clisp.org>
51047
51048         Take into account the role of SIGABRT_COMPAT on Windows 2008.
51049         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
51050         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
51051         as an alias for SIGABRT.
51052         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
51053         (sigaction): Map it to SIGABRT.
51054         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
51055
51056 2008-10-20  Bruno Haible  <bruno@clisp.org>
51057
51058         * lib/fts.c: Don't include lstat.h.
51059         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
51060
51061         Move the lstat() declaration to <sys/stat.h>.
51062         * lib/lstat.h: Remove file.
51063         * lib/sys_stat.in.h: Add special invocation convention.
51064         (lstat): New declaration.
51065         * lib/lstat.c (orig_lstat): New function.
51066         (rpl_lstat): Use orig_lstat instead of lstat.
51067         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
51068         AC_C_INLINE. Set REPLACE_LSTAT.
51069         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
51070         and REPLACE_LSTAT.
51071         * modules/lstat (Files): Remove lib/lstat.h.
51072         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
51073         (Include): Specify <sys/stat.h> instead of lstat.h.
51074         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
51075         REPLACE_LSTAT.
51076         * NEWS: Mention the change.
51077
51078 2008-10-20  Bruno Haible  <bruno@clisp.org>
51079
51080         * modules/posix_spawn-tests: New file.
51081         * tests/test-posix_spawn3.c: New file.
51082
51083 2008-10-20  Bruno Haible  <bruno@clisp.org>
51084
51085         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
51086         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
51087         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
51088         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
51089         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
51090
51091 2008-10-20  Bruno Haible  <bruno@clisp.org>
51092
51093         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
51094         of posix_spawn on AIX 5.3.
51095
51096 2008-10-20  Bruno Haible  <bruno@clisp.org>
51097
51098         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
51099
51100 2008-10-20  Bruno Haible  <bruno@clisp.org>
51101
51102         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
51103         of AC_LANG_PROGRAM.
51104
51105 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51106
51107         * lib/netdb.in.h: Don't define GNU specific constants until they
51108         are supported or needed.  Reported by Bruno Haible
51109         <bruno@clisp.org>.
51110
51111 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51112
51113         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
51114
51115 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51116
51117         * lib/getaddrinfo.h: Remove file.
51118         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
51119         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
51120         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
51121         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
51122         * modules/netdb: Substitute GNULIB_GETADDRINFO.
51123         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
51124         * tests/test-getaddrinfo.c: Likewise.
51125         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
51126         * NEWS: Mention change.
51127
51128 2008-10-19  Bruno Haible  <bruno@clisp.org>
51129
51130         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
51131
51132 2008-10-19  Bruno Haible  <bruno@clisp.org>
51133
51134         * lib/wait-process.c: Include simply <sys/wait.h>.
51135         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
51136         WIFSTOPPED): Remove fallback definitions.
51137         * modules/wait-process (Depends-on): Add sys_wait.
51138
51139         New module 'sys_wait'.
51140         * modules/sys_wait: New file.
51141         * lib/sys_wait.in.h: New file, partially copied from
51142         lib/wait-process.c.
51143         * m4/sys_wait_h.m4: New file.
51144         * doc/posix-headers/sys_wait.texi: Mention the new module.
51145
51146 2008-10-19  Bruno Haible  <bruno@clisp.org>
51147
51148         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
51149
51150 2008-10-19  Bruno Haible  <bruno@clisp.org>
51151
51152         Assume that waitpid() fills an 'int' status, not a 'union wait'.
51153         * lib/wait-process.c (WAIT_T): Remove type.
51154         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
51155         (wait_subprocess): Update.
51156
51157 2008-10-19  Bruno Haible  <bruno@clisp.org>
51158
51159         New module 'atoll'.
51160         * modules/atoll: New file.
51161         * lib/stdlib.in.h (atoll): New declaration.
51162         * lib/atoll.c: New file, from glibc with modifications.
51163         * m4/atoll.m4: New file.
51164         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
51165         HAVE_ATOLL.
51166         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
51167         * doc/posix-functions/atoll.texi: Mention the new module.
51168
51169 2008-10-19  Bruno Haible  <bruno@clisp.org>
51170
51171         Add strtoull() declaration to <stdlib.h>.
51172         * lib/stdlib.in.h (strtoull): New declaration.
51173         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
51174         Set HAVE_STRTOULL.
51175         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
51176         HAVE_STRTOULL.
51177         * modules/strtoull (Depends-on): Add stdlib.
51178         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51179         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
51180         HAVE_STRTOULL.
51181
51182 2008-10-19  Bruno Haible  <bruno@clisp.org>
51183
51184         Add strtoll() declaration to <stdlib.h>.
51185         * lib/stdlib.in.h (strtoll): New declaration.
51186         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
51187         Set HAVE_STRTOLL.
51188         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
51189         HAVE_STRTOLL.
51190         * modules/strtoll (Depends-on): Add stdlib.
51191         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51192         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
51193
51194 2008-10-19  Bruno Haible  <bruno@clisp.org>
51195
51196         * modules/bcopy (Depends-on): Add strings.
51197         (Include): Specify <strings.h>.
51198
51199 2008-10-19  Bruno Haible  <bruno@clisp.org>
51200
51201         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
51202
51203 2008-10-19  Bruno Haible  <bruno@clisp.org>
51204
51205         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
51206         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
51207         mingw.
51208
51209 2008-10-19  Bruno Haible  <bruno@clisp.org>
51210
51211         * lib/atanl.c: Don't include isnanl.h.
51212         * lib/cosl.c: Likewise.
51213         * lib/ldexpl.c: Likewise.
51214         * lib/logl.c: Likewise.
51215         * lib/sinl.c: Likewise.
51216         * lib/sqrtl.c: Likewise.
51217         * lib/tanl.c: Likewise.
51218
51219         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
51220         * lib/isnanf.h: Remove file.
51221         * lib/isnand.h: Remove file.
51222         * lib/isnanl.h: Remove file.
51223         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
51224         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
51225         macros.
51226         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
51227         HAVE_ISNANF, don't define it as a C macro.
51228         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
51229         HAVE_ISNAND, don't define it as a C macro.
51230         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
51231         HAVE_ISNANL, don't define it as a C macro.
51232         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
51233         HAVE_ISNAN[FDL].
51234         * modules/isnanf (Files): Remove lib/isnanf.h.
51235         (Depends-on): Add math.
51236         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51237         (Include): Specify <math.h> instead of isnanf.h.
51238         * modules/isnand (Files): Remove lib/isnand.h.
51239         (Depends-on): Add math.
51240         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51241         (Include): Specify <math.h> instead of isnand.h.
51242         * modules/isnanl (Files): Remove lib/isnanl.h.
51243         (Depends-on): Add math.
51244         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51245         (Include): Specify <math.h> instead of isnanl.h.
51246         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
51247         HAVE_ISNAN[FDL].
51248         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
51249         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
51250         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
51251         * NEWS: Mention the change.
51252
51253 2008-10-18  Bruno Haible  <bruno@clisp.org>
51254
51255         Add getusershell(), setusershell(), endusershell() declarations to
51256         <unistd.h>.
51257         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
51258         declarations.
51259         * lib/getusershell.c: Include unistd.h.
51260         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
51261         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51262         HAVE_GETUSERSHELL.
51263         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
51264         and HAVE_GETUSERSHELL.
51265         * modules/getusershell (Depends-on): Add unistd, extensions.
51266         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51267         (Include): Specify <unistd.h>.
51268         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
51269         HAVE_GETUSERSHELL.
51270
51271 2008-10-18  Bruno Haible  <bruno@clisp.org>
51272
51273         Add a getloadavg() declaration to <stdlib.h>.
51274         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
51275         getloadavg declaration.
51276         (getloadavg): New declaration.
51277         * lib/getloadavg.c: Include <stdlib.h> first.
51278         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
51279         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
51280         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
51281         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
51282         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51283         * modules/getloadavg (Depends-on): Add stdlib, extensions.
51284         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51285         (Include): Specify <stdlib.h>.
51286         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
51287         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51288
51289 2008-10-18  Bruno Haible  <bruno@clisp.org>
51290
51291         * lib/dirchownmod.c: Don't include lchmod.h.
51292
51293         Move the lchmod() declaration to <sys/stat.h>.
51294         * lib/lchmod.h: Remove file.
51295         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
51296         (lchmod): New declaration, moved here from lib/lchown.h.
51297         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
51298         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
51299         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
51300         and HAVE_LCHMOD.
51301         * modules/lchmod (Files): Remove lib/lchmod.h.
51302         (Depends-on): Add sys_stat, extensions.
51303         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
51304         (Include): Specify <sys/stat.h> instead of lchmod.h.
51305         * modules/sys_stat (Depends-on): Add link-warning.
51306         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
51307         definition of GL_LINK_WARNING.
51308         * NEWS: Mention the change.
51309
51310 2008-10-18  Bruno Haible  <bruno@clisp.org>
51311
51312         * lib/fchdir.c: Don't include dirfd.h.
51313         * lib/fts.c: Likewise.
51314         * lib/getcwd.c: Likewise.
51315         * lib/glob.c: Likewise.
51316
51317         Move the dirfd() declaration to <dirent.h>.
51318         * lib/dirfd.h: Remove file.
51319         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
51320         (dirfd): New declaration.
51321         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
51322         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
51323         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
51324         HAVE_DECL_DIRFD.
51325         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
51326         HAVE_DECL_DIRFD.
51327         * modules/dirfd (Files): Remove lib/dirfd.h.
51328         (Depends-on): Add dirent, extensions.
51329         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
51330         (Include): Specify <dirent.h> instead of dirfd.h.
51331         * modules/dirent (Depends-on): Add link-warning.
51332         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
51333         definition of GL_LINK_WARNING.
51334         * NEWS: Mention the change.
51335
51336 2008-10-18  Bruno Haible  <bruno@clisp.org>
51337
51338         Move the euidaccess() declaration to <unistd.h>.
51339         * lib/euidaccess.h: Remove file.
51340         * lib/unistd.in.h (euidaccess): New declaration.
51341         * lib/euidaccess.c: Don't include euidaccess.h.
51342         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
51343         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
51344         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
51345         and HAVE_EUIDACCESS.
51346         * modules/euidaccess (Files): Remove lib/euidaccess.h.
51347         (Depends-on): Add unistd.
51348         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51349         (Include): Specify <unistd.h> instead of euidaccess.h.
51350         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
51351         HAVE_EUIDACCESS.
51352         * NEWS: Mention the change.
51353
51354 2008-10-18  Bruno Haible  <bruno@clisp.org>
51355
51356         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
51357
51358         Move the getdomainname() declaration to <unistd.h>.
51359         * lib/getdomainname.h: Remove file.
51360         * lib/unistd.in.h (getdomainname): New declaration.
51361         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
51362         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
51363         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51364         HAVE_GETDOMAINNAME.
51365         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51366         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
51367         * modules/getdomainname (Files): Remove lib/getdomainname.h.
51368         (Depends-on): Add unistd, extensions.
51369         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51370         (Includes): Specify <unistd.h> instead of getdomainname.h.
51371         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
51372         HAVE_GETDOMAINNAME.
51373         * NEWS: Mention the change.
51374
51375 2008-10-18  Bruno Haible  <bruno@clisp.org>
51376
51377         * modules/dirent: New file.
51378         * m4/dirent_h.m4: New file.
51379         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
51380         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
51381         * modules/fchdir (Files): Remove lib/dirent.in.h.
51382         (Depends-on): Add dirent.
51383         (Makefile.am): Move rules to modules/dirent.
51384         * doc/posix-headers/dirent.texi: Mention the new module.
51385
51386 2008-10-18  Bruno Haible  <bruno@clisp.org>
51387
51388         Avoid -Wunused-parameter warnings in public gnulib header files.
51389         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
51390         macro.
51391         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
51392
51393 2008-10-18  Bruno Haible  <bruno@clisp.org>
51394
51395         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
51396         * doc/glibc-functions/error.texi: Mention the module 'error'.
51397         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
51398         * doc/glibc-functions/getdomainname.texi: Mention the module
51399         'getdomainname'.
51400         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
51401         * doc/glibc-functions/getpagesize.texi: Mention the module
51402         'getpagesize'.
51403         * doc/glibc-functions/getusershell.texi: Mention the module
51404         'getusershell'.
51405         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
51406         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
51407         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
51408         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
51409         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
51410         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
51411         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
51412         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
51413         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
51414         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
51415         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
51416         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
51417         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
51418         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
51419
51420 2008-10-17  Bruno Haible  <bruno@clisp.org>
51421
51422         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
51423         HP-UX and IRIX, use -0.0L.
51424         * tests/test-ceill.c (minus_zero): Likewise.
51425         * tests/test-floorl.c (minus_zero): Likewise.
51426         * tests/test-frexpl.c (minus_zero): Likewise.
51427         * tests/test-isnan.c (minus_zerol): Likewise.
51428         * tests/test-isnanl.h (minus_zero): Likewise.
51429         * tests/test-ldexpl.c (minus_zero): Likewise.
51430         * tests/test-roundl.c (minus_zero): Likewise.
51431         * tests/test-signbit.c (minus_zerol): Likewise.
51432         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
51433         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
51434         * tests/test-truncl.c (minus_zero): Likewise.
51435         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
51436         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
51437         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
51438         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
51439
51440 2008-10-17  Bruno Haible  <bruno@clisp.org>
51441
51442         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
51443         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
51444         that it gets activated only for gcc >= 3.0.
51445         * lib/dirent.in.h: Likewise.
51446         * lib/errno.in.h: Likewise.
51447         * lib/fcntl.in.h: Likewise.
51448         * lib/float.in.h: Likewise.
51449         * lib/iconv.in.h: Likewise.
51450         * lib/inttypes.in.h: Likewise.
51451         * lib/locale.in.h: Likewise.
51452         * lib/math.in.h: Likewise.
51453         * lib/netdb.in.h: Likewise.
51454         * lib/netinet_in.in.h: Likewise.
51455         * lib/search.in.h: Likewise.
51456         * lib/signal.in.h: Likewise.
51457         * lib/spawn.in.h: Likewise.
51458         * lib/stdarg.in.h: Likewise.
51459         * lib/stdint.in.h: Likewise.
51460         * lib/stdio.in.h: Likewise.
51461         * lib/stdlib.in.h: Likewise.
51462         * lib/string.in.h: Likewise.
51463         * lib/strings.in.h: Likewise.
51464         * lib/sys_file.in.h: Likewise.
51465         * lib/sys_ioctl.in.h: Likewise.
51466         * lib/sys_select.in.h: Likewise.
51467         * lib/sys_socket.in.h: Likewise.
51468         * lib/sys_stat.in.h: Likewise.
51469         * lib/sys_time.in.h: Likewise.
51470         * lib/sysexits.in.h: Likewise.
51471         * lib/time.in.h: Likewise.
51472         * lib/unistd.in.h: Likewise.
51473         * lib/wchar.in.h: Likewise.
51474         * lib/wctype.in.h: Likewise.
51475         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51476
51477 2008-10-17  Jim Meyering  <meyering@redhat.com>
51478
51479         ignore-value: don't depend on inline module
51480         * modules/ignore-value (Depends-on): Remove 'inline'.
51481         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
51482         Suggestion from Bruno Haible.
51483
51484 2008-10-17  Bruno Haible  <bruno@clisp.org>
51485
51486         New implementation of condition variables for Win32.
51487         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
51488         (gl_linked_waitqueue_t): New type.
51489         (gl_cond_t): Use it.
51490         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
51491         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
51492         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
51493         (glthread_cond_init_func, glthread_cond_wait_func,
51494         glthread_cond_timedwait_func, glthread_cond_signal_func,
51495         glthread_cond_broadcast_func, glthread_cond_destroy_func):
51496         Reimplemented on the basis of gl_linked_waitqueue_t.
51497         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
51498         gl_waitqueue_t.
51499         (gl_rwlock_t): Update.
51500         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
51501
51502 2008-10-17  Simon Josefsson  <simon@josefsson.org>
51503
51504         * modules/recvfrom (Depends-on): Add dependency on getpeername.
51505         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51506
51507 2008-10-17  Jim Meyering  <meyering@redhat.com>
51508
51509         ignore-value: new module
51510         * modules/ignore-value: New file.
51511         * lib/ignore-value.h: New file.
51512         * MODULES.html.sh (Compiler warning management): New section,
51513         just for this module.  More to come.
51514
51515 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51516
51517         open-safer.c: avoid 'signed and unsigned in conditional...' warning
51518         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
51519         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
51520
51521 2008-10-16  Jim Meyering  <meyering@redhat.com>
51522
51523         openat-die.c: avoid 'no previous prototype' warning
51524         * lib/openat-die.c: Include "openat.h".
51525         Reported by Reuben Thomas <rrt@sc3d.org>.
51526
51527 2008-10-16  Simon Josefsson  <simon@josefsson.org>
51528
51529         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
51530         * lib/netdb.in.h: Fix typo.
51531         Reported by Bruno Haible  <bruno@clisp.org>
51532
51533         * lib/netdb.in.h: Include sys/socket.h for platforms without
51534         netdb.h, to get structures like hostent on MinGW.
51535         * modules/netdb (Depends-on): Add sys_socket.
51536
51537 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51538
51539         * modules/netdb, modules/netdb-tests: New file.
51540         * m4/netdb_h.m4: New file.
51541         * lib/netdb.in.h: Add, currently just an empty file pending
51542         definitions.
51543         * tests/test-netdb.c: New file.
51544         * doc/posix-headers/netdb.texi: Mention that we replace it if
51545         needed.
51546         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51547         netdb.
51548
51549 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51550
51551         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
51552         with code.
51553
51554 2008-10-13  Bruno Haible  <bruno@clisp.org>
51555
51556         * lib/glthread/cond.c (glthread_cond_wait_func,
51557         glthread_cond_timedwait_func): Add a comment.
51558
51559 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51560
51561         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
51562         * tests/test-select.c: Likewise,
51563
51564 2008-10-13  Bruno Haible  <bruno@clisp.org>
51565
51566         * lib/glthread/cond.c (glthread_cond_wait_func,
51567         glthread_cond_timedwait_func): Fix variable name.
51568         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51569
51570 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
51571
51572         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
51573         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
51574         struct sockaddr.sa_len.
51575         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
51576
51577 2008-10-13  Simon Josefsson  <simon@josefsson.org>
51578
51579         * build-aux/pmccabe2html: Add css and css_url parameters.
51580
51581 2008-10-12  Bruno Haible  <bruno@clisp.org>
51582
51583         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
51584         calling aclx_get.
51585         Reported by Rainer Tammer <tammer@tammer.net>.
51586
51587 2008-10-12  Bruno Haible  <bruno@clisp.org>
51588
51589         Use msvcrt aware primitives for creation/termination of Win32 threads.
51590         * lib/glthread/thread.c: Include <process.h>.
51591         (glthread_create_func): Use _beginthreadex instead of CreateThread.
51592         (wrapper_func): Update signature.
51593         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
51594
51595 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51596             Bruno Haible  <bruno@clisp.org>
51597
51598         Provide a Win32 implementation of the 'cond' module.
51599         * lib/glthread/cond.h [USE_WIN32]: New implementation.
51600         * lib/glthread/cond.c (glthread_cond_init_func,
51601         glthread_cond_wait_func, glthread_cond_timedwait_func,
51602         glthread_cond_signal_func, glthread_cond_broadcast_func,
51603         glthread_cond_destroy_func) [USE_WIN32]: New functions.
51604         * modules/cond (Dependencies): Add gettimeofday.
51605
51606 2008-10-11  Bruno Haible  <bruno@clisp.org>
51607
51608         Make sleep work on older versions of mingw.
51609         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
51610         only whether it exists.
51611         * doc/posix-functions/sleep.texi: Mention the problem with older
51612         versions of mingw.
51613
51614 2008-10-11  Bruno Haible  <bruno@clisp.org>
51615
51616         New module 'shutdown'.
51617         * modules/shutdown: New file.
51618         * lib/sys_socket.in.h (shutdown): New declaration.
51619         * lib/winsock.c (shutdown): New function.
51620         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
51621         GNULIB_SHUTDOWN.
51622         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
51623         * doc/posix-functions/shutdown.texi: Document the new module.
51624
51625 2008-10-11  Jim Meyering  <meyering@redhat.com>
51626
51627         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
51628
51629 2008-10-11  Bruno Haible  <bruno@clisp.org>
51630
51631         New module 'fclose'.
51632         * modules/fclose: New file.
51633         * lib/stdio.in.h (fclose): New declaration.
51634         * lib/fclose.c: New file.
51635         * m4/fclose.m4: New file.
51636         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
51637         REPLACE_FCLOSE.
51638         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
51639         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
51640         REPLACE_FCLOSE.
51641         * modules/close (Depends-on): fclose.
51642         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
51643
51644 2008-10-11  Bruno Haible  <bruno@clisp.org>
51645
51646         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
51647         set errno and don't call _close.
51648
51649 2008-10-10  Bruno Haible  <bruno@clisp.org>
51650
51651         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
51652         ACL, not afterwards. Fixes test failure on Cygwin.
51653
51654 2008-10-09  Ben Pfaff  <blp@gnu.org>
51655
51656         * build-aux/announce-gen: Fix gnulib version related part of usage
51657         message.  Die with a useful error message if no tarballs are
51658         found.
51659
51660 2008-10-10  Jim Meyering  <meyering@redhat.com>
51661
51662         bootstrap: use git's --depth=N option only if it's supported
51663         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
51664         recognize the --depth option.  Reported by Pádraig Brady.
51665
51666 2008-10-09  Bruno Haible  <bruno@clisp.org>
51667
51668         New module 'ioctl'.
51669         * modules/ioctl: New file.
51670         * lib/sys_socket.in.h (ioctl): Remove declaration.
51671         * lib/winsock.c: Include <sys/ioctl.h>.
51672         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
51673         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
51674         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
51675         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
51676         * doc/posix-functions/ioctl.texi: Mention the new module.
51677
51678 2008-10-09  Bruno Haible  <bruno@clisp.org>
51679
51680         New module 'sys_ioctl'.
51681         * lib/sys_ioctl.in.h: New file.
51682         * m4/sys_ioctl_h.m4: New file.
51683         * modules/sys_ioctl: New file.
51684         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
51685
51686 2008-10-09  Bruno Haible  <bruno@clisp.org>
51687
51688         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
51689         * lib/winsock.c: Include <stdarg.h>.
51690         (rpl_ioctl): Change to second argument 'int' and then varargs.
51691
51692 2008-10-09  Bruno Haible  <bruno@clisp.org>
51693
51694         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
51695         when the sys_socket module is present and the system has <winsock2.h>.
51696
51697 2008-10-09  Bruno Haible  <bruno@clisp.org>
51698
51699         * doc/posix-functions/close.texi: Mention module 'close' instead of
51700         module 'sys_socket'.
51701
51702 2008-10-09  Bruno Haible  <bruno@clisp.org>
51703
51704         * doc/glibc-headers/sys_ioctl.texi: New file.
51705         * doc/gnulib.texi: Include it.
51706
51707 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51708             Bruno Haible  <bruno@clisp.org>
51709
51710         Combine the two replacements of 'close'.
51711         * lib/sys_socket.in.h (close): Define to a reminder to include
51712         <unistd.h>.
51713         (_gl_close_fd_maybe_socket): New declaration.
51714         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
51715         * lib/winsock.c (close): Remove undefinition.
51716         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
51717         needed for the gnulib module 'close'.
51718         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
51719         define to an error symbol or to a warning, if suitable.
51720         * lib/close.c: Include <sys/socket.h>.
51721         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
51722         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
51723         UNISTD_H_HAVE_WINSOCK2_H.
51724         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
51725         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51726         UNISTD_H_HAVE_WINSOCK2_H.
51727         * modules/sys_socket (Files): Add m4/unistd_h.m4.
51728         (configure.ac): Set a module indicator.
51729         (Makefile.am): Substitute GNULIB_CLOSE.
51730         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
51731         * modules/poll-tests (Depends-on): Add close.
51732         * modules/select-tests (Depends-on): Likewise.
51733
51734 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51735             Bruno Haible  <bruno@clisp.org>
51736
51737         New module 'close'.
51738         * modules/close: New file.
51739         * lib/unistd.in.h (close): Move declaration out of the
51740         FCHDIR_REPLACEMENT scope.
51741         (_gl_unregister_fd): New declaration.
51742         * lib/close.c: New file.
51743         * lib/fchdir.c (rpl_close): Remove function.
51744         * m4/close.m4: New file.
51745         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51746         close.
51747         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
51748         REPLACE_CLOSE.
51749         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
51750         REPLACE_CLOSE.
51751         * modules/fchdir (Depends-on): Add close.
51752
51753 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51754             Bruno Haible  <bruno@clisp.org>
51755
51756         * lib/fcntl.in.h (open): Simplify conditionals.
51757         (_gl_register_fd): New declaration.
51758         * lib/fchdir.c (rpl_open): Remove function.
51759         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
51760         also.
51761         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
51762         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51763         open.
51764
51765 2008-10-09  Jim Meyering  <meyering@redhat.com>
51766
51767         GNUmakefile: use the more name-space-friendly "_version"
51768         * top/GNUmakefile (_dummy): Update.
51769         (_version): Rename from "version".
51770
51771 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51772             Bruno Haible  <bruno@clisp.org>
51773
51774         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
51775         rpl_close.
51776         (_gl_register_fd): New function, extracted from rpl_open.
51777         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
51778         (rpl_open, rpl_opendir): Use _gl_register_fd.
51779
51780 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51781
51782         Fix organization of 'open' replacement.
51783         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
51784         (gl_FUNC_OPEN): Use it.
51785         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
51786
51787 2008-10-08  Bruno Haible  <bruno@clisp.org>
51788
51789         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
51790
51791 2008-10-08  Simon Josefsson  <simon@josefsson.org>
51792
51793         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
51794         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
51795         listen).
51796
51797 2008-10-08  Eric Blake  <ebb9@byu.net>
51798
51799         GNUmakefile: add 'make version' target
51800         * top/GNUmakefile (_curr-ver): Split version update rules...
51801         (version): ...into a target.
51802
51803 2008-10-07  Bruno Haible  <bruno@clisp.org>
51804
51805         Use a more portable replacement expression for -0.0L.
51806         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
51807         instead of -0.0L. Fix m4 quotation.
51808
51809         * tests/test-signbit.c: Include <float.h>.
51810         (minus_zero): New variable.
51811         (test_signbitl): Use minus_zero instead of -zero.
51812         * modules/signbit-tests (Depends-on): Add float.
51813
51814         * tests/test-ceill.c: Include <float.h>.
51815         (zero): Remove variable.
51816         (minus_zero): New variable.
51817         (main): Use minus_zero instead of -zero.
51818         * modules/ceill-tests (Depends-on): Add float.
51819
51820         * tests/test-floorl.c: Include <float.h>.
51821         (zero): Remove variable.
51822         (minus_zero): New variable.
51823         (main): Use minus_zero instead of -zero.
51824         * modules/floorl-tests (Depends-on): Add float.
51825
51826         * tests/test-roundl.c: Include <float.h>.
51827         (zero): Remove variable.
51828         (minus_zero): New variable.
51829         (main): Use minus_zero instead of -zero.
51830         * modules/roundl-tests (Depends-on): Add float.
51831
51832         * tests/test-truncl.c: Include <float.h>.
51833         (zero): Remove variable.
51834         (minus_zero): New variable.
51835         (main): Use minus_zero instead of -zero.
51836         * modules/truncl-tests (Depends-on): Add float.
51837
51838         * tests/test-frexpl.c (zero): Remove variable.
51839         (minus_zero): New variable.
51840         (main): Use minus_zero instead of -zero.
51841         * modules/frexpl-tests (Depends-on): Add float.
51842
51843         * tests/test-isnan.c (zerol): Remove variable.
51844         (minus_zerol): New variable.
51845         (test_long_double): Use minus_zerol instead of -zerol.
51846         * modules/isnan-tests (Depends-on): Add float.
51847
51848         * tests/test-isnanl.h (zero): Remove variable.
51849         (minus_zero): New variable.
51850         (main): Use minus_zero instead of -zero.
51851         * modules/isnanl-nolibm-tests (Depends-on): Add float.
51852         * modules/isnanl-tests (Depends-on): Add float.
51853
51854         * tests/test-ldexpl.c (zero): Remove variable.
51855         (minus_zero): New variable.
51856         (main): Use minus_zero instead of -zero.
51857         * modules/ldexpl-tests (Depends-on): Add float.
51858
51859         * tests/test-snprintf-posix.h (zerol): Remove variable.
51860         (minus_zerol): New variable.
51861         (test_function): Use minus_zerol instead of -zerol.
51862         * modules/snprintf-posix-tests (Depends-on): Add float.
51863         * modules/vsnprintf-posix-tests (Depends-on): Add float.
51864
51865         * tests/test-sprintf-posix.h (zerol): Remove variable.
51866         (minus_zerol): New variable.
51867         (test_function): Use minus_zerol instead of -zerol.
51868         * modules/sprintf-posix-tests (Depends-on): Add float.
51869         * modules/vsprintf-posix-tests (Depends-on): Add float.
51870
51871         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
51872         (minus_zerol): New variable.
51873         (test_function): Use minus_zerol instead of -zerol.
51874         * modules/vasnprintf-posix-tests (Depends-on): Add float.
51875
51876         * tests/test-vasprintf-posix.c (zerol): Remove variable.
51877         (minus_zerol): New variable.
51878         (test_function): Use minus_zerol instead of -zerol.
51879         * modules/vasprintf-posix-tests (Depends-on): Add float.
51880
51881 2008-10-07  Simon Josefsson  <simon@josefsson.org>
51882
51883         * MODULES.html.sh (Support for building documentation): Mention
51884         pmccabe2html.  Sort entries.
51885
51886         Add pmccabe2html module, from gnupdf.
51887         * build-aux/pmccabe.css: New file.
51888         * build-aux/pmccabe2html: New file.
51889         * m4/pmccabe2html.m4: New file.
51890         * modules/pmccabe2html: New file.
51891
51892 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
51893
51894         flock: new module
51895         * MODULES.html.sh: Add to list of modules.
51896         * lib/flock.c: flock implementation for Windows and Unix systems
51897         which have fcntl.
51898         * doc/glibc-functions/flock.texi: Update documentation.
51899         * lib/sys_file.in.h: <sys/file.h> header file.
51900         * m4/flock.m4: M4 macros.
51901         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
51902         * modules/flock: flock module.
51903         * modules/flock-tests: flock tests module.
51904         * modules/sys_file: sys/file.h module.
51905         * tests/test-flock.c: test suite for flock.
51906
51907 2008-10-06  Jim Meyering  <meyering@redhat.com>
51908
51909         bootstrap: check for LT_INIT more portably still ;-)
51910         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
51911         Spotted by Bruno Haible.
51912
51913 2008-10-06  Eric Blake  <ebb9@byu.net>
51914
51915         test-signbit: avoid tripping Irix cc bug on -0.0L
51916         * tests/test-signbit.c (minus_zerol): Delete, and replace with
51917         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
51918         entire testsuite consistent and avoids an Irix 6.2 bug.
51919
51920 2008-10-05  Bruno Haible  <bruno@clisp.org>
51921             Jim Meyering  <jim@meyering.net>
51922
51923         Add an option for ignoring EPIPE during close_stdout.
51924         * lib/closeout.h: Include <stdbool.h>.
51925         (close_stdout_set_ignore_EPIPE): New declaration.
51926         * lib/closeout.c: Include <stdbool.h>.
51927         (ignore_EPIPE): New variable.
51928         (close_stdout_set_ignore_EPIPE): New function.
51929         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
51930         * lib/close-stream.c (close_stream): Mention the possible EPIPE
51931         failure.
51932         * modules/closeout (Depends-on): Add stdbool.
51933
51934 2008-10-05  Bruno Haible  <bruno@clisp.org>
51935
51936         * modules/accept: New file.
51937         * modules/bind: New file.
51938         * modules/connect: New file.
51939         * modules/getpeername: New file.
51940         * modules/getsockname: New file.
51941         * modules/getsockopt: New file.
51942         * modules/listen: New file.
51943         * modules/recv: New file.
51944         * modules/recvfrom: New file.
51945         * modules/send: New file.
51946         * modules/sendto: New file.
51947         * modules/setsockopt: New file.
51948         * modules/socket: New file.
51949         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
51950         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
51951         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
51952         the particular module is requested. Add a link warning when the
51953         particular module is not requested.
51954         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
51955         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
51956         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
51957         the particular module is requested.
51958         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
51959         gl_SYS_SOCKET_H_DEFAULTS): New macros.
51960         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
51961         * modules/sys_socket (Depends-on): Add link-warning.
51962         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
51963         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
51964         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
51965         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
51966         GL_LINK_WARNING.
51967         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
51968         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
51969         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
51970         * doc/posix-functions/getpeername.texi: Mention the new module
51971         'getpeername'.
51972         * doc/posix-functions/getsockname.texi: Mention the new module
51973         'getsockname'.
51974         * doc/posix-functions/getsockopt.texi: Mention the new module
51975         'getsockopt'.
51976         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
51977         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
51978         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
51979         * doc/posix-functions/send.texi: Mention the new module 'send'.
51980         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
51981         * doc/posix-functions/setsockopt.texi: Mention the new module
51982         'setsockopt'.
51983         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
51984         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
51985         listen, connect, accept.
51986         * modules/select-tests (Depends-on): Likewise.
51987
51988 2008-10-05  Bruno Haible  <bruno@clisp.org>
51989
51990         * lib/winsock.c (strerror): Remove unused #undef.
51991         (rpl_close): Remove unused local variable.
51992
51993         * modules/sys_socket (Depends-on); Add errno.
51994
51995 2008-10-05  Bruno Haible  <bruno@clisp.org>
51996
51997         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
51998         (select): Add a link warning when the 'select' module is not used.
51999         * modules/sys_select (Depends-on): Add link-warning.
52000         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
52001         Suggested by Paolo Bonzini.
52002
52003 2008-10-05  Jim Meyering  <meyering@redhat.com>
52004
52005         bootstrap: check for LT_INIT more portably
52006         * build-aux/bootstrap: Avoid using grep -E, since it's not
52007         portable enough.  Suggestion from Bruno Haible.
52008
52009 2008-10-05  Bruno Haible  <bruno@clisp.org>
52010
52011         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
52012         as being fixed by gnulib.
52013
52014 2008-10-05  Bruno Haible  <bruno@clisp.org>
52015
52016         * modules/select-tests: New file, mostly copied from
52017         modules/sys_select-tests.
52018         * tests/test-select.c: New file, mostly copied from
52019         tests/test-sys_select.c.
52020         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
52021         * modules/sys_select-tests (Depends-on): Remove all dependencies.
52022         (Makefile.am): Remove test_sys_select_LDADD.
52023
52024         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
52025         to an undefined symbol, for an error message.
52026         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
52027         (gl_SYS_SELECT_H_DEFAULTS): New macro.
52028         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
52029         winsock-select.c here.
52030         * modules/sys_select (Files): Remove lib/winsock-select.c.
52031         (Depends-on): Remove alloca.
52032         (Makefile.am): Substitute GNULIB_SELECT.
52033         * modules/select: New file.
52034         * doc/posix-functions/select.texi: Update.
52035
52036 2008-10-05  Bruno Haible  <bruno@clisp.org>
52037
52038         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
52039         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
52040         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
52041         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
52042         getdtablesize.
52043         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
52044         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
52045
52046 2008-10-05  Bruno Haible  <bruno@clisp.org>
52047
52048         * modules/getdtablesize-tests: New file.
52049         * tests/test-getdtablesize.c: New file.
52050
52051         New module 'getdtablesize'.
52052         * lib/unistd.in.h (getdtablesize): New declaration.
52053         * lib/getdtablesize.c: New file.
52054         * m4/getdtablesize.m4: New file.
52055         * modules/getdtablesize: New file.
52056         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52057         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
52058         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
52059         HAVE_GETDTABLESIZE.
52060         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
52061
52062 2008-10-05  Bruno Haible  <bruno@clisp.org>
52063
52064         * modules/sched (Makefile.am): Fix typo.
52065         Reported by Simon Josefsson.
52066
52067 2008-10-05  Jim Meyering  <meyering@redhat.com>
52068
52069         bootstrap: check for LT_INIT, too
52070         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
52071         are deprecated.  Suggestion from Ralf Wildenhues.
52072
52073 2008-10-05  Bruno Haible  <bruno@clisp.org>
52074
52075         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
52076         overriding them by ours.
52077         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
52078
52079 2008-10-05  Jim Meyering  <meyering@redhat.com>
52080
52081         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
52082         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
52083         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
52084
52085 2008-10-04  Bruno Haible  <bruno@clisp.org>
52086
52087         * modules/dup2 (License): Change to LGPLv2+.
52088         * modules/sleep (License): Likewise.
52089         * modules/perror (License): Likewise.
52090         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
52091         Blake.
52092         * modules/signal (License): Likewise.
52093         * modules/sigprocmask (License): Likewise.
52094         * modules/raise (License): Change to LGPLv2+, with approval by Jim
52095         Meyering.
52096
52097 2008-10-04  Bruno Haible  <bruno@clisp.org>
52098
52099         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
52100         Reported by Rainer Tammer <tammer@tammer.net>.
52101
52102 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
52103             Bruno Haible  <bruno@clisp.org>
52104
52105         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
52106         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
52107         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
52108
52109 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
52110
52111         filevercmp: new module
52112         * lib/filevercmp.h: New function filevercmp comparing version strings.
52113         * lib/filevercmp.c: Implementation of filevercmp function.
52114         * modules/filevercmp: Module metadata.
52115         * tests/test-filevercmp.c: Unit test for new module.
52116         * modules/filevercmp-tests: Unit test metadata.
52117         * MODULES.html.sh: Add filevercmp module.
52118
52119 2008-10-03  Bruno Haible  <bruno@clisp.org>
52120
52121         * lib/c-ctype.h: Add comment.
52122         Reported by Jim Meyering.
52123
52124 2008-10-02  Bruno Haible  <bruno@clisp.org>
52125
52126         * modules/posix_spawn-internal (Depends-on): Add 'open'.
52127
52128 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52129
52130         * build-aux/bootstrap: Allow renaming bootstrap, and change the
52131         name of bootstrap.conf accordingly.
52132
52133 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52134
52135         * build-aux/bootstrap: Install git-merge-changelog configuration
52136         items into .gitconfig if needed.
52137
52138 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52139
52140         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
52141         git repository, and initialize/update it accordingly.
52142
52143 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
52144
52145         * modules/fsync-tests: New file.
52146         * tests/test-fsync.c: New file.
52147
52148         New module 'fsync'.
52149         * lib/fsync.c: New file.
52150         * m4/fsync.m4: New file.
52151         * modules/fsync: New file.
52152         * lib/unistd.in.h (fsync): New declaration.
52153         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
52154         GNULIB_FSYNC and HAVE_FSYNC.
52155         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
52156         * MODULES.html.sh (posix_functions): Add fsync.
52157         * doc/posix-functions/fsync.texi: Mention the new module.
52158
52159 2008-10-02  Jim Meyering  <meyering@redhat.com>
52160
52161         fts.c: sync with similar code from coreutils' remove.c
52162         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
52163         Guard also with "#if defined __linux__", since for now at least,
52164         this code is Linux-kernel-specific.
52165
52166 2008-10-02  Jim Meyering  <meyering@redhat.com>
52167
52168         fts: bug fixes
52169         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
52170         Include <sys/vfs.h>, not <sys/statfs.h>.
52171
52172         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
52173         Include <sys/vfs.h>, not <sys/statfs.h>.
52174
52175 2008-10-01  Bruno Haible  <bruno@clisp.org>
52176
52177         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
52178         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
52179         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
52180         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
52181         * doc/posix-functions/posix_spawnp.texi: Likewise.
52182         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
52183         whether posix_spawn actually works.
52184         * m4/pipe.m4 (gl_PIPE): Likewise.
52185         * modules/execute (Files): Add m4/posix_spawn.m4.
52186         * modules/pipe (Files): Add m4/posix_spawn.m4.
52187         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
52188
52189 2008-10-01  Jim Meyering  <meyering@redhat.com>
52190
52191         remove trailing spaces
52192         * NEWS: Likewise.
52193         * lib/poll.c (poll): Likewise.
52194         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
52195         * lib/winsock.c (rpl_close): Likewise.
52196         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
52197         * modules/yield: Likewise.
52198         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
52199         * tests/test-sys_select.c (connect_to_socket): Likewise.
52200
52201         fts.c: adjust a new interface to be more generally useful
52202         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
52203         (fts_build): Adjust caller.
52204
52205 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52206
52207         * modules/cond-tests: New file.
52208         * tests/test-cond.c: New file.
52209
52210 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52211             Bruno Haible  <bruno@clisp.org>
52212
52213         * modules/cond (Dependencies): Add errno, time.
52214         * lib/glthread/cond.h: Include <time.h>.
52215         (gl_cond_define, gl_cond_define_initialized): Use the same definition
52216         across platforms.
52217
52218 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52219             Bruno Haible  <bruno@clisp.org>
52220
52221         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
52222
52223 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52224             Bruno Haible  <bruno@clisp.org>
52225
52226         * modules/tls-tests (Depends-on): Add thread, yield.
52227         (configure.ac): Remove all checks.
52228         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
52229         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
52230         gl_thread_self): Remove definitions. Include glthread/thread.h and
52231         glthread/yield.h instead.
52232         (test_tls): Pass an additional NULL argument to gl_thread_join.
52233
52234 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52235             Bruno Haible  <bruno@clisp.org>
52236
52237         * modules/lock-tests (Depends-on): Add thread, yield.
52238         (configure.ac): Remove all checks.
52239         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
52240         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
52241         gl_thread_self): Remove definitions. Include glthread/thread.h and
52242         glthread/yield.h instead.
52243         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
52244         additional NULL argument to gl_thread_join.
52245
52246 2008-09-30  Bruno Haible  <bruno@clisp.org>
52247
52248         Fix the Win32 implementation of the 'thread' module.
52249         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
52250         pointer type.
52251         (gl_thread_self): Invoke gl_thread_self_func.
52252         (gl_thread_self_func): New declaration.
52253         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
52254         (do_init_self_key, init_self_key): New functions.
52255         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
52256         Remove some fields.
52257         (running_threads, running_lock): Remove variables.
52258         (get_current_thread_handle): New function.
52259         (gl_thread_self_func, wrapper_func, glthread_create_func,
52260         glthread_join_func, gl_thread_exit_func): Largely rewritten and
52261         simplified.
52262
52263 2008-09-30  Bruno Haible  <bruno@clisp.org>
52264
52265         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
52266         files.
52267
52268 2008-09-30  Jim Meyering  <meyering@redhat.com>
52269
52270         fts.m4: correct the test for statfs.f_type
52271         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
52272         when checking for statfs.f_type.
52273
52274 2008-09-15  Simon Josefsson  <simon@josefsson.org>
52275
52276         tests: avoid some compiler warnings
52277         * tests/test-memchr.c (main): Pass NULL indirectly.
52278         * tests/test-getdate.c (main): Remove unused variable 'ret'.
52279
52280 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
52281
52282         getdate.y: disallow countable dayshifts like "4 yesterday ago"
52283         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
52284         exactly specified dayshifts.
52285         (dayshift): New rule.
52286         (rel): Add dayshift.
52287         (relative_time_table) [tomorrow, yesterday, today, now]:
52288         Use tDAY_SHIFT in place of tDAY_UNIT.
52289         * tests/test-getdate.c: Add tests for now-disallowed countable
52290         dayshifts, e.g., "4 yesterday ago".
52291
52292 2008-09-29  Bruno Haible  <bruno@clisp.org>
52293
52294         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
52295         * tests/test-posix_spawn1.in.sh: Renamed from
52296         tests/test-posix_spawn.in.sh.
52297         * tests/test-posix_spawn2.c: New file.
52298         * tests/test-posix_spawn2.in.sh: New file.
52299         * modules/posix_spawnp-tests (Files): Update.
52300         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
52301
52302 2008-09-29  Bruno Haible  <bruno@clisp.org>
52303
52304         Propagate effects of putenv/setenv/unsetenv to child processes.
52305         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
52306         * lib/pipe.c (create_pipe): Likewise.
52307
52308 2008-09-29  Bruno Haible  <bruno@clisp.org>
52309
52310         Enable use of shell scripts as executables in mingw.
52311         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
52312         run the program as a shell script.
52313         * lib/pipe.c (create_pipe): Likewise.
52314         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
52315         resulting array.
52316
52317 2008-09-29  Eric Blake  <ebb9@byu.net>
52318
52319         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
52320
52321 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
52322
52323         * doc/posix-functions/accept.texi: Update mingw problems.
52324         * doc/posix-functions/bind.texi: Update mingw problems.
52325         * doc/posix-functions/close.texi: Update mingw problems.
52326         * doc/posix-functions/connect.texi: Update mingw problems.
52327         * doc/posix-functions/getpeername.texi: Update mingw problems.
52328         * doc/posix-functions/getsockname.texi: Update mingw problems.
52329         * doc/posix-functions/getsockopt.texi: Update mingw problems.
52330         * doc/posix-functions/ioctl.texi: Update mingw problems.
52331         * doc/posix-functions/listen.texi: Update mingw problems.
52332         * doc/posix-functions/recv.texi: Update mingw problems.
52333         * doc/posix-functions/recvfrom.texi: Update mingw problems.
52334         * doc/posix-functions/select.texi: Update mingw problems.
52335         * doc/posix-functions/send.texi: Update mingw problems.
52336         * doc/posix-functions/sendto.texi: Update mingw problems.
52337         * doc/posix-functions/setsockopt.texi: Update mingw problems.
52338         * doc/posix-functions/socket.texi: Update mingw problems.
52339
52340 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
52341             Bruno Haible  <bruno@clisp.org>
52342
52343         * lib/sys_select.in.h: Include sys/time.h.
52344         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
52345         * modules/sys_select: Depend on sys_time.
52346         * tests/test-sys_select.c: Test that sys/select.h defines struct
52347         timeval fully.
52348
52349 2008-09-29  Bruno Haible  <bruno@clisp.org>
52350
52351         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
52352         * lib/sys_select.in.h: Likewise.
52353
52354 2008-09-29  Bruno Haible  <bruno@clisp.org>
52355
52356         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
52357
52358 2008-09-29  Bruno Haible  <bruno@clisp.org>
52359
52360         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
52361         Set LIBSOCKET instead of augmenting LIBS.
52362         * modules/sockets (Link): New section.
52363         * modules/sockets-tests (test_sockets_LDADD): New variable.
52364         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
52365         * modules/poll-tests (test_poll_LDADD): New variable.
52366         * NEWS: Document the change.
52367
52368 2008-09-29  Bruno Haible  <bruno@clisp.org>
52369
52370         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
52371         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
52372         ARPA_INET_H directly.
52373         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52374
52375 2008-09-28  Bruno Haible  <bruno@clisp.org>
52376
52377         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
52378         from gl_HEADER_SYS_SOCKET.
52379         (gl_HEADER_SYS_SOCKET): Invoke it.
52380         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52381
52382 2008-09-28  Bruno Haible  <bruno@clisp.org>
52383
52384         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
52385         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
52386         Needed on OSF/1 4.0.
52387
52388 2008-09-28  Bruno Haible  <bruno@clisp.org>
52389
52390         Override open more carefully.
52391         * lib/open.c (orig_open): New function.
52392         (rpl_open): Use orig_open instead of open.
52393         * lib/fcntl.in.h: Add special invocation convention.
52394         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
52395         (gl_FUNC_OPEN): Invoke it.
52396
52397         Override freopen more carefully.
52398         * lib/freopen.c (orig_freopen): New function.
52399         (rpl_freopen): Use orig_freopen instead of freopen.
52400         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
52401         (gl_FUNC_FREOPEN): Invoke it.
52402
52403         Override fopen more carefully.
52404         * lib/fopen.c (orig_fopen): New function.
52405         (rpl_fopen): Use orig_fopen instead of fopen.
52406         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
52407         (gl_FUNC_FOPEN): Invoke it.
52408         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
52409
52410 2008-09-28  Bruno Haible  <bruno@clisp.org>
52411
52412         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
52413         SIGPIPE.
52414
52415 2008-09-28  Bruno Haible  <bruno@clisp.org>
52416
52417         * tests/test-sigaction.c (handler, main): Disable the check whether
52418         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
52419         glibc systems with LinuxThreads.
52420
52421 2008-09-28  Bruno Haible  <bruno@clisp.org>
52422
52423         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
52424
52425         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
52426         with AIX xlc.
52427         * lib/fcntl.in.h (open): Likewise.
52428         Reported by Rainer Tammer <tammer@tammer.net>.
52429
52430 2008-09-28  Bruno Haible  <bruno@clisp.org>
52431
52432         * modules/posix_spawnp-tests: New file.
52433         * tests/test-posix_spawn.c: New file.
52434         * tests/test-posix_spawn.in.sh: New file.
52435
52436         New module 'posix_spawnp'.
52437         * modules/posix_spawnp: New file.
52438         * lib/spawnp.c: New file, from GNU libc with modifications.
52439         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
52440
52441         New module 'posix_spawn'.
52442         * modules/posix_spawn: New file.
52443         * lib/spawn.c: New file, from GNU libc with modifications.
52444         * doc/posix-functions/posix_spawn.texi: Mention the new module.
52445
52446         New module 'posix_spawnattr_destroy'.
52447         * modules/posix_spawnattr_destroy: New file.
52448         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
52449         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
52450         module.
52451
52452         New module 'posix_spawnattr_setsigmask'.
52453         * modules/posix_spawnattr_setsigmask: New file.
52454         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
52455         modifications.
52456         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
52457         new module.
52458
52459         New module 'posix_spawnattr_getsigmask'.
52460         * modules/posix_spawnattr_getsigmask: New file.
52461         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
52462         modifications.
52463         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
52464         new module.
52465
52466         New module 'posix_spawnattr_setsigdefault'.
52467         * modules/posix_spawnattr_setsigdefault: New file.
52468         * lib/spawnattr_setdefault.c: New file, from GNU libc with
52469         modifications.
52470         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
52471         new module.
52472
52473         New module 'posix_spawnattr_getsigdefault'.
52474         * modules/posix_spawnattr_getsigdefault: New file.
52475         * lib/spawnattr_getdefault.c: New file, from GNU libc with
52476         modifications.
52477         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
52478         new module.
52479
52480         New module 'posix_spawnattr_setschedpolicy'.
52481         * modules/posix_spawnattr_setschedpolicy: New file.
52482         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
52483         modifications.
52484         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
52485         new module.
52486
52487         New module 'posix_spawnattr_getschedpolicy'.
52488         * modules/posix_spawnattr_getschedpolicy: New file.
52489         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
52490         modifications.
52491         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
52492         new module.
52493
52494         New module 'posix_spawnattr_setschedparam'.
52495         * modules/posix_spawnattr_setschedparam: New file.
52496         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
52497         modifications.
52498         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
52499         new module.
52500
52501         New module 'posix_spawnattr_getschedparam'.
52502         * modules/posix_spawnattr_getschedparam: New file.
52503         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
52504         modifications.
52505         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
52506         new module.
52507
52508         New module 'posix_spawnattr_setpgroup'.
52509         * modules/posix_spawnattr_setpgroup: New file.
52510         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
52511         modifications.
52512         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
52513         module.
52514
52515         New module 'posix_spawnattr_getpgroup'.
52516         * modules/posix_spawnattr_getpgroup: New file.
52517         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
52518         modifications.
52519         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
52520         module.
52521
52522         New module 'posix_spawnattr_setflags'.
52523         * modules/posix_spawnattr_setflags: New file.
52524         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
52525         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
52526         module.
52527
52528         New module 'posix_spawnattr_getflags'.
52529         * modules/posix_spawnattr_getflags: New file.
52530         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
52531         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
52532         module.
52533
52534         New module 'posix_spawnattr_init'.
52535         * modules/posix_spawnattr_init: New file.
52536         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
52537         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
52538         module.
52539
52540         New module 'posix_spawn_file_actions_destroy'.
52541         * modules/posix_spawn_file_actions_destroy: New file.
52542         * lib/spawn_faction_destroy.c: New file, from GNU libc with
52543         modifications.
52544         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
52545         the new module.
52546
52547         New module 'posix_spawn_file_actions_addopen'.
52548         * modules/posix_spawn_file_actions_addopen: New file.
52549         * lib/spawn_faction_addopen.c: New file, from GNU libc with
52550         modifications.
52551         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
52552         the new module.
52553
52554         New module 'posix_spawn_file_actions_adddup2'.
52555         * modules/posix_spawn_file_actions_adddup2: New file.
52556         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
52557         modifications.
52558         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
52559         the new module.
52560
52561         New module 'posix_spawn_file_actions_addclose'.
52562         * modules/posix_spawn_file_actions_addclose: New file.
52563         * lib/spawn_faction_addclose.c: New file, from GNU libc with
52564         modifications.
52565         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
52566         the new module.
52567
52568         New module 'posix_spawn_file_actions_init'.
52569         * modules/posix_spawn_file_actions_init: New file.
52570         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
52571         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
52572         new module.
52573
52574         New module 'posix_spawn-internal'.
52575         * modules/posix_spawn-internal: New file.
52576         * lib/spawn_int.h: New file, from GNU libc with modifications.
52577         * lib/spawni.c: New file, from GNU libc with modifications.
52578         * m4/posix_spawn.m4: New file.
52579
52580         New module 'spawn'.
52581         * modules/spawn: New file.
52582         * lib/spawn.in.h: New file, from GNU libc with modifications.
52583         * m4/spawn_h.m4: New file.
52584         * doc/posix-headers/spawn.texi: Mention the new module.
52585
52586 2008-09-28  Bruno Haible  <bruno@clisp.org>
52587
52588         * modules/sched-tests: New file.
52589         * tests/test-sched.c: New file.
52590
52591         New module 'sched'.
52592         * modules/sched: New file.
52593         * lib/sched.in.h: New file.
52594         * m4/sched_h.m4: New file.
52595         * doc/posix-headers/sched.texi: Mention the new module.
52596
52597 2008-09-27  Eric Blake  <ebb9@byu.net>
52598
52599         Fix previous patch, and tweak references to $0.
52600         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
52601         (func_version, func_gnulib_dir): Don't call this program
52602         gnulib-tool.
52603         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
52604         with using $0 in function.
52605         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
52606         (func_fatal_error): Reuse the name the user invoked us with.
52607
52608 2008-09-27  Bruno Haible  <bruno@clisp.org>
52609
52610         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
52611         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
52612         (gl_ICONV_H): Not here.
52613         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
52614         instead of assigning ICONV_H directly.
52615
52616         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
52617         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
52618         WCHAR_H directly.
52619
52620 2008-09-27  Bruno Haible  <bruno@clisp.org>
52621
52622         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
52623         * modules/arpa_inet (Depends-on): Add link-warning.
52624         (Makefile.am): Insert the definition of GL_LINK-WARNING.
52625         * modules/unistd (Makefile.am): Likewise.
52626
52627 2008-09-26  Bruno Haible  <bruno@clisp.org>
52628
52629         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
52630         variables.
52631         (func_version): Essentially copied from gnulib-tool.
52632         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
52633         func_readlink): Copied from gnulib-tool.
52634
52635 2008-09-26  Bruno Haible  <bruno@clisp.org>
52636
52637         * gnulib-tool (func_version): Change directory to $gnulib_dir before
52638         invoking git-version-gen.
52639
52640 2008-09-26  Bruno Haible  <bruno@clisp.org>
52641
52642         * posix-modules: Update to directory names changed on 2008-01-19.
52643         Remove commas in output before splitting into words. No more need to
52644         avoid 'ftruncate' since 2007-02-19.
52645
52646 2008-09-26  Bruno Haible  <bruno@clisp.org>
52647
52648         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
52649
52650 2008-09-26  Bruno Haible  <bruno@clisp.org>
52651
52652         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
52653         * modules/fwriteerror (Depends-on): Add errno.
52654
52655 2008-09-26  Bruno Haible  <bruno@clisp.org>
52656
52657         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
52658         * tests/test-vc-list-files-cvs.sh: Likewise.
52659
52660 2008-09-26  Bruno Haible  <bruno@clisp.org>
52661
52662         * doc/posix-headers/sys_resource.texi: Reorder items.
52663
52664 2008-09-26  Jim Meyering  <meyering@redhat.com>
52665
52666         fts: tweak inode comparison function
52667         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
52668         inode numbers, as documented.
52669
52670         fts: sort dirent entries on inode number before traversing
52671         This avoids a quadratic, seek-related performance penalty when
52672         operating on a directory containing many entries (measurable at 10k;
52673         3.5 hours at 2 million entries with a cold cache) on certain types
52674         of file systems, including ext3 and ext4, but not tmpfs.
52675         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
52676         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
52677         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
52678         (fs_handles_readdir_ordered_dirents_efficiently): New function.
52679         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
52680         (fts_build): Set the stat.st_ino member from D_INO.
52681         If it is likely to be useful, sort dirent entries on inode number.
52682
52683         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
52684         and the struct statfs.f_type member.
52685         * modules/fts (Depends-on): Add d-ino.
52686
52687 2008-09-26  Bruno Haible  <bruno@clisp.org>
52688
52689         * modules/sigpipe-die (Depends-on): Add sigpipe.
52690
52691         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
52692         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
52693         and GNULIB_STDIO_H_SIGPIPE are set.
52694         * lib/stdio-write.c: New file.
52695         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
52696         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52697         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52698         REPLACE_STDIO_WRITE_FUNCS.
52699         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
52700         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52701         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52702         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52703         * modules/stdio (Files): Add lib/stdio-write.c.
52704         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
52705         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52706         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52707         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52708         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
52709         REPLACE_FPRINTF_POSIX.
52710         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
52711         REPLACE_PRINTF_POSIX.
52712         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
52713         REPLACE_VFPRINTF_POSIX.
52714         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
52715         REPLACE_VPRINTF_POSIX.
52716         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
52717         SIGPIPE issue.
52718         * doc/posix-functions/fputc.texi: Likewise.
52719         * doc/posix-functions/fputs.texi: Likewise.
52720         * doc/posix-functions/fwrite.texi: Likewise.
52721         * doc/posix-functions/printf.texi: Likewise.
52722         * doc/posix-functions/putc.texi: Likewise.
52723         * doc/posix-functions/putchar.texi: Likewise.
52724         * doc/posix-functions/puts.texi: Likewise.
52725         * doc/posix-functions/vfprintf.texi: Likewise.
52726         * doc/posix-functions/vprintf.texi: Likewise.
52727
52728         * modules/safe-write (Depends-on): Add write.
52729
52730         * modules/sigpipe-tests: New file.
52731         * tests/test-sigpipe.c: New file.
52732         * tests/test-sigpipe.sh: New file.
52733
52734         * modules/write: New file.
52735         * lib/unistd.in.h: Include <sys/types.h>.
52736         (write): New declaration.
52737         * lib/write.c: New file.
52738         * m4/write.m4: New file.
52739         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52740         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
52741         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
52742         GNULIB_WRITE, REPLACE_WRITE.
52743         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
52744         and the SIGPIPE issue.
52745
52746         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
52747         (raise): New declaration.
52748         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
52749         (ext_signal): New function.
52750         (rpl_raise): New function.
52751         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
52752         GNULIB_SIGNAL_H_SIGPIPE.
52753         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
52754         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
52755
52756         * modules/sigpipe: New file.
52757         * m4/sigpipe.m4: New file.
52758
52759 2008-09-25  Derek Price  <derek@ximbiot.com>
52760             Bruno Haible  <bruno@clisp.org>
52761
52762         * gnulib-tool (func_import): Report all license incompatibilities, not
52763         just the first one.
52764
52765 2008-09-25  Bruno Haible  <bruno@clisp.org>
52766
52767         * gnulib-tool (func_import): When computing the edits, consider not
52768         only the Makefile.ams that exist but also those that will be generated.
52769
52770 2008-09-25  Simon Josefsson  <simon@josefsson.org>
52771
52772         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
52773         fixes gnulib-tool --test warning about duplicate dependency.
52774
52775 2008-09-25  Bruno Haible  <bruno@clisp.org>
52776
52777         * gnulib-tool: Don't ask the user to perform edits in the generated
52778         Makefile.ams.
52779         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
52780         apply to the Makefile.am being generated.
52781         (func_emit_tests_Makefile_am): Execute edits that apply to the
52782         Makefile.am being generated.
52783         (func_import): Setup list of Makefile.am edits before emitting the
52784         Makefile.ams, not at the end.
52785         (func_create_testdir): Update.
52786         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52787
52788 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52789
52790         * gnulib-tool (func_import): Store the --tests-base option in the
52791         comment in gnulib-cache.m4.
52792
52793 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
52794
52795         * NEWS: Document increased portability that sys_select now provides.
52796
52797         * lib/sys_select.in.h: Install select wrapper.
52798         * lib/sys_socket.in.h: Use more descriptive name when there is no
52799         select wrapper.
52800         * lib/winsock-select.c: New.
52801         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
52802         Require gl_HEADER_SYS_SOCKET.
52803         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
52804         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
52805         * tests/test-sys_select.c: Add functional tests.
52806
52807 2008-09-24  Eric Blake  <ebb9@byu.net>
52808
52809         open, fopen: close fd leak in last patch
52810         * lib/open.c (rpl_open): Close fd before returning error.
52811         * lib/fopen.c (rpl_fopen): Close fd before returning error.
52812         * doc/posix-functions/open.texi (open): Document that Irix also
52813         has the bug.
52814         * doc/posix-functions/fopen.texi (fopen): Likewise.
52815         Reported by Paolo Bonzini.
52816
52817 2008-09-24  Bruno Haible  <bruno@clisp.org>
52818
52819         Ensure that a filename ending in a slash cannot be used to access a
52820         non-directory.
52821         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
52822         to check whether it's really a directory.
52823         * lib/fopen.c: Include fcntl.h, unistd.h.
52824         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
52825         and fdopen().
52826         * modules/fopen (Depends-on): Add unistd.
52827         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
52828         * tests/test-fopen.c (main): Likewise.
52829         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
52830         * doc/posix-functions/fopen.texi: Likewise.
52831         Reported by Eric Blake.
52832
52833 2008-09-23  Eric Blake  <ebb9@byu.net>
52834
52835         c-stack: avoid compiler optimizations when provoking overflow
52836         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
52837         recursion harder to optimize, to ensure a stack overflow occurs.
52838         * tests/test-c-stack.c (recurse): Likewise.
52839         Borrowed from libsigsegv.
52840
52841         c-stack: work around Irix sigaltstack bug
52842         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
52843         whether sigaltstack uses wrong end of stack_t (copied in part from
52844         libsigsegv).
52845         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
52846         Irix bug, without requiring an over-allocation.
52847         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
52848         bug.
52849
52850         fopen: document mingw bug on directories
52851         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
52852         not allowing a stream visiting a directory, even though reading
52853         from such a stream is not portable.
52854
52855 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52856
52857         * lib/poll.c: Rewrite.
52858         * modules/poll: Depend on alloca.
52859
52860 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52861
52862         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
52863         instead define prototypes for a full set of wrappers.  Ensure
52864         that Cygwin does not use the compatibility code, which is only
52865         for MinGW.
52866         * lib/winsock.c: New.
52867         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
52868         * modules/sys_socket: Add lib/winsock.c.
52869
52870         * modules/poll-tests: Add errno and perror.
52871         * tests/test-poll.c: Use ioctl, not ioctlsocket.
52872
52873 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52874
52875         * tests/test-poll.c: Downgrade minimum needed Winsock version.
52876
52877 2008-09-23  Bruno Haible  <bruno@clisp.org>
52878
52879         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
52880         * doc/glibc-functions/*: Likewise.
52881
52882 2008-09-23  Simon Josefsson  <simon@josefsson.org>
52883
52884         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
52885         success.
52886
52887 2008-09-22  Eric Blake  <ebb9@byu.net>
52888             Bruno Haible  <bruno@clisp.org>
52889
52890         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
52891         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
52892         supply %A but mishandle pseudo-NaN.
52893         Reported by Simon Josefsson.
52894
52895 2008-09-21  Bruno Haible  <bruno@clisp.org>
52896
52897         * tests/test-lock.c (main): Tweak skip message.
52898         * tests/test-tls.c (main): Likewise.
52899
52900 2008-09-21  Bruno Haible  <bruno@clisp.org>
52901
52902         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
52903         whether 'struct sigaction' has sa_sigaction here...
52904         (gl_PREREQ_SIG_HANDLER_H): ... not here.
52905         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
52906
52907 2008-09-21  Bruno Haible  <bruno@clisp.org>
52908
52909         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
52910         section.
52911         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
52912         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
52913         the new section.
52914         (Support for obsolete systems lacking POSIX:2001): New section.
52915         (String handling <string.h>): Move strdup to the new section.
52916         Suggested by Simon Josefsson and Paolo Bonzini.
52917
52918 2008-09-21  Bruno Haible  <bruno@clisp.org>
52919
52920         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
52921         exponents in %e and %g results on 'long double'. Needed for mingw's
52922         improved *printf functions.
52923         * tests/test-vasprintf-posix.c (test_function): Likewise.
52924         * tests/test-snprintf-posix.h (test_function): Likewise.
52925         * tests/test-sprintf-posix.h (test_function): Likewise.
52926         Reported by Eric Blake.
52927
52928 2008-09-21  Bruno Haible  <bruno@clisp.org>
52929
52930         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
52931         * tests/test-sprintf-posix.h (test_function): Likewise.
52932
52933 2008-09-21  Bruno Haible  <bruno@clisp.org>
52934
52935         * modules/getpass (Depends-on): Add strdup-posix.
52936
52937         New module 'strdup-posix'.
52938         * modules/strdup-posix: New file.
52939         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
52940         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
52941         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52942         REPLACE_STRDUP.
52943         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
52944         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
52945         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52946         strdup-posix.
52947
52948         * modules/strdup (Depends-on): Remove malloc-posix.
52949
52950 2008-09-20  Bruno Haible  <bruno@clisp.org>
52951
52952         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
52953         Wildenhues.
52954
52955 2008-09-20  Bruno Haible  <bruno@clisp.org>
52956
52957         Ensure that wint_t gets defined on IRIX 5.3.
52958         * lib/wchar.in.h (wint_t): Define if not defined by the system.
52959         * lib/wctype.in.h (wint_t): Likewise.
52960         (__wctype_wint_t): Remove type.
52961         (isw*): Use wint_t instead of __wctype_wint_t.
52962         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
52963         * modules/wchar (Files): Add m4/wint_t.m4.
52964         (Makefile.am): Substitute HAVE_WINT_T.
52965         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
52966         * tests/test-wctype.c: Check that wint_t is defined.
52967         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
52968         * doc/posix-headers/wctype.texi: Likewise.
52969         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52970
52971 2008-09-18  Bruno Haible  <bruno@clisp.org>
52972
52973         * gnulib-tool (func_exit): Update comment.
52974
52975 2008-09-18  Simon Josefsson  <simon@josefsson.org>
52976
52977         * modules/getaddrinfo (Depends-on): Remove strdup, this module
52978         assumes strdup exists and does not depend on strdup to return
52979         ENOMEM on out of memory conditions.
52980
52981 2008-09-18  Bruno Haible  <bruno@clisp.org>
52982
52983         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
52984         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
52985         digits for the exponent.
52986
52987 2008-09-18  Jim Meyering  <meyering@redhat.com>
52988             Bruno Haible  <bruno@clisp.org>
52989
52990         * lib/vasnprintf.c (decimal_point_char): Define also if
52991         NEED_PRINTF_INFINITE_LONG_DOUBLE.
52992
52993 2008-09-16  Bruno Haible  <bruno@clisp.org>
52994         and Eric Blake  <ebb9@byu.net>
52995
52996         vasnprintf: support Irix 5.3
52997         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
52998         that mishandle long double infinity.
52999         Reported by Tom G. Christensen.
53000
53001 2008-09-16  Bruno Haible  <bruno@clisp.org>
53002
53003         * doc/glibc-functions/scandir.texi: Mention the function is missing on
53004         Solaris 9.
53005         * doc/glibc-functions/alphasort.texi: Likewise.
53006         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
53007
53008 2008-09-16  Jim Meyering  <meyering@redhat.com>
53009
53010         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
53011         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
53012         a umask modification leak out of a subshell.  Otherwise, the
53013         opensolaris /bin/sh would be accepted and thus cause unwarranted
53014         failures in the coreutils test suite.
53015
53016 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
53017
53018         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
53019         to succeed.
53020
53021 2008-09-16  Jim Meyering  <meyering@redhat.com>
53022
53023         avoid spurious test failure when library is built without ACL support
53024         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
53025         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
53026         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
53027         * tests/test-copy-acl.sh: Likewise.
53028
53029 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53030
53031         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
53032         based on character occurrence counts.
53033
53034 2008-09-15  Eric Blake  <ebb9@byu.net>
53035
53036         tests: avoid some compiler warnings
53037         * tests/test-memchr.c (main): Pass NULL indirectly.
53038         * tests/test-closein.c (main): Avoid unused variable.
53039
53040 2008-09-15  Bruno Haible  <bruno@clisp.org>
53041
53042         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
53043         are missing on OpenBSD 4.0 individually.
53044         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53045
53046 2008-09-15  Bruno Haible  <bruno@clisp.org>
53047
53048         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
53049         * doc/posix-functions/strerror.texi: Mention also Cygwin.
53050         * doc/posix-functions/perror.texi: Likewise.
53051         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
53052         is missing.
53053         Reported by Eric Blake.
53054
53055         * lib/errno.in.h: Use replacement values >= 2000.
53056         Reported by Eric Blake.
53057
53058 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53059
53060         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
53061         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
53062         limit.
53063         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
53064         compareseq was aborted.
53065
53066 2008-09-14  Bruno Haible  <bruno@clisp.org>
53067
53068         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
53069         yvec_edit_count.
53070         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
53071         (fstrcmp_bounded): Simplify result computation accordingly.
53072
53073 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53074
53075         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
53076         (fstrcmp): Define in terms of fstrcmp_bounded.
53077         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
53078         lower_bound argument.
53079         Return quickly if the result is certainly < lower_bound.
53080         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
53081
53082 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53083
53084         * lib/diffseq.h (EARLY_ABORT): New macro.
53085         (compareseq): Change return type to bool. Return true when EARLY_ABORT
53086         evaluates to true.
53087
53088 2008-09-14  Bruno Haible  <bruno@clisp.org>
53089
53090         * modules/perror-tests: New file.
53091         * tests/test-perror.sh: New file.
53092         * tests/test-perror.c: New file.
53093
53094         New module 'perror'.
53095         * lib/stdio.in.h (perror): New declaration.
53096         * lib/perror.c: New file.
53097         * m4/perror.m4: New file.
53098         * modules/perror: New file.
53099         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
53100         * doc/posix-functions/perror.texi: Mention the perror module.
53101         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
53102         REPLACE_PERROR.
53103         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
53104         REPLACE_PERROR.
53105
53106 2008-09-14  Bruno Haible  <bruno@clisp.org>
53107
53108         * modules/stdio (Makefile.am): Reorder to match the order in
53109         lib/stdio.in.h.
53110         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53111
53112 2008-09-13  Bruno Haible  <bruno@clisp.org>
53113
53114         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
53115
53116 2008-09-13  Bruno Haible  <bruno@clisp.org>
53117
53118         Extend strerror to cover the added errno values.
53119         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
53120         (rpl_strerror): Provide error messages for the added errno values and
53121         for the WSA* values.
53122         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
53123         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
53124         strerror.
53125         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
53126         * modules/strerror (Depends-on): Add errno.
53127         * doc/posix-functions/strerror.texi: Document the change.
53128         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
53129         and EOVERFLOW.
53130
53131 2008-09-13  Bruno Haible  <bruno@clisp.org>
53132
53133         * modules/EOVERFLOW: Remove file.
53134         * m4/eoverflow.m4: Remove file.
53135         * modules/EOVERFLOW-tests: Remove file.
53136         * tests/test-EOVERFLOW.c: Remove file.
53137         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
53138         * modules/ftell (Depends-on): Likewise.
53139         * modules/getdelim (Depends-on): Likewise.
53140         * modules/getugroups (Depends-on): Likewise.
53141         * modules/poll (Depends-on): Likewise.
53142         * modules/snprintf (Depends-on): Likewise.
53143         * modules/sprintf-posix (Depends-on): Likewise.
53144         * modules/vasnprintf (Depends-on): Likewise.
53145         * modules/vasprintf (Depends-on): Likewise.
53146         * modules/vfprintf-posix (Depends-on): Likewise.
53147         * modules/vsnprintf (Depends-on): Likewise.
53148         * modules/vsprintf-posix (Depends-on): Likewise.
53149         * modules/xvasprintf (Depends-on): Likewise.
53150         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53151         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
53152         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
53153         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
53154         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53155         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
53156         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
53157         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
53158         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53159         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
53160         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
53161         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
53162         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53163         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
53164         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
53165         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
53166         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53167         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
53168         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
53169         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
53170         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53171         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
53172         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
53173         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
53174         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
53175         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53176         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
53177         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
53178         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
53179         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
53180         * MODULES.html.sh: Remove EOVERFLOW.
53181         * NEWS: Mention the change.
53182
53183 2008-09-13  Bruno Haible  <bruno@clisp.org>
53184
53185         * modules/errno-tests: New file.
53186         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
53187
53188         * lib/errno.in.h: New file.
53189         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
53190         * modules/errno: New file.
53191         * doc/posix-headers/errno.texi: Update documentation.
53192         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
53193
53194 2008-09-13  Bruno Haible  <bruno@clisp.org>
53195
53196         * tests/test-poll.c: Use #if for native Windows, rather than testing
53197         __MSVCRT__.
53198
53199 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53200             Bruno Haible  <bruno@clisp.org>
53201
53202         * lib/glob.c: Don't include <pwd.h> on native Windows.
53203         (WINDOWS32): New macro.
53204         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
53205
53206 2008-09-13  Bruno Haible  <bruno@clisp.org>
53207
53208         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
53209         (ETIMEDOUT): Remove macro.
53210         (glthread_cond_timedwait_multithreaded): New declaration.
53211         (glthread_cond_timedwait): Use it.
53212         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
53213         (glthread_cond_timedwait_multithreaded): New function.
53214
53215 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53216
53217         * modules/poll-tests: Do not check for io.h.
53218         * tests/test-poll.c: Check for __MSVCRT__ instead.
53219
53220 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53221
53222         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
53223         * modules/poll-tests: Add inet_pton, stdbool, sockets.
53224         * tests/test-poll.c: Use them.  Use _pipe on Windows.
53225
53226 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53227
53228         * modules/poll-tests: New.
53229         * tests/test-poll.c: New.
53230
53231 2008-09-12  Eric Blake  <ebb9@byu.net>
53232
53233         frexp: test for NetBSD failure on -0.0
53234         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
53235         not all, bugs from NetBSD 3.0 have been fixed.
53236         * doc/posix-functions/frexp.texi (frexp): Document bug.
53237         Reported by Thomas Klausner.
53238
53239         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
53240         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
53241         literal -0.0.
53242         Reported by Jonathan C. Patschke <jp@centtech.com>.
53243
53244 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53245
53246         * lib/glthread/cond.h: Use dummy implementation also if
53247         USE_WIN32_THREADS.
53248
53249 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53250
53251         * modules/fnmatch-posix (License): Change to LGPLv2+.
53252         * modules/fnmatch-gnu (License): Likewise.
53253
53254 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53255
53256         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
53257
53258 2008-09-11  Jim Meyering  <meyering@redhat.com>
53259
53260         * users.txt: Add gtk-vnc.
53261
53262 2008-09-08  Simon Josefsson  <simon@josefsson.org>
53263
53264         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
53265         rotate amounts.
53266
53267         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
53268         required for 16-bit and 8-bit rotates.
53269         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
53270         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
53271         UINT8_MAX instead of hard-coded constants.
53272         Suggested by Paul Eggert.
53273
53274 2008-09-07  Bruno Haible  <bruno@clisp.org>
53275
53276         * tests/test-striconveh.c (main): Check behaviour when converting from
53277         UTF-7.
53278
53279         Make striconveh work better with stateful encodings.
53280         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
53281         that iconv does not increment the inptr when returning -1/EINVAL.
53282
53283 2008-09-07  Bruno Haible  <bruno@clisp.org>
53284
53285         * build-aux/config.rpath: Update according to libtool-2.2.6.
53286         * build-aux/config.libpath: Likewise.
53287
53288 2008-09-06  Bruno Haible  <bruno@clisp.org>
53289
53290         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
53291         * lib/freadptr.c (freadptr): Likewise.
53292         * lib/freadseek.c (freadptrinc): Likewise.
53293         Reported by Simon Josefsson.
53294
53295 2008-09-06  Bruno Haible  <bruno@clisp.org>
53296
53297         * modules/freadptr (License): Change to LGPLv2+.
53298         * modules/freadseek (License): Likewise.
53299         Suggested by Eric Blake.
53300
53301         * modules/memchr2 (License): Change to LGPLv2+.
53302         Approved by Eric Blake.
53303
53304 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53305             Bruno Haible  <bruno@clisp.org>
53306
53307         Make gnulib-tool work with native 'sed' on AIX.
53308         * gnulib-tool (sed_noop): New variable.
53309         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
53310         func_add_or_update, func_create_testdir): Use it to initialize sed
53311         script variables.
53312         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53313
53314 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
53315             Bruno Haible  <bruno@clisp.org>
53316
53317         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
53318         also works after #include directives.
53319
53320 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
53321
53322         getdate.y: reject an out-of-range timezone value
53323         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
53324         the range [-24...+24].  When specified with only one or two digits,
53325         * tests/test-getdate.c: Tests for the fix.
53326         * doc/getdate.texi: Document this change.
53327
53328 2008-09-03  Bruno Haible  <bruno@clisp.org>
53329
53330         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
53331
53332 2008-09-02  Simon Josefsson  <simon@josefsson.org>
53333
53334         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
53335         <bruce.korb@gmail.com> with ideas from Ben Pfaff
53336         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
53337         Blake <ebb9@byu.net>.
53338
53339         * tests/test-bitrotate.c: Add more test vectors.
53340
53341 2008-09-02  Eric Blake  <ebb9@byu.net>
53342
53343         vasnprintf-posix: handle large precision via %.*d
53344         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
53345         when handling it ourselves.
53346         * tests/test-vasnprintf-posix.c (test_function): Add test.
53347         * tests/test-snprintf-posix.h (test_function): Likewise.
53348         * tests/test-sprintf-posix.h (test_function): Likewise.
53349         * tests/test-vasprintf-posix.c (test_function): Likewise.
53350         Reported by Alain Guibert.
53351
53352 2008-09-01  Eric Blake  <ebb9@byu.net>
53353
53354         c-stack: make configure-time check more robust
53355         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
53356         successful sigaction call.
53357         Reported by Tom G. Christensen.
53358
53359 2008-09-01  Bruno Haible  <bruno@clisp.org>
53360
53361         New module 'findprog-lgpl'.
53362         * modules/findprog-lgpl: New file.
53363         * lib/findprog-lgpl.c: New file.
53364         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
53365         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
53366         to decide whether to use strdup or xstrdup, concatenated_filename or
53367         xconcatenated_filename.
53368
53369 2008-09-01  Bruno Haible  <bruno@clisp.org>
53370
53371         Split module 'concat-filename' into 'concat-filename' (LGPL) and
53372         'xconcat-filename' (GPL).
53373         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
53374         (License): Change to LGPLv2+.
53375         * modules/xconcat-filename: New file.
53376         * lib/concat-filename.h (concatenated_filename): Change specification.
53377         (xconcatenated_filename): New declaration.
53378         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
53379         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
53380         memory situations.
53381         * lib/xconcat-filename.c: New file.
53382         * NEWS: Mention the change.
53383         * lib/findprog.c: Include concat-filename.h, not filename.h.
53384         (find_in_path): Use xconcatenated_filename instead of
53385         concatenated_filename.
53386         * lib/javacomp.c: Include concat-filename.h, not filename.h.
53387         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
53388         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
53389         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
53390         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
53391         instead of concatenated_filename.
53392         * lib/javaexec.c: Include concat-filename.h, not filename.h.
53393         (execute_java_class): Use xconcatenated_filename instead of
53394         concatenated_filename.
53395         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
53396         * modules/javacomp (Depends-on): Likewise.
53397         * modules/javaexec (Depends-on): Likewise.
53398
53399 2008-09-01  Bruno Haible  <bruno@clisp.org>
53400
53401         Split module 'filename' into 'filename' and 'concat-filename'.
53402         * modules/filename: Keep only lib/filename.h.
53403         (License): Change to LGPLv2+.
53404         * modules/concat-filename: New file, extracted from modules/filename.
53405         * lib/filename.h (concatenated_filename): Remove declaration.
53406         * lib/concat-filename.h: New file, extracted from lib/filename.h.
53407         * lib/concat-filename.c: Include concat-filename.h.
53408         * NEWS: Mention the change.
53409
53410 2008-09-01  Simon Josefsson  <simon@josefsson.org>
53411
53412         * lib/bitrotate.h (rotl8, rotr8): Add.
53413
53414         * modules/bitrotate (configure.ac): Need
53415         AC_REQUIRE([AC_C_INLINE]).
53416         (Description): Mention stdint.h.  Reported by Bruno Haible
53417         <bruno@clisp.org>.
53418
53419         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
53420         Paolo Bonzini <bonzini@gnu.org>.
53421
53422 2008-08-31  Bruno Haible  <bruno@clisp.org>
53423
53424         Assume Solaris specific bi-arch conventions on Solaris systems.
53425         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
53426         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
53427         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
53428         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
53429         like acl_libdirstem.
53430         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
53431         acl_libdirstem.
53432         * NEWS: Mention the change.
53433         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
53434
53435 2008-08-31  Jim Meyering  <meyering@redhat.com>
53436
53437         * lib/strftime.h: Add comments describing the two added arguments.
53438
53439         remove duplicate #include directives
53440         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
53441         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
53442
53443 2008-08-31  Bruno Haible  <bruno@clisp.org>
53444
53445         New module 'sigpipe-die'.
53446         * modules/sigpipe-die: New file.
53447         * lib/sigpipe-die.h: New file.
53448         * lib/sigpipe-die.c: New file.
53449         * MODULES.html.sh (Signal handling): Add sigpipe-die.
53450
53451 2008-08-31  Bruno Haible  <bruno@clisp.org>
53452
53453         Don't override previously installed signal handlers.
53454         * lib/fatal-signal.c (saved_sigactions): New variable.
53455         (uninstall_handlers): Reset the signal to the saved handler, not
53456         to SIG_DFL (except when ignored).
53457         (install_handlers): Save the previous handlers.
53458
53459 2008-08-30  Bruno Haible  <bruno@clisp.org>
53460
53461         * gnulib-tool (func_reset_sigpipe): New function.
53462         (func_get_automake_snippet, func_modules_transitive_closure,
53463         func_import): Invoke it before a join command that reads from stdin,
53464         to avoid "echo: write error: Broken pipe" error messages on stderr.
53465         Reported by Sam Steingold <sds@gnu.org>.
53466
53467 2008-08-30  Bruno Haible  <bruno@clisp.org>
53468
53469         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
53470         Code copied from m4/open.m4.
53471         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
53472         access and the filename ends in a slash. Code copied from lib/open.c.
53473         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
53474         * tests/test-fopen.c (main): Check against bug with trailing slash.
53475
53476 2008-08-29  Bruno Haible  <bruno@clisp.org>
53477
53478         Avoid some "gcc -pedantic" warnings.
53479         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
53480         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
53481         * lib/dirent.in.h: Likewise.
53482         * lib/fcntl.in.h: Likewise.
53483         * lib/float.in.h: Likewise.
53484         * lib/iconv.in.h: Likewise.
53485         * lib/inttypes.in.h: Likewise.
53486         * lib/locale.in.h: Likewise.
53487         * lib/math.in.h: Likewise.
53488         * lib/netinet_in.in.h: Likewise.
53489         * lib/search.in.h: Likewise.
53490         * lib/signal.in.h: Likewise.
53491         * lib/stdarg.in.h: Likewise.
53492         * lib/stdint.in.h: Likewise.
53493         * lib/stdio.in.h: Likewise.
53494         * lib/stdlib.in.h: Likewise.
53495         * lib/string.in.h: Likewise.
53496         * lib/strings.in.h: Likewise.
53497         * lib/sys_select.in.h: Likewise.
53498         * lib/sys_socket.in.h: Likewise.
53499         * lib/sys_stat.in.h: Likewise.
53500         * lib/sys_time.in.h: Likewise.
53501         * lib/sysexits.in.h: Likewise.
53502         * lib/time.in.h: Likewise.
53503         * lib/unistd.in.h: Likewise.
53504         * lib/wchar.in.h: Likewise.
53505         * lib/wctype.in.h: Likewise.
53506         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
53507         * modules/fchdir (Makefile.am): Likewise.
53508         * modules/fcntl (Makefile.am): Likewise.
53509         * modules/float (Makefile.am): Likewise.
53510         * modules/iconv_open (Makefile.am): Likewise.
53511         * modules/inttypes (Makefile.am): Likewise.
53512         * modules/locale (Makefile.am): Likewise.
53513         * modules/math (Makefile.am): Likewise.
53514         * modules/netinet_in (Makefile.am): Likewise.
53515         * modules/search (Makefile.am): Likewise.
53516         * modules/signal (Makefile.am): Likewise.
53517         * modules/stdarg (Makefile.am): Likewise.
53518         * modules/stdint (Makefile.am): Likewise.
53519         * modules/stdio (Makefile.am): Likewise.
53520         * modules/stdlib (Makefile.am): Likewise.
53521         * modules/string (Makefile.am): Likewise.
53522         * modules/strings (Makefile.am): Likewise.
53523         * modules/sys_select (Makefile.am): Likewise.
53524         * modules/sys_socket (Makefile.am): Likewise.
53525         * modules/sys_stat (Makefile.am): Likewise.
53526         * modules/sys_time (Makefile.am): Likewise.
53527         * modules/sysexits (Makefile.am): Likewise.
53528         * modules/time (Makefile.am): Likewise.
53529         * modules/unistd (Makefile.am): Likewise.
53530         * modules/wchar (Makefile.am): Likewise.
53531         * modules/wctype (Makefile.am): Likewise.
53532         Reported by Reuben Thomas <rrt@sc3d.org>.
53533
53534 2008-08-29  Bruno Haible  <bruno@clisp.org>
53535
53536         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
53537         any more.
53538
53539 2008-08-29  Simon Josefsson  <simon@josefsson.org>
53540
53541         * MODULES.html.sh (Misc): Add bitrotate.
53542
53543         * modules/bitrotate: New file.
53544
53545         * lib/bitrotate.h: New file.
53546
53547         * modules/bitrotate-tests: New file.
53548
53549         * tests/test-bitrotate.c: New file.
53550
53551         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
53552         on the bitrotate module.
53553
53554         * lib/arctwo.c: Use new bitrotate module.
53555
53556 2008-08-29  Jim Meyering  <meyering@redhat.com>
53557
53558         bootstrap: merge changes from coreutils
53559         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
53560         of copied files.  Remove a kludge, now that this is fixed.
53561         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
53562         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
53563         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
53564
53565 2008-08-29  Bruno Haible  <bruno@clisp.org>
53566
53567         * MODULES.html.sh: Remove --cvs-urls option.
53568
53569 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
53570
53571         maint.mk: adjust to file name change
53572         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
53573
53574 2008-08-28  Jim Meyering  <meyering@redhat.com>
53575
53576         * modules/getndelim2 (License): Relicense to LGPLv2+.
53577         Approved by Richard Stallman for the version of 1995, and by
53578         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
53579
53580 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
53581
53582         * lib/getdelim.c (flockfile, funlockfile): Make all of them
53583         dummy if one is not available.  Do not touch them if
53584         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
53585         (getc_maybe_unlocked): New.
53586         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
53587
53588 2008-08-26  Eric Blake  <ebb9@byu.net>
53589
53590         doc/INSTALL: resync from autoconf
53591         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
53592         (INSTALL_PRELUDE): Delete; this is done more efficiently by
53593         moving...
53594         * install.texi [!autoconf]: ...here.  Resync from autoconf.
53595         * INSTALL: Regenerate.
53596         * INSTALL.ISO: New file.
53597         * INSTALL.UTF-8: Likewise.
53598
53599 2008-08-26  Jim Meyering  <meyering@redhat.com>
53600
53601         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
53602         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
53603         these definitions conditional, so that they may be overridden, too.
53604
53605 2008-08-26  Bruno Haible  <bruno@clisp.org>
53606
53607         Generate INSTALL file variants with prettier quotes.
53608         * doc/Makefile (INSTALL_PRELUDE): New macro.
53609         (INSTALL): Use it.
53610         (INSTALL.ISO, INSTALL.UTF-8): New rules.
53611
53612 2008-08-26  Bruno Haible  <bruno@clisp.org>
53613
53614         Run makeinfo in an English locale.
53615         * doc/Makefile (MAKEINFO): New variable.
53616
53617 2008-08-26  Bruno Haible  <bruno@clisp.org>
53618
53619         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
53620         Suggested by Eric Blake.
53621
53622 2008-08-25  Bruno Haible  <bruno@clisp.org>
53623
53624         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
53625
53626 2008-08-25  Eric Blake  <ebb9@byu.net>
53627
53628         c-stack: test that stack overflow can be caught
53629         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
53630         that platform allows handling stack overflow; at least OS/2 EMX
53631         has sigaltstack, but crashes before transferring control to
53632         handler on stack overflow.
53633         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
53634         check for HAVE_STACK_OVERFLOW_HANDLING.
53635         Reported by Elbert Pol.
53636
53637 2008-08-25  Bruno Haible  <bruno@clisp.org>
53638
53639         * doc/posix-functions/strftime.texi: Fix description of strftime
53640         module.
53641
53642 2008-08-24  Bruno Haible  <bruno@clisp.org>
53643
53644         * tests/uniwidth/test-uc_width2.c: New file.
53645         * tests/uniwidth/test-uc_width2.sh: New file.
53646         * modules/uniwidth/width-tests (Files): Add the new files.
53647         (TESTS): Add uniwidth/test-uc_width2.sh.
53648         (TESTS_ENVIRONMENT): New variable.
53649         (check_PROGRAMS): Add test-uc_width2.
53650         (test_uc_width2_SOURCES): New variable.
53651
53652         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
53653         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
53654         not 0x00AB.
53655         Reported by Alexander V. Lukyanov <lav@netis.ru>.
53656
53657 2008-08-22  Eric Blake  <ebb9@byu.net>
53658
53659         test-lock, test-tls: mention why a test is skipped
53660         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
53661         skipped.
53662         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
53663
53664         count-one-bits: relax license
53665         * modules/count-one-bits (License): Relicense to LGPLv2+.
53666         Suggested by Ludovic Courtès, approved by Ben Pfaff.
53667
53668 2008-08-22  Andreas Schwab  <schwab@suse.de>
53669
53670         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
53671         Remove spurious space in assignment.
53672
53673 2008-08-21  Simon Josefsson  <simon@josefsson.org>
53674
53675         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
53676         Paul Eggert <eggert@CS.UCLA.EDU>.
53677
53678 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
53679
53680         * modules/gettext: Add m4/threadlib.m4.
53681
53682 2008-08-19  Eric Blake  <ebb9@byu.net>
53683
53684         test-c-stack: fix compilation failure on FreeBSD 5.0
53685         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
53686         headers before <sys/resource.h>.
53687         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
53688         the bug.
53689         Reported by Nelson H. F. Beebe.
53690
53691         strverscmp: migrate from "strverscmp.h" to <string.h>
53692         * modules/string (Makefile.am): Add new hooks.
53693         * modules/strverscmp (Files): Remove strverscmp.h.
53694         (Depends-on): Add string.
53695         (configure.ac): Add indicator.
53696         (Include): Mention new header.
53697         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
53698         defaults.
53699         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
53700         results.
53701         * lib/strverscmp.h: Delete.
53702         * lib/string.in.h (strverscmp): Provide declaration, when needed.
53703         * tests/test-strverscmp.c (includes): Adjust client.
53704         * lib/check-version.c (includes): Likewise.
53705         * NEWS: Document the change.
53706
53707         strverscmp: add unit test
53708         * modules/strverscmp-tests: New file.
53709         * tests/test-strverscmp.c: Likewise.
53710
53711 2008-08-19  Simon Josefsson  <simon@josefsson.org>
53712
53713         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
53714         regarding Windows crypto stuff, from Mono.
53715
53716 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
53717
53718         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
53719         if present, for intel RND.  Return error on failures.
53720
53721 2008-08-18  Ben Pfaff  <blp@gnu.org>
53722
53723         gitlog-to-changelog: give better diagnostic for failed pipe-open
53724         * build-aux/gitlog-to-changelog: Improve error message: suggest
53725         that the version of Git may be too old.
53726
53727 2008-08-18  Simon Josefsson  <simon@josefsson.org>
53728
53729         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
53730         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
53731
53732 2008-08-18  Bruno Haible  <bruno@clisp.org>
53733
53734         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
53735         pthread_in_use().
53736
53737 2008-08-18  Bruno Haible  <bruno@clisp.org>
53738
53739         * lib/glthread/threadlib.c: Include <pthread.h>.
53740
53741 2008-08-18  Bruno Haible  <bruno@clisp.org>
53742
53743         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
53744         glthread_recursive_lock_* macros.
53745         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
53746         Fix syntax error.
53747
53748 2008-08-18  Bruno Haible  <bruno@clisp.org>
53749
53750         * lib/glthread/thread.c: Avoid forcing a context switch right after
53751         thread creation.
53752
53753 2008-08-17  Bruno Haible  <bruno@clisp.org>
53754
53755         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
53756         * lib/glthread/thread.h: Provide Win32 specific implementation.
53757         * modules/thread (Files): Add lib/glthread/thread.c.
53758         (Depends-on): Add lock.
53759         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
53760
53761 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53762
53763         New module 'yield'.
53764         * modules/yield: New file.
53765         * lib/glthread/yield.h: New file.
53766         * m4/yield.m4: New file.
53767         * MODULES.html.sh (Multithreading): Add yield.
53768
53769 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53770
53771         New module 'thread'.
53772         * modules/thread: New file.
53773         * lib/glthread/thread.h: New file.
53774         * m4/thread.m4: New file.
53775         * MODULES.html.sh (Multithreading): Add thread.
53776
53777 2008-08-17  Bruno Haible  <bruno@clisp.org>
53778
53779         * lib/glthread/lock.h: Include <stdlib.h> always.
53780         * lib/glthread/tls.h: Likewise.
53781         * lib/glthread/cond.h: Likewise.
53782
53783 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53784
53785         New module 'cond'.
53786         * modules/cond: New file.
53787         * lib/glthread/cond.h: New file.
53788         * lib/glthread/cond.c: New file.
53789         * m4/cond.m4: New file.
53790         * MODULES.html.sh (Multithreading): Add cond.
53791
53792 2008-08-16  Eric Blake  <ebb9@byu.net>
53793
53794         c-stack: fix regression on Irix 5.3 from 2008-06-21
53795         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
53796         sa_sigaction...
53797         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
53798         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
53799         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
53800         * modules/signal (Makefile.am): Use the value.
53801         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
53802         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
53803         * doc/posix-headers/signal.texi (signal.h): Document this
53804         portability issue.
53805         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
53806         Reported by Tom G. Christensen.
53807
53808 2008-08-17  Bruno Haible  <bruno@clisp.org>
53809
53810         New module 'threadlib'.
53811         * modules/threadlib: New file.
53812         * lib/glthread/threadlib.c: New file, extracted from
53813         lib/glthread/lock.c.
53814         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
53815         functions.
53816         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
53817         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
53818         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
53819         macros.
53820         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
53821         (gl_DISABLE_THREADS): Remove macro.
53822         * modules/lock (Files): Remove build-aux/config.rpath.
53823         (Depends-on): Remove havelib. Add threadlib.
53824         (configure.ac-early): Remove section.
53825         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
53826         * modules/tls (Depends-on): Remove lock. Add threadlib.
53827         (Link): New section, copied from threadlib.
53828         * MODULES.html.sh (Multithreading): Add threadlib.
53829
53830 2008-08-14  Bruno Haible  <bruno@clisp.org>
53831
53832         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
53833         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
53834         glthread_rwlock_unlock, glthread_rwlock_destroy,
53835         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
53836         glthread_recursive_lock_destroy): Define as macros always.
53837         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
53838         glthread_lock_lock.
53839         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
53840         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
53841         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
53842         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
53843         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
53844         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
53845         (glthread_recursive_lock_lock_func): Renamed from
53846         glthread_recursive_lock_lock.
53847         (glthread_recursive_lock_unlock_func): Renamed from
53848         glthread_recursive_lock_unlock.
53849         (glthread_recursive_lock_destroy_func): Renamed from
53850         glthread_recursive_lock_destroy.
53851
53852 2008-08-14  Bruno Haible  <bruno@clisp.org>
53853
53854         * lib/glthread/lock.h: Renamed from lib/lock.h.
53855         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
53856         * lib/glthread/tls.h: Renamed from lib/tls.h.
53857         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
53858         * lib/fstrcmp.c: Update includes.
53859         * lib/strsignal.c: Update includes.
53860         * modules/lock (Files, Makefile.am): Update.
53861         (Include): Change to "glthread/lock.h".
53862         * modules/tls (Files, Makefile.am): Update.
53863         (Include): Change to "glthread/tls.h".
53864         * tests/test-lock.c: Update includes.
53865         * tests/test-tls.c: Update includes.
53866         * NEWS: Mention the renamed header files.
53867
53868 2008-08-11  Jim Meyering  <meyering@redhat.com>
53869
53870         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
53871
53872 2008-08-11  Eric Blake  <ebb9@byu.net>
53873
53874         test-c-stack: avoid C99-ism
53875         * tests/test-c-stack.c (main): Fix whitespace, move declaration
53876         before statement.
53877         Reported by Alain Guibert.
53878
53879 2008-08-10  Jim Meyering  <meyering@redhat.com>
53880
53881         ensure that return value of uinttostr et al are not ignored
53882         * lib/inttostr.h (__GNUC_PREREQ): Define.
53883         (__attribute_warn_unused_result__): Define.
53884         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
53885
53886 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
53887
53888         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
53889         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
53890
53891 2008-08-07  Jim Meyering  <meyering@redhat.com>
53892
53893         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
53894
53895         * modules/mkstemp (License): Relicense under LGPLv2+.
53896         * modules/tempname (License): Likewise.
53897
53898 2008-08-06  Bruno Haible  <bruno@clisp.org>
53899
53900         * lib/poll.c (poll): Further micro-optimization.
53901
53902 2008-08-06  Jim Meyering  <meyering@redhat.com>
53903
53904         inet_pton.c: use locale-independent tolower
53905         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
53906         (inet_pton6): Use c_tolower rather than tolower.
53907         * modules/inet_pton (Depends-on): Add c-ctype.
53908
53909 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
53910
53911         * lib/poll.c (poll): Avoid division when timeout is 0, cache
53912         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
53913
53914 2008-08-06  Jim Meyering  <meyering@redhat.com>
53915
53916         * modules/inet_pton (License): Relicense under LGPLv2+.
53917
53918 2008-08-03  Bruno Haible  <bruno@clisp.org>
53919
53920         Additional non-aborting API for lock and tls.
53921         * lib/lock.h: Include <errno.h>.
53922         (glthread_lock_init): New macro/function.
53923         (gl_lock_init): Define as wrapper around glthread_lock_init.
53924         (glthread_lock_lock): New macro/function.
53925         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
53926         (glthread_lock_unlock): New macro/function.
53927         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
53928         (glthread_lock_destroy): New macro/function.
53929         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
53930         (glthread_rwlock_init): New macro/function.
53931         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
53932         (glthread_rwlock_rdlock): New macro/function.
53933         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
53934         (glthread_rwlock_wrlock): New macro/function.
53935         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
53936         (glthread_rwlock_unlock): New macro/function.
53937         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
53938         (glthread_rwlock_destroy): New macro/function.
53939         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
53940         (glthread_recursive_lock_init): New macro/function.
53941         (gl_recursive_lock_init): Define as wrapper around
53942         glthread_recursive_lock_init.
53943         (glthread_recursive_lock_lock): New macro/function.
53944         (gl_recursive_lock_lock): Define as wrapper around
53945         glthread_recursive_lock_lock.
53946         (glthread_recursive_lock_unlock): New macro/function.
53947         (gl_recursive_lock_unlock): Define as wrapper around
53948         glthread_recursive_lock_unlock.
53949         (glthread_recursive_lock_destroy): New macro/function.
53950         (gl_recursive_lock_destroy): Define as wrapper around
53951         glthread_recursive_lock_destroy.
53952         (glthread_once): New macro/function.
53953         (gl_once): Define as wrapper around glthread_once.
53954         Update function declarations.
53955         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
53956         glthread_rwlock_init. Return error code.
53957         (glthread_rwlock_rdlock_multithreaded): Renamed from
53958         glthread_rwlock_rdlock. Return error code.
53959         (glthread_rwlock_wrlock_multithreaded): Renamed from
53960         glthread_rwlock_wrlock. Return error code.
53961         (glthread_rwlock_unlock_multithreaded): Renamed from
53962         glthread_rwlock_unlock. Return error code.
53963         (glthread_rwlock_destroy_multithreaded): Renamed from
53964         glthread_rwlock_destroy. Return error code.
53965         (glthread_recursive_lock_init_multithreaded): Renamed from
53966         glthread_recursive_lock_init. Return error code.
53967         (glthread_recursive_lock_lock_multithreaded): Renamed from
53968         glthread_recursive_lock_lock. Return error code.
53969         (glthread_recursive_lock_unlock_multithreaded): Renamed from
53970         glthread_recursive_lock_unlock. Return error code.
53971         (glthread_recursive_lock_destroy_multithreaded): Renamed from
53972         glthread_recursive_lock_destroy. Return error code.
53973         (glthread_once_call): Make static.
53974         (glthread_once_multithreaded): Renamed from glthread_once.
53975         * lib/tls.h: Include <errno.h>.
53976         (glthread_tls_key_init): New macro/function.
53977         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
53978         (glthread_tls_set): New macro/function.
53979         (gl_tls_set): Define as wrapper around glthread_tls_set.
53980         (glthread_tls_key_destroy): New macro/function.
53981         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
53982         Update function declarations.
53983         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
53984         glthread_tls_get.
53985         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53986
53987 2008-08-04  Eric Blake  <ebb9@byu.net>
53988
53989         gnumakefile: use space, not TAB, outside of targets
53990         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
53991
53992 2008-08-02  Jim Meyering  <meyering@redhat.com>
53993
53994         getdate.y: avoid locale-dependent date parsing failure
53995         In Turkish locales, getdate would fail to recognize keywords
53996         containing a lowercase "i".  The solution is not to rely on
53997         locale-sensitive case-conversion.
53998         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
53999         (lookup_word): Use c_toupper in place of toupper.
54000         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
54001         Reported by Vefa Bicakci <bicave@superonline.com> in
54002         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
54003         * modules/getdate (Depends-on): Add c-ctype.
54004
54005 2008-08-02  Bruno Haible  <bruno@clisp.org>
54006
54007         * gnulib-tool (func_import): When updating or creating a .gitignore
54008         file, prepend each added line with a slash, and ignore leading slashes
54009         from the existing lines.
54010         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54011
54012 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54013
54014         Portability fix for GNU make 3.79.1.
54015         * top/GNUmakefile: Avoid 'else COND', which older GNU make
54016         versions do not understand.
54017
54018 2008-08-01  Bruno Haible  <bruno@clisp.org>
54019
54020         Work around bug of HP-UX 10.20 cc with -0.0 literal.
54021         * tests/test-isnanf.h (zero): New variable.
54022         (main): Avoid literal -0.0f.
54023         * tests/test-isnand.h (zero): New variable.
54024         (main): Avoid literal -0.0.
54025         * tests/test-isnanl.h (zero): New variable.
54026         (main): Avoid literal -0.0L.
54027         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
54028         (test_float, test_double, test_long_double): Avoid literals -0.0f,
54029         -0.0, -0.0L.
54030         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
54031         (test_signbitd): Avoid literal -0.0.
54032         (test_signbitl): Avoid literal -0.0L.
54033         * tests/test-ceilf1.c (zero): New variable.
54034         (main): Avoid literal -0.0f.
54035         * tests/test-ceill.c (zero): New variable.
54036         (main): Avoid literal -0.0L.
54037         * tests/test-floorf1.c (zero): New variable.
54038         (main): Avoid literal -0.0f.
54039         * tests/test-floorl.c (zero): New variable.
54040         (main): Avoid literal -0.0L.
54041         * tests/test-roundf1.c (zero): New variable.
54042         (main): Avoid literal -0.0f.
54043         * tests/test-round1.c (zero): New variable.
54044         (main): Avoid literal -0.0.
54045         * tests/test-roundl.c (zero): New variable.
54046         (main): Avoid literal -0.0L.
54047         * tests/test-truncf1.c (zero): New variable.
54048         (main): Avoid literal -0.0f.
54049         * tests/test-trunc1.c (zero): New variable.
54050         (main): Avoid literal -0.0.
54051         * tests/test-truncl.c (zero): New variable.
54052         (main): Avoid literal -0.0L.
54053         * tests/test-frexp.c (zero): New variable.
54054         (main): Avoid literal -0.0.
54055         * tests/test-frexpl.c (zero): New variable.
54056         (main): Avoid literal -0.0L.
54057         * tests/test-ldexpl.c (zero): New variable.
54058         (main): Avoid literal -0.0L.
54059         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
54060         (zerod, zerol): New variables.
54061         (test_function): Avoid literals -0.0, -0.0L.
54062         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
54063         (zerod, zerol): New variables.
54064         (test_function): Avoid literals -0.0, -0.0L.
54065         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
54066         (zerod, zerol): New variables.
54067         (test_function): Avoid literals -0.0, -0.0L.
54068         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
54069         (zerod, zerol): New variables.
54070         (test_function): Avoid literals -0.0, -0.0L.
54071         * tests/test-strtod.c (zero): New variable.
54072         (main): Avoid literal -0.0.
54073         Reported by Jonathan C. Patschke <jp@centtech.com>.
54074
54075 2008-07-31  Jim Meyering  <meyering@redhat.com>
54076
54077         sha256.h: correct definition of SHA224_DIGEST_SIZE
54078         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
54079         Reported by Paulie Pena IV <paulie4@gmail.com>.
54080         Define as 224 / 8, rather than as a literal.
54081         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
54082         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
54083         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
54084
54085 2008-07-31  Bruno Haible  <bruno@clisp.org>
54086
54087         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
54088         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
54089         Reported by Jonathan Patschke <jp@centtech.com>.
54090
54091 2008-07-31  Bruno Haible  <bruno@clisp.org>
54092
54093         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
54094         Reported by Paolo Bonzini <bonzini@gnu.org>.
54095
54096 2008-07-30  Eric Blake  <ebb9@byu.net>
54097
54098         test-strtod: allow compilation without -lm
54099         * tests/test-strtod.c (main): Avoid link dependence on fabs.
54100         Reported by Dennis Clarke <blastwave@gmail.com>.
54101
54102 2008-07-28  Jim Meyering  <meyering@redhat.com>
54103
54104         bootstrap: work also when there are no .po files in po/
54105         * build-aux/bootstrap (update_po_files): Complete the change
54106         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
54107
54108 2008-07-27  Jim Meyering  <meyering@redhat.com>
54109
54110         * users.txt: Add zile.
54111
54112 2008-07-26  Ben Pfaff  <blp@gnu.org>
54113
54114         Add missing dependencies on new m4/exponent[fdl].m4 files.
54115         * modules/isnanf-nolibm: Add m4/exponentf.m4.
54116         * modules/isnand-nolibm: Add m4/exponentd.m4.
54117         * modules/isnanl-nolibm: Add m4/exponentl.m4.
54118         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
54119         m4/isnan[fdl].m4, because the macros actually used moved.
54120         Reported by Jim Meyering.
54121
54122 2008-07-14  Ben Pfaff  <blp@gnu.org>
54123
54124         Add isinf module.
54125         * lib/isinf.c: New file.
54126         * lib/math.in.h: Define isinf macro if we have decided to replace
54127         it.
54128         * m4/isinf.m4: New file.
54129         * m4/math_h.m4: Initialize and substitute variables for isinf
54130         module.
54131         * modules/isinf: New file.
54132         * modules/isinf-tests: New file.
54133         * modules/math: Add substitutions for new module.
54134         * tests/test-isinf.c: New file.
54135         * doc/posix-functions/isinf.texi: Mention new module.
54136         * MODULES.html.sh: Mention new module.
54137
54138 2008-07-14  Ben Pfaff  <blp@gnu.org>
54139
54140         Factor out some macros for use by additional modules.
54141         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
54142         exponentf.m4.
54143         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
54144         exponentd.m4.
54145         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
54146         file exponentl.m4.
54147         * m4/exponentf.m4: New file.
54148         * m4/exponentd.m4: New file.
54149         * m4/exponentl.m4: New file.
54150         * modules/isnanf: Use new file m4/exponentf.m4.
54151         * modules/isnand: Use new file m4/exponentd.m4.
54152         * modules/isnanl: Use new file m4/exponentl.m4.
54153
54154 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
54155
54156         mktime.c: normalize tp->tm_isdst value to -1/0/1.
54157         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
54158         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
54159         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
54160
54161         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
54162         readlink on platforms without PATH_MAX.
54163
54164 2008-07-21  Eric Blake  <ebb9@byu.net>
54165
54166         Warn, not fail, on stale version.
54167         * top/GNUmakefile (_curr-ver): Tone down previous patch.
54168
54169         Don't allow installation with stale devel version number.
54170         * top/GNUmakefile (_is-install-target): New macro.
54171         (_curr-ver): Forbid installation with stale version number.
54172
54173 2008-07-20  Bruno Haible  <bruno@clisp.org>
54174
54175         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
54176         TESTS_ENVIRONMENT.
54177         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
54178
54179 2008-07-20  Bruno Haible  <bruno@clisp.org>
54180
54181         * lib/c-stack.h (c_stack_action): Add documentation.
54182         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
54183
54184 2008-07-20  Bruno Haible  <bruno@clisp.org>
54185
54186         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
54187         * modules/readlink (License): Likewise.
54188
54189 2008-07-17  Eric Blake  <ebb9@byu.net>
54190
54191         * modules/c-stack (Link): Fix typo.
54192
54193         Make c-stack use libsigsegv, when available.
54194         * modules/c-stack (Depends-on): Add libsigsegv.
54195         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
54196         needed.
54197         * lib/c-stack.c (SIGSTKSZ): Define fallback.
54198         (segv_handler, overflow_handler, c_stack_action)
54199         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
54200         implementation when libsigsegv is available, but only when using
54201         the library is necessary.
54202         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
54203         comment, explaining why XSI check fails on Linux.
54204         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
54205         * tests/test-c-stack2.sh: Tweak skip message.
54206         * NEWS: Document new link-time requirements.
54207
54208 2008-07-16  Eric Blake  <ebb9@byu.net>
54209
54210         c-stack: Expose false positives when not using libsigsegv.
54211         * modules/c-stack-tests (Files): Expand test.
54212         * tests/test-c-stack.c (main): Add means to conditionally trigger
54213         non-overflow SIGSEGV.
54214         * tests/test-c-stack2.sh: New file.
54215
54216 2008-07-14  Bruno Haible  <bruno@clisp.org>
54217
54218         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
54219         Reported by Eric Blake.
54220
54221 2008-07-14  Sam Steingold  <sds@gnu.org>
54222             Bruno Haible  <bruno@clisp.org>
54223
54224         New module libsigsegv.
54225         * modules/libsigsegv: New file.
54226         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
54227         modifications.
54228         * MODULES.html.sh (Signal handling): New section.
54229
54230 2008-07-14  Bruno Haible  <bruno@clisp.org>
54231
54232         * modules/unictype/ctype-* (Description): Add the word "function".
54233         Improves the resulting doc in MODULES.html.
54234
54235 2008-07-12  Ben Pfaff  <blp@gnu.org>
54236
54237         Add longlong module.
54238         * modules/longlong: New file.
54239
54240 2008-07-12  Bruno Haible  <bruno@clisp.org>
54241
54242         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
54243         to empty.
54244
54245 2008-07-10  Ben Pfaff  <blp@gnu.org>
54246
54247         Add isnan module.
54248         * doc/posix-functions/isnan.texi: Mention new module.
54249         * lib/math.in.h: Define isnan macro if we have decided to replace
54250         it.
54251         * m4/isnan.m4: New file.
54252         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
54253         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
54254         also.
54255         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
54256         redundancy.
54257         * m4/math_h.m4: Initialize and substitute variables for isnan
54258         module.
54259         * modules/isnan: New file.
54260         * modules/isnan-tests: New file.
54261         * modules/math: Add substitutions for new module.
54262         * tests/test-isnan.c: New file.
54263         * MODULES.html.sh: Mention new module.
54264
54265 2008-07-10  Ben Pfaff  <blp@gnu.org>
54266
54267         Add isnanf module.
54268         * lib/isnanf.m4: New file.
54269         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
54270         (gl_HAVE_ISNANF_IN_LIBM): New macro.
54271         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
54272         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
54273         * modules/isnanf: New file.
54274         * modules/isnanf-tests: New file.
54275         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
54276         files.
54277         * tests/test-isnanf-nolibm.c: factored most of its contents into
54278         new file tests/test-isnanf.h.
54279         * tests/test-isnanf.h: New file.
54280         * tests/test-isnanf.c: New file.
54281         * MODULES.html.sh: Mention new module.
54282         * doc/glibc-functions/isnanf.texi: Mention new module.
54283
54284 2008-07-10  Ben Pfaff  <blp@gnu.org>
54285
54286         Add isnand module.
54287         * lib/isnand.h: New file.
54288         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
54289         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
54290         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
54291         functionality also.
54292         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
54293         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
54294         (gl_HAVE_ISNAND_IN_LIBM): New macro.
54295         * modules/isnand: New file.
54296         * modules/isnand-tests: New file.
54297         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
54298         files.
54299         * tests/test-isnand-nolibm.c: factored most of its contents into
54300         new file tests/test-isnand.h.
54301         * tests/test-isnand.h: New file.
54302         * tests/test-isnand.c: New file.
54303         * MODULES.html.sh: Mention new module.
54304
54305 2008-07-10  Ben Pfaff  <blp@gnu.org>
54306
54307         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
54308         * lib/isnand.h: Rename lib/isnand-nolibm.h.
54309         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
54310         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
54311         * modules/isnanf-nolibm: Update references to renamed files.
54312         * modules/isnand-nolibm: Likewise.
54313         * modules/isnanf-nolibm-tests: Likewise.
54314         * modules/isnand-nolibm-tests: Likewise.
54315         * lib/frexp.c: Likewise.
54316         * lib/isfinite.c: Likewise.
54317         * lib/signbitd.c: Likewise.
54318         * lib/signbitf.c: Likewise.
54319         * lib/vasnprintf.c: Likewise.
54320         * tests/test-ceilf1.c: Likewise.
54321         * tests/test-ceilf2.c: Likewise.
54322         * tests/test-floorf1.c: Likewise.
54323         * tests/test-floorf2.c: Likewise.
54324         * tests/test-frexp.c: Likewise.
54325         * tests/test-round1.c: Likewise.
54326         * tests/test-round2.c: Likewise.
54327         * tests/test-roundf1.c: Likewise.
54328         * tests/test-strtod.c: Likewise.
54329         * tests/test-trunc1.c: Likewise.
54330         * tests/test-trunc2.c: Likewise.
54331         * tests/test-truncf1.c: Likewise.
54332         * tests/test-truncf2.c: Likewise.
54333         * NEWS: Mention the renamed header files.
54334
54335 2008-07-11  Jim Meyering  <meyering@redhat.com>
54336
54337         vc-list-files: make the last-resort awk code more portable
54338         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
54339         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
54340         does not support it.
54341
54342 2008-07-10  Eric Blake  <ebb9@byu.net>
54343
54344         Work with tar's bootstrap.
54345         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
54346         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
54347         an m4 comment.
54348
54349 2008-07-09  Jim Meyering  <meyering@redhat.com>
54350
54351         posix-shell.m4: fix typo that made this test malfunction
54352         * m4/posix-shell.m4: Remove capitalization in variable name.
54353
54354 2008-07-08  Bruno Haible  <bruno@clisp.org>
54355
54356         * m4/onceonly.m4: Update comments.
54357         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54358
54359 2008-07-04  Jim Meyering  <meyering@redhat.com>
54360
54361         * users.txt: Add vc-dwim.
54362         (bison, coreutils): Use the gitweb URL.
54363
54364 2008-07-03  Jim Meyering  <meyering@redhat.com>
54365
54366         * users.txt: Add libffcall.  From Sam Steingold.
54367
54368 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
54369
54370         getdate.y: do not ignore TZ with relative day, month or year offset
54371         * lib/getdate.y (get_date): Move the tz-handling block to follow the
54372         relative-date-handling, since otherwise, the latter would clobber the
54373         sole output (an updated Start value) of the tz-handling block.
54374         * tests/test-getdate.c: Tests for the fix
54375
54376 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54377
54378         Recognize 'foo_LIBRARIES += libgnu.a'.
54379         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
54380         makefile snippet has already specified an installation location,
54381         also using '+='.
54382
54383 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
54384
54385         getdate.y: factor out common actions
54386         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
54387         Use them in place of open-coded actions.
54388
54389 2008-07-01  Simon Josefsson  <simon@josefsson.org>
54390
54391         Add self-test for getdate module.
54392         * modules/getdate-tests: New file.
54393         * tests/test-getdate.c: New file.
54394
54395 2008-06-29  Bruno Haible  <bruno@clisp.org>
54396
54397         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
54398         .gitignore.
54399         Reported by Sylvain Beucler <beuc@beuc.net>.
54400
54401 2008-06-29  Bruno Haible  <bruno@clisp.org>
54402
54403         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
54404         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
54405
54406 2008-06-29  Bruno Haible  <bruno@clisp.org>
54407
54408         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
54409         EXTRA_DIST.
54410         Reported by Sylvain Beucler <beuc@beuc.net>.
54411
54412 2008-06-26  Jim Meyering  <meyering@redhat.com>
54413
54414         make several modules depend on the "open" module
54415         This provides slightly increased consistency when opening-for-write
54416         the name of a non-directory spelled with a trailing slash.
54417         * modules/chdir-safer: Likewise.
54418         * modules/chown: Likewise.
54419         * modules/clean-temp: Likewise.
54420         * modules/copy-file: Likewise.
54421         * modules/fchdir: Likewise.
54422         * modules/fcntl-safer: Likewise.
54423         * modules/pipe: Likewise.
54424         * modules/utime: Likewise.
54425         Prompted by Eric Blake and Bruno Haible.
54426
54427 2008-06-24  Andreas Schwab  <schwab@suse.de>
54428
54429         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
54430         literals can be used as initializers for global variables.
54431
54432 2008-06-23  Eric Blake  <ebb9@byu.net>
54433
54434         Make gnulib-cache.m4 easier to diff.
54435         * gnulib-tool (func_import): Allow newlines when reading cached
54436         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
54437
54438 2008-06-23  Bruno Haible  <bruno@clisp.org>
54439
54440         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
54441         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
54442         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
54443         m4/signalblocking.m4.
54444         (gl_PREREQ_SIGACTION): Don't invoke it.
54445         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
54446         gl_PREREQ_SIG_HANDLER_H.
54447         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54448         Don't check for sigaction here.
54449
54450 2008-06-23  Bruno Haible  <bruno@clisp.org>
54451
54452         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
54453         (install_handlers): Don't set the SA_RESETHAND flag.
54454
54455 2008-06-23  Bruno Haible  <bruno@clisp.org>
54456
54457         * m4/sigaction.m4: Comment fixes.
54458         * lib/signal.in.h: Likewise.
54459
54460 2008-06-23  Eric Blake  <ebb9@byu.net>
54461
54462         Fix typo.
54463         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
54464
54465         Avoid SA_ namespace.
54466         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
54467         Reported by Ralf Wildenhues.
54468
54469         Avoid test failure due to SA_RESTORER.
54470         * tests/test-sigaction.c (SA_MASK): New macro.
54471         (main): Avoid failing due to extension flags being set.
54472         Reported by Jim Meyering.
54473
54474         Revert use of sig-handler.h in sigprocmask.c.
54475         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
54476         it requires the existence of struct sigaction.
54477         * lib/sigprocmask.c (handler_t): Restore typedef.
54478         (rpl_signal, old_handlers): Use local type.
54479
54480 2008-06-22  Bruno Haible  <bruno@clisp.org>
54481
54482         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
54483         conditionally.
54484         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54485
54486 2008-06-22  Bruno Haible  <bruno@clisp.org>
54487
54488         * doc/posix-functions/siginterrupt.texi: Move note.
54489
54490         * lib/signal.in.h (SA_RESTART): New macro.
54491         * lib/sigaction.c: Update comment.
54492
54493         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
54494
54495         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
54496         (gl_PREREQ_SIGPROCMASK): Invoke it.
54497         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
54498
54499         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
54500
54501         * lib/sigprocmask.c: Update a comment.
54502
54503 2008-06-21  Eric Blake  <ebb9@byu.net>
54504
54505         Use sigaction module rather than signal().
54506         * modules/c-stack (Depends-on): Add sigaction.
54507         * modules/fatal-signal (Depends-on): Likewise.
54508         * modules/nanosleep (Depends-on): Likewise.
54509         * modules/sigprocmask (Files): Add sig-handler.h.
54510         * modules/sigaction (Files): Likewise.
54511         * lib/sig-handler.h (get_handler): New file, suggested by Paul
54512         Eggert.
54513         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
54514         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
54515         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
54516         (init_fatal_signals): Likewise.
54517         * lib/nanosleep.c (rpl_nanosleep): Likewise.
54518         (siginterrupt): Delete fallback.
54519         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
54520         instead.
54521         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
54522         siginterrupt.
54523
54524         New module sigaction, for mingw.
54525         * modules/sigaction: New module...
54526         * modules/sigaction-tests: ...and its test.
54527         * m4/sigaction.m4: New file.
54528         * lib/sigaction.c: Likewise.
54529         * tests/test-sigaction.c: Likewise.
54530         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
54531         * modules/signal (Makefile.am): Likewise.
54532         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
54533         needed.
54534         * doc/posix-headers/signal.texi (signal.h): Mention provided
54535         types.
54536         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
54537         that sigaction is preferable.
54538         * doc/posix-functions/sigaction.texi (sigaction): Mention new
54539         module.
54540         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54541         sigaction.
54542
54543         Improve robustness of sigprocmask by overriding signal.
54544         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
54545         is in use.
54546         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
54547         (SIGKILL, SIGSTOP): Provide fallbacks.
54548         (rpl_signal): Implement.
54549         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
54550         signal can be called inside handlers.
54551
54552         Fix nanosleep module on mingw.
54553         * modules/nanosleep (Depends-on): Add sys_select.
54554         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
54555
54556         Fix licensing of sigprocmask.
54557         * modules/raise (License): Relicense as LGPL.
54558
54559 2008-06-21  Bruno Haible  <bruno@clisp.org>
54560
54561         * lib/propername.c (proper_name_utf8): Don't use the transliterated
54562         result if it contains question marks.
54563         Reported by Michael Geng <linux@michaelgeng.de>.
54564
54565 2008-06-19  Bruno Haible  <bruno@clisp.org>
54566
54567         Fix CVS-ism.
54568         * doc/gnulib.texi: Include updated-stamp.texi.
54569         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
54570         (updated-stamp.texi): New rule.
54571         (gnulib.info): Depend on it.
54572         * doc/.gitignore: Add updated-stamp.texi.
54573         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
54574
54575 2008-06-19  Bruno Haible  <bruno@clisp.org>
54576
54577         * doc/Makefile (gnulib.info): Update and simplify dependencies.
54578         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54579
54580 2008-06-19  Eric Blake  <ebb9@byu.net>
54581
54582         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
54583         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
54584         Reported by Stepan Kasal.
54585
54586 2008-06-18  Bruno Haible  <bruno@clisp.org>
54587
54588         * lib/fatal-signal.c (init_fatal_signals): Add comment.
54589         Reported by Eric Blake.
54590
54591 2008-06-18  Eric Blake  <ebb9@byu.net>
54592
54593         Work around cygwin 1.5.25 strsignal bug.
54594         * tests/test-strsignal.c: Allow for const char *.
54595         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
54596
54597 2008-06-18  Simon Josefsson  <simon@josefsson.org>
54598
54599         * users.txt: Update URL to article and add author/date
54600         information.
54601
54602 2008-06-17  Bruno Haible  <bruno@clisp.org>
54603
54604         New macro gl_DISABLE_THREADS.
54605         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
54606         if the user did not pass --enable-threads or --disable-threads option.
54607         (gl_DISABLE_THREADS): New macro.
54608         Reported by Eric Blake <ebb9@byu.net>.
54609
54610 2008-06-17  Bruno Haible  <bruno@clisp.org>
54611
54612         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
54613         when the macro ignores it.
54614         Based on a patch by Eric Blake <ebb9@byu.net>.
54615
54616 2008-06-17  Bruno Haible  <bruno@clisp.org>
54617
54618         * modules/tls (License): Change to LGPLv2+.
54619         Reported by Eric Blake.
54620
54621 2008-06-17  Eric Blake  <ebb9@byu.net>
54622
54623         Simplify c-stack prerequisites.
54624         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
54625         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
54626         no longer requires <ucontext.h> to exist.  Optimize setrlimit
54627         check.
54628         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
54629         <sys/resource.h>.
54630
54631         Move c-stack test into testsuite.
54632         * modules/c-stack-tests: New file.
54633         * lib/c-stack.c [DEBUG]: Move test program...
54634         * tests/test-c-stack.c: ...into this new file.  Skip rather than
54635         fail test if sigaltstack is lacking.
54636         * tests/test-c-stack.sh: New driver file.
54637
54638 2008-06-16  Eric Blake  <ebb9@byu.net>
54639
54640         Use raise module consistently.
54641         * modules/fatal-signal (Depends-on): Add raise.
54642         * modules/sigprocmask (Depends-on): Likewise.
54643         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
54644         * lib/sigprocmask.c (sigprocmask): Likewise.
54645         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54646         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
54647
54648         Fix compliance bug in sigpending.
54649         * lib/sigprocmask.c (sigpending): Return pending array via
54650         parameter, not return value.
54651
54652 2008-06-14  Eric Blake  <ebb9@byu.net>
54653
54654         Improve obstack-printf test code.
54655         * tests/test-obstack-printf.c (test_function): Fix comment, and
54656         simplify usage of obstack_* in macros.  Add a test for coverage.
54657         Reported by Bruno Haible.
54658
54659 2008-06-14  Bruno Haible  <bruno@clisp.org>
54660
54661         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
54662         array size as a constant, not as a const variable.
54663         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
54664         AC_USE_SYSTEM_EXTENSIONS.
54665         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
54666         Test whether the obstack_printf function actually exists.
54667         * modules/obstack-printf (Depends-on): Add extensions.
54668         (Include): Remove obstack.h.
54669         * modules/obstack-printf-posix (Depends-on): Add extensions.
54670         (Include): Remove obstack.h.
54671
54672 2008-06-13  Eric Blake  <ebb9@byu.net>
54673
54674         Add obstack-printf and obstack-printf-posix modules.
54675         * modules/obstack-printf: New file.
54676         * modules/obstack-printf-posix: Likewise.
54677         * MODULES.html.sh (Misc): Mention them.
54678         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
54679         Likewise.
54680         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
54681         Likewise.
54682         * modules/stdio (Makefile.am): Accomodate new modules.
54683         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54684         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
54685         Declare.
54686         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
54687         functions.
54688         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
54689         (gl_REPLACE_OBSTACK_PRINTF): New macros
54690         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
54691         * tests/test-obstack-printf.c: New file.
54692         * modules/obstack-printf-tests: Likewise.
54693         * modules/obstack-printf-posix-tests: Likewise.
54694
54695 2008-06-11  Bruno Haible  <bruno@clisp.org>
54696
54697         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
54698         * lib/open.c: Include errno.h.
54699         (open): Fail when attempting to write to a file that has a trailing
54700         slash.
54701         * tests/test-open.c (main): Test against trailing slash bug.
54702         * doc/posix-functions/open.texi: Mention the trailing slash bug.
54703
54704 2008-06-10  Bruno Haible  <bruno@clisp.org>
54705
54706         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
54707         for $? to work inside the trap command, with various /bin/sh-s.
54708         * tests/test-vc-list-files-cvs.sh: Likewise.
54709
54710 2008-06-10  Bruno Haible  <bruno@clisp.org>
54711
54712         * lib/acl-internal.h: Don't include gettext.h here.
54713         * lib/set-mode-acl.c: Include gettext.h here.
54714         * lib/copy-acl.c: Likewise.
54715
54716 2008-06-10  Bruno Haible  <bruno@clisp.org>
54717
54718         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
54719         * lib/wait-process.c (wait_subprocess): Likewise.
54720         * lib/execute.h (execute): Add termsigp argument.
54721         * lib/execute.c (execute): Likewise.
54722         * lib/csharpcomp.c (compile_csharp_using_pnet,
54723         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
54724         * lib/csharpexec.c (execute_csharp_using_pnet,
54725         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
54726         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
54727         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
54728         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
54729         is_jikes_present): Update.
54730         * lib/javaexec.c (execute_java_class): Update.
54731         * lib/javaversion.c (execute_and_read_line): Update.
54732         * NEWS: Document the changes.
54733         Reported by Eric Blake.
54734
54735 2008-06-10  Eric Blake  <ebb9@byu.net>
54736
54737         Add missing include.
54738         * tests/test-strstr.c (includes): Add <signal.h>.
54739         * tests/test-strcasestr.c (includes): Likewise.
54740         * tests/test-memmem.c (includes): Likewise.
54741
54742 2008-06-10  Bruno Haible  <bruno@clisp.org>
54743
54744         * lib/wait-process.c (wait_subprocess): Add an assertion.
54745
54746 2008-06-10  Bruno Haible  <bruno@clisp.org>
54747
54748         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
54749
54750 2008-06-10  Bruno Haible  <bruno@clisp.org>
54751
54752         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
54753         using alarm().
54754         * tests/test-strcasestr.c (main): Likewise.
54755         * tests/test-strstr.c (main): Likewise.
54756
54757 2008-06-09  Bruno Haible  <bruno@clisp.org>
54758
54759         Work around the Solaris 10 ACE ACLs ABI change.
54760         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
54761         declare if ACL_NO_TRIVIAL is present.
54762         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
54763         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
54764         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
54765         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
54766         define if ACL_NO_TRIVIAL is present.
54767         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
54768         and use the current ABI.
54769         (file_has_acl): Use same #if condition as elsewhere.
54770         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
54771         in use, and use the current ABI.
54772         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
54773         Reported by Jim Meyering.
54774
54775 2008-06-09  Eric Blake  <ebb9@byu.net>
54776
54777         Work around environments that (stupidly) ignore SIGALRM.
54778         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
54779         before using alarm().
54780         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54781         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54782         Reported by Ian Beckwith <ianb@erislabs.net>.
54783
54784         Produce autobuild blurb earlier in log.
54785         * modules/autobuild (configure.ac-early): Move AB_INIT here.
54786
54787 2008-06-09  Jim Meyering  <meyering@redhat.com>
54788         and Ondřej Vašík  <ovasik@redhat.com>
54789
54790         utimens.c: correct kernel bug work-around
54791         Ondřej Vašík found that the invalid return value of 280 indicates
54792         failure, not success, and the kernel bug we're trying to work
54793         around affects not just the utimensat call, but also the fallback
54794         futimens call.
54795         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
54796         not success.
54797         [HAVE_FUTIMENS]: Use the same work-around, here.
54798
54799 2008-06-09  Jim Meyering  <meyering@redhat.com>
54800
54801         add more guards around definition of ACE_-related code
54802         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
54803         ALLOW and ACE_OWNER are also defined.
54804
54805 2008-06-08  Bruno Haible  <bruno@clisp.org>
54806
54807         * lib/acl-internal.h: Add me as co-author.
54808         * lib/file-has-acl.c: Likewise.
54809         * lib/set-mode-acl.c: Likewise.
54810         * lib/copy-acl.c: Likewise.
54811
54812 2008-06-08  Bruno Haible  <bruno@clisp.org>
54813
54814         Add support for AIX ACLs.
54815         * lib/acl-internal.h (acl_nontrivial): New declaration.
54816         * lib/file-has-acl.c (acl_nontrivial): New function.
54817         (file_has_acl): Add implementation using AIX 4 ACL API.
54818         * lib/set-mode-acl.c (qset_acl): Likewise.
54819         * lib/copy-acl.c (qcopy_acl): Likewise.
54820
54821 2008-06-08  Bruno Haible  <bruno@clisp.org>
54822
54823         Add support for HP-UX ACLs.
54824         * lib/acl-internal.h (acl_nontrivial): New declaration.
54825         * lib/file-has-acl.c (acl_nontrivial): New function.
54826         (file_has_acl): Add implementation using HP-UX 11 ACL API.
54827         * lib/set-mode-acl.c (qset_acl): Likewise.
54828         * lib/copy-acl.c (qcopy_acl): Likewise.
54829
54830 2008-06-08  Bruno Haible  <bruno@clisp.org>
54831
54832         Add support for Cygwin ACLs.
54833         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
54834         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
54835         the chmod_or_fchmod call.
54836         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
54837
54838 2008-06-08  Bruno Haible  <bruno@clisp.org>
54839
54840         Fix bug with setuid modes in Solaris 10+ code.
54841         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
54842         succeeded, when the mode contains some special bits.
54843
54844 2008-06-08  Bruno Haible  <bruno@clisp.org>
54845
54846         Add support for Solaris 7..10 ACLs.
54847         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
54848         declarations.
54849         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
54850         functions.
54851         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
54852         * lib/set-mode-acl.c (qset_acl): Likewise.
54853         * lib/copy-acl.c (qcopy_acl): Likewise.
54854
54855 2008-06-08  Bruno Haible  <bruno@clisp.org>
54856
54857         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
54858         declaration.
54859         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
54860         (acl_access_nontrivial): Remove MacOS X case.
54861         (file_has_acl): Use acl_extended_nontrivial.
54862         * lib/copy-acl.c (qcopy_acl): Likewise.
54863
54864 2008-06-08  Bruno Haible  <bruno@clisp.org>
54865
54866         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
54867
54868 2008-06-08  Jim Meyering  <meyering@redhat.com>
54869
54870         * modules/acl (Maintainer): Add Bruno Haible.
54871
54872 2008-06-07  Bruno Haible  <bruno@clisp.org>
54873
54874         Improve support for Tru64 ACLs.
54875         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
54876         ACL on OSF/1.
54877
54878 2008-06-07  Bruno Haible  <bruno@clisp.org>
54879
54880         Add support for MacOS X ACLs.
54881         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
54882         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
54883         * lib/set-mode-acl.c (qset_acl): Likewise.
54884         * lib/copy-acl.c (qcopy_acl): Likewise.
54885
54886 2008-06-07  Bruno Haible  <bruno@clisp.org>
54887
54888         Fix memory leak introduced on 2008-05-22.
54889         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
54890         use.
54891
54892 2008-06-07  Bruno Haible  <bruno@clisp.org>
54893
54894         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
54895         to construct an empty ACL.
54896
54897 2008-06-07  Bruno Haible  <bruno@clisp.org>
54898
54899         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
54900         precisely.
54901         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
54902
54903 2008-06-07  Bruno Haible  <bruno@clisp.org>
54904
54905         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
54906         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
54907
54908 2008-06-07  Bruno Haible  <bruno@clisp.org>
54909
54910         * doc/posix-functions/_setjmp.texi: Explain the use of this function
54911         regardless of POSIX.
54912         * doc/posix-functions/_longjmp.texi: Likewise.
54913         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
54914         SystemV platform in this case.
54915
54916 2008-06-06  Eric Blake  <ebb9@byu.net>
54917
54918         Document abort() bugs.
54919         * doc/posix-functions/abort.texi (abort): Mention anomalies.
54920
54921         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
54922         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
54923         sigsetjmp.
54924         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
54925         siglongjmp, but only as a macro.
54926         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
54927         is obsolete.
54928         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
54929
54930         Tweak documentation to cover cygwin argz bugs.
54931         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
54932         argz bug fix; no code change needed since no cygwin releases
54933         occurred between the last fix and the bug being tested.
54934         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
54935         module and recently fixed cygwin bugs.
54936         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
54937         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
54938         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
54939         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
54940         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
54941         Likewise.
54942         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
54943         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
54944         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
54945         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
54946         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
54947         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
54948         Likewise.
54949
54950         Avoid gcc warning on cygwin.
54951         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
54952         !ACL_NO_TRIVIAL]: Avoid unused variable.
54953
54954 2008-06-05  Eric Blake  <ebb9@byu.net>
54955
54956         Be tolerant of UNKNOWN version in gnulib-tool test dir.
54957         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
54958         git-version-gen fails to come up with a version.
54959         Reported by Simon Josefsson.
54960
54961 2008-06-05  Jim Meyering  <meyering@redhat.com>
54962             Paul Eggert  <eggert@cs.ucla.edu>
54963
54964         utimens.c: work around a probable Linux kernel bug
54965         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
54966         appears to be a kernel bug that causes utimensat to return 280
54967         instead of 0, indicating success.
54968
54969 2008-06-04  Bruno Haible  <bruno@clisp.org>
54970
54971         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
54972         2008-06-01 commit.
54973
54974 2008-06-04  Bruno Haible  <bruno@clisp.org>
54975
54976         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
54977         * lib/file-has-acl.c (acl_access_nontrivial): New function.
54978         (file_has_acl): Use it. Save errno afterwards.
54979         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
54980
54981 2008-06-03  Bruno Haible  <bruno@clisp.org>
54982
54983         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
54984         draft code. Simplify #ifs.
54985         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
54986         Put Solaris code after POSIX-draft code. Fix comments regarding
54987         Solaris 10, HP-UX. Mention Cygwin.
54988         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
54989
54990 2008-06-03  Eric Blake  <ebb9@byu.net>
54991
54992         Provide fallback for older kernels.
54993         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
54994         Provide runtime fallback if kernel lacks support.
54995         Reported by Mike Frysinger.
54996
54997 2008-06-02  Bruno Haible  <bruno@clisp.org>
54998
54999         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
55000         it exists.
55001
55002 2008-06-02  Bruno Haible  <bruno@clisp.org>
55003
55004         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
55005         * lib/copy-acl.c (qcopy_acl): Update comment.
55006
55007 2008-06-02  Bruno Haible  <bruno@clisp.org>
55008
55009         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
55010         like ACL APIs.
55011
55012 2008-06-02  Bruno Haible  <bruno@clisp.org>
55013
55014         * tests/test-file-has-acl.sh: Use different code for Cygwin.
55015         * tests/test-set-mode-acl.sh: Likewise.
55016         * tests/test-copy-acl.sh: Likewise.
55017         * tests/test-copy-file.sh: Likewise.
55018
55019 2008-06-02  Bruno Haible  <bruno@clisp.org>
55020
55021         * tests/test-file-has-acl.sh: Remove unused code.
55022
55023 2008-06-01  Bruno Haible  <bruno@clisp.org>
55024
55025         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
55026         (copy_acl): Just a wrapper around qcopy_acl that emits the error
55027         messages.
55028         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
55029
55030 2008-06-01  Bruno Haible  <bruno@clisp.org>
55031
55032         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
55033         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
55034         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
55035         APIs.
55036         * modules/acl-tests (configure.ac): Remove tests now contained in
55037         m4/acl.m4.
55038
55039 2008-06-02  Jim Meyering  <meyering@redhat.com>
55040
55041         announce-gen: use a better key-server host name
55042         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
55043         it may be more consistently reliable.  Suggested by Werner Koch
55044         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
55045
55046 2008-06-01  Bruno Haible  <bruno@clisp.org>
55047
55048         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
55049         Reported by Voroskoi Andras <voroskoi@gmail.com>.
55050
55051 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
55052
55053         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
55054
55055 2008-06-01  Bruno Haible  <bruno@clisp.org>
55056
55057         New ACL tests.
55058         * tests/test-file-has-acl.sh: New file.
55059         * tests/test-file-has-acl.c: New file.
55060         * tests/test-set-mode-acl.sh: New file.
55061         * tests/test-set-mode-acl.c: New file.
55062         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
55063         * tests/test-copy-acl.c: New file.
55064         * modules/acl-tests: New file, based on modules/copy-file-tests.
55065         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
55066         (Depends-on): Add acl-tests.
55067         (configure.ac): Remove checks.
55068         (Makefile.am): Don't create test-sameacls program here any more.
55069
55070 2008-06-01  Bruno Haible  <bruno@clisp.org>
55071
55072         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
55073         * tests/test-sameacls.c: Include progname.h.
55074         (main): Invoke set_program_name. Portability fixes for MacOS X,
55075         Solaris, HP-UX.
55076
55077 2008-06-01  Bruno Haible  <bruno@clisp.org>
55078
55079         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
55080         function.
55081         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
55082
55083 2008-06-01  Bruno Haible  <bruno@clisp.org>
55084
55085         * modules/rpmatch (Depends-on): Add strdup.
55086
55087 2008-06-01  Bruno Haible  <bruno@clisp.org>
55088
55089         * lib/pipe.c: Include unistd-safer.h.
55090         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
55091         * modules/pipe (Depends-on): Add unistd-safer.
55092
55093 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55094
55095         * modules/autobuild (configure.ac): Call AB_INIT.
55096
55097 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55098
55099         * tests/test-getaddrinfo.c: Don't print debug messages by default.
55100         Suggested by Bruno Haible <bruno@clisp.org>.
55101
55102 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55103
55104         * tests/test-base64.c: Cast size_t to unsigned long when invoking
55105         printf.  Use %lu instead of %d.  Reported by Bruno Haible
55106         <bruno@clisp.org>.
55107
55108 2008-05-29  Eric Blake  <ebb9@byu.net>
55109
55110         Prefer new POSIX 200x interfaces over futimesat.
55111         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
55112         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
55113         when available.
55114         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
55115
55116 2008-05-28  Bruno Haible  <bruno@clisp.org>
55117
55118         * modules/stpcpy (License): Change to LGPLv2+.
55119         Requested by David Lutterkort <dlutter@redhat.com>.
55120
55121 2008-05-27  Bruno Haible  <bruno@clisp.org>
55122
55123         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
55124         current mingw.
55125         Reported by Jose E. Marchesi <jemarch@gnu.org>.
55126
55127 2008-05-27  Bruno Haible  <bruno@clisp.org>
55128
55129         * modules/iconv_open (Link): New section, from module 'iconv'.
55130         * modules/striconv (Link): Likewise.
55131         * modules/striconveh (Link): Likewise.
55132         * modules/xstriconv (Link): Likewise.
55133         * modules/unicodeio (Link): Likewise.
55134         * modules/propername (Link): Likewise.
55135         Reported by Jim Meyering.
55136
55137 2008-05-26  Jim Meyering  <meyering@redhat.com>
55138
55139         sha256: do not artificially restrict buffer length to be < 2^32
55140         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
55141         uint32_t to size_t.
55142         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
55143         to match.
55144
55145         avoid unaligned access errors, e.g., on sparc
55146         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
55147         direct access through a possibly-unaligned uint64* pointer.
55148         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
55149         direct access through a possibly-unaligned uint32* pointer.
55150         Prompted by this patch from Tom "spot" Callaway:
55151         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
55152
55153         sha512.c: fix typo in comment
55154         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
55155
55156 2008-05-25  Bruno Haible  <bruno@clisp.org>
55157
55158         * lib/set-mode-acl.c: Renamed from lib/acl.c.
55159         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
55160         (Makefile.am): Update lib_SOURCES.
55161
55162 2008-05-25  Bruno Haible  <bruno@clisp.org>
55163
55164         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
55165
55166 2008-05-25  Jim Meyering  <meyering@redhat.com>
55167
55168         useless-if-before-free: freed expr may have white-space differences
55169         * build-aux/useless-if-before-free: Recognize cases in which the
55170         freed expression differs from the tested one in embedded white
55171         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
55172         $1 was used, so we can't make any regexp shy.  Improved tests now
55173         detect this.
55174
55175         useless-if-before-free: accept white space in the expression.
55176         * build-aux/useless-if-before-free: For now, any white space
55177         in the expression must be identical in the free argument.
55178
55179         useless-if-before-free: efficiency tweak
55180         * build-aux/useless-if-before-free: Make the expression-matching
55181         regexp "shy".
55182         Make the *outer* regexp shy, not the expr-matching one.
55183
55184         update code-in-comment to accept cast of free arg
55185         * build-aux/useless-if-before-free: Update regexp.
55186
55187 2008-05-25  Bruno Haible  <bruno@clisp.org>
55188
55189         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
55190         * modules/copy-file-tests (Files, Makefile.am): Update.
55191         * tests/test-copy-file.c (func_test_copy): Update.
55192
55193 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
55194
55195         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
55196
55197 2008-05-23  Bruno Haible  <bruno@clisp.org>
55198
55199         Improve support for ACLs on OSF/1.
55200         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
55201         Remove fallback for unknown flavors of ACLs.
55202
55203 2008-05-22  Bruno Haible  <bruno@clisp.org>
55204
55205         Add support for ACLs on OSF/1.
55206         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
55207         replacements.
55208         (acl_free_text): New macro fallback.
55209         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
55210         acl_free.
55211         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
55212         acl_free_text function. Require AC_C_INLINE.
55213
55214 2008-05-22  Bruno Haible  <bruno@clisp.org>
55215
55216         Make copy_acl work on MacOS X 10.5.
55217         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
55218         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
55219         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
55220         If MODE_INSIDE_ACL, don't assume that every system has the same text
55221         representation for ACLs as FreeBSD.
55222         * lib/copy-acl.c (copy_acl): Add support for platforms with
55223         !MODE_INSIDE_ACL.
55224         * lib/file-has-acl.c (file_has_acl): Likewise.
55225         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
55226         FreeBSD, MacOS X, or IRIX, respectively.
55227
55228 2008-05-22  Bruno Haible  <bruno@clisp.org>
55229
55230         * lib/acl.h: Don't include <sys/acl.h>.
55231         (GETACLCNT): Move fallback to lib/acl-internal.h.
55232         * lib/acl-internal.h: Include <sys/acl.h> here.
55233         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
55234
55235 2008-05-22  Bruno Haible  <bruno@clisp.org>
55236
55237         Split off copy_acl function to separate file.
55238         * lib/copy-acl.c: New file, extracted from lib/acl.c.
55239         * lib/acl.c (copy_acl): Moved function to separate file.
55240         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
55241         * modules/acl (Files): Add lib/copy-acl.c.
55242         (Makefiles.am): Augment lib_SOURCES.
55243
55244 2008-05-22  Bruno Haible  <bruno@clisp.org>
55245
55246         * modules/copy-file-tests: New file.
55247         * tests/test-copy-file.sh: New file.
55248         * tests/test-copy-file.c: New file.
55249         * tests/test-copy-file-sameacls.c: New file.
55250
55251 2008-05-22  Eric Blake  <ebb9@byu.net>
55252
55253         Avoid gcc warning.
55254         * tests/test-memcmp.c (main): Pass NULL indirectly.
55255
55256 2008-05-21  Bruno Haible  <bruno@clisp.org>
55257
55258         Add reference doc about ACLs.
55259         * doc/acl-resources.txt: New file.
55260         * doc/acl-cygwin.txt: New file.
55261
55262 2008-05-21  Bruno Haible  <bruno@clisp.org>
55263
55264         Avoid one more warning from gcc.
55265         * lib/vasnprintf.c (IF_LINT): Update comments.
55266         (VASNPRINTF): Use it also for the 'prefix' array initializer.
55267
55268 2008-05-21  Jim Meyering  <meyering@redhat.com>
55269
55270         avoid a warning from gcc
55271         * lib/vasnprintf.c (IF_LINT): Define.
55272         (scale10_round_decimal_long_double):
55273         Use it to avoid a "may be used uninitialized" warning.
55274         (scale10_round_decimal_double): Likewise.
55275
55276 2008-05-21  Simon Josefsson  <simon@josefsson.org>
55277
55278         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
55279         declared.
55280
55281 2008-05-20  Bruno Haible  <bruno@clisp.org>
55282
55283         * tests/test-memcmp.c (main): Test also the sign of the result. Test
55284         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
55285
55286 2008-05-20  Simon Josefsson  <simon@josefsson.org>
55287
55288         * modules/memcmp-tests: New file.
55289         * tests/test-memcmp.c: New file.
55290
55291 2008-05-19  Bruno Haible  <bruno@clisp.org>
55292
55293         * modules/propername (Notice, configure.ac): Put quoted "..." into
55294         --keyword option.
55295         * lib/propername.h: Update comments accordingly.
55296         Reported by Eric Blake.
55297
55298 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
55299
55300         * modules/getpass-gnu (Depends-on): Add fseeko.
55301
55302 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55303
55304         * modules/base64-tests: New file.
55305
55306 2008-05-19  Bo Borgerson <gigabo@gmail.com>
55307
55308         * lib/base64.c (base64_decode_ctx): If a decode context structure
55309         was passed in use it to ignore newlines.  If a context structure
55310         was _not_ passed in, continue to treat newlines as garbage (this
55311         is the historical behavior).  Formerly base64_decode.
55312         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55313         takes a decode context structure.
55314         * lib/base64.h (base64_decode): Macro for four-argument calls.
55315         (base64_decode_alloc): Likewise.
55316         * lib/base64.c (base64_decode_ctx): If a decode context structure
55317         was passed in use it to ignore newlines.  If a context structure
55318         was _not_ passed in, continue to treat newlines as garbage (this
55319         is the historical behavior).  Formerly base64_decode.
55320         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55321         takes a decode context structure.
55322         * lib/base64.h (base64_decode): Macro for four-argument calls.
55323         (base64_decode_alloc): Likewise.
55324
55325 2008-05-19  Jim Meyering  <meyering@redhat.com>
55326
55327         avoid a warning from gcc
55328         * lib/trim.c (IF_LINT): Define.
55329         (trim2): Use it to avoid a "may be used uninitialized" warning.
55330
55331         Fix doc typo.
55332         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
55333
55334 2008-05-19  Bruno Haible  <bruno@clisp.org>
55335
55336         * doc/glibc-functions/getpass.texi: Document limits of other
55337         implementations.
55338
55339 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55340             Bruno Haible <bruno@clisp.org>
55341
55342         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
55343
55344 2008-05-18  Bruno Haible  <bruno@clisp.org>
55345
55346         * modules/propername: New file, from GNU gettext.
55347         * lib/propername.h: New file, from GNU gettext.
55348         * lib/propername.c: New file, from GNU gettext.
55349         * MODULES.html.sh (Internationalization functions): Add propername.
55350
55351 2008-05-16  Jim Meyering  <meyering@redhat.com>
55352             Bruno Haible  <bruno@clisp.org>
55353
55354         Avoid some warnings from "gcc -Wshadow".
55355         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
55356
55357 2008-05-15  Eric Blake  <ebb9@byu.net>
55358
55359         Extend previous patch to cygwin 1.7.0.
55360         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
55361         fast implementation in cygwin >= 1.7.0.
55362         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55363         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55364
55365 2008-05-15  Bruno Haible  <bruno@clisp.org>
55366
55367         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
55368         implementation in glibc >= 2.9.
55369         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55370         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55371
55372 2008-05-15  Bruno Haible  <bruno@clisp.org>
55373
55374         * MODULES.html.sh (Internationalization functions): Remove linebreak.
55375         (Unicode string functions): Add unilbrk/*.
55376         Reported by Karl Berry.
55377
55378 2008-05-15  Eric Blake  <ebb9@byu.net>
55379
55380         Fix violation of <stdbool.h> replacement in regex.
55381         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
55382         * lib/regexec.c (re_search_internal): Likewise.
55383         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
55384
55385 2008-05-15  Jim Meyering  <meyering@redhat.com>
55386
55387         avoid distracting test output when git or cvs is not found
55388         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
55389         * tests/test-vc-list-files-git.sh: Likewise.
55390
55391 2008-05-15  Eric Blake  <ebb9@byu.net>
55392
55393         Glibc finally accepted the memmem speedup code, bugzilla #5514.
55394         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
55395         glibc version.
55396         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
55397         * doc/posix-functions/strstr.texi (strstr): Likewise.
55398         * lib/str-two-way.h (MAX): Sychronize with glibc.
55399
55400 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
55401
55402         * lib/regcomp.c (optimize_utf8): Add a note on why we test
55403         opr.ctx_type.
55404         (calc_first): Initialize constraint field.
55405         (duplicate_node_closure): Use it instead of special casing ANCHORS.
55406         Fix grammar.
55407         (duplicate_node): Merge constraint field for all node types.
55408         (calc_eclosure_iter): Look at constraint field for all node types.
55409         * lib/regex_internal.c (create_cd_newstate): Don't look at
55410         opr.ctx_type.
55411
55412 2008-05-14  Bruno Haible  <bruno@clisp.org>
55413
55414         Help GCC to do better code generation.
55415         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
55416         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
55417         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
55418         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
55419         Declare with attribute 'malloc' if supported.
55420
55421 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
55422
55423         use "echo STR|wc -c" rather than unportable "expr length STR"
55424         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
55425         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
55426
55427 2008-05-14  Jim Meyering  <meyering@redhat.com>
55428
55429         use dd ibs=$n count=1 ... rather than less-portable head -c$n
55430         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
55431         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
55432         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
55433         via Collin Lasse.
55434
55435 2008-05-14  Eric Blake  <ebb9@byu.net>
55436
55437         Avoid quadratic growth in gl_LIBSOURCES.
55438         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
55439         Suggested by Bruno Haible.
55440
55441         Test xmemdup0.
55442         * modules/xmemdup0-tests: New file.
55443         * tests/test-xmemdup0.c: Likewise.
55444
55445 2008-05-13  Eric Blake  <ebb9@byu.net>
55446
55447         Split xmemdup0 into its own module.
55448         * modules/xmemdup0: New file.
55449         * lib/xmemdup0.h: Likewise.
55450         * lib/xmemdup0.c: Likewise.
55451         * MODULES.html.sh (Memory management functions): Add xmemdup0.
55452         * lib/xalloc.h (xmemdup0): Remove.
55453         * lib/xmalloc.c (xmemdup0): Likewise.
55454
55455 2008-05-13  Eric Blake  <ebb9@byu.net>
55456             Bruno Haible  <bruno@clisp.org>
55457
55458         Reduce number of forks required during autoconf.
55459         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
55460         and gl_LIBSOURCES_DIR.
55461         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
55462         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
55463         m4_syscmd per file.
55464         <m4_foreach_w>: Move...
55465         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
55466
55467 2008-05-13  Eric Blake  <ebb9@byu.net>
55468
55469         * gnulib-tool: Fix various comment typos.
55470
55471 2008-05-12  Bruno Haible  <bruno@clisp.org>
55472
55473         Tailor the linebreaking algorithm.
55474         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
55475
55476 2008-05-12  Bruno Haible  <bruno@clisp.org>
55477
55478         Update to Unicode 5.0.0.
55479         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55480         LBP_JV, LBP_JT. Redistribute values.
55481         (unilbrk_table): Change size.
55482         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
55483         Unicode TR#14 rev. 22.
55484         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55485         LBP_JV, LBP_JT. Redistribute values.
55486         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
55487         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
55488         Update.
55489         * lib/unilbrk/lbrkprop1.h: Regenerated.
55490         * lib/unilbrk/lbrkprop2.h: Regenerated.
55491         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
55492         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
55493         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
55494         Likewise.
55495         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
55496         Likewise.
55497         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
55498         result.
55499         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
55500         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
55501         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
55502         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
55503         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
55504         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
55505
55506 2008-05-11  Bruno Haible  <bruno@clisp.org>
55507
55508         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
55509
55510 2008-05-11  Bruno Haible  <bruno@clisp.org>
55511
55512         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
55513         * modules/unilbrk/gen-lbrk: New file.
55514
55515 2008-05-11  Bruno Haible  <bruno@clisp.org>
55516
55517         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
55518         * m4/sha512.m4 (gl_SHA512): Likewise.
55519
55520 2008-05-11  Jim Meyering  <meyering@redhat.com>
55521
55522         New modules: crypto/sha256, crypto/sha512 (from coreutils)
55523         * modules/crypto/sha256: New file.
55524         * modules/crypto/sha512: Likewise.
55525         * lib/sha256.c: Likewise.
55526         * lib/sha256.h: Likewise.
55527         * lib/sha512.c: Likewise.
55528         * lib/sha512.h: Likewise.
55529         * lib/u64.h: Likewise.
55530         * m4/sha256.m4: Likewise.
55531         * m4/sha512.m4: Likewise.
55532         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
55533
55534 2008-05-10  Bruno Haible  <bruno@clisp.org>
55535
55536         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
55537         (Input/Output <stdio.h>): Add xprintf.
55538         (Signal handling <signal.h>): Add strsignal.
55539         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
55540         (Core language properties): Add func.
55541         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
55542         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
55543         strings.
55544         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
55545         (Input/output): New section.
55546         (File system functions): Add openat-die, stat-macros.
55547         (Networking functions): Add sockets.
55548         (Unicode string functions): Add unictype/*.
55549         (Support for building libraries and executables): Add gperf.
55550         (Support for building documentation): Add agpl-3.0.
55551         (Misc): Add nocrash.
55552
55553 2008-05-10  Bruno Haible  <bruno@clisp.org>
55554
55555         * modules/unictype/gen-ctype: New file.
55556
55557 2008-05-10  Jim Meyering  <meyering@redhat.com>
55558
55559         Make chdir-safer.c more efficient on a system with no symlinks.
55560         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
55561         also if ELOOP is zero.  Suggested by Bruno Haible.
55562
55563         Make chdir-safer.c slightly safer.
55564         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
55565         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
55566
55567         Avoid compile failure on systems without ELOOP (like mingw).
55568         * lib/chdir-safer.c (ELOOP): Define if not already defined.
55569         Reported by Bruno Haible.
55570
55571 2008-05-10  Bruno Haible  <bruno@clisp.org>
55572
55573         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
55574         (is_utf8_encoding): Use a case-insensitive comparison.
55575         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
55576         streq.
55577
55578 2008-05-10  Bruno Haible  <bruno@clisp.org>
55579
55580         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
55581         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
55582         * lib/unilbrk/ulc-common.h (iconv_string_length,
55583         iconv_string_keeping_offsets): Remove declarations.
55584         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
55585         Don't include <iconv.h>, streq.h, xsize.h.
55586         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
55587         conversion.
55588         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
55589         <iconv.h>, streq.h, xsize.h.
55590         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
55591         conversion.
55592         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
55593         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
55594         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
55595         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
55596
55597 2008-05-10  Bruno Haible  <bruno@clisp.org>
55598
55599         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
55600         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
55601
55602         * modules/unilbrk/u32-width-linebreaks-tests: New file.
55603         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
55604
55605         * modules/unilbrk/u16-width-linebreaks-tests: New file.
55606         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
55607
55608         * modules/unilbrk/u8-width-linebreaks-tests: New file.
55609         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
55610
55611         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
55612         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
55613
55614         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
55615         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
55616
55617         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
55618         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
55619
55620         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
55621         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
55622
55623 2008-05-10  Bruno Haible  <bruno@clisp.org>
55624
55625         Split up 'linebreak' module.
55626         * lib/unilbrk.h: New file, based on lib/linebreak.h.
55627         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
55628         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
55629         modifications.
55630         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
55631         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
55632         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
55633         lib/linebreak.c.
55634         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
55635         lib/linebreak.c.
55636         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
55637         lib/linebreak.c.
55638         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
55639         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
55640         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
55641         lib/linebreak.c.
55642         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
55643         lib/linebreak.c.
55644         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
55645         lib/linebreak.c.
55646         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
55647         lib/linebreak.c.
55648         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
55649         lib/linebreak.c.
55650         * modules/unilbrk/base: New file.
55651         * modules/unilbrk/tables: New file.
55652         * modules/unilbrk/u8-possible-linebreaks: New file.
55653         * modules/unilbrk/u16-possible-linebreaks: New file.
55654         * modules/unilbrk/u32-possible-linebreaks: New file.
55655         * modules/unilbrk/ulc-common: New file.
55656         * modules/unilbrk/ulc-possible-linebreaks: New file.
55657         * modules/unilbrk/u8-width-linebreaks: New file.
55658         * modules/unilbrk/u16-width-linebreaks: New file.
55659         * modules/unilbrk/u32-width-linebreaks: New file.
55660         * modules/unilbrk/ulc-width-linebreaks: New file.
55661         * lib/linebreak.h: Remove file.
55662         * lib/linebreak.c: Remove file.
55663         * m4/linebreak.m4: Remove file.
55664         * modules/linebreak: Remove file.
55665         * NEWS: Mention the changes.
55666
55667 2008-05-09  Eric Blake  <ebb9@byu.net>
55668
55669         Add xmemdup0.
55670         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
55671         implementation.
55672         * lib/xmalloc.c (xmemdup0): New C implementation.
55673
55674 2008-05-08  Bruno Haible  <bruno@clisp.org>
55675
55676         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
55677
55678 2008-05-07  Eric Blake  <ebb9@byu.net>
55679
55680         Support cross-compilation of <wctype.h>.
55681         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
55682         AC_CACHE_CHECK.
55683
55684 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
55685
55686         * build-aux/vc-list-files: Add support for bzr.
55687
55688 2008-05-03  Jim Meyering  <meyering@redhat.com>
55689
55690         avoid failed assertion with tight malloc
55691         * tests/test-getndelim2.c: Correct an off-by-one assertion.
55692
55693 2008-05-03  Simon Josefsson  <simon@josefsson.org>
55694
55695         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
55696         are needed from arpa/inet.h.
55697         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
55698         Reported by Bruno Haible.
55699
55700 2008-05-02  Jim Meyering  <meyering@redhat.com>
55701
55702         avoid compilation error on FreeBSD 6
55703         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
55704
55705 2008-05-01  Jim Meyering  <meyering@redhat.com>
55706
55707         useless-if-before-free: correct --help's exit status description
55708         * build-aux/useless-if-before-free (usage): Like grep, exit 0
55709         for one or more matches, etc.  Reported by Bruno Haible.
55710
55711         vc-list-files: make the stand-alone gnulib test work
55712         * modules/vc-list-files-tests (configure.ac):
55713         Define and AC_SUBST abs_aux_dir.
55714         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
55715         $(abs_top_srcdir) to each script and having each of them
55716         duplicate the work of setting PATH, set PATH here, using
55717         the new variable, abs_aux_dir instead.
55718         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
55719         * tests/test-vc-list-files-git.sh: Likewise.
55720         Reported by Bruno Haible.
55721
55722 2008-05-01  Bruno Haible  <bruno@clisp.org>
55723
55724         * lib/getndelim2.c (getndelim2): Fix newsize computation during
55725         reallocation. Rename 'done' to 'found_delimiter'.
55726
55727 2008-05-01  Jim Meyering  <meyering@redhat.com>
55728
55729         vc-list-files: accommodate /bin/sh like the one from Solaris 10
55730         * build-aux/vc-list-files: Use `...`, not $(...).
55731
55732 2008-04-30  Jim Meyering  <meyering@redhat.com>
55733
55734         add tests for vc-list-files
55735         * modules/vc-list-files-tests: New module.
55736         * tests/test-vc-list-files-cvs.sh: New file.
55737         * tests/test-vc-list-files-git.sh: New file.
55738
55739         avoid a warning from gcc
55740         * lib/getndelim2.c (IF_LINT): Define.
55741         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
55742
55743         vc-list-files: work properly with build-aux/cvsu, too
55744         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
55745         to all cvs-based clauses.
55746
55747         vc-list-files: work properly in the CVS+awk case, too
55748         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
55749
55750         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
55751         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
55752         take more than one file argument, so .  Add quotes, just in case $dir
55753         ever contains a shell meta-character.  Prompted by Soren Hansen in
55754         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
55755
55756 2008-04-29  Eric Blake  <ebb9@byu.net>
55757
55758         Optimize getndelim2 to use block operations when possible.
55759         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
55760         freadseek, and memchr2.
55761         * lib/getndelim2.c (getndelim2): Use them for block reads.
55762
55763 2008-04-29  Bruno Haible  <bruno@clisp.org>
55764
55765         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
55766         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55767         * modules/inet_ntop (Depends-on): Add extensions.
55768         * modules/inet_pton (Depends-on): Likewise.
55769         Reported by Simon Josefsson.
55770
55771 2008-04-29  Jim Meyering  <meyering@redhat.com>
55772
55773         When the is more than one match in a block, match all of them.
55774         * build-aux/useless-if-before-free: Iterate through each block
55775         until there are no more matches.
55776
55777         Fix broken useless-if-before-free script.
55778         * build-aux/useless-if-before-free: Fix typo: missing "?" after
55779         the expression to match cast of argument to free-like function.
55780
55781 2008-04-29  Eric Blake  <ebb9@byu.net>
55782
55783         Use new header.
55784         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
55785
55786 2008-04-29  Jim Meyering  <meyering@redhat.com>
55787
55788         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
55789         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
55790         by gnulib to exist and to declare e.g., inet_ntop.
55791         Don't include "inet_ntop.h", now removed.
55792
55793         * m4/arpa_inet_h.m4: Remove trailing blanks.
55794
55795 2008-04-29  Eric Blake  <ebb9@byu.net>
55796
55797         Silence valgrind on safe reads beyond potential array bounds.
55798         * lib/rawmemchr.valgrind: New file.
55799         * lib/strchrnul.valgrind: Likewise.
55800         * modules/rawmemchr (Files): Distribute new file.
55801         * modules/strchrnul (Files): Likewise.
55802         Suggested by Bruno Haible.
55803
55804 2008-04-29  Bruno Haible  <bruno@clisp.org>
55805
55806         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
55807         (inet_ntop, inet_pton): Change portability warning's wording.
55808         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
55809         Invoke gl_CHECK_NEXT_HEADERS.
55810         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
55811         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
55812         set ARPA_INET_H.
55813         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55814         * modules/arpa_inet (Description): No longer only for systems that
55815         lack it.
55816         (Depends-on): Add include_next.
55817         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
55818         HAVE_ARPA_INET_H.
55819
55820 2008-04-29  Jim Meyering  <meyering@redhat.com>
55821
55822         * modules/mkdir (License): Re-license as LGPLv2+.
55823
55824 2008-04-29  Bruno Haible  <bruno@clisp.org>
55825
55826         * modules/rawmemchr (Maintainer): Set to Eric.
55827         * modules/strchrnul (Maintainer): Likewise.
55828
55829 2008-04-29  Simon Josefsson  <simon@josefsson.org>
55830
55831         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
55832         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
55833
55834         * modules/arpa_inet (arpa/inet.h): Use them.
55835
55836 2008-04-28  Eric Blake  <ebb9@byu.net>
55837
55838         Test getndelim2.
55839         * modules/getndelim2-tests: New file.
55840         * tests/test-getndelim2.c: Likewise.
55841         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
55842         stream.
55843         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
55844
55845         * MODULES.html.sh: Document new module.
55846
55847 2008-04-20  Bruno Haible  <bruno@clisp.org>
55848
55849         * lib/c-stack.c (die): Use raise.
55850         * modules/c-stack (Depends-on): Add raise.
55851
55852 2008-04-28  Bruno Haible  <bruno@clisp.org>
55853
55854         Expect rpmatch to be declared.
55855         * lib/yesno.c (rpmatch): Remove declaration.
55856
55857         Declare rpmatch.
55858         * lib/stdlib.in.h (rpmatch): New declaration.
55859         * lib/rpmatch.c: Include <stdlib.h> first.
55860         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
55861         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
55862         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
55863         HAVE_RPMATCH.
55864         * modules/rpmatch (Depends-on): Add stdlib, extensions.
55865         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55866         (Include): Set to <stdlib.h>.
55867         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
55868         HAVE_RPMATCH.
55869         * NEWS: Document the change.
55870
55871 2008-04-28  Bruno Haible  <bruno@clisp.org>
55872
55873         Change rpmatch to use nl_langinfo when appropriate.
55874         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
55875         (N_): New macro.
55876         (localized_pattern): New function/macro.
55877         (try): Remove match, nomatch arguments. Copy the pattern into safe
55878         memory before caching it.
55879         (rpmatch): Use localized_pattern. Add translator comments.
55880         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
55881         Suggested by Eric Blake.
55882         * modules/rpmatch (Depends-on): Add stdbool.
55883
55884 2008-04-28  Eric Blake  <ebb9@byu.net>
55885
55886         Add rawmemchr module, matching glibc.
55887         * modules/string (Makefile.am): New indicator.
55888         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
55889         * lib/string.in.h (rawmemchr): Declare when appropriate.
55890         * modules/rawmemchr: New file.
55891         * m4/rawmemchr.m4: Likewise.
55892         * lib/rawmemchr.c: Likewise.
55893         * modules/rawmemchr-tests: Likewise.
55894         * tests/test-rawmemchr.c: Likewise.
55895         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
55896         module.
55897         * modules/strchrnul (Depends-on): Add rawmemchr.
55898         * lib/strchrnul.c (strchrnul): Optimize a corner case.
55899
55900         Whitespace cleanup.
55901         * tests/test-strchrnul.c: Reindent.
55902         * lib/strchrnul.c: Likewise.
55903
55904         Optimize and test strchrnul.
55905         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
55906         * modules/strchrnul-tests: New file.
55907         * tests/test-strchrnul.c: Likewise.
55908
55909         Remove intprops dependency.
55910         * modules/memchr (Depends-on): Remove intprops.
55911         * modules/memrchr (Depends-on): Likewise.
55912         * modules/memchr2 (Depends-on): Likewise.
55913         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
55914         * lib/memrchr.c (__memrchr): Likewise.
55915         * lib/memrchr2.c (memchr2): Likewise.
55916         Reported by Simon Josefsson.
55917
55918 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55919
55920         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
55921         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55922
55923 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55924
55925         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
55926
55927         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
55928
55929         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
55930
55931         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
55932         declarations.
55933         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
55934
55935         * m4/inet_pton.m4: Don't check for header files.
55936
55937         * m4/inet_ntop.m4: Don't check for header files.
55938
55939 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55940
55941         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
55942         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
55943         trigger for cygwin).
55944         Reported by Bruno Haible  <bruno@clisp.org>.
55945
55946 2008-04-28  Bruno Haible  <bruno@clisp.org>
55947
55948         * doc/posix-functions/strdup.texi: Mention mingw problem.
55949
55950 2008-04-27  Bruno Haible  <bruno@clisp.org>
55951
55952         * modules/stat-time-tests (Depends-on): Add sleep.
55953         * tests/test-stat-time.c (force_unlink): New function.
55954         (cleanup): Use it.
55955         (test_mtime): Remove the ctime related tests.
55956         (test_ctime): New function, containing the ctime related tests.
55957         (main): Call test_ctime, except on native Windows platforms.
55958
55959 2008-04-27  Bruno Haible  <bruno@clisp.org>
55960
55961         * lib/rpmatch.c (rpmatch): Add some comments.
55962         Reported by James Youngman <jay@gnu.org>.
55963
55964 2008-04-27  Bruno Haible  <bruno@clisp.org>
55965
55966         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
55967         quiet NaNs.
55968
55969 2008-04-27  Bruno Haible  <bruno@clisp.org>
55970
55971         Make test-yesno.sh work on mingw.
55972         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
55973         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
55974         (main): Set stdin to binary mode.
55975         * modules/yesno-tests (Depends-on): Add binary-io.
55976
55977 2008-04-27  Bruno Haible  <bruno@clisp.org>
55978
55979         Fix 'isfinite' on x86, x86_64, ia64 platforms.
55980         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
55981         argument that lie outside the IEEE 854 domain.
55982         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
55983         (gl_ISFINITE): Use it.
55984         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
55985
55986 2008-04-27  Bruno Haible  <bruno@clisp.org>
55987
55988         Allow local renaming in config.h.
55989         * lib/memrchr.c (memrchr): Don't undefine outside libc.
55990
55991 2008-04-27  Bruno Haible  <bruno@clisp.org>
55992
55993         * lib/memchr.c (__memchr): Change type of 'i'.
55994         * lib/memchr2.c (memchr2): Likewise.
55995
55996 2008-04-26  Eric Blake  <ebb9@byu.net>
55997         and Bruno Haible  <bruno@clisp.org>
55998
55999         Optimize and test memrchr.
56000         * modules/memrchr (Depends-on): Add intprops.
56001         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
56002         * modules/memrchr-tests: New file.
56003         * tests/test-memrchr.c: New file.
56004
56005 2008-04-26  Bruno Haible  <bruno@clisp.org>
56006
56007         Add tentative support for DragonFly BSD.
56008         * lib/stdio-impl.h: Add macros for DragonFly BSD.
56009         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
56010         fp.
56011         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
56012         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
56013         * lib/fpurge.c (fpurge): Likewise.
56014         * lib/freadable.c (freaadable): Likewise.
56015         * lib/freadahead.c (freadahead): Likewise.
56016         * lib/freading.c (freading): Likewise.
56017         * lib/freadptr.c (freadptr): Likewise.
56018         * lib/freadseek.c (freadptrinc): Likewise.
56019         * lib/fseeko.c (fseeko): Likewise.
56020         * lib/fseterr.c (fseterr): Likewise.
56021         * lib/fwritable.c (fwritable): Likewise.
56022         * lib/fwriting.c (fwriting): Likewise.
56023
56024 2008-04-26  Bruno Haible  <bruno@clisp.org>
56025
56026         * lib/stdio-impl.h: New file.
56027         * lib/fbufmode.c: Include stdio-impl.h.
56028         (fbufmode): Use fp_, remove redundant #defines.
56029         * lib/fflush.c: Include stdio-impl.h.
56030         (clear_ungetc_buffer): Remove redundant #defines.
56031         * lib/fpurge.c: Include stdio-impl.h.
56032         (fpurge): Remove redundant #defines.
56033         * lib/freadable.c: Include stdio-impl.h.
56034         (freadable): Remove redundant #defines.
56035         * lib/freadahead.c: Include stdio-impl.h.
56036         (freadahead): Remove redundant #defines.
56037         * lib/freading.c: Include stdio-impl.h.
56038         (freading): Remove redundant #defines.
56039         * lib/freadptr.c: Include stdio-impl.h.
56040         (freadptr): Remove redundant #defines.
56041         * lib/freadseek.c: Include stdio-impl.h.
56042         (freadptrinc): Remove redundant #defines.
56043         * lib/fseeko.c: Include stdio-impl.h.
56044         (rpl_fseeko): Remove redundant #defines.
56045         * lib/fseterr.c: Include stdio-impl.h.
56046         (fseterr): Remove redundant #defines.
56047         * lib/fwritable.c: Include stdio-impl.h.
56048         (fwritable: Remove redundant #defines.
56049         * lib/fwriting.c: Include stdio-impl.h.
56050         (fwriting): Remove redundant #defines.
56051         * modules/fbufmode (Files): Add lib/stdio-impl.h.
56052         * modules/fflush (Files): Likewise.
56053         * modules/fpurge (Files): Likewise.
56054         * modules/freadable (Files): Likewise.
56055         * modules/freadahead (Files): Likewise.
56056         * modules/freading (Files): Likewise.
56057         * modules/freadptr (Files): Likewise.
56058         * modules/freadseek (Files): Likewise.
56059         * modules/fseeko (Files): Likewise.
56060         * modules/fseterr (Files): Likewise.
56061         * modules/fwritable (Files): Likewise.
56062         * modules/fwriting (Files): Likewise.
56063
56064 2008-04-26  Bruno Haible  <bruno@clisp.org>
56065
56066         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
56067         restore_seek_optimization, update_fpos_cache): New functions, extracted
56068         from rpl_fflush.
56069         (rpl_fflush): Use them.
56070         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
56071         (gl_REPLACE_FFLUSH): Use it.
56072
56073 2008-04-26  Bruno Haible  <bruno@clisp.org>
56074
56075         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
56076         on Solaris.
56077         * tests/test-xstrtoimax.sh: Likewise.
56078         * tests/test-xstrtoumax.sh: Likewise.
56079         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56080
56081 2008-04-26  Bruno Haible  <bruno@clisp.org>
56082
56083         * modules/memchr-tests: New file.
56084         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
56085
56086 2008-04-26  Eric Blake  <ebb9@byu.net>
56087             Bruno Haible  <bruno@clisp.org>
56088
56089         * lib/memchr.c: Include intprops.h.
56090         (__memchr): Optimize parallel detection of matching bytes. Rename local
56091         variables. Add explanatory comments.
56092
56093 2008-04-26  Bruno Haible  <bruno@clisp.org>
56094
56095         Fix module 'memchr', broken since 2000-10-28.
56096         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
56097
56098 2008-04-26  Bruno Haible  <bruno@clisp.org>
56099
56100         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
56101         comments.
56102
56103 2008-04-25  Eric Blake  <ebb9@byu.net>
56104
56105         Use native fstatat on cygwin 1.7.0.
56106         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
56107         first.
56108
56109 2008-04-23  Eric Blake  <ebb9@byu.net>
56110
56111         Improve memchr2 performance.
56112         * lib/memchr2.c (memchr2): Further optimize parallel detection of
56113         NUL bytes.
56114         * modules/memchr2 (Depends-on): Use intprops.h.
56115
56116 2008-04-23  Simon Josefsson  <simon@josefsson.org>
56117
56118         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
56119         an inline function instead of a CPP macro.  Patch by Ben Pfaff
56120         <blp@cs.stanford.edu>.
56121
56122 2008-04-23  Simon Josefsson  <simon@josefsson.org>
56123
56124         * lib/arpa_inet.in.h: New file.
56125
56126         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
56127         (Makefile.am): Sed in substitute header file.
56128
56129         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
56130         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
56131
56132         * modules/inet_ntop (configure.ac): Use
56133         gl_ARPA_INET_MODULE_INDICATOR.
56134
56135         * modules/inet_pton (configure.ac): Use
56136         gl_ARPA_INET_MODULE_INDICATOR.
56137
56138 2008-04-22  Jim Meyering  <meyering@redhat.com>
56139
56140         * modules/verify (License): Re-license as LGPLv2+.
56141
56142 2008-04-22  Simon Josefsson  <simon@josefsson.org>
56143
56144         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
56145         parameter to void* as per POSIX standard (MinGW uses char*).
56146
56147 2008-04-21  Bruno Haible  <bruno@clisp.org>
56148
56149         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
56150         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
56151         Define to replacements if REPLACE_ISWCNTRL is 1.
56152         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
56153         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
56154         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
56155         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
56156         what it fixes.
56157         * doc/posix-functions/iswalpha.texi: Likewise.
56158         * doc/posix-functions/iswblank.texi: Likewise.
56159         * doc/posix-functions/iswcntrl.texi: Likewise.
56160         * doc/posix-functions/iswdigit.texi: Likewise.
56161         * doc/posix-functions/iswgraph.texi: Likewise.
56162         * doc/posix-functions/iswlower.texi: Likewise.
56163         * doc/posix-functions/iswprint.texi: Likewise.
56164         * doc/posix-functions/iswpunct.texi: Likewise.
56165         * doc/posix-functions/iswspace.texi: Likewise.
56166         * doc/posix-functions/iswupper.texi: Likewise.
56167         * doc/posix-functions/iswxdigit.texi: Likewise.
56168         Reported by Alain Guibert.
56169
56170 2008-04-21  Bruno Haible  <bruno@clisp.org>
56171
56172         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
56173         Patch by Alain Guibert.
56174
56175 2008-04-21  Bruno Haible  <bruno@clisp.org>
56176
56177         Fix test failures on mingw.
56178         * tests/test-xstrtol.c (print_no_progname): New function.
56179         (main): Install it in error_print_progname hook.
56180         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
56181         * tests/test-xstrtoimax.sh: Likewise.
56182         * tests/test-xstrtoumax.sh: Likewise.
56183
56184 2008-04-21  Bruno Haible  <bruno@clisp.org>
56185
56186         Fix test failure on mingw.
56187         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
56188
56189 2008-04-21  Bruno Haible  <bruno@clisp.org>
56190
56191         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
56192         Actually assign a value.
56193
56194 2008-04-20  Bruno Haible  <bruno@clisp.org>
56195
56196         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
56197         take 2.
56198         * lib/canonicalize.c (canonicalize_file_name): Elide if the
56199         'canonicalize-lgpl' module is also used.
56200         * lib/canonicalize-lgpl.c: Undo last change.
56201         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
56202
56203 2008-04-20  Bruno Haible  <bruno@clisp.org>
56204
56205         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
56206         config.h. Provide _mkdir based fallback for mingw.
56207         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
56208         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
56209         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
56210         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
56211         rather than defining mkdir in config.h.
56212         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
56213         (gl_SYS_STAT_H_DEFAULTS): New macro.
56214         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
56215         HAVE_IO_H any more.
56216         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
56217         HAVE_DECL_MKDIR and HAVE_IO_H.
56218
56219 2008-04-20  Bruno Haible  <bruno@clisp.org>
56220
56221         * lib/isapipe.c: Port to native Windows platforms.
56222
56223 2008-04-20  Bruno Haible  <bruno@clisp.org>
56224
56225         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
56226
56227 2008-04-21  Eric Blake  <ebb9@byu.net>
56228
56229         Work around preprocessors that don't handle UINTMAX_MAX.
56230         * lib/memchr2.c (memchr2): Avoid embedded #if.
56231         Reported by Alain Guibert, fix suggested by Bruno Haible.
56232
56233 2008-04-21  Simon Josefsson  <simon@josefsson.org>
56234
56235         * doc/posix-functions/strftime.texi (strftime): Explain better
56236         Windows incompatibility.  Suggested by Micah Cowan
56237         <micah@cowan.name>.
56238
56239 2008-04-20  Bruno Haible  <bruno@clisp.org>
56240
56241         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
56242         unistr/u8-mblen.
56243
56244 2008-04-20  Bruno Haible  <bruno@clisp.org>
56245
56246         Fix test failure on platforms with non-GNU iconv.
56247         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
56248         (U_TO_U8): Use it, rather than u16_to_u8.
56249         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
56250         units at the end of the input string.
56251         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
56252
56253 2008-04-20  Bruno Haible  <bruno@clisp.org>
56254
56255         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
56256         when the resulting length is 0.
56257         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
56258
56259 2008-04-20  Bruno Haible  <bruno@clisp.org>
56260
56261         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
56262         works.
56263         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
56264
56265 2008-04-20  Bruno Haible  <bruno@clisp.org>
56266
56267         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
56268         * modules/tsearch-tests (configure.ac): Test for initstate function.
56269
56270 2008-04-20  Bruno Haible  <bruno@clisp.org>
56271
56272         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
56273         for nlink_t if missing.
56274         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
56275
56276 2008-04-19  Bruno Haible  <bruno@clisp.org>
56277
56278         Work around snprintf bug on Linux libc5.
56279         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
56280         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56281         gl_SNPRINTF_SIZE1.
56282         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56283         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
56284         that test failed.
56285         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
56286         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
56287         * modules/snprintf (Files): Add m4/printf.m4.
56288         * modules/vsnprintf (Files): Likewise.
56289         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
56290         * doc/posix-functions/vsnprintf.texi: Likewise.
56291
56292 2008-04-19  Bruno Haible  <bruno@clisp.org>
56293
56294         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
56295         from 0.0058 to less than 10^-7.
56296
56297 2008-04-19  Bruno Haible  <bruno@clisp.org>
56298
56299         Fix rounding when a precision is given.
56300         * lib/vasnprintf.c (is_borderline): New function.
56301         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
56302         9...9x.
56303         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
56304         %e, %g.
56305         * tests/test-vasprintf-posix.c (test_function): Likewise.
56306         * tests/test-snprintf-posix.h (test_function): Likewise.
56307         * tests/test-sprintf-posix.h (test_function): Likewise.
56308         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
56309         * tests/test-printf-posix.h (test_function): Likewise.
56310         * tests/test-printf-posix.output: Update.
56311         Reported by John Darrington <john@darrington.wattle.id.au> via
56312         Ben Pfaff <blp@cs.stanford.edu>.
56313
56314 2008-04-18  Simon Josefsson  <simon@josefsson.org>
56315
56316         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
56317         Suggested by Bruno Haible <bruno@clisp.org>.
56318
56319 2008-04-17  Bruno Haible  <bruno@clisp.org>
56320
56321         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
56322         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
56323         implementation.
56324         Patch by Bruce Merry <bmerry@gmail.com>.
56325
56326 2008-04-17  Simon Josefsson  <simon@josefsson.org>
56327
56328         * doc/posix-functions/strftime.texi (strftime): Mention that %e
56329         doesn't work under Windows.
56330
56331 2008-04-16  Bruno Haible  <bruno@clisp.org>
56332
56333         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
56334         New macros.
56335         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
56336         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
56337         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
56338         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
56339         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
56340         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
56341         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
56342         macros.
56343         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
56344         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
56345         Northern Sotho, Uighur.
56346
56347 2008-04-16  Bruno Haible  <bruno@clisp.org>
56348
56349         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
56350         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
56351         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
56352         Reported by Daniel Bergström <daniel@octocode.com>.
56353
56354 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
56355             Bruno Haible  <bruno@clisp.org>
56356
56357         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
56358         function.
56359         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
56360         New functions, mostly extracted from gl_locale_name_default.
56361         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
56362
56363 2008-04-16  Eric Blake  <ebb9@byu.net>
56364
56365         Adjust strtod detection to catch glibc 2.7 bug.
56366         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
56367         Reported by John Gatewood Ham.
56368
56369 2008-04-16  Bruno Haible  <bruno@clisp.org>
56370
56371         Add tentative support for Linux libc5.
56372         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
56373         * lib/fpurge.c (fpurge): Likewise.
56374         * lib/freadable.c (freadable): Likewise.
56375         * lib/freadahead.c (freadahead): Likewise.
56376         * lib/freading.c (freading): Likewise.
56377         * lib/freadptr.c (freadptr): Likewise.
56378         * lib/freadseek.c (freadptrinc): Likewise.
56379         * lib/fseeko.c (rpl_fseeko): Likewise.
56380         * lib/fseterr.c (fseterr): Likewise.
56381         * lib/fwritable.c (fwritable): Likewise.
56382         * lib/fwriting.c (fwriting): Likewise.
56383         Reported by Alain Guibert <alguibert+bts@free.fr>.
56384
56385 2008-04-15  Bruno Haible  <bruno@clisp.org>
56386
56387         * modules/mathl (configure.ac): Define module indicator.
56388
56389 2008-04-15  Bruno Haible  <bruno@clisp.org>
56390
56391         * lib/logl.c (logl): Remove unused variables.
56392
56393 2008-04-15  Bruno Haible  <bruno@clisp.org>
56394
56395         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
56396         fails.
56397
56398 2008-04-15  Bruno Haible  <bruno@clisp.org>
56399
56400         * lib/trim.c (trim2): Fix argument of isspace() macro.
56401
56402 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
56403
56404         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
56405         to 0.
56406         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
56407
56408 2008-04-14  Bruno Haible  <bruno@clisp.org>
56409
56410         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
56411         AC_LANG_PROGRAM argument.
56412         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
56413         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
56414         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
56415         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
56416         * m4/math_h.m4 (gl_MATH_H): Likewise.
56417         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
56418         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56419         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
56420         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
56421         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
56422         * m4/regex.m4 (gl_REGEX): Likewise.
56423         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
56424         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
56425         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56426         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
56427         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56428         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56429         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56430         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
56431
56432 2008-04-14  Jim Meyering  <meyering@redhat.com>
56433
56434         test-strtod: fix typos: s/abs/fabs/
56435         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
56436
56437 2008-04-13  Bruno Haible  <bruno@clisp.org>
56438
56439         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
56440         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
56441         module is also used and while not building the reloc-wrapper.
56442
56443 2008-04-13  Bruno Haible  <bruno@clisp.org>
56444
56445         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
56446
56447 2008-04-13  Bruno Haible  <bruno@clisp.org>
56448
56449         Fix AIX compilation failure introduced on 2008-04-02.
56450         * tests/test-frexp.c (exp): Undefine before redefining.
56451         * tests/test-frexpl.c (exp): Likewise.
56452
56453 2008-04-13  Bruno Haible  <bruno@clisp.org>
56454
56455         Work around a HP-UX stdio bug.
56456         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
56457         * tests/test-ftello.c (main): Likewise.
56458         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
56459         * doc/posix-functions/ftello.texi: Likewise.
56460
56461 2008-04-13  Bruno Haible  <bruno@clisp.org>
56462
56463         Make test-signbit pass on HP-UX/hppa.
56464         * tests/test-signbit.c (minus_zerol): New variable.
56465         (test_signbitl): Use it.
56466
56467 2008-04-13  Bruno Haible  <bruno@clisp.org>
56468
56469         Make truncl work on OSF/1 4.0.
56470         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
56471         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56472         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56473         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
56474         HAVE_DECL_TRUNCL.
56475         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
56476         HAVE_DECL_TRUNCL.
56477         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
56478
56479 2008-04-13  Bruno Haible  <bruno@clisp.org>
56480
56481         * lib/unictype.h: Remove trailing comma from enumeration definitions.
56482
56483 2008-04-13  Bruno Haible  <bruno@clisp.org>
56484
56485         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
56486         expression, so as to avoid HP-UX 11 cc compiler bug.
56487
56488 2008-04-13  Bruno Haible  <bruno@clisp.org>
56489
56490         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
56491
56492 2008-04-13  Bruno Haible  <bruno@clisp.org>
56493
56494         * lib/git-merge-changelog.c: Remove empty declaration outside of
56495         functions.
56496
56497 2008-04-13  Bruno Haible  <bruno@clisp.org>
56498
56499         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
56500
56501 2008-04-13  Bruno Haible  <bruno@clisp.org>
56502
56503         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
56504         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
56505         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
56506         also if it exists but lacks definitions of the SHUT_* macros.
56507         * modules/sys_socket (Description): Update.
56508         Reported by Elbert Pol <e.pol@chello.nl>.
56509
56510 2008-04-13  Bruno Haible  <bruno@clisp.org>
56511
56512         * lib/localcharset.c (OS2): Don't redefine if already defined.
56513         Reported by Elbert Pol <e.pol@chello.nl>.
56514
56515 2008-04-13  Bruno Haible  <bruno@clisp.org>
56516
56517         * lib/binary-io.h [__EMX__]: Include <io.h>.
56518         Reported by Elbert Pol <e.pol@chello.nl>.
56519
56520 2008-04-12  Bruno Haible  <bruno@clisp.org>
56521
56522         * lib/fpucw.h: Enable the definitions also for x86_64.
56523         Needed for NetBSD/x86_64.
56524         Reported by Thomas Klausner <tk@giga.or.at>.
56525
56526 2008-04-12  Bruno Haible  <bruno@clisp.org>
56527
56528         * tests/test-strtod.c: Include isnand.h.
56529         (main): Use isnand instead of isnan.
56530         Reported by Jim Meyering.
56531
56532 2008-04-12  Bruno Haible  <bruno@clisp.org>
56533
56534         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
56535         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
56536
56537 2008-04-12  Jim Meyering  <meyering@redhat.com>
56538
56539         * m4/math_h.m4 (gl_MATH_H): Fix typos.
56540
56541 2008-04-12  Bruno Haible  <bruno@clisp.org>
56542
56543         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
56544         Reported by Elbert Pol <e.pol@chello.nl>.
56545
56546 2008-04-12  Eric Blake  <ebb9@byu.net>
56547
56548         Work around Solaris 10 math.h bug.
56549         * m4/math_h.m4 (gl_MATH_H): Check for bug.
56550         (gl_MATH_H_DEFAULTS): Set up default.
56551         * modules/math (Makefile.am): Replace new indicators.
56552         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
56553         * tests/test-math.c (main): Test this.
56554         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
56555         * doc/posix-headers/math.texi (math.h): Mention bug.
56556         Reported by Nelson H. F. Beebe and Jim Meyering.
56557
56558 2008-04-11  Bruno Haible  <bruno@clisp.org>
56559
56560         Adapt to future versions of Apple GCC.
56561         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
56562         Reported by Peter O'Gorman <peter@pogma.com>.
56563
56564 2008-04-11  Bruno Haible  <bruno@clisp.org>
56565
56566         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
56567
56568 2008-04-11  Bruno Haible  <bruno@clisp.org>
56569
56570         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
56571
56572         * modules/getaddrinfo-tests (Makefile.am): Define
56573         test_getaddrinfo_LDADD.
56574
56575 2008-04-11  Bruno Haible  <bruno@clisp.org>
56576
56577         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
56578         (init): Fix syntax error.
56579         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
56580         is declared.
56581
56582 2008-04-11  Bruno Haible  <bruno@clisp.org>
56583
56584         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
56585         * modules/glob (Depends-on): Add stdbool.
56586
56587 2008-04-11  Bruno Haible  <bruno@clisp.org>
56588
56589         * lib/trim.c: Include <string.h>.
56590
56591 2008-04-11  Eric Blake  <ebb9@byu.net>
56592
56593         Avoid compile failure on OS/2.
56594         * lib/regex_internal.h (internal_function): Disable optimization
56595         on OS/2 (__EMX__), where it caused compiler error.
56596         Reported by Elbert Pol.
56597
56598 2008-04-11  Bruno Haible  <bruno@clisp.org>
56599
56600         Flush the standard error stream before aborting. Needed on mingw.
56601         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
56602         * tests/test-array_list.c (ASSERT): Likewise.
56603         * tests/test-array_oset.c (ASSERT): Likewise.
56604         * tests/test-avltree_list.c (ASSERT): Likewise.
56605         * tests/test-avltree_oset.c (ASSERT): Likewise.
56606         * tests/test-avltreehash_list.c (ASSERT): Likewise.
56607         * tests/test-binary-io.c (ASSERT): Likewise.
56608         * tests/test-byteswap.c (ASSERT): Likewise.
56609         * tests/test-c-ctype.c (ASSERT): Likewise.
56610         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
56611         * tests/test-c-strcasestr.c (ASSERT): Likewise.
56612         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
56613         * tests/test-c-strstr.c (ASSERT): Likewise.
56614         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
56615         * tests/test-canonicalize.c (ASSERT): Likewise.
56616         * tests/test-carray_list.c (ASSERT): Likewise.
56617         * tests/test-ceilf1.c (ASSERT): Likewise.
56618         * tests/test-ceilf2.c (ASSERT): Likewise.
56619         * tests/test-ceill.c (ASSERT): Likewise.
56620         * tests/test-count-one-bits.c (ASSERT): Likewise.
56621         * tests/test-fbufmode.c (ASSERT): Likewise.
56622         * tests/test-fflush2.c (ASSERT): Likewise.
56623         * tests/test-floorf1.c (ASSERT): Likewise.
56624         * tests/test-floorf2.c (ASSERT): Likewise.
56625         * tests/test-floorl.c (ASSERT): Likewise.
56626         * tests/test-fopen.c (ASSERT): Likewise.
56627         * tests/test-fpending.c (ASSERT): Likewise.
56628         * tests/test-fprintf-posix.c (ASSERT): Likewise.
56629         * tests/test-fpurge.c (ASSERT): Likewise.
56630         * tests/test-freadable.c (ASSERT): Likewise.
56631         * tests/test-freadahead.c (ASSERT): Likewise.
56632         * tests/test-freading.c (ASSERT): Likewise.
56633         * tests/test-freadptr.c (ASSERT): Likewise.
56634         * tests/test-freadptr2.c (ASSERT): Likewise.
56635         * tests/test-freadseek.c (ASSERT): Likewise.
56636         * tests/test-freopen.c (ASSERT): Likewise.
56637         * tests/test-frexp.c (ASSERT): Likewise.
56638         * tests/test-frexpl.c (ASSERT): Likewise.
56639         * tests/test-fseek.c (ASSERT): Likewise.
56640         * tests/test-fseeko.c (ASSERT): Likewise.
56641         * tests/test-fstrcmp.c (ASSERT): Likewise.
56642         * tests/test-ftell.c (ASSERT): Likewise.
56643         * tests/test-ftello.c (ASSERT): Likewise.
56644         * tests/test-func.c (ASSERT): Likewise.
56645         * tests/test-fwritable.c (ASSERT): Likewise.
56646         * tests/test-fwriting.c (ASSERT): Likewise.
56647         * tests/test-getdelim.c (ASSERT): Likewise.
56648         * tests/test-getline.c (ASSERT): Likewise.
56649         * tests/test-i-ring.c (ASSERT): Likewise.
56650         * tests/test-iconv-utf.c (ASSERT): Likewise.
56651         * tests/test-iconv.c (ASSERT): Likewise.
56652         * tests/test-isfinite.c (ASSERT): Likewise.
56653         * tests/test-isnand.c (ASSERT): Likewise.
56654         * tests/test-isnanf.c (ASSERT): Likewise.
56655         * tests/test-isnanl.h (ASSERT): Likewise.
56656         * tests/test-ldexpl.c (ASSERT): Likewise.
56657         * tests/test-linked_list.c (ASSERT): Likewise.
56658         * tests/test-linkedhash_list.c (ASSERT): Likewise.
56659         * tests/test-localename.c (ASSERT): Likewise.
56660         * tests/test-lseek.c (ASSERT): Likewise.
56661         * tests/test-mbscasecmp.c (ASSERT): Likewise.
56662         * tests/test-mbscasestr1.c (ASSERT): Likewise.
56663         * tests/test-mbscasestr2.c (ASSERT): Likewise.
56664         * tests/test-mbscasestr3.c (ASSERT): Likewise.
56665         * tests/test-mbscasestr4.c (ASSERT): Likewise.
56666         * tests/test-mbschr.c (ASSERT): Likewise.
56667         * tests/test-mbscspn.c (ASSERT): Likewise.
56668         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
56669         * tests/test-mbspbrk.c (ASSERT): Likewise.
56670         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
56671         * tests/test-mbsrchr.c (ASSERT): Likewise.
56672         * tests/test-mbsspn.c (ASSERT): Likewise.
56673         * tests/test-mbsstr1.c (ASSERT): Likewise.
56674         * tests/test-mbsstr2.c (ASSERT): Likewise.
56675         * tests/test-mbsstr3.c (ASSERT): Likewise.
56676         * tests/test-memchr2.c (ASSERT): Likewise.
56677         * tests/test-memmem.c (ASSERT): Likewise.
56678         * tests/test-open.c (ASSERT): Likewise.
56679         * tests/test-printf-frexp.c (ASSERT): Likewise.
56680         * tests/test-printf-frexpl.c (ASSERT): Likewise.
56681         * tests/test-printf-posix.c (ASSERT): Likewise.
56682         * tests/test-quotearg.c (ASSERT): Likewise.
56683         * tests/test-rbtree_list.c (ASSERT): Likewise.
56684         * tests/test-rbtree_oset.c (ASSERT): Likewise.
56685         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
56686         * tests/test-round1.c (ASSERT): Likewise.
56687         * tests/test-roundf1.c (ASSERT): Likewise.
56688         * tests/test-roundl.c (ASSERT): Likewise.
56689         * tests/test-signbit.c (ASSERT): Likewise.
56690         * tests/test-sleep.c (ASSERT): Likewise.
56691         * tests/test-snprintf-posix.c (ASSERT): Likewise.
56692         * tests/test-snprintf.c (ASSERT): Likewise.
56693         * tests/test-sprintf-posix.c (ASSERT): Likewise.
56694         * tests/test-stat-time.c (ASSERT): Likewise.
56695         * tests/test-strcasestr.c (ASSERT): Likewise.
56696         * tests/test-strerror.c (ASSERT): Likewise.
56697         * tests/test-striconv.c (ASSERT): Likewise.
56698         * tests/test-striconveh.c (ASSERT): Likewise.
56699         * tests/test-striconveha.c (ASSERT): Likewise.
56700         * tests/test-strsignal.c (ASSERT): Likewise.
56701         * tests/test-strstr.c (ASSERT): Likewise.
56702         * tests/test-strtod.c (ASSERT): Likewise.
56703         * tests/test-trunc1.c (ASSERT): Likewise.
56704         * tests/test-trunc2.c (ASSERT): Likewise.
56705         * tests/test-truncf1.c (ASSERT): Likewise.
56706         * tests/test-truncf2.c (ASSERT): Likewise.
56707         * tests/test-truncl.c (ASSERT): Likewise.
56708         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
56709         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
56710         * tests/test-vasnprintf.c (ASSERT): Likewise.
56711         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
56712         * tests/test-vasprintf.c (ASSERT): Likewise.
56713         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
56714         * tests/test-vprintf-posix.c (ASSERT): Likewise.
56715         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
56716         * tests/test-vsnprintf.c (ASSERT): Likewise.
56717         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
56718         * tests/test-wcwidth.c (ASSERT): Likewise.
56719         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
56720         * tests/test-xprintf-posix.c (ASSERT): Likewise.
56721         * tests/test-xvasprintf.c (ASSERT): Likewise.
56722         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
56723         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
56724         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
56725         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
56726         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
56727         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
56728         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
56729         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
56730         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
56731         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
56732         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
56733         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
56734         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
56735         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
56736         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
56737         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
56738         * tests/unictype/test-block_list.c (ASSERT): Likewise.
56739         * tests/unictype/test-block_of.c (ASSERT): Likewise.
56740         * tests/unictype/test-block_test.c (ASSERT): Likewise.
56741         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
56742         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
56743         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
56744         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
56745         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
56746         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
56747         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
56748         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
56749         * tests/unictype/test-combining.c (ASSERT): Likewise.
56750         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
56751         * tests/unictype/test-digit.c (ASSERT): Likewise.
56752         * tests/unictype/test-mirror.c (ASSERT): Likewise.
56753         * tests/unictype/test-numeric.c (ASSERT): Likewise.
56754         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
56755         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
56756         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
56757         * tests/unictype/test-scripts.c (ASSERT): Likewise.
56758         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
56759         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
56760         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
56761         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
56762         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
56763         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
56764         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
56765         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
56766         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
56767         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
56768         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
56769         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
56770         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
56771         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
56772         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
56773         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
56774         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
56775         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
56776         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
56777         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
56778         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
56779         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
56780         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
56781         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
56782         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
56783         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
56784         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
56785         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
56786         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
56787         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
56788         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
56789         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
56790         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
56791         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
56792         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
56793         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
56794         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
56795         Reported by Eric Blake.
56796
56797 2008-04-11  Bruno Haible  <bruno@clisp.org>
56798
56799         * lib/wchar.in.h: Tweak comment.
56800
56801 2008-04-11  Bruno Haible  <bruno@clisp.org>
56802
56803         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
56804         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
56805         gl_COMMON.
56806         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
56807
56808 2008-04-11  Bruno Haible  <bruno@clisp.org>
56809
56810         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
56811
56812 2008-04-11  Simon Josefsson  <simon@josefsson.org>
56813
56814         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
56815         of attempting to use non-existing /dev/*random.  Based on patch
56816         from Adam Strzelecki <ono@java.pl> in
56817         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
56818
56819 2008-04-08  Bruno Haible  <bruno@clisp.org>
56820
56821         Add tentative support for emx+gcc.
56822         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
56823         * lib/fpurge.c (fpurge): Likewise.
56824         * lib/freadable.c (freadable): Likewise.
56825         * lib/freadahead.c (freadahead): Likewise.
56826         * lib/freading.c (freading): Likewise.
56827         * lib/freadptr.c (freadptr): Likewise.
56828         * lib/freadseek.c (freadptrinc): Likewise.
56829         * lib/fseeko.c (rpl_fseeko): Likewise.
56830         * lib/fseterr.c (fseterr): Likewise.
56831         * lib/fwritable.c (fwritable): Likewise.
56832         * lib/fwriting.c (fwriting): Likewise.
56833         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
56834
56835 2008-04-09  Eric Blake  <ebb9@byu.net>
56836
56837         Avoid some autoconf warnings.
56838         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
56839         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
56840         * m4/afs.m4 (gl_AFS): Likewise.
56841         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
56842         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
56843         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56844         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
56845         (gl_INTEGER_TYPE_SUFFIX): Likewise.
56846         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
56847         (AC_CHECK_DECLS_ONCE): Likewise.
56848         Rename file...
56849         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
56850         gnulib-tool requires autoconf 2.59 or better.
56851         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
56852
56853 2008-04-08  Eric Blake  <ebb9@byu.net>
56854
56855         Use 'git describe --match' if present (added in git 1.5.5).
56856         * build-aux/git-version-gen: Limit result to tags that match 'v*'
56857         if possible.
56858
56859 2008-04-08  Bruno Haible  <bruno@clisp.org>
56860
56861         Add tentative support for OpenServer.
56862         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
56863         _ptr, _cnt.
56864         * lib/fpurge.c (fpurge): Likewise.
56865         * lib/freadable.c (freadable): Likewise.
56866         * lib/freadahead.c (freadahead): Likewise.
56867         * lib/freading.c (freading): Likewise.
56868         * lib/freadptr.c (freadptr): Likewise.
56869         * lib/freadseek.c (freadptrinc): Likewise.
56870         * lib/fseeko.c (rpl_fseeko): Likewise.
56871         * lib/fseterr.c (fseterr): Likewise.
56872         * lib/fwritable.c (fwritable): Likewise.
56873         * lib/fwriting.c (fwriting): Likewise.
56874         Reported by Roger Cornelius <rac@tenzing.org> and
56875         Brian K. White <brian@aljex.com>.
56876
56877 2008-04-06  Jim Meyering  <meyering@redhat.com>
56878
56879         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
56880
56881 2008-04-06  Bruno Haible  <bruno@clisp.org>
56882
56883         Avoid possible error with non-ASCII bytes in UTF-8 locales.
56884         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
56885         * tests/test-printf-posix.sh: Likewise.
56886         * tests/test-vfprintf-posix.sh: Likewise.
56887         * tests/test-vprintf-posix.sh: Likewise.
56888         * tests/test-xprintf-posix.sh: Likewise.
56889
56890 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56891
56892         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
56893         hide error from 'ls', needed on OS/2.
56894         Report by Elbert Pol <elbert.pol@gmail.com>.
56895
56896 2008-04-04  Eric Blake  <ebb9@byu.net>
56897
56898         Make test-fseeko.c failures meaningful.
56899         * tests/test-fseeko.c: Print line number on failure.
56900         * tests/test-fseek.c: Likewise.
56901         Reported by Nelson H. F. Beebe.
56902
56903         Improve strtod bug detection check.
56904         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
56905         required for Solaris 10.
56906         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
56907
56908 2008-04-04  Bruno Haible  <bruno@clisp.org>
56909
56910         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
56911         by m4/setenv.m4.
56912
56913 2008-04-03  Eric Blake  <ebb9@byu.net>
56914
56915         Ensure sane .version contents.
56916         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
56917         version string.
56918         * build-aux/git-version-gen: Improve documentation.
56919
56920         Make GNU make output nicer.
56921         * top/GNUmakefile [!_have-Makefile]: Add dependency on
56922         MAKECMDGOALS to enforce message for all command line targets.  Set
56923         srcdir for use in maint.mk.
56924
56925         Another maintainer tweak.
56926         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
56927         a target that regenerates version.
56928
56929 2008-04-03  Jim Meyering  <meyering@redhat.com>
56930
56931         vc-list-files: don't cause coreutils "make po-check" failure
56932         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
56933
56934 2008-04-03  Eric Blake  <ebb9@byu.net>
56935
56936         Allow VPATH usage of vc-list-files.
56937         * build-aux/vc-list-files (scriptversion): Add timestamp.
56938         (options): Add --help, --version, -C.
56939         (CVS): Support installed cvsu.
56940
56941 2008-04-02  Bruno Haible  <bruno@clisp.org>
56942
56943         Avoid some "statement with no effect" warnings from gcc.
56944         * tests/test-wctype.c (main): Explicitly ignore unused values.
56945         Reported by Jim Meyering.
56946
56947 2008-04-02  Jim Meyering  <meyering@redhat.com>
56948
56949         Avoid some warnings from "gcc -Wshadow".
56950         * tests/test-frexp.c (exp): Define to a different identifier.
56951         * tests/test-frexpl.c (exp): Likewise.
56952
56953 2008-04-03  Jim Meyering  <meyering@redhat.com>
56954
56955         bootstrap: remove dangling *.[ch] symlinks from lib
56956         * build-aux/bootstrap [dangling symlink removal]: Move find's
56957         -depth option to precede all others, to avoid a warning.
56958         Remove *.[ch] files too, and from "$source_base" (usually lib/).
56959
56960 2008-04-02  Bruno Haible  <bruno@clisp.org>
56961
56962         Avoid some warnings from "gcc -Wshadow".
56963         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
56964         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
56965         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
56966         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
56967         Reported by Jim Meyering.
56968
56969 2008-04-01  Bruno Haible  <bruno@clisp.org>
56970
56971         Fix test to work on IRIX 6.5 with cc.
56972         * tests/test-math.c (numeric_equal): New function.
56973         (main): Use it.
56974
56975 2008-04-01  Bruno Haible  <bruno@clisp.org>
56976
56977         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
56978
56979 2008-04-01  Bruno Haible  <bruno@clisp.org>
56980
56981         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
56982         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56983         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
56984         (Depends-on): Remove math.
56985
56986         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
56987         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56988         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
56989         (Depends-on): Remove math.
56990
56991         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
56992         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56993         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
56994         (Depends-on): Remove math.
56995         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
56996         (Depends-on): Remove math.
56997
56998         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
56999         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57000         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
57001         (Depends-on): Remove math.
57002         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
57003         (Depends-on): Remove math.
57004
57005         * tests/test-round1.c: Include nan.h.
57006         (main): Use NaNd instead of NAN.
57007         * modules/round-tests (Files): Add tests/nan.h.
57008
57009         * tests/test-trunc1.c: Include nan.h.
57010         (main): Use NaNd instead of NAN.
57011         * modules/trunc-tests (Files): Add tests/nan.h.
57012
57013         * tests/test-roundf1.c: Include nan.h.
57014         (main): Use NaNf instead of NAN.
57015         * modules/roundf-tests (Files): Add tests/nan.h.
57016
57017         * tests/test-truncf1.c: Include nan.h.
57018         (main): Use NaNf instead of NAN.
57019         * modules/truncf-tests (Files): Add tests/nan.h.
57020
57021         * tests/test-ceilf1.c: Include nan.h.
57022         (main): Use NaNf instead of NAN.
57023         * modules/ceilf-tests (Files): Add tests/nan.h.
57024
57025         * tests/test-floorf1.c: Include nan.h.
57026         (main): Use NaNf instead of NAN.
57027         * modules/floorf-tests (Files): Add tests/nan.h.
57028
57029         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
57030         (main): Use NaNf instead of NAN.
57031         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
57032
57033         * tests/test-isnand.c: Include nan.h instead of <math.h>.
57034         (main): Use NaNd instead of NAN.
57035         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
57036
57037         * tests/test-frexp.c: Include nan.h.
57038         (main): Use NaNd instead of NAN.
57039         * modules/frexp-tests (Files): Add tests/nan.h.
57040
57041         * lib/isnan.c: Don't include <math.h>.
57042         (FUNC): Don't use NAN macro.
57043         * modules/isnand-nolibm (Depends-on): Remove math.
57044         * modules/isnanf-nolibm (Depends-on): Remove math.
57045         * modules/isnanl (Depends-on): Remove math.
57046         * modules/isnanl-nolibm (Depends-on): Remove math.
57047
57048         * tests/nan.h: New file.
57049
57050 2008-04-01  Eric Blake  <ebb9@byu.net>
57051
57052         Fix typos.
57053         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
57054         values to be the right type.
57055
57056         For now, cater to gnulib strtod inaccuracies.
57057         * tests/test-strtod.c (main): Allow 1-ulp error on expected
57058         fractional results.  While not as nice from a QoI perspective, it
57059         is a quicker patch than correctly implementing decimal to binary
57060         rounding.
57061
57062 2008-03-31  Eric Blake  <ebb9@byu.net>
57063
57064         Guarantee a definition of NAN.
57065         * lib/math.in.h (NAN): Define if missing.
57066         * tests/test-math.c (main): Test it.
57067         * doc/posix-headers/math.texi (math.h): Document this.
57068         * lib/isnan.c (rpl_isnand): Use it.
57069         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
57070         * tests/test-floorf1.c (NaN): Likewise.
57071         * tests/test-frexp.c (NaN): Likewise.
57072         * tests/test-isnand.c (NaN): Likewise.
57073         * tests/test-isnanf.c (NaN): Likewise.
57074         * tests/test-round1.c (NaN): Likewise.
57075         * tests/test-roundf1.c (NaN): Likewise.
57076         * tests/test-snprintf-posix.h (NaN): Likewise.
57077         * tests/test-sprintf-posix.h (NaN): Likewise.
57078         * tests/test-trunc1.c (NaN): Likewise.
57079         * tests/test-truncf1.c (NaN): Likewise.
57080         * tests/test-vasnprintf-posix.c (NaN): Likewise.
57081         * tests/test-vasprintf-posix.c (NaN): Likewise.
57082         * modules/isnand-nolibm (Depends-on): Add math.
57083         * modules/isnanf-nolibm (Depends-on): Likewise.
57084         * modules/isnanl (Depends-on): Likewise.
57085         * modules/isnanl-nolibm (Depends-on): Likewise.
57086         * modules/snprintf-posix-tests (Depends-on): Likewise.
57087         * modules/sprintf-posix-tests (Depends-on): Likewise.
57088         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
57089         * modules/vsprintf-posix-tests (Depends-on): Likewise.
57090         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
57091         * modules/vasprintf-posix-tests (Depends-on): Likewise.
57092
57093 2008-03-31  Bruno Haible  <bruno@clisp.org>
57094
57095         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
57096         * doc/posix-functions/strtod.texi: Likewise.
57097
57098 2008-03-31  Bruno Haible  <bruno@clisp.org>
57099
57100         * tests/test-strtod.c (main): Don't use C99 syntax.
57101
57102 2008-03-31  Bruno Haible  <bruno@clisp.org>
57103
57104         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
57105         Reported by Eric Blake.
57106
57107 2008-03-31  Jim Meyering  <meyering@redhat.com>
57108
57109         Don't compare actual signbit return values.
57110         * tests/test-strtod.c (main): Rather, compare only their
57111         zero/non-zero nature.
57112
57113 2008-03-31  Eric Blake  <ebb9@byu.net>
57114
57115         More strtod documentation.
57116         * doc/posix-functions/strtod.texi (strtod): Interpret more test
57117         failures as distinct bugs.
57118
57119 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
57120
57121         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
57122         Problem reported by Erik Benada in
57123         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
57124
57125 2008-03-30  Bruno Haible  <bruno@clisp.org>
57126
57127         * tests/test-strtod.c: Add comments about which assertion fails on which
57128         platform.
57129         * doc/posix-functions/strtod.texi: Add info about many more platforms.
57130
57131 2008-03-30  Eric Blake  <ebb9@byu.net>
57132
57133         Test signbit behavior on zeros.
57134         * tests/test-signbit.c (test_signbitf): Add tests for zero.
57135         (test_signbitd, test_signbitl): Likewise.
57136
57137         More strtod touchups.
57138         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
57139         sign of negative underflow, for now.  Use .5, not .1.
57140         * doc/posix-functions/strtod.texi (strtod): Mention these
57141         limitations.
57142         Reported by Jim Meyering.
57143
57144 2008-03-30  Bruno Haible  <bruno@clisp.org>
57145
57146         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
57147         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
57148
57149 2008-03-30  Bruno Haible  <bruno@clisp.org>
57150
57151         Avoid failure when attempting to return empty iconv results on some
57152         platforms.
57153         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
57154         allocation, don't report ENOMEM when the resulting string is empty.
57155
57156 2008-03-30  Bruno Haible  <bruno@clisp.org>
57157
57158         Fix buffer overrun.
57159         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
57160         Don't consider the width for tmp_length. Check count against tmp_length
57161         before doing the padding. Ensure enough allocation during padding.
57162
57163 2008-03-30  Eric Blake  <ebb9@byu.net>
57164
57165         strtod touchups.
57166         * lib/strtod.c (strtod): Avoid compiler warnings.
57167         Reported by Jim Meyering.
57168
57169 2008-03-30  Bruno Haible  <bruno@clisp.org>
57170
57171         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
57172         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
57173         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
57174         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
57175         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
57176         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
57177         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
57178         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
57179
57180         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
57181         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
57182         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
57183         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
57184         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
57185         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
57186         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
57187         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
57188
57189         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
57190         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
57191         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
57192         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
57193         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
57194         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
57195         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
57196         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
57197
57198         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
57199         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
57200
57201         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
57202         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
57203
57204         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
57205         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
57206
57207         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
57208         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
57209         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
57210
57211         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
57212         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
57213         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
57214
57215         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
57216         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
57217         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
57218
57219         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
57220         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
57221         * modules/vasprintf (Depends-on): Add EOVERFLOW.
57222
57223         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
57224         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
57225         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
57226         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
57227         (Depends-on): Add EOVERFLOW.
57228         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
57229         (Depends-on): Add EOVERFLOW.
57230         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
57231         (Depends-on): Add EOVERFLOW.
57232         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
57233         (Depends-on): Add EOVERFLOW.
57234         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
57235         (Depends-on): Add EOVERFLOW.
57236         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
57237         (Depends-on): Add EOVERFLOW.
57238         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
57239         (Depends-on): Add EOVERFLOW.
57240         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
57241         (Depends-on): Add EOVERFLOW.
57242
57243         * lib/sprintf.c (EOVERFLOW): Remove fallback.
57244         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
57245         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
57246
57247         * lib/snprintf.c (EOVERFLOW): Remove fallback.
57248         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
57249         * modules/snprintf (Depends-on): Add EOVERFLOW.
57250
57251         * lib/poll.c (EOVERFLOW): Remove fallback.
57252         * modules/poll (Depends-on): Add EOVERFLOW.
57253
57254         * lib/getugroups.c (EOVERFLOW): Remove fallback.
57255         * modules/getugroups (Depends-on): Add EOVERFLOW.
57256
57257         * lib/getdelim.c (EOVERFLOW): Remove fallback.
57258         * modules/getdelim (Depends-on): Add EOVERFLOW.
57259
57260         * lib/ftell.c (EOVERFLOW): Remove fallback.
57261         * modules/ftell (Depends-on): Add EOVERFLOW.
57262
57263         * lib/fprintf.c (EOVERFLOW): Remove fallback.
57264         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
57265         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
57266
57267         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
57268
57269         * modules/EOVERFLOW-tests: New file.
57270         * tests/test-EOVERFLOW.c: New file.
57271
57272         * modules/EOVERFLOW: New file.
57273         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
57274
57275 2008-03-30  Bruno Haible  <bruno@clisp.org>
57276
57277         Fix bug introduced on 2007-06-10.
57278         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
57279         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
57280
57281 2008-03-30  Bruno Haible  <bruno@clisp.org>
57282
57283         Improve freadseek's efficiency after ungetc.
57284         * lib/freadseek.c: Include freadahead.h.
57285         (freadptrinc): New function, extracted from freadseek.
57286         (freadseek): Use it in a loop. Use freadahead to determine the number
57287         of loop iterations.
57288         * modules/freadseek (Depends-on): Add freadahead.
57289         (configure.ac): Require AC_C_INLINE.
57290
57291 2008-03-30  Bruno Haible  <bruno@clisp.org>
57292
57293         * lib/freadseek.c (freadseek): Don't ignore the return value of
57294         freadptr.
57295
57296 2008-03-29  Eric Blake  <ebb9@byu.net>
57297
57298         Add hex float support.
57299         * modules/strtod (Depends-on): Add c-ctype.
57300         (Link): Mention POW_LIB.
57301         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
57302         whitespace between 'e' and exponent.
57303         * tests/test-strtod.c (main): Enable hex float tests.
57304         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
57305         now provides.
57306
57307         Document various strtod bugs, with some fixes.
57308         * doc/posix-functions/strtod.texi (strtod): Document bugs with
57309         "-0x", "inf", "nan", and hex constants.
57310         * doc/posix-functions/atof.texi (atof): Likewise.
57311         * modules/stdlib (Makefile.am): Support strtod.
57312         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
57313         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
57314         detect additional strtod bugs.
57315         * lib/stdlib.in.h (rpl_strtod): Add declarations.
57316         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
57317         bool where appropriate.  Parse 'inf' and 'nan'.
57318         * tests/test-strtod.c: New file.
57319         * modules/strtod (Depends-on): Add stdbool, stdlib.
57320         (configure.ac): Turn on module indicator.
57321         * modules/strtod-tests: New module.
57322
57323 2008-03-29  Eric Blake  <ebb9@byu.net>
57324
57325         Fix ftell on mingw.
57326         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
57327         * modules/ftell-tests (Depends-on): Add binary-io.
57328         * modules/ftello-tests (Depends-on): Likewise.
57329         * tests/test-ftell.c (main): Enhance test to cover behavior after
57330         ungetc.  Enforce binary mode.
57331         * tests/test-ftello.c (main): Likewise.
57332
57333         Pass test-freadseek on cygwin.
57334         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
57335         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
57336         ungetc buffer.
57337
57338         * tests/test-fflush2.c (main): Fix typo.
57339
57340 2008-03-29  Bruno Haible  <bruno@clisp.org>
57341
57342         * tests/test-fflush2.c (main): Temporarily disable the contents of
57343         this test.
57344         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
57345         Reported by Eric Blake.
57346
57347 2008-03-28  Simon Josefsson  <simon@josefsson.org>
57348
57349         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
57350         (GC_SHA224_DIGEST_SIZE): Add.
57351
57352         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
57353         (gc_hash_digest_length): Likewise.
57354         (gc_hash_buffer): Likewise.
57355
57356 2008-03-25  Bruno Haible  <bruno@clisp.org>
57357
57358         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
57359         detail which gettext release to use.
57360         Reported by Simon Josefsson.
57361
57362 2008-03-26  Jim Meyering  <meyering@redhat.com>
57363
57364         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
57365         * modules/gnumakefile (clean-GNUmakefile): Also, use
57366         test ... && ... || : syntax rather than if-then ... fi.
57367
57368         gnumakefile: Don't double-quote-expand $(VPATH) value.
57369         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
57370
57371 2008-03-24  Eric Blake  <ebb9@byu.net>
57372
57373         Alter GNUmakefile to install into top directory.
57374         * modules/maintainer-makefile: Split, and add dependency...
57375         * modules/gnumakefile: to this new module.
57376         * build-aux/GNUmakefile: Move...
57377         * top/GNUmakefile: ...here.
57378         * build-aux/maint.mk: Move...
57379         * top/maint.mk: ...here.
57380         * MODULES.html.sh (Support for maintaining...): Document new
57381         module.
57382
57383 2008-03-23  Bruno Haible  <bruno@clisp.org>
57384
57385         * gnulib-tool: New options --vc-files, --no-vc-files.
57386         (func_usage): Document them.
57387         (vc_files): New variable.
57388         (func_import): Consider vc_files.
57389         (func_create_testdir): Set vc_files to empty.
57390         Suggested by Jim Meyering and Karl Berry.
57391
57392 2008-03-23  Bruno Haible  <bruno@clisp.org>
57393
57394         Fix regex compilation error on HP-UX 11.
57395         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
57396         * modules/regex (Files): Add m4/mbstate_t.m4.
57397         Reported by Ton Voon <ton.voon@altinity.com>.
57398
57399 2008-03-23  Bruno Haible  <bruno@clisp.org>
57400
57401         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
57402
57403 2008-03-23  Eric Blake  <ebb9@byu.net>
57404             Bruno Haible  <bruno@clisp.org>
57405
57406         Install files from top/ in the destination directory.
57407         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57408         augmentation also for the files from top/.
57409         (func_import, func_create_testdir): Rewrite file names:
57410         top/filename -> filename.
57411
57412 2008-03-23  Bruno Haible  <bruno@clisp.org>
57413
57414         Tweak "gnulib --version" output.
57415         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
57416
57417 2008-03-23  Bruno Haible  <bruno@clisp.org>
57418
57419         Tweak "gnulib --version" output.
57420         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
57421         rather than contents of ChangeLog, when possible.
57422
57423 2008-03-21  Eric Blake  <ebb9@byu.net>
57424
57425         More --version tweaks.
57426         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
57427         date of last ChangeLog entry.
57428
57429 2008-03-21  Jim Meyering  <meyering@redhat.com>
57430
57431         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
57432
57433 2008-03-20  Eric Blake  <ebb9@byu.net>
57434
57435         VPATH fix.
57436         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
57437
57438 2008-03-20  Simon Josefsson  <simon@josefsson.org>
57439
57440         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
57441         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
57442
57443 2008-03-20  Eric Blake  <ebb9@byu.net>
57444
57445         Sync GNUmakefile with coreutils.
57446         * build-aux/GNUmakefile (have-Makefile): Rename...
57447         (_have-Makefile): ...to this, for namespace consideration.
57448         (GNUmakefile.cfg): Include, if present.
57449         (_autoreconf): Define a default.
57450         (_is-dist-target): New rule for rebuilds to pick up intra-release
57451         version.
57452         (maint-cfg.mk): Rename...
57453         (cfg.mk): ...to this.
57454
57455 2008-03-18  Jim Meyering  <meyering@redhat.com>
57456
57457         New script and module: mktempd
57458         * MODULES.html.sh (maint+release support): Add mktempd.
57459         * build-aux/mktempd: New file.
57460         * modules/mktempd: New file.
57461
57462 2008-03-15  Jim Meyering  <meyering@redhat.com>
57463
57464         Undo last change.
57465         * lib/sha1.c, lib/md5.c: 63 != ~63.
57466         Reported by Andreas Schwab.
57467
57468         sha1.c, md5.c: Hoist a redundant expression.
57469         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
57470         "ctx->buflen" only once, before calling *_process_block.
57471         * lib/md5.c (md5_process_bytes): Likewise.
57472
57473 2008-03-14  Eric Blake  <ebb9@byu.net>
57474
57475         Bump copyright year in files generated by gnulib-tool.
57476         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
57477         gnulib-tool, rather than hard-coding it.
57478
57479         Fix 'gnulib-tool --version' output to work with git.
57480         * gnulib-tool (func_gnulib_dir): New function, extracted from...
57481         (startup): ...here.
57482         (func_version): Use it to invoke git-version-gen, rather than
57483         relying on CVS keyword expansion.  Modernize wording.
57484         (cvsdatestamp, last_checkin_date, version): Kill unused
57485         variables.
57486
57487 2008-03-12  Jim Meyering  <meyering@redhat.com>
57488
57489         Recognize optional cast of the argument to free.
57490         * build-aux/useless-if-before-free: Update regexps.
57491
57492         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
57493
57494 2008-03-11  Bruno Haible  <bruno@clisp.org>
57495
57496         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
57497         by a single package.
57498         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
57499         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
57500         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
57501         Reported by Sam Steingold <sds@gnu.org>.
57502
57503 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
57504
57505         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
57506         repositories.
57507
57508 2008-03-11  Bruno Haible  <bruno@clisp.org>
57509
57510         Avoid conflicts between local macro definitions.
57511         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
57512         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
57513
57514 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
57515             Bruno Haible  <bruno@clisp.org>
57516
57517         Make va_copy work with some version of xlc on AIX 5.1.
57518         * lib/stdarg.in.h: New file.
57519         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
57520         On AIX, use a <stdarg.h> file substitute.
57521         * modules/stdarg (Files): Add lib/stdarg.in.h.
57522         (Depends-on): Add include_next.
57523         (Makefile.am): Build a stdarg.h substitute if requested.
57524         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
57525
57526 2008-03-10  Bruno Haible  <bruno@clisp.org>
57527
57528         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
57529         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
57530         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57531
57532 2008-03-10  Bruno Haible  <bruno@clisp.org>
57533
57534         * modules/stdlib (Depends-on): Add include_next, remove
57535         absolute-header.
57536
57537 2008-03-09  Bruno Haible  <bruno@clisp.org>
57538
57539         * lib/freadahead.h (freadahead): Document more precisely.
57540         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
57541         the sum of both buffer sizes.
57542         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
57543         * NEWS: Document the change.
57544
57545 2008-03-09  Bruno Haible  <bruno@clisp.org>
57546
57547         Extend freadptr to return also the buffer size.
57548         * lib/freadptr.h (freadptr): Add sizep argument.
57549         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
57550         (freadptr): Add sizep argument. Determine buffer size like freadahead
57551         does.
57552         * tests/test-freadptr.c: Don't include freadahead.h.
57553         (main): Adapt for new calling convention of freadptr.
57554         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
57555         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
57556         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
57557         tests/test-freadptr2.sh.
57558         (Depends): Remove freadahead.
57559         (TESTS): Add test-freadptr2.sh.
57560         (check_PROGRAMS): Add test-freadptr2.
57561
57562 2008-03-09  Bruno Haible  <bruno@clisp.org>
57563
57564         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
57565         Report and solution by Simon Josefsson.
57566
57567 2008-03-06  Bruno Haible  <bruno@clisp.org>
57568
57569         Make fflush after ungetc work on BSD platforms.
57570         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
57571         * tests/test-fflush2.c: New file.
57572         * tests/test-fflush2.sh: New file.
57573         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
57574         tests/test-fflush2.c.
57575         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
57576         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
57577
57578 2008-03-06  Eric Blake  <ebb9@byu.net>
57579
57580         Likewise for ftello.
57581         * modules/ftello (Dependencies): Add extensions.
57582         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
57583
57584 2008-03-06  Bruno Haible  <bruno@clisp.org>
57585
57586         * modules/fseeko (Dependencies): Add extensions.
57587         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
57588         Needed on glibc systems.
57589
57590 2008-03-06  Bruno Haible  <bruno@clisp.org>
57591
57592         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
57593         email address.
57594         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57595
57596 2008-03-06  Bruno Haible  <bruno@clisp.org>
57597
57598         * users.txt: Add libgnupdf.
57599
57600 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
57601
57602         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
57603         (Header File Substitutes, Function Substitutes,
57604         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
57605         (Build robot for gnulib): Fix typo.
57606
57607 2008-03-06  Bruno Haible  <bruno@clisp.org>
57608
57609         * doc/gnulib-tool.texi (VCS Issues): Small updates.
57610         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57611
57612 2008-03-06  Bruno Haible  <bruno@clisp.org>
57613
57614         * doc/func.texi: New file, extracted from doc/gnulib.texi.
57615         * doc/gnulib.texi: Include it.
57616
57617 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57618
57619         * modules/func (License): Change license to unlimited; there was
57620         no LGPL parts in the module anyway.
57621
57622 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57623
57624         * modules/__func__: Renamed to modules/func.
57625         * modules/__func__-tests: Renamed to modules/func-tests.
57626         * tests/test-__func__.c: Renamed to tests/test-func.c.
57627         * m4/__func__.m4: Renamed to m4/func.m4.
57628         * doc/gnulib.texi (__func__): Section renamed to func.
57629         Suggested by Eric Blake <ebb9@byu.net>.
57630
57631 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57632
57633         * doc/gnulib.texi (__func__): Use C99 terminology when talking
57634         about __func__.  Make example self-contained.  Suggested by Eric
57635         Blake <ebb9@byu.net>.
57636
57637         * tests/test-__func__.c (main): Avoid extraneous () around __func.
57638         Suggested by Eric Blake <ebb9@byu.net>.
57639
57640 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57641
57642         * modules/__func__: New file.
57643         * modules/__func__-tests: New file.
57644         * tests/test-__func__.c: New file.
57645         * m4/__func__.m4: New file.
57646         * doc/gnulib.texi (__func__): Document __func__ module.
57647
57648 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57649
57650         * modules/byteswap (License): Re-license as LGPLv2+.
57651
57652 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57653
57654         * doc/Makefile: Add pdf target.
57655
57656 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57657
57658         * modules/inline (License): Use 'unlimited', since there are only
57659         *.m4 files in this module.
57660
57661 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57662             Bruno Haible  <bruno@clisp.org>
57663
57664         Add support for HP C 7.1 on OpenVMS 8.3.
57665         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
57666
57667 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57668
57669         Update VMS specifics.
57670         * lib/getopt.c [VMS]: Remove include of unixlib.h.
57671
57672 2008-03-02  Jim Meyering  <meyering@redhat.com>
57673
57674         Remove the last dependency on the "free" module.
57675         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
57676         Reported by Bob Proulx.
57677
57678         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
57679
57680         Remove useless "if" tests before free.  Deprecate "free" module.
57681         * doc/posix-functions/free.texi: Mention that this
57682         module is no longer useful.
57683         * modules/free (Notice): Say this module is obsolete.
57684         * modules/readutmp (Depends-on): Remove free.
57685         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
57686         * lib/putenv.c (putenv): Likewise.
57687         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
57688         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
57689         * tests/test-c-strcasestr.c (main): Likewise.
57690         * tests/test-c-strstr.c (main): Likewise.
57691         * tests/test-mbscasestr1.c (main): Likewise.
57692         * tests/test-mbscasestr2.c (main): Likewise.
57693         * tests/test-mbsstr1.c (main): Likewise.
57694         * tests/test-mbsstr2.c (main): Likewise.
57695         * tests/test-memmem.c (main): Likewise.
57696         * tests/test-strcasestr.c (main): Likewise.
57697         * tests/test-striconv.c (main): Likewise.
57698         * tests/test-striconveh.c (main): Likewise.
57699         * tests/test-striconveha.c (main): Likewise.
57700         * tests/test-strstr.c (main): Likewise.
57701
57702         * build-aux/git-version-gen: Adjust a comment and the Usage string.
57703
57704         bootstrap: sync from coreutils again
57705         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
57706
57707 2008-03-01  Jim Meyering  <meyering@redhat.com>
57708
57709         bootstrap: sync from coreutils
57710         * build-aux/bootstrap (update_po_files): Copy a .po file into place
57711         also when the target doesn't exist.
57712
57713 2008-03-01  Eric Blake  <ebb9@byu.net>
57714
57715         Fix bugs in last patch.
57716         * lib/memchr2.c (memchr2): Fix typo.
57717         * tests/test-memchr2.c: Test previous bug, and don't use GNU
57718         extension.
57719         Reported by Bruce Korb.
57720
57721         New module 'memchr2'.
57722         * modules/memchr2: New file.
57723         * modules/memchr2-tests: Likewise.
57724         * lib/memchr2.h: Likewise.
57725         * lib/memchr2.c: Likewise, based on memchr.c.
57726         * tests/test-memchr2.c: New test.
57727         * MODULES.html.sh (String handling): Add memchr2.
57728
57729 2008-02-29  Bruno Haible  <bruno@clisp.org>
57730
57731         * modules/freadseek-tests: New file.
57732         * tests/test-freadseek.sh: New file.
57733         * tests/test-freadseek.c: New file.
57734
57735         New module 'freadseek'.
57736         * modules/freadseek: New file.
57737         * lib/freadseek.h: New file.
57738         * lib/freadseek.c: New file.
57739         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
57740
57741 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
57742
57743         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
57744         wydawca.
57745
57746         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
57747         program_invocation_name and program_invocation_short_name are
57748         present.
57749
57750 2008-02-28  Bruno Haible  <bruno@clisp.org>
57751
57752         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
57753         * tests/test-freadptr.sh: Also test non-seekable stdin.
57754
57755 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
57756
57757         * build-aux/bootstrap (source_base, m4_base)
57758         (doc_base, tests_base): New variables.
57759         (gnulib_tool_options): Do not hardcode base directories, use
57760         the above variables instead.
57761
57762 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
57763
57764         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
57765
57766 2008-02-28  Bruno Haible  <bruno@clisp.org>
57767
57768         * modules/freadptr-tests: New file.
57769         * tests/test-freadptr.sh: New file.
57770         * tests/test-freadptr.c: New file.
57771
57772         New module 'freadptr'.
57773         * modules/freadptr: New file.
57774         * lib/freadptr.h: New file.
57775         * lib/freadptr.c: New file.
57776         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
57777
57778 2008-02-26  Karl Berry  <karl@freefriends.org>
57779
57780         Sync from Libtool:
57781         * libltdl/argz.c (argz_add, argz_count): New functions.
57782         * libltdl/argz.in.h: Declare them.
57783         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
57784
57785 2008-02-22  Bruno Haible  <bruno@clisp.org>
57786
57787         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
57788         is a pointer type.  Needed for HP-UX 10.
57789         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
57790         * doc/posix-functions/gmtime_r.texi: Likewise.
57791         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57792
57793 2008-02-24  Bruno Haible  <bruno@clisp.org>
57794
57795         * modules/environ-tests: New file.
57796         * tests/test-environ.c: New file.
57797
57798         New module 'environ'.
57799         * modules/environ: New file.
57800         * lib/unistd.in.h (environ): New declaration.
57801         * m4/environ.m4: New file.
57802         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
57803         after use.
57804         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
57805         HAVE_DECL_ENVIRON.
57806         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
57807         HAVE_DECL_ENVIRON.
57808         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
57809         wrong claim that 'environ' is missing on some systems.
57810         * modules/execute (Depends-on): Add environ.
57811         * lib/execute.c (environ): Remove fallback declaration.
57812         * modules/pipe (Depends-on): Add environ.
57813         * lib/pipe.c (environ): Remove fallback declaration.
57814         * modules/setenv (Depends-on): Add environ.
57815         * lib/setenv.c (environ): Remove fallback declaration.
57816         * modules/unsetenv (Depends-on): Add environ.
57817         * lib/unsetenv.c (environ): Remove fallback declaration.
57818         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
57819         m4/environ.m4.
57820         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
57821         (gl_PREREQ_UNSETENV): Likewise.
57822
57823 2008-02-24  Bruno Haible  <bruno@clisp.org>
57824
57825         * doc/posix-functions/environ.texi: Document the MacOS X problem.
57826
57827 2008-02-20  Bob Proulx  <bob@proulx.com>
57828
57829         Enable use of older two part flavor 'git describe'.
57830         * build-aux/git-version-gen: If using the older two part flavor of
57831         git version then recreate the third part now present in the
57832         newer three part flavor of git describe.
57833
57834 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
57835
57836         * lib/fts.c (fts_build): Typo correction to comment.
57837
57838 2008-02-17  Bruno Haible  <bruno@clisp.org>
57839
57840         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
57841         generating no-op conflicts.
57842
57843 2008-02-17  Bruno Haible  <bruno@clisp.org>
57844
57845         Speed up by 10%.
57846         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
57847         result_entries, rather than an index-based loop.
57848
57849 2008-02-17  Bruno Haible  <bruno@clisp.org>
57850
57851         Speed up by 25%.
57852         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
57853         'hashcode_cached'.
57854         (entry_create): New function.
57855         (entry_hashcode): Use the cached hashcode if possible.
57856         (read_changelog_file, try_split_merged_entry): Use entry_create.
57857
57858 2008-02-17  Bruno Haible  <bruno@clisp.org>
57859
57860         Speed up from O(n^2) to O(n) for long ChangeLog files.
57861         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
57862         (read_changelog_file): Change implementation of entries_reversed list
57863         to rbtreehash.
57864         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
57865
57866 2008-02-17  Bruno Haible  <bruno@clisp.org>
57867
57868         New option --split-merged-entry.
57869         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
57870         (find_paragraph_end, try_split_merged_entry): New functions.
57871         (long_options): Add option --split-merged-entry.
57872         (usage): Document option --split-merged-entry.
57873         (main): Implement option --split-merged-entry.
57874         Reported by Eric Blake.
57875
57876 2008-02-17  Bruno Haible  <bruno@clisp.org>
57877
57878         * lib/git-merge-changelog.c: Include c-strstr.h.
57879         (main): Support the "git pull --rebase" situation.
57880         * modules/git-merge-changelog (Depends-on): Add c-strstr.
57881         Reported by Eric Blake.
57882
57883 2008-02-16  Eric Blake  <ebb9@byu.net>
57884
57885         Avoid doubling \ in common case of "c-maybe" quoting style.
57886         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
57887         eliding outer quotes.
57888         * lib/quotearg.h: Document this.
57889         * tests/test-quotearg.c (result_strings, inputs, results_g)
57890         (flag_results, locale_results): Test it by adding a new string to
57891         each test group.
57892         (compare_strings): Test new string.
57893
57894 2008-02-13  Eric Blake  <ebb9@byu.net>
57895
57896         Avoid trigraph quoting in default output.
57897         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
57898         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
57899         unless explicitly requested.
57900         * tests/test-quotearg.c (flag_results, main): Add additional tests.
57901
57902 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
57903
57904         Don't rely on signed integer overflowing to negative value.
57905         * lib/getugroups.c (getugroups): Include <limits.h>.
57906         Instead, compare against INT_MAX, and increment only if the test passes.
57907
57908 2008-02-13  Jim Meyering  <meyering@redhat.com>
57909         and Eric Blake  <ebb9@byu.net>
57910
57911         Avoid shadowing warning and compile errors on Linux.
57912         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
57913         forwarding macros on Linux.
57914         (dcgettext): Define a stub, for Linux.
57915         (results_g, main): Avoid warnings.
57916
57917 2008-02-12  Eric Blake  <ebb9@byu.net>
57918
57919         Silence warning in last patch.
57920         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
57921
57922         Quotearg part 4: add tests, fix c-maybe colon quoting.
57923         * lib/quotearg.h: Improve documentation.
57924         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
57925         escapes when adding outer quotes.  When quoting trigraphs, use
57926         valid C notation.  When quoting NUL, omit extra characters if next
57927         character is not digit.  Alter prototype.
57928         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
57929         callers.
57930         * modules/quotearg-tests: New module.
57931         * tests/test-quotearg.c: New test.
57932
57933 2008-02-07  Eric Blake  <ebb9@byu.net>
57934
57935         Quotearg part 3: add flag to control outer quote elision.
57936         * lib/quotearg.h (c_maybe_quoting_style): New style.
57937         (enum quoting_flags): Better documentation of flags.
57938         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
57939         c-maybe style.
57940         (quotearg_buffer_restyled): Handle new flag to elide outer
57941         quotes.
57942
57943         Quotearg part 2: add flag that can control NUL elision.
57944         * lib/quotearg.h (set_quoting_flags): New prototype.
57945         * lib/quotearg.c (struct quoting_options): Add flag field.
57946         (set_quoting_flags): New function.
57947         (quotearg_buffer_restyled): Add flags parameter.
57948         (quotearg_alloc_mem): Set the flag if length cannot be returned.
57949         (quotearg_n_options): Set the flag, since length cannot be
57950         returned.
57951         (quoting_options_from_style): Default flags correctly.
57952
57953         Quotearg part 1: more wrappers, restore quotearg_char state.
57954         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
57955         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
57956         (quotearg_colon_mem): New wrappers.
57957         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
57958         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
57959         functions.
57960         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
57961         (quotearg_colon_mem): New functions.
57962
57963 2008-02-11  Bruno Haible  <bruno@clisp.org>
57964
57965         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
57966         library in the current directory: it does not work with parallel make.
57967         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57968
57969 2008-02-11  Bruno Haible  <bruno@clisp.org>
57970
57971         * .gitattributes: New file.
57972
57973 2008-02-11  Jim Meyering  <meyering@redhat.com>
57974
57975         useless-if-before-free: Fix reversed exit values.
57976         * build-aux/useless-if-before-free: Use correct values
57977         for EXIT_MATCH and EXIT_NO_MATCH.
57978
57979         * build-aux/useless-if-before-free: Close stdout carefully.
57980
57981 2008-02-10  Bruno Haible  <bruno@clisp.org>
57982
57983         New module 'git-merge-changelog'.
57984         * modules/git-merge-changelog: New file.
57985         * lib/git-merge-changelog.c: New file.
57986
57987 2008-02-10  Jim Meyering  <meyering@redhat.com>
57988
57989         useless-if-before-free: New option: --list (-l).
57990
57991         useless-if-before-free: Don't exit immediately upon open failure.
57992         * build-aux/useless-if-before-free: Exit 2 for errors.
57993         Upon failure to open a file, don't exit immediately.
57994         Rather, just warn and continue with any remaining files.
57995
57996 2008-02-10  Bruno Haible  <bruno@clisp.org>
57997
57998         New abstract list operation 'node_set_value'.
57999         * lib/gl_list.h (gl_list_node_set_value): New function.
58000         (struct gl_list_implementation): New field node_set_value.
58001         * lib/gl_list.c (gl_list_node_set_value): New function.
58002         * lib/gl_array_list.c (gl_array_node_set_value): New function.
58003         (gl_array_list_implementation): Update.
58004         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
58005         (gl_carray_list_implementation): Update.
58006         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
58007         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58008         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58009         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
58010         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58011         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58012         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58013         Update.
58014         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
58015         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
58016         (gl_sublist_list_implementation): Update.
58017
58018 2008-02-10  Bruno Haible  <bruno@clisp.org>
58019
58020         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
58021         Needed when ELEMENT is #defined to 'some_type *'.
58022
58023 2008-02-10  Jim Meyering  <meyering@redhat.com>
58024
58025         New script and module: useless-if-before-free
58026         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
58027         * build-aux/useless-if-before-free: New file.
58028         * modules/useless-if-before-free: New file.
58029
58030         * build-aux/gitlog-to-changelog: Use committer date, not author date.
58031
58032         xstrtol_error: Fix typo.
58033         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
58034         s/exit_failure/exit_status/.
58035
58036 2008-02-09  Jim Meyering  <meyering@redhat.com>
58037
58038         New script and module: gitlog-to-changelog
58039         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
58040         * modules/gitlog-to-changelog: New file.
58041         * build-aux/gitlog-to-changelog: New file.
58042
58043 2008-02-08  Jim Meyering  <meyering@redhat.com>
58044
58045         Avoid two "parameter unused" warnings.
58046         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
58047         Mark "st" as used.
58048
58049         Use "git COMMAND", not "git-COMMAND".
58050         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
58051         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
58052         * build-aux/git-version-gen: Use "git status", not "git-status".
58053
58054 2008-02-07  Bruno Haible  <bruno@clisp.org>
58055
58056         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
58057         Avoids a crash on Windows Vista.
58058         Reported by Adam Strzelecki <ono@java.pl> via
58059         Simon Josefsson <simon@josefsson.org>.
58060
58061 2008-02-06  Bruno Haible  <bruno@clisp.org>
58062
58063         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
58064         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
58065         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
58066         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
58067         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
58068         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58069         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
58070         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
58071         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58072         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58073         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58074         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58075         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58076         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58077         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58078         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
58079         left-adjust flag.
58080         * tests/test-snprintf-posix.h (test_function): Likewise.
58081         * tests/test-sprintf-posix.h (test_function): Likewise.
58082         * tests/test-vasprintf-posix.c (test_function): Likewise.
58083         * doc/posix-functions/fprintf.texi: Update.
58084         * doc/posix-functions/printf.texi: Update.
58085         * doc/posix-functions/snprintf.texi: Update.
58086         * doc/posix-functions/sprintf.texi: Update.
58087         * doc/posix-functions/vfprintf.texi: Update.
58088         * doc/posix-functions/vprintf.texi: Update.
58089         * doc/posix-functions/vsnprintf.texi: Update.
58090         * doc/posix-functions/vsprintf.texi: Update.
58091         Reported by Peter Fales <psfales@alcatel-lucent.com>.
58092
58093 2008-02-06  Bruno Haible  <bruno@clisp.org>
58094
58095         Fix bug introduced on 2008-01-26.
58096         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
58097
58098 2008-02-06  Bruno Haible  <bruno@clisp.org>
58099
58100         Fix bug introduced on 2007-06-10.
58101         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
58102         !NEED_PRINTF_FLAG_ZERO.
58103
58104 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
58105
58106         getloadavg: use libperfstat on AIX5
58107         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
58108
58109 2008-02-03  Bruno Haible  <bruno@clisp.org>
58110
58111         * lib/diffseq.h: Add comments about required #includes.
58112         Reported by Michael Biggs <gnulib@doubleplum.net>.
58113
58114 2008-02-01  Bruno Haible  <bruno@clisp.org>
58115
58116         * users.txt: Add gnuit.
58117
58118 2008-01-31  Bruno Haible  <bruno@clisp.org>
58119
58120         * lib/md4.c (set_uint32): Mark as inline.
58121         * lib/md5.c (set_uint32): Likewise.
58122         * lib/sha1.c (set_uint32): Likewise.
58123         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
58124         * m4/md5.m4 (gl_MD5): Likewise.
58125         * m4/sha1.m4 (gl_SHA1): Likewise.
58126
58127 2008-01-31  Jim Meyering  <meyering@redhat.com>
58128
58129         Use "sizeof VAR", rather than a literal "4".
58130         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
58131         * lib/md4.c (md4_read_ctx): Likewise.
58132         * lib/sha1.c (sha1_read_ctx): Likewise.
58133
58134 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58135
58136         * tests/test-sha1.c: New file, based on test-md5.c.
58137
58138         * modules/crypto/sha1-tests: New file.
58139
58140 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58141
58142         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
58143
58144 2008-01-31  Jim Meyering  <meyering@redhat.com>
58145
58146         Prefer "sizeof v" over the equivalent "4".
58147         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
58148         * lib/md5.c (set_uint32): Likewise.
58149         * lib/sha1.c (set_uint32): Likewise.
58150
58151 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58152
58153         * lib/sha1.c (set_uint32): Mark function as static.
58154
58155 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58156
58157         md2: clarify comments to say that alignment is not required.
58158         * lib/md2.h: Remove warning about alignment in comment.
58159         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
58160         never been required.
58161
58162 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58163
58164         md4: adapt alignment constraint fix from sha1.
58165         * lib/md4.c (set_uint32): New function, from sha1.c
58166         (md4_read_ctx): Use it.
58167         (md4_finish_ctx): Doc fix.
58168         * lib/md4.h: Doc fix.
58169
58170 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58171
58172         md5: adapt alignment constraint fix from sha1.
58173         * lib/md5.c (set_uint32): New function, from sha1.c
58174         (md5_read_ctx): Use it.
58175         (md5_finish_ctx): Doc fix.
58176         * lib/md5.h: Doc fix.
58177
58178 2008-01-30  Peter Palfrader  <weasel@debian.org>
58179
58180         sha1: remove the result buffer alignment constraint
58181         * lib/sha1.c (set_uint32): New function.
58182         (sha1_read_ctx): Rewrite to remove the result buffer alignment
58183         constraint.
58184         (sha1_finish_ctx): Remove comment warning about alignment constraint.
58185         * lib/sha1.h: Likewise.
58186
58187 2008-01-30  Andreas Schwab  <schwab@suse.de>
58188             Bruno Haible  <bruno@clisp.org>
58189
58190         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
58191         correct definition of LDBL_MIN_EXP.
58192
58193 2008-01-30  Karl Berry  <karl@gnu.org>
58194
58195         * config/srclist-update: try to preserve x bit on updates.
58196         * config/srclistvars.sh: update for karl.
58197
58198 2008-01-29  Jim Meyering  <meyering@redhat.com>
58199
58200         vasnprintf.c: Avoid warning about unused label
58201         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
58202         "overflow" label definition and associated code with the
58203         same cpp condition that guards the sole use of that label.
58204
58205 2008-01-26  Bruno Haible  <bruno@clisp.org>
58206
58207         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
58208         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
58209         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
58210         * lib/isnanl-nolibm.h (isnanl): Likewise.
58211         Reported by Paul Eggert <eggert@cs.ucla.edu>.
58212
58213 2008-01-26  Bruno Haible  <bruno@clisp.org>
58214
58215         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
58216         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
58217
58218 2008-01-26  Bruno Haible  <bruno@clisp.org>
58219
58220         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
58221         GCC >= 4.0 built-in.
58222         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
58223
58224 2008-01-26  Bruno Haible  <bruno@clisp.org>
58225
58226         Rename isnan, applicable to 'double' only, to isnand.
58227         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
58228         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
58229         (configure.ac): Update.
58230         (Include): Replace "isnan.h" with "isnand.h".
58231         * m4/isnand.m4: Renamed from m4/isnan.m4.
58232         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
58233         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
58234         instead of isnan.c.
58235         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
58236         instead of HAVE_ISNAN_IN_LIBC.
58237         (isnand): Renamed from isnan.
58238         * lib/isnand.c: New file.
58239         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
58240         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
58241         (Makefile.am): Update.
58242         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
58243         Include isnand.h instead of isnan.h.
58244         (main): Test isnand instead of isnan.
58245         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
58246         isnan-nolibm.
58247         * modules/frexp (Depends-on): Likewise.
58248         * modules/frexp-tests (Depends-on): Likewise.
58249         * modules/frexp-nolibm (Depends-on): Likewise.
58250         * modules/frexp-nolibm-tests (Depends-on): Likewise.
58251         * modules/isfinite (Depends-on): Likewise.
58252         * modules/round-tests (Depends-on): Likewise.
58253         * modules/signbit (Depends-on): Likewise.
58254         * modules/signbit-tests (Depends-on): Likewise.
58255         * modules/snprintf-posix (Depends-on): Likewise.
58256         * modules/sprintf-posix (Depends-on): Likewise.
58257         * modules/trunc-tests (Depends-on): Likewise.
58258         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58259         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58260         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58261         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58262         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58263         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58264         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58265         * modules/vasnprintf-posix (Depends-on): Likewise.
58266         * modules/vasprintf-posix (Depends-on): Likewise.
58267         * modules/vfprintf-posix (Depends-on): Likewise.
58268         * modules/vsnprintf-posix (Depends-on): Likewise.
58269         * modules/vsprintf-posix (Depends-on): Likewise.
58270         * lib/frexp.c: Include isnand.h instead of isnan.h.
58271         (ISNAN): Set to isnand instead of isnan.
58272         * lib/isfinite.c: Include isnand.h instead of isnan.h.
58273         (gl_isfinited): Use isnand instead of isnan.
58274         * lib/signbitd.c: Include isnand.h instead of isnan.h.
58275         (gl_signbitd): Use isnand instead of isnan.
58276         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
58277         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
58278         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
58279         (main): Use isnand instead of isnan.
58280         * tests/test-round1.c: Include isnand.h.
58281         (main): Use isnand instead of isnan.
58282         * tests/test-round2.c: Include isnand.h instead of isnan.h.
58283         (ISNAN): Set to isnand instead of isnan.
58284         * tests/test-trunc1.c: Include isnand.h.
58285         (main): Use isnand instead of isnan.
58286         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
58287         (equal): Use isnand instead of isnan.
58288         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
58289         isnand-nolibm.
58290         * NEWS: Mention the change.
58291
58292 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
58293             Bruno Haible  <bruno@clisp.org>
58294
58295         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
58296         the GCC builtins for signbits are present and set
58297         REPLACE_SIGNBIT_USING_GCC if so.
58298         * lib/math.in.h (signbit): Define using GCC builtins if
58299         REPLACE_SIGNBIT_USING_GCC is set.
58300         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
58301         REPLACE_SIGNBIT_USING_GCC.
58302         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
58303
58304 2008-01-25  Jim Meyering  <meyering@redhat.com>
58305
58306         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
58307         * lib/poll.c: Include <config.h>, not "config.h".
58308         * tests/test-getaddrinfo.c: Likewise.
58309
58310 2008-01-25  Simon Josefsson  <simon@josefsson.org>
58311
58312         * modules/sockets-tests: New file.
58313
58314 2008-01-24  Simon Josefsson  <simon@josefsson.org>
58315
58316         * modules/sockets: New module, can be used to call WSA_Startup and
58317         WSA_Cleanup when needed.
58318
58319         * lib/sockets.h, lib/sockets.c: New files.
58320
58321         * m4/sockets.m4: New file.
58322
58323         * tests/test-sockets.c: New file.
58324
58325 2008-01-19  Bruno Haible  <bruno@clisp.org>
58326
58327         * doc/posix-headers: Renamed from doc/headers.
58328         * doc/posix-functions: Renamed from doc/functions.
58329         * doc/gnulib.texi: Update.
58330
58331 2008-01-19  Bruno Haible  <bruno@clisp.org>
58332
58333         * doc/glibc-functions/strcasestr.texi: Include contents of
58334         doc/functions/strcasestr.texi, fixing the list of platforms.
58335         * doc/functions/strcasestr.texi: Remove file.
58336
58337 2008-01-19  Bruno Haible  <bruno@clisp.org>
58338
58339         * doc/glibc-functions/memmem.texi: Include contents of
58340         doc/functions/memmem.texi.
58341         * doc/functions/memmem.texi: Remove file.
58342
58343 2008-01-18  Bruno Haible  <bruno@clisp.org>
58344
58345         * doc/glibc-functions/*.texi: New files.
58346         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
58347         to use the new files.
58348
58349 2008-01-17  Bruno Haible  <bruno@clisp.org>
58350
58351         * tests/test-gethostname.c (main): Fix printf statement.
58352
58353 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58354
58355         * modules/gethostname-tests: New file.
58356
58357         * tests/test-gethostname.c: New file.
58358
58359 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58360
58361         * lib/gethostname.c: Include string.h unconditionally, strncpy is
58362         used by the UNAME case.  Reported by Bruno Haible
58363         <bruno@clisp.org>.
58364
58365 2008-01-17  Eric Blake  <ebb9@byu.net>
58366
58367         Convert c-strcasestr to be more efficient.
58368         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
58369         (Depends-on): Add c-strcase, remove malloca, strnlen.
58370         * tests/test-c-strcasestr.c (main): Enhance test.
58371         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
58372
58373 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
58374
58375         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
58376         Use it in creating po/Makevars.
58377
58378 2008-01-15  Simon Josefsson  <simon@josefsson.org>
58379
58380         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
58381         Applications that requires it should initialize libgcrypt
58382         manually.
58383
58384 2008-01-16  Simon Josefsson  <simon@josefsson.org>
58385
58386         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
58387
58388 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
58389
58390         Fix problem with getdate on mingw32 reported by Simon Josefsson
58391         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
58392         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
58393         tzname", when deciding whether to declare tzname.
58394         * lib/strftime.c (tzname): Likewise.
58395
58396 2008-01-15  Bruno Haible  <bruno@clisp.org>
58397
58398         Work around a MacOS X 10.5 bug in frexpl().
58399         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
58400         * doc/functions/frexpl.texi: Document the bug.
58401         Reported by Elias Pipping <pipping@gentoo.org>.
58402
58403 2008-01-14  Eric Blake  <ebb9@byu.net>
58404
58405         Touch up previous patch.
58406         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
58407         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
58408
58409         Convert strcasestr module to use Two-Way algorithm.
58410         * modules/strcasestr-simple: New module, based on the old
58411         strcasestr, but with Two-Way rather than KMP.
58412         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
58413         * lib/string.in.h (rpl_strcasestr): Declare.
58414         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
58415         performance.
58416         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
58417         * modules/string (Makefile.am): Support strcasestr.
58418         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
58419         * modules/strcasestr-tests (Depends-on): Check for alarm.
58420         * tests/test-strcasestr.c: Augment test.
58421         * lib/str-two-way.h: Clean up stray macro.
58422         * NEWS: Document new module.
58423         * MODULES.html.sh (string handling): Likewise.
58424         * doc/functions/strcasestr.texi: New file.
58425         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
58426         here, since it is not a POSIX function.
58427
58428 2008-01-14  Colin Watson  <cjwatson@debian.org>
58429             Bruno Haible  <bruno@clisp.org>
58430
58431         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
58432         works fine; if not, set REPLACE_STRSIGNAL.
58433         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
58434         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58435         REPLACE_STRSIGNAL.
58436         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
58437         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
58438         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
58439
58440 2008-01-14  Bruno Haible  <bruno@clisp.org>
58441
58442         * modules/strsignal (Include): Change to <string.h>.
58443
58444 2008-01-14  Colin Watson  <cjwatson@debian.org>
58445
58446         * modules/argp (Notice): Add a notice recommending to change
58447         XGETTEXT_OPTIONS.
58448         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
58449
58450 2008-01-13  Colin Watson  <cjwatson@debian.org>
58451
58452         * modules/strsignal-tests: New file.
58453         * tests/test-strsignal.c: New file.
58454
58455         * lib/strsignal.c: New file, from glibc with modifications.
58456         * lib/siglist.h: New file, from glibc with modifications.
58457         * lib/string.in.h (strsignal): New declaration.
58458         * m4/strsignal.m4: New file.
58459         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58460         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
58461         * modules/strsignal: New file.
58462         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
58463         HAVE_DECL_STRSIGNAL.
58464
58465 2008-01-13  Bruno Haible  <bruno@clisp.org>
58466
58467         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
58468         locale encoding is not ASCII. Needed for OpenBSD 4.0.
58469         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
58470         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58471
58472 2008-01-13  Bruno Haible  <bruno@clisp.org>
58473
58474         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
58475         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
58476         * lib/argp.h (__attribute__): Likewise.
58477         * lib/c-stack.c (__attribute__): Likewise.
58478         * lib/error.h (__attribute__): Likewise.
58479         * lib/fts.c (__attribute__): Likewise.
58480         * lib/openat.h (__attribute__): Likewise.
58481         * lib/stdio.in.h (__attribute__): Likewise.
58482         * lib/string.in.h (__attribute__): Likewise.
58483         * lib/utimens.c (__attribute__): Likewise.
58484         * lib/vasnprintf.h (__attribute__): Likewise.
58485         * lib/xalloc.h (__attribute__): Likewise.
58486         * lib/xprintf.h (__attribute__): Likewise.
58487         * lib/xstrtol.h (__attribute__): Likewise.
58488         * lib/xvasprintf.h (__attribute__): Likewise.
58489
58490 2008-01-12  Bruno Haible  <bruno@clisp.org>
58491
58492         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
58493         * doc/glibc-headers/a.out.texi: New file.
58494         * doc/glibc-headers/aliases.texi: New file.
58495         * doc/glibc-headers/alloca.texi: New file.
58496         * doc/glibc-headers/ar.texi: New file.
58497         * doc/glibc-headers/argp.texi: New file.
58498         * doc/glibc-headers/argz.texi: New file.
58499         * doc/glibc-headers/byteswap.texi: New file.
58500         * doc/glibc-headers/crypt.texi: New file.
58501         * doc/glibc-headers/endian.texi: New file.
58502         * doc/glibc-headers/envz.texi: New file.
58503         * doc/glibc-headers/err.texi: New file.
58504         * doc/glibc-headers/error.texi: New file.
58505         * doc/glibc-headers/execinfo.texi: New file.
58506         * doc/glibc-headers/fpu_control.texi: New file.
58507         * doc/glibc-headers/fstab.texi: New file.
58508         * doc/glibc-headers/fts.texi: New file.
58509         * doc/glibc-headers/getopt.texi: New file.
58510         * doc/glibc-headers/ieee754.texi: New file.
58511         * doc/glibc-headers/ifaddrs.texi: New file.
58512         * doc/glibc-headers/libintl.texi: New file.
58513         * doc/glibc-headers/mcheck.texi: New file.
58514         * doc/glibc-headers/mntent.texi: New file.
58515         * doc/glibc-headers/obstack.texi: New file.
58516         * doc/glibc-headers/paths.texi: New file.
58517         * doc/glibc-headers/printf.texi: New file.
58518         * doc/glibc-headers/pty.texi: New file.
58519         * doc/glibc-headers/resolv.texi: New file.
58520         * doc/glibc-headers/shadow.texi: New file.
58521         * doc/glibc-headers/sysexits.texi: New file.
58522         * doc/glibc-headers/ttyent.texi: New file.
58523
58524 2008-01-12  Jim Meyering  <meyering@redhat.com>
58525
58526         announce-gen: emit Gnulib's git-based version string.
58527         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
58528         New option --gnulib-version=V, where V is expected to be
58529         the output of running git describe in the gnulib directory.
58530         (get_tool_versions): Request feedback on xdelta.  I suspect it's
58531         not useful, and plan to stop publishing an xdelta file with each
58532         coreutils release.
58533
58534         * build-aux/announce-gen: Also check for lzma-compressed files.
58535
58536 2008-01-11  Bruno Haible  <bruno@clisp.org>
58537
58538         * tests/test-memmem.c (main): Increase maximum allowed time.
58539         * tests/test-strstr.c (main): Likewise.
58540
58541 2008-01-11  Bruno Haible  <bruno@clisp.org>
58542
58543         * doc/functions/memmem.texi: Add more precisions about platforms.
58544         * doc/functions/strstr.texi: Likewise.
58545
58546 2008-01-10  Eric Blake  <ebb9@byu.net>
58547
58548         * m4/strstr.m4: Delete cruft from copy-n-paste.
58549         Reported by Bruno Haible.
58550
58551 2008-01-10  Bruno Haible  <bruno@clisp.org>
58552
58553         Make c-strstr rely on strstr.
58554         * lib/c-strstr.c: Don't include str-kmp.h.
58555         (c_strstr): Define in terms of strstr.
58556         * modules/c-strstr (Files): Remove lib/str-kmp.h.
58557         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
58558
58559 2008-01-10  Bruno Haible  <bruno@clisp.org>
58560
58561         * doc/gnulib.texi (String Functions in C Locale): New section.
58562         * doc/c-ctype.texi: New file.
58563         * doc/c-strcase.texi: New file.
58564         * doc/c-strcaseeq.texi: New file.
58565         * doc/c-strcasestr.texi: New file.
58566         * doc/c-strstr.texi: New file.
58567         * doc/c-strtod.texi: New file.
58568         * doc/c-strtold.texi: New file.
58569
58570 2008-01-10  Eric Blake  <ebb9@byu.net>
58571
58572         * lib/relocatable.h: Fix a comment.
58573
58574 2008-01-10  Eric Blake  <ebb9@byu.net>
58575
58576         Share two-way algorithm.
58577         * lib/str-two-way.h: New file, merged from...
58578         * lib/memmem.c: ...here...
58579         * lib/strstr.c: ...and here.
58580         * modules/memmem (Files): Use it.
58581         * modules/strstr (Files): Likewise.
58582
58583         Avoid quadratic strstr implementations.
58584         * lib/strstr.c: New file.
58585         * m4/strstr.m4: Likewise.
58586         * modules/strstr: Likewise.
58587         * modules/strstr-tests: Likewise.
58588         * tests/test-strstr.c: Likewise.
58589         * lib/string.in.h (rpl_strstr): Declare.
58590         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
58591         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
58592         * modules/string (Makefile.am): Likewise.
58593         * MODULES.html.sh (string handling): Mention new module.
58594         * doc/functions/strstr.texi (strstr): Document the bug.
58595
58596 2008-01-10  Bruno Haible  <bruno@clisp.org>
58597
58598         * lib/relocatable.h (relocate): State whether result is freshly
58599         allocated or not.
58600         * lib/relocatable.c (relocate): Return a freshly allocated string
58601         instead of a pointer to a privately held string.
58602         Reported by Sylvain Beucler <beuc@gnu.org>.
58603
58604 2008-01-10  Colin Watson  <cjwatson@debian.org>
58605
58606         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
58607         s/S_ISNLK/S_ISLNK/.
58608
58609 2008-01-09  Bruno Haible  <bruno@clisp.org>
58610
58611         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
58612         and other files.
58613         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
58614         if it's only a guess.
58615         * modules/memmem: Simplify by depending on memmem-simple.
58616
58617 2008-01-09  Bruno Haible  <bruno@clisp.org>
58618
58619         Work around OpenBSD 4.0 tdelete() bug.
58620         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
58621         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
58622         macros and don't redefine the enum values.
58623         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
58624         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
58625         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
58626
58627 2008-01-09  Bruno Haible  <bruno@clisp.org>
58628
58629         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
58630         (main): Don't perform the tests if setlocale did not install a UTF-8
58631         locale. Needed on OpenBSD 4.0.
58632         * modules/wcwidth-tests (Depends-on): Add localcharset.
58633
58634 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58635
58636         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
58637         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
58638         * NEWS: announce this.
58639         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
58640
58641 2008-01-09  Simon Josefsson  <simon@josefsson.org>
58642         and Eric Blake  <ebb9@byu.net>
58643
58644         Add memmem-simple module.
58645         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
58646         (gl_FUNC_MEMMEM): Separate performance from presence checks.
58647         * modules/memmem-simple: New file.
58648         * modules/memmem (Description): Tweak.
58649         * MODULES.html.sh (string handling): Mention new module.
58650         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
58651         addressed by memmem-simple.
58652         * NEWS: Document the difference.
58653
58654 2008-01-09  Eric Blake  <ebb9@byu.net>
58655
58656         Give gcc some memmem optimization hints.
58657         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
58658         (strcasestr): Declare as pure.
58659         * modules/memmem (Maintainer): Claim my implementation.
58660
58661 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58662
58663         Support AIX 6.1 and higher.
58664         * build-aux/config.libpath: Likewise.
58665         * build-aux/config.rpath: Likewise.
58666
58667 2008-01-08  Jim Meyering  <meyering@redhat.com>
58668             Bruno Haible  <bruno@clisp.org>
58669
58670         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
58671         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
58672         Reported by Peter Fales in
58673         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
58674
58675 2008-01-08  Bruno Haible  <bruno@clisp.org>
58676
58677         * modules/unictype/category-of (Depends-on): Add
58678         unictype/category-none.
58679         * modules/unictype/category-and-tests (Depends-on): Add
58680         unictype/category-{L,N,Lu,Nd}.
58681         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
58682         * modules/unictype/category-or-tests (Depends-on): Add
58683         unictype/category-{L,N}.
58684         * modules/unictype/category-name-tests (Depends-on): Add
58685         unictype/category-{Z,Nl}.
58686         Reported by Simon Josefsson.
58687
58688 2008-01-08  Bruno Haible  <bruno@clisp.org>
58689
58690         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
58691         convention better.
58692         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
58693         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
58694         Reported by Peter Miller <millerp@canb.auug.org.au>.
58695
58696 2008-01-08  Eric Blake  <ebb9@byu.net>
58697
58698         Rewrite memmem to guarantee linear complexity without malloc.
58699         * lib/memmem.c (memmem): Use Two-Way rather than
58700         Knuth-Morris-Pratt, to allow O(1) space usage.
58701         (critical_factorization, two_way_short_needle)
58702         (two_way_long_needle): New functions.
58703         (knuth_morris_pratt): Delete.
58704         * modules/memmem (Depends-on): No longer need malloca or stdbool.
58705         Add stdint.
58706         * tests/test-memmem.c (main): Add tests for periodic needle and
58707         sublinear performance.
58708         * doc/functions/memmem.texi (memmem): Document other deficiencies
58709         in cygwin and older glibc.
58710
58711 2008-01-08  Bruno Haible  <bruno@clisp.org>
58712
58713         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
58714         augmentation.
58715
58716 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
58717
58718         Add a configure time option: --disable-acl.
58719         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
58720         AC_ARG_ENABLE(acl).
58721
58722 2008-01-06  Simon Josefsson  <simon@josefsson.org>
58723
58724         * tests/test-localename.c: Don't include obsolete "setenv.h".
58725
58726         * modules/localename-tests (Depends-on): Need unsetenv.
58727
58728 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58729
58730         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
58731
58732 2008-01-06  Colin Watson  <cjwatson@debian.org>
58733
58734         * users.txt: Add man-db.
58735
58736 2008-01-07  Bruno Haible  <bruno@clisp.org>
58737
58738         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
58739         previous section name.
58740
58741 2008-01-07  Bruno Haible  <bruno@clisp.org>
58742
58743         * lib/progname.c (set_program_name): Don't strip off a leading
58744         "lt-" prefix outside a .libs directory.
58745         Suggested by Paul Eggert.
58746
58747 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
58748             Bruno Haible  <bruno@clisp.org>
58749
58750         Improve memory cleanup in 'relocatable' module.
58751         * lib/relocatable.h (compute_curr_prefix): Change return type to
58752         'char *'.
58753         * lib/relocatable.c (compute_curr_prefix): Change return type to
58754         'char *'. Free curr_installdir after use.
58755         (relocate): Free curr_prefix_better after use.
58756         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
58757
58758 2008-01-01  Bruno Haible  <bruno@clisp.org>
58759
58760         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
58761         failure on older glibc systems.
58762         Reported by Peter Fales <psfales@alcatel-lucent.com>.
58763
58764 2008-01-05  Eric Blake  <ebb9@byu.net>
58765
58766         Avoid quadratic system memmem.
58767         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
58768         Reported by Ralf Wildenhues.
58769
58770         Fix memmem test for mingw.
58771         * modules/memmem-tests (configure.ac): Check for alarm.
58772         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
58773         it.
58774         * doc/functions/memmem.texi: New file.
58775         * doc/gnulib.texi (Function Substitutes): Add memmem.
58776         Reported by Bruno Haible.
58777
58778 2008-01-04  Bruno Haible  <bruno@clisp.org>
58779
58780         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
58781         Require gl_HEADER_STRINGS_H_DEFAULTS, not
58782         gl_HEADER_STRING_H_DEFAULTS.
58783
58784 2008-01-04  Eric Blake  <ebb9@byu.net>
58785
58786         Shorten duration of memmem test.
58787         * tests/test-memmem.c (main): Use alarm to declare failure if test
58788         is taking too long.
58789         Reported by Ralf Wildenhues.
58790
58791 2007-12-21  Simon Josefsson  <simon@josefsson.org>
58792
58793         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
58794         string, needed by strerror.
58795
58796 2008-01-03  Colin Watson  <cjwatson@debian.org>
58797             Bruno Haible  <bruno@clisp.org>
58798
58799         * doc/gnulib-tool.texi (Localization): New section.
58800
58801 2008-01-02  Bruno Haible  <bruno@clisp.org>
58802
58803         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
58804         variables to 'unsigned char *' type.
58805         Reported by Paul Eggert.
58806
58807 2008-01-02  Jim Meyering  <jim@meyering.net>
58808
58809         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
58810
58811 2007-12-31  Jim Meyering  <jim@meyering.net>
58812
58813         Avoid use of private FTS type name.
58814         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
58815
58816 2007-12-30  Karl Berry  <karl@gnu.org>
58817
58818         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
58819         work around defect in Texinfo and/or the standalone Info browser.
58820
58821 2007-12-30  Bruno Haible  <bruno@clisp.org>
58822
58823         Unify 5 copies of the KMP code.
58824         * lib/str-kmp.h: New file.
58825         * lib/c-strcasestr.c: Include str-kmp.h.
58826         (knuth_morris_pratt): Remove function.
58827         (c_strcasestr): Update.
58828         * lib/c-strstr.c: Include str-kmp.h.
58829         (knuth_morris_pratt): Remove function.
58830         (c_strcasestr): Update.
58831         * lib/mbscasestr.c: Include str-kmp.h.
58832         (knuth_morris_pratt_unibyte): Remove function.
58833         * lib/mbsstr.c: Include str-kmp.h.
58834         (knuth_morris_pratt_unibyte): Remove function.
58835         * lib/strcasestr.c: Include str-kmp.h.
58836         (knuth_morris_pratt): Remove function.
58837         (strcasestr): Update.
58838         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
58839         * modules/c-strstr (Files): Likewise.
58840         * modules/mbscasestr (Files): Likewise.
58841         * modules/mbsstr (Files): Likewise.
58842         * modules/strcasestr (Files): Likewise.
58843         Suggested by Paul Eggert.
58844
58845 2007-12-30  Bruno Haible  <bruno@clisp.org>
58846
58847         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
58848         defined.
58849
58850 2007-12-30  Bruno Haible  <bruno@clisp.org>
58851
58852         * lib/xmalloca.h: Include xalloc.h.
58853         (xnmalloca): New macro.
58854
58855 2007-12-30  Bruno Haible  <bruno@clisp.org>
58856
58857         * lib/malloca.h (nmalloca): New macro.
58858         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
58859         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
58860         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
58861         knuth_morris_pratt_multibyte): Likewise.
58862         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
58863         knuth_morris_pratt_multibyte): Likewise.
58864         * lib/memmem.c (knuth_morris_pratt): Likewise.
58865         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
58866
58867 2007-12-25  Bruno Haible  <bruno@clisp.org>
58868
58869         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
58870         * lib/glob.c: Don't include openat.h.
58871         (link_exists2_p): Add back the code that deals with the
58872         !GLOB_ALTDIRFUNC case.
58873         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
58874         let it do the filename concatenation.
58875         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
58876         * modules/glob (Depends-on): Remove openat.
58877
58878 2007-12-31  Bruno Haible  <bruno@clisp.org>
58879
58880         * modules/dirfd (License): Change to LGPLv2+.
58881         Approved by Jim Meyering.
58882
58883 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58884
58885         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
58886         when multiplying M by sizeof (size_t).
58887
58888 2007-12-10  Martin Lambers  <marlam@marlam.de>
58889
58890         Override getpagesize on mingw.
58891         * lib/getpagesize.c: New file.
58892         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
58893         * modules/getpagesize (Files): Add lib/getpagesize.c.
58894         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
58895         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58896         REPLACE_GETPAGESIZE.
58897         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
58898
58899 2007-12-25  Bruno Haible  <bruno@clisp.org>
58900
58901         * modules/localcharset (Notice): New field.
58902         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
58903         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
58904
58905 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58906             Bruno Haible  <bruno@clisp.org>
58907
58908         Avoid using the syntax symbol() in formatted documentation.
58909         * MODULES.html.sh (func_module): When replacing symbol() with a
58910         hyperlink, remove the parentheses. Show an error if some remain.
58911         Recognize and render the '...' syntax.
58912         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
58913         Rework. Add paragraph about GCC's inlining.
58914         * doc/alloca.texi: Likewise.
58915         * doc/error.texi: Remove parentheses from symbol reference.
58916         * doc/gnulib-intro.texi: Likewise.
58917         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
58918         * modules/fnmatch (Description): Reword to say "the ... function".
58919         * modules/full-read (Description): Likewise.
58920         * modules/full-write (Description): Likewise.
58921         * modules/safe-read (Description): Likewise.
58922         * modules/safe-write (Description): Likewise.
58923         * modules/strchrnul (Description): Likewise.
58924         * modules/trim (Description): Likewise.
58925         * modules/error (Description): Remove parentheses from symbol
58926         references.
58927         * modules/verror (Description): Likewise.
58928         Reported by Karl Berry.
58929
58930 2007-12-25  Bruno Haible  <bruno@clisp.org>
58931
58932         Fixup after 2007-10-16 commit.
58933         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
58934
58935 2007-12-24  Bruno Haible  <bruno@clisp.org>
58936
58937         Make --enable-relocatable work with DESTDIR.
58938         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
58939         to compute installdir from destprog.
58940         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
58941         also set the RELOC_DESTDIR variable.
58942         Reported by Левашев Иван <octagram@bluebottle.com>.
58943
58944 2007-12-24  Bruno Haible  <bruno@clisp.org>
58945
58946         Fix link error due to xalloc_die().
58947         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
58948         of xreadlink.
58949         * lib/relocwrapper.c: Update comments.
58950         * build-aux/install-reloc: Remove xreadlink.c from file list.
58951         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
58952         xreadlink.c.
58953         Reported by Левашев Иван <octagram@bluebottle.com>.
58954
58955 2007-12-24  Bruno Haible  <bruno@clisp.org>
58956
58957         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
58958         * lib/setenv.h: Remove file.
58959         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
58960         lib/setenv.h.
58961         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
58962         (Depends-on): Add stdlib.
58963         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
58964         gl_FUNC_UNSETENV.
58965         (Include): Replace setenv.h with <stdlib.h>.
58966         * modules/unsetenv: New file.
58967         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
58968         * lib/unsetenv.c: Include <stdlib.h> first.
58969         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
58970         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
58971         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
58972         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
58973         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
58974         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58975         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
58976         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58977         * doc/functions/unsetenv.texi: Update.
58978         * modules/xsetenv (Depends-on): Add unsetenv.
58979         * modules/getdate (Depends-on): Likewise.
58980         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
58981         * lib/xsetenv.c: Don't include setenv.h.
58982         * lib/getdate.y: Likewise.
58983         * lib/relocwrapper.c: Likewise.
58984         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
58985         (Depends-on): Add stdlib.
58986         * NEWS: Mention the changes.
58987         Reported by Левашев Иван <octagram@bluebottle.com>.
58988
58989 2007-12-23  Bruno Haible  <bruno@clisp.org>
58990
58991         * lib/memmem.c (memmem): Use lowercase variable names. Tab
58992         indentation.
58993
58994 2007-12-23  Bruno Haible  <bruno@clisp.org>
58995
58996         * lib/c-strcasestr.c: Add more comments.
58997         * lib/c-strstr.c: Likewise.
58998         * lib/mbscasestr.c: Likewise.
58999         * lib/mbsstr.c: Likewise.
59000         * lib/strcasestr.c: Likewise.
59001         * lib/memmem.c: Likewise.
59002
59003 2007-12-23  Bruno Haible  <bruno@clisp.org>
59004
59005         * tests/test-memmem.c: Include <string.h> first.
59006
59007 2007-12-22  Bruno Haible  <bruno@clisp.org>
59008
59009         * gnulib-tool (func_create_testdir): Change $auxdir while generating
59010         the contents of $testsbase.
59011         Reported by Ralf Wildenhues.
59012
59013 2007-12-22  Bruno Haible  <bruno@clisp.org>
59014
59015         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
59016         two variables local_ldadd_before, local_ldadd_last.
59017
59018 2007-12-20  Eric Blake  <ebb9@byu.net>
59019
59020         Work around circular library issue when cross-compiling.
59021         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
59022         that progname.o does not need to pull in rpl_memcmp.
59023
59024 2007-12-19  Eric Blake  <ebb9@byu.net>
59025
59026         Fix memmem to avoid O(n^2) worst-case complexity.
59027         * lib/memmem.c (knuth_morris_pratt): New function.
59028         (memmem): Use it if first few naive iterations fail.
59029         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
59030         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
59031         * modules/memchr (License): Likewise.
59032         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
59033         malloca.
59034         * tests/test-memmem.c: Rewrite, borrowing ideas from
59035         test-mbsstr1.c; the old version wouldn't even compile!
59036         * modules/memmem-tests: New file.
59037         * lib/string.in.h (rpl_memmem): Add declaration.
59038         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
59039         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
59040         REPLACE_MEMMEM.
59041
59042 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59043
59044         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
59045         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
59046         before any system include files, and undef after them all.  This
59047         should fix a problem on VMS reported by John E. Malmberg in
59048         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
59049
59050 2007-12-17  Eric Blake  <ebb9@byu.net>
59051
59052         Revert addition of verify, for BSD/OS.
59053         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
59054         can't handle large files, for the sake of obsolete platforms.
59055         * modules/fseeko (Depends-on): Remove verify.
59056         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
59057         * doc/functions/ftello.texi (ftello): Likewise.
59058         * doc/functions/fgetpos.texi (fgetpos): Likewise.
59059         Reported by Larry Jones.
59060
59061 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
59062
59063         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
59064         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
59065
59066 2007-12-17  Jim Meyering  <meyering@redhat.com>
59067
59068         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
59069         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
59070         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
59071         * modules/getcwd (Depends-on): Add openat.
59072         Reported by Petr Salinger.
59073
59074 2007-12-17  Bruno Haible  <bruno@clisp.org>
59075
59076         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
59077         avoid a segmentation fault of the configure test on x86_64 systems.
59078
59079 2007-12-15  Jim Meyering  <meyering@redhat.com>
59080
59081         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
59082
59083 2007-12-13  Eric Blake  <ebb9@byu.net>
59084
59085         Another fseek test.
59086         * tests/test-fseek.c (main): Also test ungetc handling.
59087         * tests/test-fseeko.c (main): Likewise.
59088         * modules/fseeko (Depends-on): Add verify.
59089         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
59090         large.
59091         Reported by Larry Jones.
59092
59093         Fix fseeko on mingw.
59094         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
59095         seek.
59096
59097         Beef up fseek tests.
59098         * tests/test-fseek.c (main): Also test eof handling.
59099         * tests/test-fseeko.c (main): Likewise.
59100         Reported by Larry Jones.
59101
59102 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
59103
59104         Fix fseeko on BSD-based platforms.
59105         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
59106         successful seek.
59107
59108 2007-12-12  Eric Blake  <ebb9@byu.net>
59109
59110         Allow circular dependency of separate libtests.a
59111         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
59112         when use_libtests.
59113
59114 2007-12-11  Eric Blake  <ebb9@byu.net>
59115
59116         Fix bug with -0.0L in previous patch.
59117         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
59118         * tests/test-isnan.c (main): Also test on zeroes.
59119         * tests/test-isnanf.c (main): Likewise.
59120         * tests/test-isnanl.h (main): Likewise.
59121
59122         Detect pseudo-denormals on x86 even when cross-compiling.
59123         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
59124         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
59125         invalid bit patterns that happen to satisfy ==.
59126
59127         Avoid link failures with separate libtests.a.
59128         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
59129         last, to satisfy circular dependencies.
59130
59131 2007-12-11  Eric Blake  <ebb9@byu.net>
59132         and Bruno Haible  <bruno@clisp.org>
59133
59134         Fix OpenBSD 4.0 <float.h> handling of long double.
59135         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
59136         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
59137         * doc/headers/float.texi (float.h): Document OpenBSD bug.
59138
59139 2007-12-11  Jim Meyering  <meyering@redhat.com>
59140
59141         * users.txt: Add libvirt.
59142
59143         Support versions of autoconf prior to 2.59c.
59144         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
59145         if it is not already defined.
59146
59147 2007-12-09  Bruno Haible  <bruno@clisp.org>
59148
59149         Let 'gnulib-tool --import' collect sources needed for the tests in
59150         tests/ rather than in lib/.
59151         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
59152         argument. If true, add rules to generate libtests.a, and put libtests.a
59153         into $(LDADD). Consider source files in subdirectories and set
59154         uses_subdirs.
59155         (func_emit_initmacro_start, func_emit_initmacro_end,
59156         func_emit_initmacro_done): Pass all arguments explicitly.
59157         (func_import): Determine two module lists main_modules,
59158         testsrelated_modules. Determine use_libtests. Determine two variables
59159         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
59160         instead of just sed_transform_lib_file. Determine two variables
59161         main_files and testsrelated_files. Compute 'files' as the union of
59162         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
59163         func_add_or_update. In the generated gnulib-comp.m4, collect the
59164         object files for tests/ in different variables than those for lib/.
59165         Substitute LIBTESTS_LIBDEPS.
59166         (func_create_testdir): Combine the uses_subdirs results from
59167         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
59168
59169 2007-12-09  Bruno Haible  <bruno@clisp.org>
59170
59171         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
59172         the build-aux directory.
59173
59174 2007-12-09  Bruno Haible  <bruno@clisp.org>
59175
59176         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
59177         introduced on 2006-09-09.
59178
59179 2007-12-07  Jim Meyering  <meyering@redhat.com>
59180
59181         Let these macros work also with autoconf-2.59.
59182         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
59183         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
59184         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59185
59186 2007-12-06  Jim Meyering  <meyering@redhat.com>
59187
59188         Avoid a configure-time syntax error in gl_FUNC_ACL.
59189         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
59190         function in each branch, before testing the cache variable.
59191
59192 2007-12-04  Eric Blake  <ebb9@byu.net>
59193
59194         Make scripts executable.
59195         * build-aux/config.guess: Add execute permissions.
59196         * build-aux/config.sub: Likewise.
59197         * build-aux/gendocs.sh: Likewise.
59198
59199         Fix frexp on mingw.
59200         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
59201         cross-compiling.
59202         * doc/functions/frexp.texi (frexp): Document the bug.
59203
59204         Make cygwin fseeko check more reliable.
59205         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
59206         version numbers, rather than unrelated feature check.
59207         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
59208         * doc/functions/ftello.texi (ftello): Likewise.
59209         Reported by Bruno Haible.
59210
59211         * m4/strerror.m4: Bump version number.
59212
59213 2007-12-03  Bruno Haible  <bruno@clisp.org>
59214
59215         * doc/functions/mprotect.texi: Mention the mingw problem.
59216
59217 2007-12-03  Eric Blake  <ebb9@byu.net>
59218
59219         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
59220         REPLACE_STRERROR is initialized before this macro.
59221
59222 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
59223
59224         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
59225         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
59226         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
59227         put -lsec in even for programs other than 'ls'.  This fixes a problem
59228         for gettext reported by Bruno Haible in
59229         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
59230         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
59231         Add support for Solaris 10.  This isn't efficient, but should get the
59232         job done for now.
59233
59234 2007-12-03  James Youngman  <jay@gnu.org>
59235
59236         * doc/regexprops-generic.texi: change "an close-group" to "a
59237         close-group" and "illegal" to "not allowed".
59238
59239 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59240
59241         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
59242         pr_byname.h. Needed for the rare case when the maintainer has done
59243         "make maintainer-clean" in the source directory and then attempts a
59244         build outside the source directory.
59245         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
59246         scripts_byname.h.
59247
59248 2007-12-02  Martin Lambers <marlam@marlam.de>
59249             Bruno Haible  <bruno@clisp.org>
59250
59251         * lib/getpagesize.h: Remove file.
59252         * lib/unistd.in.h: Include declaration of getpagesize here.
59253         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
59254         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
59255         HAVE_SYS_PARAM_H.
59256         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
59257         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59258         * modules/getpagesize (Files): Remove lib/getpagesize.h.
59259         (Depends-on): Add unistd.
59260         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59261         (Include): Use <unistd.h> instead of getpagesize.h.
59262         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
59263         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59264         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
59265         gl_GETPAGESIZE invocation, already handled by module dependency.
59266         * lib/pagealign_alloc.c: Don't include getpagesize.h.
59267
59268 2007-12-02  Bruno Haible  <bruno@clisp.org>
59269
59270         * modules/strings-tests: New file.
59271         * tests/test-strings.c: New file.
59272
59273         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
59274         * lib/strings.in.h: New file.
59275         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
59276         * m4/strings_h.m4: New file.
59277         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
59278         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
59279         * modules/strings: New file.
59280         * modules/string (Makefile.am): Update.
59281         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
59282         Reported by Karl Berry.
59283
59284 2007-12-01  Eric Blake  <ebb9@byu.net>
59285
59286         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
59287         accomodate fix in cygwin 1.5.25.
59288
59289 2007-12-01  Jim Meyering  <meyering@redhat.com>
59290
59291         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
59292         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
59293         that would inhibit utf8-optimization of a regexp containing line-
59294         or buffer-anchors, e.g., `^', `$'.
59295
59296 2007-11-30  Bruno Haible  <bruno@clisp.org>
59297
59298         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
59299         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
59300         glthread_recursive_lock_init.
59301         * lib/lock.c (glthread_recursive_lock_init)
59302         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
59303         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59304
59305 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
59306
59307         New function qset_acl, like set_acl but with syscall semantics.
59308         * lib/acl.h (qset_acl): New decl.
59309         * lib/acl.c (qset_acl): New function.
59310         (set_acl): Use new function.  Use more-consistent diagnostics.
59311
59312 2007-11-28  Jim Meyering  <meyering@redhat.com>
59313
59314         * modules/physmem (License): Change from GPL to LGPLv2+.
59315
59316 2007-11-26  Bruno Haible  <bruno@clisp.org>
59317
59318         * lib/vasnprintf.c (decode_long_double): Don't abort if the
59319         'long double' type has excess precision.
59320         Reported by Jim Meyering in
59321         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
59322
59323 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59324
59325         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
59326         Sync from <http://gnu.org/licenses>.
59327         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
59328         with license text from same location.
59329         * doc/maintain.texi, doc/standards.texi:  Sync from
59330         <http://savannah.gnu.org/projects/gnustandards>.
59331
59332 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
59333         and Jim Meyering  <meyering@redhat.com>
59334
59335         Adjust getdate' grammar to accept a slightly more regular language.
59336         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
59337         Before, the former was rejected.
59338         * lib/getdate.y (digits_to_date_time): New function, factored
59339         out of ...
59340         (number): ...here.  Just call digits_to_date_time.
59341         (hybrid): New non-terminal to handle an <unsigned number,
59342         signed relative offset> sequence consistently.
59343
59344 2007-11-18  Jim Meyering  <meyering@redhat.com>
59345
59346         Pull my changes from coreutils:
59347         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
59348         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
59349         use of $gnulib_tool_option_extras, so that it's separated from the
59350         preceding argument.
59351
59352         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
59353         * build-aux/bootstrap (cp_mark_as_generated): Create any required
59354         parent destination directories before copying a file into place.
59355
59356 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
59357
59358         bootstrap: work also with 4-argument variant of AC_INIT
59359         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
59360
59361 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59362
59363         Port test-getaddrinfo to Solaris.
59364         Problem reported by Bruno Haible in
59365         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
59366         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
59367         explanation of setting 'hints'.
59368         Don't reject an implementation merely because it returns EAI_SERVICE.
59369         (EAI_SERVICE): Define to 0 if not defined.
59370
59371 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
59372
59373         The license of gnu-make and posix-shell is now "GPLed build tool".
59374         * modules/gnu-make (License): Likewise.
59375         * modules/posix-shell (License): Likewise.
59376
59377         New module posix-shell, for determining a POSIX shell
59378         or perhaps something that is close enough to a POSIX shell.
59379         * m4/posix-shell.m4: New file.
59380         * modules/posix-shell: New file.
59381
59382         * MODULES.html.sh: Mention new module.
59383
59384         New module gnu-make, for determining whether we're using GNU Make.
59385         * m4/gnu-make.m4: New file.
59386         * modules/gnu-make: New file.
59387         * MODULES.html.sh: Mention new module.
59388
59389 2007-11-14  Jim Meyering  <meyering@redhat.com>
59390
59391         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
59392         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
59393         use this macro to create a function _definition_.
59394         Remove useless "#undef ARGMATCH_DIE".
59395
59396 2007-11-14  Bruno Haible  <bruno@clisp.org>
59397
59398         * lib/config.charset: Update for OpenBSD 4.1.
59399         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
59400
59401 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
59402
59403         Document 64-bit #if problems in stdint.texi.
59404         * doc/headers/stdint.texi (stdint.h): Mention problems with
59405         64-bit-#if, and how to work around them.
59406
59407         Don't insist on 'long long int' support in the preprocessor.  It
59408         breaks too many things.  For example, PRIdMAX still uses a 'long
59409         long int' format with the latest Sun compiler, even though
59410         HAVE_LONG_LONG_INT isn't defined due to that compiler's
59411         preprocessor problem.  This causes the latest coreutils to dump
59412         core on Solaris 10 sparc with the Sun C compiler.
59413         Instead, fix the 2007-10-16 problem in a different way, by evaluating
59414         the troublesome expressions at configure-time, not at #if-time.
59415         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
59416         preprocessor.
59417         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
59418         compile-time C checks, done at 'configure'-time.
59419         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
59420         * modules/inttypes (Makefile): Substitute the new symbols that
59421         gl_INTTYPES_H now generates.
59422         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
59423
59424 2007-11-12  Bruno Haible  <bruno@clisp.org>
59425
59426         Tests for Unicode character classification functions.
59427
59428         * modules/unictype/bidicategory-byname-tests: New file.
59429         * modules/unictype/bidicategory-name-tests: New file.
59430         * modules/unictype/bidicategory-of-tests: New file.
59431         * modules/unictype/bidicategory-test-tests: New file.
59432         * modules/unictype/block-list-tests: New file.
59433         * modules/unictype/block-of-tests: New file.
59434         * modules/unictype/block-test-tests: New file.
59435         * modules/unictype/category-C-tests: New file.
59436         * modules/unictype/category-Cc-tests: New file.
59437         * modules/unictype/category-Cf-tests: New file.
59438         * modules/unictype/category-Cn-tests: New file.
59439         * modules/unictype/category-Co-tests: New file.
59440         * modules/unictype/category-Cs-tests: New file.
59441         * modules/unictype/category-L-tests: New file.
59442         * modules/unictype/category-Ll-tests: New file.
59443         * modules/unictype/category-Lm-tests: New file.
59444         * modules/unictype/category-Lo-tests: New file.
59445         * modules/unictype/category-Lt-tests: New file.
59446         * modules/unictype/category-Lu-tests: New file.
59447         * modules/unictype/category-M-tests: New file.
59448         * modules/unictype/category-Mc-tests: New file.
59449         * modules/unictype/category-Me-tests: New file.
59450         * modules/unictype/category-Mn-tests: New file.
59451         * modules/unictype/category-N-tests: New file.
59452         * modules/unictype/category-Nd-tests: New file.
59453         * modules/unictype/category-Nl-tests: New file.
59454         * modules/unictype/category-No-tests: New file.
59455         * modules/unictype/category-P-tests: New file.
59456         * modules/unictype/category-Pc-tests: New file.
59457         * modules/unictype/category-Pd-tests: New file.
59458         * modules/unictype/category-Pe-tests: New file.
59459         * modules/unictype/category-Pf-tests: New file.
59460         * modules/unictype/category-Pi-tests: New file.
59461         * modules/unictype/category-Po-tests: New file.
59462         * modules/unictype/category-Ps-tests: New file.
59463         * modules/unictype/category-S-tests: New file.
59464         * modules/unictype/category-Sc-tests: New file.
59465         * modules/unictype/category-Sk-tests: New file.
59466         * modules/unictype/category-Sm-tests: New file.
59467         * modules/unictype/category-So-tests: New file.
59468         * modules/unictype/category-Z-tests: New file.
59469         * modules/unictype/category-Zl-tests: New file.
59470         * modules/unictype/category-Zp-tests: New file.
59471         * modules/unictype/category-Zs-tests: New file.
59472         * modules/unictype/category-and-not-tests: New file.
59473         * modules/unictype/category-and-tests: New file.
59474         * modules/unictype/category-byname-tests: New file.
59475         * modules/unictype/category-name-tests: New file.
59476         * modules/unictype/category-none-tests: New file.
59477         * modules/unictype/category-of-tests: New file.
59478         * modules/unictype/category-or-tests: New file.
59479         * modules/unictype/category-test-withtable-tests: New file.
59480         * modules/unictype/combining-class-tests: New file.
59481         * modules/unictype/ctype-alnum-tests: New file.
59482         * modules/unictype/ctype-alpha-tests: New file.
59483         * modules/unictype/ctype-blank-tests: New file.
59484         * modules/unictype/ctype-cntrl-tests: New file.
59485         * modules/unictype/ctype-digit-tests: New file.
59486         * modules/unictype/ctype-graph-tests: New file.
59487         * modules/unictype/ctype-lower-tests: New file.
59488         * modules/unictype/ctype-print-tests: New file.
59489         * modules/unictype/ctype-punct-tests: New file.
59490         * modules/unictype/ctype-space-tests: New file.
59491         * modules/unictype/ctype-upper-tests: New file.
59492         * modules/unictype/ctype-xdigit-tests: New file.
59493         * modules/unictype/decimal-digit-tests: New file.
59494         * modules/unictype/digit-tests: New file.
59495         * modules/unictype/mirror-tests: New file.
59496         * modules/unictype/numeric-tests: New file.
59497         * modules/unictype/property-alphabetic-tests: New file.
59498         * modules/unictype/property-ascii-hex-digit-tests: New file.
59499         * modules/unictype/property-bidi-arabic-digit-tests: New file.
59500         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
59501         * modules/unictype/property-bidi-block-separator-tests: New file.
59502         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
59503         * modules/unictype/property-bidi-common-separator-tests: New file.
59504         * modules/unictype/property-bidi-control-tests: New file.
59505         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
59506         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
59507         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
59508         * modules/unictype/property-bidi-european-digit-tests: New file.
59509         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
59510         * modules/unictype/property-bidi-left-to-right-tests: New file.
59511         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
59512         * modules/unictype/property-bidi-other-neutral-tests: New file.
59513         * modules/unictype/property-bidi-pdf-tests: New file.
59514         * modules/unictype/property-bidi-segment-separator-tests: New file.
59515         * modules/unictype/property-bidi-whitespace-tests: New file.
59516         * modules/unictype/property-byname-tests: New file.
59517         * modules/unictype/property-combining-tests: New file.
59518         * modules/unictype/property-composite-tests: New file.
59519         * modules/unictype/property-currency-symbol-tests: New file.
59520         * modules/unictype/property-dash-tests: New file.
59521         * modules/unictype/property-decimal-digit-tests: New file.
59522         * modules/unictype/property-default-ignorable-code-point-tests: New file.
59523         * modules/unictype/property-deprecated-tests: New file.
59524         * modules/unictype/property-diacritic-tests: New file.
59525         * modules/unictype/property-extender-tests: New file.
59526         * modules/unictype/property-format-control-tests: New file.
59527         * modules/unictype/property-grapheme-base-tests: New file.
59528         * modules/unictype/property-grapheme-extend-tests: New file.
59529         * modules/unictype/property-grapheme-link-tests: New file.
59530         * modules/unictype/property-hex-digit-tests: New file.
59531         * modules/unictype/property-hyphen-tests: New file.
59532         * modules/unictype/property-id-continue-tests: New file.
59533         * modules/unictype/property-id-start-tests: New file.
59534         * modules/unictype/property-ideographic-tests: New file.
59535         * modules/unictype/property-ids-binary-operator-tests: New file.
59536         * modules/unictype/property-ids-trinary-operator-tests: New file.
59537         * modules/unictype/property-ignorable-control-tests: New file.
59538         * modules/unictype/property-iso-control-tests: New file.
59539         * modules/unictype/property-join-control-tests: New file.
59540         * modules/unictype/property-left-of-pair-tests: New file.
59541         * modules/unictype/property-line-separator-tests: New file.
59542         * modules/unictype/property-logical-order-exception-tests: New file.
59543         * modules/unictype/property-lowercase-tests: New file.
59544         * modules/unictype/property-math-tests: New file.
59545         * modules/unictype/property-non-break-tests: New file.
59546         * modules/unictype/property-not-a-character-tests: New file.
59547         * modules/unictype/property-numeric-tests: New file.
59548         * modules/unictype/property-other-alphabetic-tests: New file.
59549         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
59550         * modules/unictype/property-other-grapheme-extend-tests: New file.
59551         * modules/unictype/property-other-id-continue-tests: New file.
59552         * modules/unictype/property-other-id-start-tests: New file.
59553         * modules/unictype/property-other-lowercase-tests: New file.
59554         * modules/unictype/property-other-math-tests: New file.
59555         * modules/unictype/property-other-uppercase-tests: New file.
59556         * modules/unictype/property-paired-punctuation-tests: New file.
59557         * modules/unictype/property-paragraph-separator-tests: New file.
59558         * modules/unictype/property-pattern-syntax-tests: New file.
59559         * modules/unictype/property-pattern-white-space-tests: New file.
59560         * modules/unictype/property-private-use-tests: New file.
59561         * modules/unictype/property-punctuation-tests: New file.
59562         * modules/unictype/property-quotation-mark-tests: New file.
59563         * modules/unictype/property-radical-tests: New file.
59564         * modules/unictype/property-sentence-terminal-tests: New file.
59565         * modules/unictype/property-soft-dotted-tests: New file.
59566         * modules/unictype/property-space-tests: New file.
59567         * modules/unictype/property-terminal-punctuation-tests: New file.
59568         * modules/unictype/property-test-tests: New file.
59569         * modules/unictype/property-titlecase-tests: New file.
59570         * modules/unictype/property-unassigned-code-value-tests: New file.
59571         * modules/unictype/property-unified-ideograph-tests: New file.
59572         * modules/unictype/property-uppercase-tests: New file.
59573         * modules/unictype/property-variation-selector-tests: New file.
59574         * modules/unictype/property-white-space-tests: New file.
59575         * modules/unictype/property-xid-continue-tests: New file.
59576         * modules/unictype/property-xid-start-tests: New file.
59577         * modules/unictype/property-zero-width-tests: New file.
59578         * modules/unictype/scripts-tests: New file.
59579         * modules/unictype/syntax-c-ident-tests: New file.
59580         * modules/unictype/syntax-c-whitespace-tests: New file.
59581         * modules/unictype/syntax-java-ident-tests: New file.
59582         * modules/unictype/syntax-java-whitespace-tests: New file.
59583         * tests/unictype/test-bidi_byname.c: New file.
59584         * tests/unictype/test-bidi_name.c: New file.
59585         * tests/unictype/test-bidi_of.c: New file.
59586         * tests/unictype/test-bidi_test.c: New file.
59587         * tests/unictype/test-block_list.c: New file.
59588         * tests/unictype/test-block_of.c: New file.
59589         * tests/unictype/test-block_test.c: New file.
59590         * tests/unictype/test-categ_and.c: New file.
59591         * tests/unictype/test-categ_and_not.c: New file.
59592         * tests/unictype/test-categ_byname.c: New file.
59593         * tests/unictype/test-categ_name.c: New file.
59594         * tests/unictype/test-categ_none.c: New file.
59595         * tests/unictype/test-categ_of.c: New file.
59596         * tests/unictype/test-categ_or.c: New file.
59597         * tests/unictype/test-categ_test_withtable.c: New file.
59598         * tests/unictype/test-combining.c: New file.
59599         * tests/unictype/test-decdigit.c: New file.
59600         * tests/unictype/test-digit.c: New file.
59601         * tests/unictype/test-mirror.c: New file.
59602         * tests/unictype/test-numeric.c: New file.
59603         * tests/unictype/test-pr_byname.c: New file.
59604         * tests/unictype/test-pr_test.c: New file.
59605         * tests/unictype/test-predicate-part1.h: New file.
59606         * tests/unictype/test-predicate-part2.h: New file.
59607         * tests/unictype/test-scripts.c: New file.
59608         * tests/unictype/test-sy_c_ident.c: New file.
59609         * tests/unictype/test-sy_java_ident.c: New file.
59610
59611         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
59612         for Unicode 5.0.0.
59613         * tests/unictype/test-categ_Cc.c: Likewise.
59614         * tests/unictype/test-categ_Cf.c: Likewise.
59615         * tests/unictype/test-categ_Cn.c: Likewise.
59616         * tests/unictype/test-categ_Co.c: Likewise.
59617         * tests/unictype/test-categ_Cs.c: Likewise.
59618         * tests/unictype/test-categ_L.c: Likewise.
59619         * tests/unictype/test-categ_Ll.c: Likewise.
59620         * tests/unictype/test-categ_Lm.c: Likewise.
59621         * tests/unictype/test-categ_Lo.c: Likewise.
59622         * tests/unictype/test-categ_Lt.c: Likewise.
59623         * tests/unictype/test-categ_Lu.c: Likewise.
59624         * tests/unictype/test-categ_M.c: Likewise.
59625         * tests/unictype/test-categ_Mc.c: Likewise.
59626         * tests/unictype/test-categ_Me.c: Likewise.
59627         * tests/unictype/test-categ_Mn.c: Likewise.
59628         * tests/unictype/test-categ_N.c: Likewise.
59629         * tests/unictype/test-categ_Nd.c: Likewise.
59630         * tests/unictype/test-categ_Nl.c: Likewise.
59631         * tests/unictype/test-categ_No.c: Likewise.
59632         * tests/unictype/test-categ_P.c: Likewise.
59633         * tests/unictype/test-categ_Pc.c: Likewise.
59634         * tests/unictype/test-categ_Pd.c: Likewise.
59635         * tests/unictype/test-categ_Pe.c: Likewise.
59636         * tests/unictype/test-categ_Pf.c: Likewise.
59637         * tests/unictype/test-categ_Pi.c: Likewise.
59638         * tests/unictype/test-categ_Po.c: Likewise.
59639         * tests/unictype/test-categ_Ps.c: Likewise.
59640         * tests/unictype/test-categ_S.c: Likewise.
59641         * tests/unictype/test-categ_Sc.c: Likewise.
59642         * tests/unictype/test-categ_Sk.c: Likewise.
59643         * tests/unictype/test-categ_Sm.c: Likewise.
59644         * tests/unictype/test-categ_So.c: Likewise.
59645         * tests/unictype/test-categ_Z.c: Likewise.
59646         * tests/unictype/test-categ_Zl.c: Likewise.
59647         * tests/unictype/test-categ_Zp.c: Likewise.
59648         * tests/unictype/test-categ_Zs.c: Likewise.
59649         * tests/unictype/test-ctype_alnum.c: Likewise.
59650         * tests/unictype/test-ctype_alpha.c: Likewise.
59651         * tests/unictype/test-ctype_blank.c: Likewise.
59652         * tests/unictype/test-ctype_cntrl.c: Likewise.
59653         * tests/unictype/test-ctype_digit.c: Likewise.
59654         * tests/unictype/test-ctype_graph.c: Likewise.
59655         * tests/unictype/test-ctype_lower.c: Likewise.
59656         * tests/unictype/test-ctype_print.c: Likewise.
59657         * tests/unictype/test-ctype_punct.c: Likewise.
59658         * tests/unictype/test-ctype_space.c: Likewise.
59659         * tests/unictype/test-ctype_upper.c: Likewise.
59660         * tests/unictype/test-ctype_xdigit.c: Likewise.
59661         * tests/unictype/test-decdigit.h: Likewise.
59662         * tests/unictype/test-digit.h: Likewise.
59663         * tests/unictype/test-numeric.h: Likewise.
59664         * tests/unictype/test-pr_alphabetic.c: Likewise.
59665         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
59666         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
59667         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
59668         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
59669         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
59670         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
59671         * tests/unictype/test-pr_bidi_control.c: Likewise.
59672         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
59673         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
59674         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
59675         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
59676         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
59677         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
59678         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
59679         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
59680         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
59681         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
59682         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
59683         * tests/unictype/test-pr_combining.c: Likewise.
59684         * tests/unictype/test-pr_composite.c: Likewise.
59685         * tests/unictype/test-pr_currency_symbol.c: Likewise.
59686         * tests/unictype/test-pr_dash.c: Likewise.
59687         * tests/unictype/test-pr_decimal_digit.c: Likewise.
59688         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
59689         * tests/unictype/test-pr_deprecated.c: Likewise.
59690         * tests/unictype/test-pr_diacritic.c: Likewise.
59691         * tests/unictype/test-pr_extender.c: Likewise.
59692         * tests/unictype/test-pr_format_control.c: Likewise.
59693         * tests/unictype/test-pr_grapheme_base.c: Likewise.
59694         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
59695         * tests/unictype/test-pr_grapheme_link.c: Likewise.
59696         * tests/unictype/test-pr_hex_digit.c: Likewise.
59697         * tests/unictype/test-pr_hyphen.c: Likewise.
59698         * tests/unictype/test-pr_id_continue.c: Likewise.
59699         * tests/unictype/test-pr_id_start.c: Likewise.
59700         * tests/unictype/test-pr_ideographic.c: Likewise.
59701         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
59702         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
59703         * tests/unictype/test-pr_ignorable_control.c: Likewise.
59704         * tests/unictype/test-pr_iso_control.c: Likewise.
59705         * tests/unictype/test-pr_join_control.c: Likewise.
59706         * tests/unictype/test-pr_left_of_pair.c: Likewise.
59707         * tests/unictype/test-pr_line_separator.c: Likewise.
59708         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
59709         * tests/unictype/test-pr_lowercase.c: Likewise.
59710         * tests/unictype/test-pr_math.c: Likewise.
59711         * tests/unictype/test-pr_non_break.c: Likewise.
59712         * tests/unictype/test-pr_not_a_character.c: Likewise.
59713         * tests/unictype/test-pr_numeric.c: Likewise.
59714         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
59715         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
59716         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
59717         * tests/unictype/test-pr_other_id_continue.c: Likewise.
59718         * tests/unictype/test-pr_other_id_start.c: Likewise.
59719         * tests/unictype/test-pr_other_lowercase.c: Likewise.
59720         * tests/unictype/test-pr_other_math.c: Likewise.
59721         * tests/unictype/test-pr_other_uppercase.c: Likewise.
59722         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
59723         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
59724         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
59725         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
59726         * tests/unictype/test-pr_private_use.c: Likewise.
59727         * tests/unictype/test-pr_punctuation.c: Likewise.
59728         * tests/unictype/test-pr_quotation_mark.c: Likewise.
59729         * tests/unictype/test-pr_radical.c: Likewise.
59730         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
59731         * tests/unictype/test-pr_soft_dotted.c: Likewise.
59732         * tests/unictype/test-pr_space.c: Likewise.
59733         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
59734         * tests/unictype/test-pr_titlecase.c: Likewise.
59735         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
59736         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
59737         * tests/unictype/test-pr_uppercase.c: Likewise.
59738         * tests/unictype/test-pr_variation_selector.c: Likewise.
59739         * tests/unictype/test-pr_white_space.c: Likewise.
59740         * tests/unictype/test-pr_xid_continue.c: Likewise.
59741         * tests/unictype/test-pr_xid_start.c: Likewise.
59742         * tests/unictype/test-pr_zero_width.c: Likewise.
59743         * tests/unictype/test-sy_c_whitespace.c: Likewise.
59744         * tests/unictype/test-sy_java_whitespace.c: Likewise.
59745
59746 2007-11-12  Bruno Haible  <bruno@clisp.org>
59747
59748         Unicode character classification functions.
59749         * lib/unictype.h: New file.
59750         * modules/unictype/base: New file.
59751         * modules/unictype/category-L: New file.
59752         * modules/unictype/category-Lu: New file.
59753         * modules/unictype/category-Ll: New file.
59754         * modules/unictype/category-Lt: New file.
59755         * modules/unictype/category-Lm: New file.
59756         * modules/unictype/category-Lo: New file.
59757         * modules/unictype/category-M: New file.
59758         * modules/unictype/category-Mn: New file.
59759         * modules/unictype/category-Mc: New file.
59760         * modules/unictype/category-Me: New file.
59761         * modules/unictype/category-N: New file.
59762         * modules/unictype/category-Nd: New file.
59763         * modules/unictype/category-Nl: New file.
59764         * modules/unictype/category-No: New file.
59765         * modules/unictype/category-P: New file.
59766         * modules/unictype/category-Pc: New file.
59767         * modules/unictype/category-Pd: New file.
59768         * modules/unictype/category-Ps: New file.
59769         * modules/unictype/category-Pe: New file.
59770         * modules/unictype/category-Pi: New file.
59771         * modules/unictype/category-Pf: New file.
59772         * modules/unictype/category-Po: New file.
59773         * modules/unictype/category-S: New file.
59774         * modules/unictype/category-Sm: New file.
59775         * modules/unictype/category-Sc: New file.
59776         * modules/unictype/category-Sk: New file.
59777         * modules/unictype/category-So: New file.
59778         * modules/unictype/category-Z: New file.
59779         * modules/unictype/category-Zs: New file.
59780         * modules/unictype/category-Zl: New file.
59781         * modules/unictype/category-Zp: New file.
59782         * modules/unictype/category-C: New file.
59783         * modules/unictype/category-Cc: New file.
59784         * modules/unictype/category-Cf: New file.
59785         * modules/unictype/category-Cs: New file.
59786         * modules/unictype/category-Co: New file.
59787         * modules/unictype/category-Cn: New file.
59788         * modules/unictype/category-or: New file.
59789         * modules/unictype/category-of: New file.
59790         * modules/unictype/category-test: New file.
59791         * modules/unictype/category-test-withtable: New file.
59792         * modules/unictype/category-byname: New file.
59793         * modules/unictype/category-none: New file.
59794         * modules/unictype/category-and: New file.
59795         * modules/unictype/category-and-not: New file.
59796         * modules/unictype/category-name: New file.
59797         * modules/unictype/combining-class: New file.
59798         * modules/unictype/category-all: New file.
59799         * modules/unictype/bidicategory-all: New file.
59800         * modules/unictype/bidicategory-byname: New file.
59801         * modules/unictype/bidicategory-name: New file.
59802         * modules/unictype/bidicategory-of: New file.
59803         * modules/unictype/bidicategory-test: New file.
59804         * modules/unictype/decimal-digit: New file.
59805         * modules/unictype/digit: New file.
59806         * modules/unictype/numeric: New file.
59807         * modules/unictype/mirror: New file.
59808         * modules/unictype/property-white-space: New file.
59809         * modules/unictype/property-alphabetic: New file.
59810         * modules/unictype/property-other-alphabetic: New file.
59811         * modules/unictype/property-not-a-character: New file.
59812         * modules/unictype/property-default-ignorable-code-point: New file.
59813         * modules/unictype/property-other-default-ignorable-code-point: New
59814         file.
59815         * modules/unictype/property-deprecated: New file.
59816         * modules/unictype/property-logical-order-exception: New file.
59817         * modules/unictype/property-variation-selector: New file.
59818         * modules/unictype/property-private-use: New file.
59819         * modules/unictype/property-unassigned-code-value: New file.
59820         * modules/unictype/property-uppercase: New file.
59821         * modules/unictype/property-other-uppercase: New file.
59822         * modules/unictype/property-lowercase: New file.
59823         * modules/unictype/property-other-lowercase: New file.
59824         * modules/unictype/property-titlecase: New file.
59825         * modules/unictype/property-soft-dotted: New file.
59826         * modules/unictype/property-id-start: New file.
59827         * modules/unictype/property-other-id-start: New file.
59828         * modules/unictype/property-id-continue: New file.
59829         * modules/unictype/property-other-id-continue: New file.
59830         * modules/unictype/property-xid-start: New file.
59831         * modules/unictype/property-xid-continue: New file.
59832         * modules/unictype/property-pattern-white-space: New file.
59833         * modules/unictype/property-pattern-syntax: New file.
59834         * modules/unictype/property-join-control: New file.
59835         * modules/unictype/property-grapheme-base: New file.
59836         * modules/unictype/property-grapheme-extend: New file.
59837         * modules/unictype/property-other-grapheme-extend: New file.
59838         * modules/unictype/property-grapheme-link: New file.
59839         * modules/unictype/property-bidi-control: New file.
59840         * modules/unictype/property-bidi-left-to-right: New file.
59841         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
59842         * modules/unictype/property-bidi-arabic-right-to-left: New file.
59843         * modules/unictype/property-bidi-european-digit: New file.
59844         * modules/unictype/property-bidi-eur-num-separator: New file.
59845         * modules/unictype/property-bidi-eur-num-terminator: New file.
59846         * modules/unictype/property-bidi-arabic-digit: New file.
59847         * modules/unictype/property-bidi-common-separator: New file.
59848         * modules/unictype/property-bidi-block-separator: New file.
59849         * modules/unictype/property-bidi-segment-separator: New file.
59850         * modules/unictype/property-bidi-whitespace: New file.
59851         * modules/unictype/property-bidi-non-spacing-mark: New file.
59852         * modules/unictype/property-bidi-boundary-neutral: New file.
59853         * modules/unictype/property-bidi-pdf: New file.
59854         * modules/unictype/property-bidi-embedding-or-override: New file.
59855         * modules/unictype/property-bidi-other-neutral: New file.
59856         * modules/unictype/property-hex-digit: New file.
59857         * modules/unictype/property-ascii-hex-digit: New file.
59858         * modules/unictype/property-ideographic: New file.
59859         * modules/unictype/property-unified-ideograph: New file.
59860         * modules/unictype/property-radical: New file.
59861         * modules/unictype/property-ids-binary-operator: New file.
59862         * modules/unictype/property-ids-trinary-operator: New file.
59863         * modules/unictype/property-zero-width: New file.
59864         * modules/unictype/property-space: New file.
59865         * modules/unictype/property-non-break: New file.
59866         * modules/unictype/property-iso-control: New file.
59867         * modules/unictype/property-format-control: New file.
59868         * modules/unictype/property-dash: New file.
59869         * modules/unictype/property-hyphen: New file.
59870         * modules/unictype/property-punctuation: New file.
59871         * modules/unictype/property-line-separator: New file.
59872         * modules/unictype/property-paragraph-separator: New file.
59873         * modules/unictype/property-quotation-mark: New file.
59874         * modules/unictype/property-sentence-terminal: New file.
59875         * modules/unictype/property-terminal-punctuation: New file.
59876         * modules/unictype/property-currency-symbol: New file.
59877         * modules/unictype/property-math: New file.
59878         * modules/unictype/property-other-math: New file.
59879         * modules/unictype/property-paired-punctuation: New file.
59880         * modules/unictype/property-left-of-pair: New file.
59881         * modules/unictype/property-combining: New file.
59882         * modules/unictype/property-composite: New file.
59883         * modules/unictype/property-decimal-digit: New file.
59884         * modules/unictype/property-numeric: New file.
59885         * modules/unictype/property-diacritic: New file.
59886         * modules/unictype/property-extender: New file.
59887         * modules/unictype/property-ignorable-control: New file.
59888         * modules/unictype/property-test: New file.
59889         * modules/unictype/property-byname: New file.
59890         * modules/unictype/property-all: New file.
59891         * modules/unictype/scripts: New file.
59892         * modules/unictype/scripts-all: New file.
59893         * modules/unictype/block-of: New file.
59894         * modules/unictype/block-test: New file.
59895         * modules/unictype/block-list: New file.
59896         * modules/unictype/block-all: New file.
59897         * modules/unictype/syntax-c-whitespace: New file.
59898         * modules/unictype/syntax-java-whitespace: New file.
59899         * modules/unictype/syntax-c-ident: New file.
59900         * modules/unictype/syntax-java-ident: New file.
59901         * modules/unictype/ctype-alnum: New file.
59902         * modules/unictype/ctype-alpha: New file.
59903         * modules/unictype/ctype-cntrl: New file.
59904         * modules/unictype/ctype-digit: New file.
59905         * modules/unictype/ctype-graph: New file.
59906         * modules/unictype/ctype-lower: New file.
59907         * modules/unictype/ctype-print: New file.
59908         * modules/unictype/ctype-punct: New file.
59909         * modules/unictype/ctype-space: New file.
59910         * modules/unictype/ctype-upper: New file.
59911         * modules/unictype/ctype-xdigit: New file.
59912         * modules/unictype/ctype-blank: New file.
59913         * lib/unictype/bidi_byname.c: New file.
59914         * lib/unictype/bidi_name.c: New file.
59915         * lib/unictype/bidi_of.c: New file.
59916         * lib/unictype/bidi_test.c: New file.
59917         * lib/unictype/bitmap.h: New file.
59918         * lib/unictype/block_test.c: New file.
59919         * lib/unictype/blocks.c: New file.
59920         * lib/unictype/categ_C.c: New file.
59921         * lib/unictype/categ_Cc.c: New file.
59922         * lib/unictype/categ_Cf.c: New file.
59923         * lib/unictype/categ_Cn.c: New file.
59924         * lib/unictype/categ_Co.c: New file.
59925         * lib/unictype/categ_Cs.c: New file.
59926         * lib/unictype/categ_L.c: New file.
59927         * lib/unictype/categ_Ll.c: New file.
59928         * lib/unictype/categ_Lm.c: New file.
59929         * lib/unictype/categ_Lo.c: New file.
59930         * lib/unictype/categ_Lt.c: New file.
59931         * lib/unictype/categ_Lu.c: New file.
59932         * lib/unictype/categ_M.c: New file.
59933         * lib/unictype/categ_Mc.c: New file.
59934         * lib/unictype/categ_Me.c: New file.
59935         * lib/unictype/categ_Mn.c: New file.
59936         * lib/unictype/categ_N.c: New file.
59937         * lib/unictype/categ_Nd.c: New file.
59938         * lib/unictype/categ_Nl.c: New file.
59939         * lib/unictype/categ_No.c: New file.
59940         * lib/unictype/categ_P.c: New file.
59941         * lib/unictype/categ_Pc.c: New file.
59942         * lib/unictype/categ_Pd.c: New file.
59943         * lib/unictype/categ_Pe.c: New file.
59944         * lib/unictype/categ_Pf.c: New file.
59945         * lib/unictype/categ_Pi.c: New file.
59946         * lib/unictype/categ_Po.c: New file.
59947         * lib/unictype/categ_Ps.c: New file.
59948         * lib/unictype/categ_S.c: New file.
59949         * lib/unictype/categ_Sc.c: New file.
59950         * lib/unictype/categ_Sk.c: New file.
59951         * lib/unictype/categ_Sm.c: New file.
59952         * lib/unictype/categ_So.c: New file.
59953         * lib/unictype/categ_Z.c: New file.
59954         * lib/unictype/categ_Zl.c: New file.
59955         * lib/unictype/categ_Zp.c: New file.
59956         * lib/unictype/categ_Zs.c: New file.
59957         * lib/unictype/categ_and.c: New file.
59958         * lib/unictype/categ_and_not.c: New file.
59959         * lib/unictype/categ_byname.c: New file.
59960         * lib/unictype/categ_name.c: New file.
59961         * lib/unictype/categ_none.c: New file.
59962         * lib/unictype/categ_of.c: New file.
59963         * lib/unictype/categ_or.c: New file.
59964         * lib/unictype/categ_test.c: New file.
59965         * lib/unictype/combining.c: New file.
59966         * lib/unictype/ctype_alnum.c: New file.
59967         * lib/unictype/ctype_alpha.c: New file.
59968         * lib/unictype/ctype_blank.c: New file.
59969         * lib/unictype/ctype_cntrl.c: New file.
59970         * lib/unictype/ctype_digit.c: New file.
59971         * lib/unictype/ctype_graph.c: New file.
59972         * lib/unictype/ctype_lower.c: New file.
59973         * lib/unictype/ctype_print.c: New file.
59974         * lib/unictype/ctype_punct.c: New file.
59975         * lib/unictype/ctype_space.c: New file.
59976         * lib/unictype/ctype_upper.c: New file.
59977         * lib/unictype/ctype_xdigit.c: New file.
59978         * lib/unictype/decdigit.c: New file.
59979         * lib/unictype/digit.c: New file.
59980         * lib/unictype/identsyntaxmap.h: New file.
59981         * lib/unictype/mirror.c: New file.
59982         * lib/unictype/numeric.c: New file.
59983         * lib/unictype/pr_alphabetic.c: New file.
59984         * lib/unictype/pr_ascii_hex_digit.c: New file.
59985         * lib/unictype/pr_bidi_arabic_digit.c: New file.
59986         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
59987         * lib/unictype/pr_bidi_block_separator.c: New file.
59988         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
59989         * lib/unictype/pr_bidi_common_separator.c: New file.
59990         * lib/unictype/pr_bidi_control.c: New file.
59991         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
59992         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
59993         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
59994         * lib/unictype/pr_bidi_european_digit.c: New file.
59995         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
59996         * lib/unictype/pr_bidi_left_to_right.c: New file.
59997         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
59998         * lib/unictype/pr_bidi_other_neutral.c: New file.
59999         * lib/unictype/pr_bidi_pdf.c: New file.
60000         * lib/unictype/pr_bidi_segment_separator.c: New file.
60001         * lib/unictype/pr_bidi_whitespace.c: New file.
60002         * lib/unictype/pr_byname.c: New file.
60003         * lib/unictype/pr_byname.gperf: New file.
60004         * lib/unictype/pr_combining.c: New file.
60005         * lib/unictype/pr_composite.c: New file.
60006         * lib/unictype/pr_currency_symbol.c: New file.
60007         * lib/unictype/pr_dash.c: New file.
60008         * lib/unictype/pr_decimal_digit.c: New file.
60009         * lib/unictype/pr_default_ignorable_code_point.c: New file.
60010         * lib/unictype/pr_deprecated.c: New file.
60011         * lib/unictype/pr_diacritic.c: New file.
60012         * lib/unictype/pr_extender.c: New file.
60013         * lib/unictype/pr_format_control.c: New file.
60014         * lib/unictype/pr_grapheme_base.c: New file.
60015         * lib/unictype/pr_grapheme_extend.c: New file.
60016         * lib/unictype/pr_grapheme_link.c: New file.
60017         * lib/unictype/pr_hex_digit.c: New file.
60018         * lib/unictype/pr_hyphen.c: New file.
60019         * lib/unictype/pr_id_continue.c: New file.
60020         * lib/unictype/pr_id_start.c: New file.
60021         * lib/unictype/pr_ideographic.c: New file.
60022         * lib/unictype/pr_ids_binary_operator.c: New file.
60023         * lib/unictype/pr_ids_trinary_operator.c: New file.
60024         * lib/unictype/pr_ignorable_control.c: New file.
60025         * lib/unictype/pr_iso_control.c: New file.
60026         * lib/unictype/pr_join_control.c: New file.
60027         * lib/unictype/pr_left_of_pair.c: New file.
60028         * lib/unictype/pr_line_separator.c: New file.
60029         * lib/unictype/pr_logical_order_exception.c: New file.
60030         * lib/unictype/pr_lowercase.c: New file.
60031         * lib/unictype/pr_math.c: New file.
60032         * lib/unictype/pr_non_break.c: New file.
60033         * lib/unictype/pr_not_a_character.c: New file.
60034         * lib/unictype/pr_numeric.c: New file.
60035         * lib/unictype/pr_other_alphabetic.c: New file.
60036         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
60037         * lib/unictype/pr_other_grapheme_extend.c: New file.
60038         * lib/unictype/pr_other_id_continue.c: New file.
60039         * lib/unictype/pr_other_id_start.c: New file.
60040         * lib/unictype/pr_other_lowercase.c: New file.
60041         * lib/unictype/pr_other_math.c: New file.
60042         * lib/unictype/pr_other_uppercase.c: New file.
60043         * lib/unictype/pr_paired_punctuation.c: New file.
60044         * lib/unictype/pr_paragraph_separator.c: New file.
60045         * lib/unictype/pr_pattern_syntax.c: New file.
60046         * lib/unictype/pr_pattern_white_space.c: New file.
60047         * lib/unictype/pr_private_use.c: New file.
60048         * lib/unictype/pr_punctuation.c: New file.
60049         * lib/unictype/pr_quotation_mark.c: New file.
60050         * lib/unictype/pr_radical.c: New file.
60051         * lib/unictype/pr_sentence_terminal.c: New file.
60052         * lib/unictype/pr_soft_dotted.c: New file.
60053         * lib/unictype/pr_space.c: New file.
60054         * lib/unictype/pr_terminal_punctuation.c: New file.
60055         * lib/unictype/pr_test.c: New file.
60056         * lib/unictype/pr_titlecase.c: New file.
60057         * lib/unictype/pr_unassigned_code_value.c: New file.
60058         * lib/unictype/pr_unified_ideograph.c: New file.
60059         * lib/unictype/pr_uppercase.c: New file.
60060         * lib/unictype/pr_variation_selector.c: New file.
60061         * lib/unictype/pr_white_space.c: New file.
60062         * lib/unictype/pr_xid_continue.c: New file.
60063         * lib/unictype/pr_xid_start.c: New file.
60064         * lib/unictype/pr_zero_width.c: New file.
60065         * lib/unictype/scripts.c: New file.
60066         * lib/unictype/sy_c_ident.c: New file.
60067         * lib/unictype/sy_c_whitespace.c: New file.
60068         * lib/unictype/sy_java_ident.c: New file.
60069         * lib/unictype/sy_java_whitespace.c: New file.
60070
60071         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
60072         Unicode 5.0.0.
60073         * lib/unictype/blocks.h: Likewise.
60074         * lib/unictype/categ_C.h: Likewise.
60075         * lib/unictype/categ_Cc.h: Likewise.
60076         * lib/unictype/categ_Cf.h: Likewise.
60077         * lib/unictype/categ_Cn.h: Likewise.
60078         * lib/unictype/categ_Co.h: Likewise.
60079         * lib/unictype/categ_Cs.h: Likewise.
60080         * lib/unictype/categ_L.h: Likewise.
60081         * lib/unictype/categ_Ll.h: Likewise.
60082         * lib/unictype/categ_Lm.h: Likewise.
60083         * lib/unictype/categ_Lo.h: Likewise.
60084         * lib/unictype/categ_Lt.h: Likewise.
60085         * lib/unictype/categ_Lu.h: Likewise.
60086         * lib/unictype/categ_M.h: Likewise.
60087         * lib/unictype/categ_Mc.h: Likewise.
60088         * lib/unictype/categ_Me.h: Likewise.
60089         * lib/unictype/categ_Mn.h: Likewise.
60090         * lib/unictype/categ_N.h: Likewise.
60091         * lib/unictype/categ_Nd.h: Likewise.
60092         * lib/unictype/categ_Nl.h: Likewise.
60093         * lib/unictype/categ_No.h: Likewise.
60094         * lib/unictype/categ_P.h: Likewise.
60095         * lib/unictype/categ_Pc.h: Likewise.
60096         * lib/unictype/categ_Pd.h: Likewise.
60097         * lib/unictype/categ_Pe.h: Likewise.
60098         * lib/unictype/categ_Pf.h: Likewise.
60099         * lib/unictype/categ_Pi.h: Likewise.
60100         * lib/unictype/categ_Po.h: Likewise.
60101         * lib/unictype/categ_Ps.h: Likewise.
60102         * lib/unictype/categ_S.h: Likewise.
60103         * lib/unictype/categ_Sc.h: Likewise.
60104         * lib/unictype/categ_Sk.h: Likewise.
60105         * lib/unictype/categ_Sm.h: Likewise.
60106         * lib/unictype/categ_So.h: Likewise.
60107         * lib/unictype/categ_Z.h: Likewise.
60108         * lib/unictype/categ_Zl.h: Likewise.
60109         * lib/unictype/categ_Zp.h: Likewise.
60110         * lib/unictype/categ_Zs.h: Likewise.
60111         * lib/unictype/categ_of.h: Likewise.
60112         * lib/unictype/combining.h: Likewise.
60113         * lib/unictype/ctype_alnum.h: Likewise.
60114         * lib/unictype/ctype_alpha.h: Likewise.
60115         * lib/unictype/ctype_blank.h: Likewise.
60116         * lib/unictype/ctype_cntrl.h: Likewise.
60117         * lib/unictype/ctype_digit.h: Likewise.
60118         * lib/unictype/ctype_graph.h: Likewise.
60119         * lib/unictype/ctype_lower.h: Likewise.
60120         * lib/unictype/ctype_print.h: Likewise.
60121         * lib/unictype/ctype_punct.h: Likewise.
60122         * lib/unictype/ctype_space.h: Likewise.
60123         * lib/unictype/ctype_upper.h: Likewise.
60124         * lib/unictype/ctype_xdigit.h: Likewise.
60125         * lib/unictype/decdigit.h: Likewise.
60126         * lib/unictype/digit.h: Likewise.
60127         * lib/unictype/mirror.h: Likewise.
60128         * lib/unictype/numeric.h: Likewise.
60129         * lib/unictype/pr_alphabetic.h: Likewise.
60130         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
60131         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
60132         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
60133         * lib/unictype/pr_bidi_block_separator.h: Likewise.
60134         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
60135         * lib/unictype/pr_bidi_common_separator.h: Likewise.
60136         * lib/unictype/pr_bidi_control.h: Likewise.
60137         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
60138         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
60139         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
60140         * lib/unictype/pr_bidi_european_digit.h: Likewise.
60141         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
60142         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
60143         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
60144         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
60145         * lib/unictype/pr_bidi_pdf.h: Likewise.
60146         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
60147         * lib/unictype/pr_bidi_whitespace.h: Likewise.
60148         * lib/unictype/pr_combining.h: Likewise.
60149         * lib/unictype/pr_composite.h: Likewise.
60150         * lib/unictype/pr_currency_symbol.h: Likewise.
60151         * lib/unictype/pr_dash.h: Likewise.
60152         * lib/unictype/pr_decimal_digit.h: Likewise.
60153         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
60154         * lib/unictype/pr_deprecated.h: Likewise.
60155         * lib/unictype/pr_diacritic.h: Likewise.
60156         * lib/unictype/pr_extender.h: Likewise.
60157         * lib/unictype/pr_format_control.h: Likewise.
60158         * lib/unictype/pr_grapheme_base.h: Likewise.
60159         * lib/unictype/pr_grapheme_extend.h: Likewise.
60160         * lib/unictype/pr_grapheme_link.h: Likewise.
60161         * lib/unictype/pr_hex_digit.h: Likewise.
60162         * lib/unictype/pr_hyphen.h: Likewise.
60163         * lib/unictype/pr_id_continue.h: Likewise.
60164         * lib/unictype/pr_id_start.h: Likewise.
60165         * lib/unictype/pr_ideographic.h: Likewise.
60166         * lib/unictype/pr_ids_binary_operator.h: Likewise.
60167         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
60168         * lib/unictype/pr_ignorable_control.h: Likewise.
60169         * lib/unictype/pr_iso_control.h: Likewise.
60170         * lib/unictype/pr_join_control.h: Likewise.
60171         * lib/unictype/pr_left_of_pair.h: Likewise.
60172         * lib/unictype/pr_line_separator.h: Likewise.
60173         * lib/unictype/pr_logical_order_exception.h: Likewise.
60174         * lib/unictype/pr_lowercase.h: Likewise.
60175         * lib/unictype/pr_math.h: Likewise.
60176         * lib/unictype/pr_non_break.h: Likewise.
60177         * lib/unictype/pr_not_a_character.h: Likewise.
60178         * lib/unictype/pr_numeric.h: Likewise.
60179         * lib/unictype/pr_other_alphabetic.h: Likewise.
60180         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
60181         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
60182         * lib/unictype/pr_other_id_continue.h: Likewise.
60183         * lib/unictype/pr_other_id_start.h: Likewise.
60184         * lib/unictype/pr_other_lowercase.h: Likewise.
60185         * lib/unictype/pr_other_math.h: Likewise.
60186         * lib/unictype/pr_other_uppercase.h: Likewise.
60187         * lib/unictype/pr_paired_punctuation.h: Likewise.
60188         * lib/unictype/pr_paragraph_separator.h: Likewise.
60189         * lib/unictype/pr_pattern_syntax.h: Likewise.
60190         * lib/unictype/pr_pattern_white_space.h: Likewise.
60191         * lib/unictype/pr_private_use.h: Likewise.
60192         * lib/unictype/pr_punctuation.h: Likewise.
60193         * lib/unictype/pr_quotation_mark.h: Likewise.
60194         * lib/unictype/pr_radical.h: Likewise.
60195         * lib/unictype/pr_sentence_terminal.h: Likewise.
60196         * lib/unictype/pr_soft_dotted.h: Likewise.
60197         * lib/unictype/pr_space.h: Likewise.
60198         * lib/unictype/pr_terminal_punctuation.h: Likewise.
60199         * lib/unictype/pr_titlecase.h: Likewise.
60200         * lib/unictype/pr_unassigned_code_value.h: Likewise.
60201         * lib/unictype/pr_unified_ideograph.h: Likewise.
60202         * lib/unictype/pr_uppercase.h: Likewise.
60203         * lib/unictype/pr_variation_selector.h: Likewise.
60204         * lib/unictype/pr_white_space.h: Likewise.
60205         * lib/unictype/pr_xid_continue.h: Likewise.
60206         * lib/unictype/pr_xid_start.h: Likewise.
60207         * lib/unictype/pr_zero_width.h: Likewise.
60208         * lib/unictype/scripts.h: Likewise.
60209         * lib/unictype/scripts_byname.gperf: Likewise.
60210         * lib/unictype/sy_c_ident.h: Likewise.
60211         * lib/unictype/sy_c_whitespace.h: Likewise.
60212         * lib/unictype/sy_java_ident.h: Likewise.
60213         * lib/unictype/sy_java_whitespace.h: Likewise.
60214
60215         * lib/unictype/Makefile: New file.
60216         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
60217         glibc.
60218         * lib/unictype/3level.h: New file, copied from glibc.
60219         * lib/unictype/3levelbit.h: New file.
60220
60221 2007-11-11  Bruno Haible  <bruno@clisp.org>
60222
60223         * modules/gperf: New file.
60224         * modules/iconv_open (Depends-on): Add it.
60225         (Makefile.am): Remove the GPERF definition.
60226
60227 2007-11-11  Bruno Haible  <bruno@clisp.org>
60228
60229         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
60230         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
60231
60232 2007-11-11  Bruno Haible  <bruno@clisp.org>
60233
60234         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
60235         (usage): Remove function.
60236
60237 2007-11-11  Bruno Haible  <bruno@clisp.org>
60238
60239         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
60240         gl_FUNC_CEILF_LIBS.
60241         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
60242         gl_FUNC_CEIL_LIBS.
60243         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
60244         gl_FUNC_CEILL_LIBS.
60245         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
60246         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
60247         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
60248
60249 2007-11-11  Bruno Haible  <bruno@clisp.org>
60250
60251         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
60252         roundf were declared but do not exist on functions.
60253         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
60254         roundl were declared but do not exist on functions.
60255         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
60256         HAVE_FLOORL_AND_CEILL, respectively.
60257         Needed for Sun C on Solaris 10.
60258
60259 2007-11-11  Bruno Haible  <bruno@clisp.org>
60260
60261         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
60262         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
60263         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
60264         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
60265         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
60266         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
60267         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
60268         HAVE_DECL_ROUNDF.
60269         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
60270         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
60271         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
60272         of HAVE_DECL_ROUND*.
60273         * modules/math (Makefile.am): Update.
60274
60275 2007-11-10  Bruno Haible  <bruno@clisp.org>
60276
60277         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
60278         ptrdiff_t as m4/intl.m4.
60279
60280 2007-11-10  Jim Meyering  <meyering@redhat.com>
60281
60282         Avoid link failure for the argmatch test.
60283         * tests/test-argmatch.c (usage): Define function to avoid a link
60284         failure: argmatch_die requires a usage function.
60285
60286 2007-11-09  Bruno Haible  <bruno@clisp.org>
60287
60288         * doc/functions/snprintf.texi: Mention BeOS deficiency.
60289         * doc/functions/vsnprintf.texi: Likewise.
60290         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
60291         with a size argument < 2.
60292
60293 2007-11-09  Bruno Haible  <bruno@clisp.org>
60294
60295         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
60296         buffer. Fixes an inefficiency introduced on 2007-11-03.
60297
60298 2007-11-09  Bruno Haible  <bruno@clisp.org>
60299
60300         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
60301         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
60302
60303 2007-11-08  Jim Meyering  <meyering@redhat.com>
60304
60305         Change cache variable name prefix "jm_" to "gl_" everywhere.
60306         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
60307         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
60308         * m4/uptime.m4: s/gl_/jm_/
60309
60310 2007-11-07  Bruno Haible  <bruno@clisp.org>
60311
60312         Update to GNU gettext 0.17.
60313         * m4/intl.m4: Update to GNU gettext 0.17.
60314         * m4/po.m4: Likewise.
60315         * modules/gettext (Files): Remove m4/ulonglong.m4.
60316         (configure.ac): Require gettext infrastructure from version 0.17.
60317
60318 2007-11-06  Bruno Haible  <bruno@clisp.org>
60319
60320         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
60321         symbolic values are not defined in a public header.
60322         * lib/freadable.c (freadable) [QNX]: Likewise.
60323         * lib/freadahead.c (freadahead) [QNX]: Likewise.
60324         * lib/freading.c (freading) [QNX]: Likewise.
60325         * lib/fseterr.c (fseterr) [QNX]: Likewise.
60326         * lib/fwritable.c (fwritable) [QNX]: Likewise.
60327         * lib/fwriting.c (fwriting) [QNX]: Likewise.
60328         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
60329         Reported by Alain Magloire.
60330
60331         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
60332
60333 2007-11-05  Bruno Haible  <bruno@clisp.org>
60334
60335         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
60336         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
60337         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
60338         Reported by Eric Blake.
60339
60340 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60341             Bruno Haible  <bruno@clisp.org>
60342
60343         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
60344         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
60345         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
60346         (malloc): Undefine also before including <stdlib.h>.
60347         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
60348         Needed on OSF/1 4.0.
60349
60350 2007-11-05  Jim Meyering  <meyering@redhat.com>
60351
60352         git-version-gen: sync from coreutils.
60353         * build-aux/git-version-gen: Add comments.
60354         Change the first '-' to '.' in the snapshot version string,
60355         e.g., 6.9-377-08144 -> 6.9.377-08144
60356         Remove first parameter.
60357         Don't declare a version "-dirty" merely because a time
60358         stamp has changed.
60359
60360 2007-11-04  Bruno Haible  <bruno@clisp.org>
60361
60362         * lib/lock.h: Protect all macro definitions containing an 'if'
60363         statement through a "do { ... } while (0)".
60364         * lib/tls.h: Likewise.
60365
60366 2007-11-04  Bruno Haible  <bruno@clisp.org>
60367
60368         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
60369
60370 2007-11-04  Bruno Haible  <bruno@clisp.org>
60371
60372         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
60373         * modules/fprintf-posix (Depends-on): Add nocrash.
60374         * modules/snprintf-posix (Depends-on): Likewise.
60375         * modules/sprintf-posix (Depends-on): Likewise.
60376         * modules/vasnprintf-posix (Depends-on): Likewise.
60377         * modules/vasprintf-posix (Depends-on): Likewise.
60378         * modules/vfprintf-posix (Depends-on): Likewise.
60379         * modules/vsnprintf-posix (Depends-on): Likewise.
60380         * modules/vsprintf-posix (Depends-on): Likewise.
60381         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60382         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60383         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60384         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60385         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60386         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60387         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60388
60389 2007-11-04  Bruno Haible  <bruno@clisp.org>
60390
60391         * modules/nocrash: New file.
60392         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
60393         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
60394
60395 2007-11-04  Bruno Haible  <bruno@clisp.org>
60396
60397         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
60398         precision handling.
60399         * tests/test-vasprintf-posix.c (test_function): Likewise.
60400         * tests/test-snprintf-posix.h (test_function): Likewise.
60401         * tests/test-sprintf-posix.h (test_function): Likewise.
60402
60403         Fix *printf behaviour for large precisions on mingw and BeOS.
60404         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
60405         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
60406         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
60407         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60408         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60409         gl_PRINTF_PRECISION and test its result. Invoke
60410         gl_PREREQ_VASNPRINTF_PRECISION.
60411         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60412         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60413         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60414         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60415         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60416         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60417         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60418         * doc/functions/fprintf.texi: Update.
60419         * doc/functions/printf.texi: Update.
60420         * doc/functions/snprintf.texi: Update.
60421         * doc/functions/sprintf.texi: Update.
60422         * doc/functions/vfprintf.texi: Update.
60423         * doc/functions/vprintf.texi: Update.
60424         * doc/functions/vsnprintf.texi: Update.
60425         * doc/functions/vsprintf.texi: Update.
60426
60427 2007-11-04  Bruno Haible  <bruno@clisp.org>
60428
60429         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
60430
60431 2007-11-04  Bruno Haible  <bruno@clisp.org>
60432
60433         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
60434         Reported by Sylvain Beucler <beuc@gnu.org>.
60435
60436 2007-11-03  Bruno Haible  <bruno@clisp.org>
60437
60438         * tests/test-fprintf-posix2.sh: New file.
60439         * tests/test-fprintf-posix2.c: New file.
60440         * modules/fprintf-posix-tests (Files): Add them.
60441         (TESTS): Add test-fprintf-posix2.sh.
60442         (configure.ac): Check for getrlimit and setrlimit.
60443         (check_PROGRAMS): Add test-fprintf-posix2.
60444
60445         * tests/test-printf-posix2.sh: New file.
60446         * tests/test-printf-posix2.c: New file.
60447         * modules/printf-posix-tests (Files): Add them.
60448         (TESTS): Add test-printf-posix2.sh.
60449         (configure.ac): Check for getrlimit and setrlimit.
60450         (check_PROGRAMS): Add test-printf-posix2.
60451
60452         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
60453         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
60454         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
60455         (decode_double): New function, copied from decode_long_double.
60456         (scale10_round_decimal_decoded): New function, extracted from
60457         scale10_round_decimal_long_double.
60458         (scale10_round_decimal_long_double): Use it.
60459         (scale10_round_decimal_double): New function.
60460         (floorlog10): New function.
60461         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
60462         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
60463         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60464         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60465         gl_PRINTF_ENOMEM and test its result. Invoke
60466         gl_PREREQ_VASNPRINTF_ENOMEM.
60467         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60468         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60469         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60470         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60471         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60472         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60473         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60474         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
60475         * modules/snprintf-posix (Depends-on): Likewise.
60476         * modules/sprintf-posix (Depends-on): Likewise.
60477         * modules/vasnprintf-posix (Depends-on): Likewise.
60478         * modules/vasprintf-posix (Depends-on): Likewise.
60479         * modules/vfprintf-posix (Depends-on): Likewise.
60480         * modules/vsnprintf-posix (Depends-on): Likewise.
60481         * modules/vsprintf-posix (Depends-on): Likewise.
60482         * doc/functions/fprintf.texi: Update.
60483         * doc/functions/printf.texi: Update.
60484         * doc/functions/snprintf.texi: Update.
60485         * doc/functions/sprintf.texi: Update.
60486         * doc/functions/vfprintf.texi: Update.
60487         * doc/functions/vprintf.texi: Update.
60488         * doc/functions/vsnprintf.texi: Update.
60489         * doc/functions/vsprintf.texi: Update.
60490
60491 2007-11-03  Bruno Haible  <bruno@clisp.org>
60492
60493         * modules/frexp-nolibm-tests: New file.
60494
60495         * modules/frexp-nolibm: New file.
60496         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
60497
60498 2007-11-03  Bruno Haible  <bruno@clisp.org>
60499
60500         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
60501         value is C99 compliant.
60502         Needed for OSF/1 5.1.
60503
60504 2007-11-03  Bruno Haible  <bruno@clisp.org>
60505
60506         Fix out-of-memory handling of vasnprintf.
60507         * lib/printf-parse.c: Include <errno.h>.
60508         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
60509         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
60510         is already set.
60511
60512 2007-11-02  Eric Blake  <ebb9@byu.net>
60513
60514         Fix tests on cygwin.
60515         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
60516
60517 2007-11-01  Bruno Haible  <bruno@clisp.org>
60518
60519         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
60520         warning.
60521         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
60522         needed for POSIX compatibility.
60523
60524 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60525
60526         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
60527         for compatibility with GNU.
60528
60529 2007-11-01  Bruno Haible  <bruno@clisp.org>
60530
60531         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
60532         (putenv): Renamed from rpl_putenv. Change argument type from
60533         'const char *' to 'char *'.
60534         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
60535         of defining putenv in config.h, just set REPLACE_PUTENV.
60536         * modules/putenv (Depends-on): Add stdlib.
60537         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60538         (Include): Use <stdlib.h>.
60539         * lib/stdlib.in.h (putenv): New declaration.
60540         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
60541         REPLACE_PUTENV.
60542         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
60543         REPLACE_PUTENV.
60544         Needed for MacOS X 10.5.0.
60545         Reported by Peter O'Gorman <peter@pogma.com>.
60546
60547 2007-11-01  Jim Meyering  <meyering@redhat.com>
60548
60549         Treat an empty date string exactly like "0".
60550         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
60551         if the remaining date string (to be parsed) is empty, use "0".
60552         Reported by Mischa Molhoek and discussed in this thread:
60553         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
60554
60555 2007-10-31  Bruno Haible  <bruno@clisp.org>
60556
60557         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
60558         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
60559         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
60560         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
60561         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
60562         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
60563
60564 2007-10-31  Bruno Haible  <bruno@clisp.org>
60565
60566         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
60567         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
60568         (AC_TYPE_LONG_LONG_INT): Use it.
60569         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
60570         it as well.
60571         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
60572         to m4/longlong.m4.
60573         * modules/stdint (Files): Remove m4/ulonglong.m4.
60574         * modules/strtoull (Files): Use m4/longlong.m4 instead of
60575         m4/ulonglong.m4.
60576         * modules/strtoumax (Files): Likewise.
60577
60578 2007-10-30  Bruno Haible  <bruno@clisp.org>
60579
60580         * modules/xvasprintf-posix: New file.
60581         Suggested by Eric Blake.
60582
60583 2007-10-30  Bruno Haible  <bruno@clisp.org>
60584
60585         * modules/xprintf-posix-tests: New file.
60586         * tests/test-xprintf-posix.sh: New file.
60587         * tests/test-xprintf-posix.c: New file.
60588         * tests/test-xfprintf-posix.c: New file.
60589
60590         * modules/xprintf-posix: New file.
60591
60592 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60593
60594         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
60595         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
60596         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
60597
60598 2007-10-29  Bruno Haible  <bruno@clisp.org>
60599
60600         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
60601         contain the special marker '_cv_'.
60602         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
60603         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
60604         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
60605         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
60606         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
60607         Reported by Ralf Wildenhues.
60608
60609 2007-10-29  Bruno Haible  <bruno@clisp.org>
60610
60611         * gnulib-tool (func_import): When --lgpl is not specified, set
60612         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
60613         GPLv3.
60614         Reported by Simon Josefsson.
60615
60616 2007-10-28  Bruno Haible  <bruno@clisp.org>
60617
60618         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
60619         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
60620         HAVE_DECL_ISFINITE.
60621         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60622         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
60623         HAVE_DECL_ISFINITE.
60624
60625 2007-10-28  Bruno Haible  <bruno@clisp.org>
60626
60627         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
60628         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
60629
60630 2007-10-28  Bruno Haible  <bruno@clisp.org>
60631
60632         Fix link errors with Sun C 5.0 on Solaris 10.
60633         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
60634         function is declared but not present in the compiler's libm.
60635         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
60636         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
60637         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
60638         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
60639         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
60640         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
60641         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
60642         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60643         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
60644         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
60645         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
60646         HAVE_DECL_FLOORL.
60647
60648 2007-10-28  Bruno Haible  <bruno@clisp.org>
60649
60650         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
60651         gl_FUNC_FLOORL. Cache the result.
60652         (gl_FUNC_FLOORL): Use it.
60653         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
60654         gl_FUNC_CEILL. Cache the result.
60655         (gl_FUNC_CEILL): Use it.
60656
60657         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
60658         gl_FUNC_FLOOR. Cache the result.
60659         (gl_FUNC_FLOOR): Use it.
60660         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
60661         gl_FUNC_CEIL. Cache the result.
60662         (gl_FUNC_CEIL): Use it.
60663
60664         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
60665         gl_FUNC_FLOORF. Cache the result.
60666         (gl_FUNC_FLOORF): Use it.
60667         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
60668         gl_FUNC_CEILF. Cache the result.
60669         (gl_FUNC_CEILF): Use it.
60670
60671 2007-10-28  Bruno Haible  <bruno@clisp.org>
60672
60673         * gnulib-tool: Allow specifying the LGPL version number through
60674         --lgpl=2 or --lgpl=3.
60675         (func_usage): Document --lgpl with argument.
60676         Handle --lgpl=... arguments.
60677         (func_import): Recognize also gl_LGPL calls with an argument. When
60678         --lgpl=2 is used and the module's license is just LGPL, report an
60679         error. Set sed_transform_lib_file according to the lgpl variable. In
60680         the generated files, use --lgpl or gl_LGPL invocations with argument,
60681         if necessary.
60682         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
60683         an LGPv2+ license.
60684         * doc/gnulib-tool.texi (Modified imports): Update explanation of
60685         gl_LGPL macro.
60686
60687 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60688             Bruno Haible  <bruno@clisp.org>
60689
60690         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
60691         (u16_uctomb_aux): Likewise.
60692         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
60693         !HAVE_INLINE.
60694         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
60695
60696 2007-10-28  Bruno Haible  <bruno@clisp.org>
60697
60698         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
60699         Invoke AM_GETTEXT_OPTION if it exists.
60700         * modules/vasprintf: Likewise.
60701         * modules/verror: Likewise.
60702         * modules/xprintf: Likewise.
60703         * modules/xvasprintf: Likewise.
60704
60705 2007-10-27  Ben Pfaff  <blp@gnu.org>
60706
60707         * lib/math.in.h: Define isfinite macro and prototypes for
60708         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
60709         implementations.
60710         * m4/math_h.m4: New substitutions for isfinite module.
60711         * lib/isfinite.c: New file.
60712         * m4/isfinite.m4: New file.
60713         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
60714         * modules/isfinite: New file.
60715         * modules/isfinite-tests: New file.
60716         * tests/tests-isfinite.c: New file.
60717         * doc/functions/isfinite.texi: Mention isfinite module.
60718         * MODULES.html.sh: Mention new module.
60719
60720 2007-10-27  Ben Pfaff  <blp@gnu.org>
60721
60722         Ralf Wildenhues reported that Tru64 4.0D declares the round
60723         functions but does not have definitions.
60724         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
60725         cannot be found in any library, set the output variable to
60726         "missing" instead of "".
60727         * m4/round.m4: Also use our substitute if we cannot find round in
60728         any library, even if it is declared.
60729         * m4/roundf.m4: Likewise for roundf.
60730         * m4/roundl.m4: Likewise for roundl.
60731         * lib/math.in.h: Undefine roundf, round, roundl before defining
60732         their replacements, to allow for hypothetical systems where these
60733         may be defined as macros but not available in libraries.
60734
60735 2007-10-27  Bruno Haible  <bruno@clisp.org>
60736
60737         * doc/gnulib.texi: Invoke @firstparagraphindent.
60738         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
60739         changes in gnulib.
60740         (Source changes): New section.
60741
60742 2007-10-26  Bruno Haible  <bruno@clisp.org>
60743
60744         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
60745         borrowed from autoconf.
60746
60747 2007-10-26  Bruno Haible  <bruno@clisp.org>
60748
60749         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
60750         strerror returned the empty string. Needed on HP-UX 11.00.
60751
60752 2007-10-24  Micah Cowan  <micah@cowan.name>
60753
60754         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
60755         * build-aux/bootstrap: Remove support for now-unnecessary option,
60756         --cvs-user, and envvars CVS_USER, CVS_RSH.
60757
60758 2007-10-24  Jim Meyering  <meyering@redhat.com>
60759
60760         Avoid diagnostics from sha1sum when there is no cached checksum.
60761         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
60762         if the po.s1 file hasn't been created yet.
60763
60764         * build-aux/bootstrap: Sync from coreutils:
60765         2007-10-24  Jim Meyering  <meyering@redhat.com>
60766         Get gnulib from the git repository, not from an obsolete cvs one.
60767         * build-aux/bootstrap: Suggestion from Micah Cowan.
60768         2007-10-04  Jim Meyering  <jim@meyering.net>
60769         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
60770         (update_po_files): Work also when there are no .po files in po/.
60771
60772 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60773
60774         * README: Append ".git" to git and cg examples.
60775         Problem reported by Benoit Sigoure.
60776
60777 2007-10-23  Micah Cowan  <micah@cowan.name>
60778
60779         * users.txt: Add wget.
60780
60781 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60782
60783         Fix linking of some unistdio tests on FreeBSD.
60784         * modules/unistdio/u16-vsnprintf-tests
60785         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
60786         * modules/unistdio/u16-vsprintf-tests
60787         (test_u16_vsnprintf1_LDADD): Likewise.
60788         * modules/unistdio/u32-vsnprintf-tests
60789         (test_u32_vsnprintf1_LDADD): Likewise.
60790         * modules/unistdio/u32-vsprintf-tests
60791         (test_u32_vsprintf1_LDADD): Likewise.
60792         * modules/unistdio/u8-vsnprintf-tests
60793         (test_u8_vsnprintf1_LDADD): Likewise.
60794         * modules/unistdio/u8-vsprintf-tests
60795         (test_u8_vsprintf1_LDADD): Likewise.
60796         * modules/unistdio/ulc-vsnprintf-tests
60797         (test_ulc_vsnprintf1_LDADD): Likewise.
60798         * modules/unistdio/ulc-vsprintf-tests
60799         (test_ulc_vsprintf1_LDADD): Likewise.
60800
60801         Fix linking of some uniconv tests on FreeBSD.
60802         * modules/uniconv/u16-conv-from-enc-tests
60803         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
60804         * modules/uniconv/u16-conv-to-enc-tests
60805         (test_u16_conv_to_enc_LDADD): Likewise.
60806         * modules/uniconv/u16-strconv-from-enc-tests
60807         (test_u16_strconv_from_enc_LDADD): Likewise.
60808         * modules/uniconv/u16-strconv-to-enc-tests
60809         (test_u16_strconv_to_enc_LDADD): Likewise.
60810         * modules/uniconv/u32-conv-from-enc-tests
60811         (test_u32_conv_from_enc_LDADD): Likewise.
60812         * modules/uniconv/u32-conv-to-enc-tests
60813         (test_u32_conv_to_enc_LDADD): Likewise.
60814         * modules/uniconv/u32-strconv-from-enc-tests
60815         (test_u32_strconv_from_enc_LDADD): Likewise.
60816         * modules/uniconv/u32-strconv-to-enc-tests
60817         (test_u32_strconv_to_enc_LDADD): Likewise.
60818         * modules/uniconv/u8-conv-from-enc-tests
60819         (test_u8_conv_from_enc_LDADD): Likewise.
60820         * modules/uniconv/u8-conv-to-enc-tests
60821         (test_u8_conv_to_enc_LDADD): Likewise.
60822         * modules/uniconv/u8-strconv-from-enc-tests
60823         (test_u8_strconv_from_enc_LDADD): Likewise.
60824         * modules/uniconv/u8-strconv-to-enc-tests
60825         (test_u8_strconv_to_enc_LDADD): Likewise.
60826
60827 2007-10-22  Bruno Haible  <bruno@clisp.org>
60828
60829         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
60830         size.
60831
60832 2007-10-22  Eric Blake  <ebb9@byu.net>
60833
60834         Tweak x*printf documentation.
60835         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
60836         variable name and comments.
60837         Suggested by Bruno Haible.
60838
60839 2007-10-22  Bruno Haible  <bruno@clisp.org>
60840
60841         * lib/acl.c (copy_acl): Fix file name in comment.
60842
60843 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60844
60845         Fix Tru64 problem with stdbool.h.
60846         * lib/stdbool.in.h (false, true):
60847         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
60848         Don't declare as an enum in this situation; it runs afoul of Tru64.
60849         Problem reported by Steven M. Schweda in
60850         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
60851
60852 2007-10-22  Eric Blake  <ebb9@byu.net>
60853
60854         Also wrap vf?printf.
60855         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
60856         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
60857         (xvprintf, xvfprintf): New functions.
60858
60859 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60860
60861         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
60862         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
60863
60864         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
60865         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
60866
60867 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60868
60869         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
60870         by Bruno Haible.
60871
60872 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60873
60874         * lib/getloadavg.c
60875         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
60876         Undef `sys' after including sys/table.h, for Tru64 4.0D.
60877
60878         * tests/test-i-ring.c: Work for C89.
60879
60880 2007-10-22  Bruno Haible  <bruno@clisp.org>
60881
60882         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
60883         -1u, in preprocessor expression, so that we don't test for the bug
60884         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
60885         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
60886
60887 2007-10-22  Eric Blake  <ebb9@byu.net>
60888
60889         * tests/test-yesno.sh: Silence stderr during test.
60890
60891 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60892
60893         * modules/crypto/gc-camellia: New file.
60894
60895         * m4/gc-camellia.m4: New file.
60896
60897         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
60898
60899         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
60900
60901 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60902
60903         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
60904         --help to stdout.  Reported by sms@antinode.org (Steven
60905         M. Schweda).
60906
60907 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60908
60909         * users.txt: Fix link to libksba.
60910
60911 2007-10-21  Ben Pfaff  <blp@gnu.org>
60912
60913         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
60914         round.c roundf implementation that depends on floorf and ceilf to
60915         be tested unconditionally.
60916
60917 2007-10-21  Ben Pfaff  <blp@gnu.org>
60918
60919         * m4/check-libm-func.m4: Removed.
60920         * m4/check-math-lib.m4: New file.
60921         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
60922         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
60923         definition and lack of AC_LIBOBJ([roundf]).
60924         * m4/roundl.m4: Ditto, and similarly for roundl.
60925         * modules/round: Reference new m4 file.
60926         * modules/roundf: Ditto.
60927         * modules/roundl: Ditto.
60928         * tests/test-round2.c (main): Use ROUND instead of round.
60929         Bug report from Bruno Haible.
60930
60931 2007-10-21  Bruno Haible  <bruno@clisp.org>
60932
60933         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
60934         context.
60935
60936 2007-10-21  Bruno Haible  <bruno@clisp.org>
60937
60938         * tests/test-wcwidth.c (main): Allow negative result for some control
60939         characters.
60940
60941         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
60942         Needed on OSF/1 5.1.
60943
60944 2007-10-21  Bruno Haible  <bruno@clisp.org>
60945
60946         * tests/test-floorf1.c: Include isnanf.h.
60947         (main): Use isnanf() instead of isnan().
60948         * tests/test-ceilf1.c: Include isnanf.h.
60949         (main): Use isnanf() instead of isnan().
60950         * tests/test-truncf1.c: Include isnanf.h.
60951         (main): Use isnanf() instead of isnan().
60952         * tests/test-roundf1.c: Include isnanf.h.
60953         (main): Use isnanf() instead of isnan().
60954
60955 2007-10-21  Eric Blake  <ebb9@byu.net>
60956
60957         * users.txt: Update URL for m4.
60958
60959 2007-10-21  Bruno Haible  <bruno@clisp.org>
60960
60961         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
60962
60963 2007-10-21  Bruno Haible  <bruno@clisp.org>
60964
60965         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
60966         Git's management files if the CVS files are not present.
60967
60968 2007-10-20  Bruno Haible  <bruno@clisp.org>
60969
60970         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
60971         gcc-3.4.x.
60972
60973 2007-10-20  Ben Pfaff  <blp@gnu.org>
60974
60975         * lib/math.in.h: Declare round, roundf, roundl if we are providing
60976         implementations.
60977         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
60978         * lib/round.c: New file.
60979         * lib/roundf.c: New file.
60980         * lib/roundl.c: New file.
60981         * m4/round.m4: New file.
60982         * m4/roundf.m4: New file.
60983         * m4/roundl.m4: New file.
60984         * m4/check-libm-func-m4: New file.
60985         * modules/math: Replace round, roundf, roundl related @VARS@ in
60986         math.in.h.
60987         * modules/round: New file.
60988         * modules/round-tests: New file.
60989         * modules/roundf: New file.
60990         * modules/roundf-tests: New file.
60991         * modules/roundl: New file.
60992         * modules/roundl-tests: New file.
60993         * tests/test-round1.c: New file.
60994         * tests/test-round2.c: New file.
60995         * tests/test-roundf1.c: New file.
60996         * tests/test-roundf2.c: New file.
60997         * tests/test-roundl.c: New file.
60998         * doc/functions/round.texi: Mention round module.
60999         * doc/functions/roundf.texi: Mention roundf module.
61000         * doc/functions/roundl.texi: Mention roundl module.
61001         * MODULES.html.sh: Mention new modules.
61002         Thanks to Bruno Haible for suggestions.
61003
61004 2007-10-20  Jim Meyering  <meyering@redhat.com>
61005
61006         * lib/xprintf.c: Include <config.h> unconditionally.
61007
61008         Change xprintf's license to GPL.
61009         * modules/xprintf (License): s/LGPL/GPL/, since this module
61010         depends on modules (exit and exitfail) which are GPL.
61011         Suggestion from Bruno Haible.
61012
61013         xprintf fixes.
61014         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
61015         Use a clearer diagnostic.
61016         Patch from Bruno Haible.
61017
61018 2007-10-20  Bruno Haible  <bruno@clisp.org>
61019
61020         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
61021         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
61022         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61023
61024 2007-10-20  Bruno Haible  <bruno@clisp.org>
61025
61026         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
61027         precision in the comparison result > x - 1 or similar.
61028         * tests/test-ceilf2.c (correct_result_p): Likewise.
61029         * tests/test-truncf2.c (correct_result_p): Likewise.
61030         * tests/test-trunc2.c (correct_result_p): Likewise.
61031         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61032
61033 2007-10-20  Bruno Haible  <bruno@clisp.org>
61034
61035         * modules/ceil: New file.
61036         * m4/ceil.m4: New file.
61037         * doc/functions/ceil.texi: Mention the 'ceil' module.
61038
61039 2007-10-20  Bruno Haible  <bruno@clisp.org>
61040
61041         * modules/floor: New file.
61042         * m4/floor.m4: New file.
61043         * doc/functions/floor.texi: Mention the 'floor' module.
61044
61045 2007-10-20  Bruno Haible  <bruno@clisp.org>
61046
61047         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
61048         of %a.
61049         * modules/floorf-tests (Depends-on): Likewise.
61050         * modules/truncf-tests (Depends-on): Likewise.
61051         * modules/trunc-tests (Depends-on): Likewise.
61052         Reported by Ben Pfaff.
61053
61054 2007-10-19  Jim Meyering  <meyering@redhat.com>
61055
61056         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
61057         Don't bother testing specific errno values.  Just test ferror.
61058
61059         New module: xprintf
61060         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
61061
61062 2007-10-19  Bruno Haible  <bruno@clisp.org>
61063
61064         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
61065         syntax.
61066         * modules/javaexec (Makefile.am): Likewise.
61067         * modules/relocatable-prog (Makefile.am): Likewise.
61068         Suggested by Jim Meyering.
61069
61070 2007-10-18  Bruno Haible  <bruno@clisp.org>
61071
61072         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
61073         Reported by Jim Meyering.
61074
61075 2007-10-18  Eric Blake  <ebb9@byu.net>
61076
61077         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
61078
61079 2007-10-18  Bruno Haible  <bruno@clisp.org>
61080
61081         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
61082         the format string into writable memory. Needed in Fortify conditions.
61083
61084 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
61085             Bruno Haible  <bruno@clisp.org>
61086
61087         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
61088         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
61089         * modules/trim (Depends-on): Add mbchar.
61090         (configure.ac): Add gl_FUNC_MBRTOWC.
61091         (Makefile.am): Augment lib_SOURCES.
61092
61093 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
61094
61095         Modify glob.c to use fstatat and dirfd, to simplify it.
61096         Suggested by Eric Blake.
61097         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
61098         Don't include <stdbool.h>; not used.
61099         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
61100         (link_exists_p): Simplify implementation, since we can now assume
61101         dirfd and fstatat.
61102         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
61103
61104 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61105
61106         * gnulib-tool (func_get_dependencies): Fix sed script to
61107         match only tests.
61108
61109 2007-10-17  Bruno Haible  <bruno@clisp.org>
61110
61111         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
61112         allow locale names without encoding suffix.
61113         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
61114         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
61115
61116 2007-10-16  Bruno Haible  <bruno@clisp.org>
61117
61118         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
61119         * lib/getgroups.c (getgroups): Likewise.
61120         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
61121
61122 2007-10-16  Bruno Haible  <bruno@clisp.org>
61123
61124         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
61125         * modules/malloc-posix (License): Likewise.
61126         * modules/realloc-posix (License): Likewise.
61127         * modules/calloc-posix (License): Likewise.
61128         * modules/intprops (License): Change from GPL to LGPL, with
61129         Paul Eggert's approval.
61130
61131 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61132
61133         Merge glibc changes into lib/glob.c.
61134
61135         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
61136         2007-10-15 04:59:03 UTC.  Here are the changes:
61137
61138         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
61139
61140         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
61141
61142         * lib/glob.c: Add some branch prediction throughout.
61143
61144         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
61145
61146         [BZ #5103]
61147         * lib/glob.c (glob): Recognize patterns starting \/.
61148
61149         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
61150
61151         [BZ #3996]
61152         * lib/glob.c (attribute_hidden): Define if not defined.
61153         (glob): Unescape dirname, filename or username when needed and not
61154         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
61155         is NULL.  Handle unescaped [ in pattern without closing ].
61156         Don't pass GLOB_CHECK down to recursive glob for directories.
61157         (__glob_pattern_type): New function.
61158         (__glob_pattern_p): Implement using __glob_pattern_type.
61159         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
61160         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
61161         Remove unreachable code.
61162
61163         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
61164
61165         * lib/glob.c (glob_in_dir): Add some comments and asserts to
61166         explain why there are no leaks.
61167
61168         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
61169
61170         [BZ #3253]
61171         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
61172         time, rather allocate increasingly bigger arrays of pointers, if
61173         possible with alloca, if too large with malloc.
61174
61175 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61176
61177         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
61178         Problem reported by H.Merijn Brand in
61179         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
61180         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
61181         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
61182
61183 2007-10-15  Bruno Haible  <bruno@clisp.org>
61184
61185         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
61186         with explicit rpl_ prefix.
61187         * lib/fopen.c (fopen): Likewise.
61188         * lib/freopen.c (freopen): Likewise.
61189         * lib/iconv.c (iconv): Likewise.
61190         * lib/iconv_close.c (iconv_close): Likewise.
61191
61192 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61193
61194         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
61195
61196 2007-10-15  Bruno Haible  <bruno@clisp.org>
61197
61198         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
61199         <stddef.h> instead of <stdlib.h> since we only need NULL.
61200         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61201
61202 2007-10-15  Bruno Haible  <bruno@clisp.org>
61203
61204         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
61205         Replace paragraph talking about LIBOBJS.
61206         Reported by Colin Watson <cjwatson@debian.org>.
61207
61208 2007-10-15  Bruno Haible  <bruno@clisp.org>
61209
61210         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
61211         <stdlib.h> before using NULL.
61212
61213 2007-10-15  Simon Josefsson  <simon@josefsson.org>
61214
61215         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
61216         Reported by Albert Chin <china@thewrittenword.com>.
61217
61218 2007-10-14  Bruno Haible  <bruno@clisp.org>
61219
61220         * modules/iconv_open-utf-tests: New file.
61221         * tests/test-iconv-utf.c: New file.
61222
61223         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
61224         * modules/iconv_open-utf: New file.
61225         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
61226         (iconv, iconv_close): New declarations.
61227         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
61228         be defined.
61229         (iconv_open): Add special handling of conversion between UTF-8 and
61230         UTF-{16,32}{BE,LE}.
61231         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
61232         * lib/iconv_close.c: New file.
61233         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
61234         gl_FUNC_ICONV_OPEN.
61235         (gl_FUNC_ICONV_OPEN): Use it.
61236         (gl_FUNC_ICONV_OPEN_UTF): New macro.
61237         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
61238         and REPLACE_ICONV_UTF.
61239         * modules/iconv_open (Depends-on): Add c-strcase.
61240         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
61241         ICONV_CONST.
61242         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
61243
61244 2007-10-13  Albert Chin  <china@thewrittenword.com>
61245             Bruno Haible  <bruno@clisp.org>
61246
61247         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
61248         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
61249
61250 2007-10-13  Bruno Haible  <bruno@clisp.org>
61251
61252         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
61253         defined, use the ISO C99 inline semantics.
61254         * lib/argp.h (ARGP_EI): Likewise.
61255
61256 2007-10-13  Bruno Haible  <bruno@clisp.org>
61257
61258         Handle 'inline' change in gcc 4.3.0.
61259         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
61260         argp_fmtstream_write, argp_fmtstream_set_lmargin,
61261         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
61262         argp_fmtstream_point): Disable 'extern' declaration if the function
61263         definition is going to be provided inline.
61264         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
61265         semantics, not the ISO C99 inline semantics.
61266         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
61267         'extern' declaration if the function definition is going to be provided
61268         inline.
61269         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
61270         the GNU C inline semantics, not the ISO C99 inline semantics. With
61271         GCC 4.2, avoid a warning.
61272
61273 2007-10-13  Bruno Haible  <bruno@clisp.org>
61274
61275         * lib/freading.h (freading): Enable the use of __freading for
61276         glibc >= 2.7.
61277         * lib/freading.c (freading): Likewise.
61278
61279 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61280
61281         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
61282         "warning: C99 inline functions are not supported; using GNU89".
61283
61284 2007-10-12  Bruno Haible  <bruno@clisp.org>
61285
61286         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
61287         of 2.
61288         * tests/test-ceilf2.c: New file.
61289         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
61290
61291         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
61292         * modules/ceilf-tests: Update.
61293
61294 2007-10-12  Bruno Haible  <bruno@clisp.org>
61295
61296         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
61297         of 2.
61298         * tests/test-floorf2.c: New file.
61299         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
61300
61301         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
61302         * modules/floorf-tests: Update.
61303
61304 2007-10-12  Bruno Haible  <bruno@clisp.org>
61305
61306         * tests/test-trunc2.c: New file.
61307         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
61308
61309         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
61310         * modules/trunc-tests: Update.
61311
61312 2007-10-12  Bruno Haible  <bruno@clisp.org>
61313
61314         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
61315         of 2.
61316         * tests/test-truncf2.c: New file.
61317         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
61318
61319         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
61320         * modules/truncf-tests: Update.
61321
61322 2007-10-11  Eric Blake  <ebb9@byu.net>
61323
61324         Don't claim strerror is broken on Interix.
61325         * doc/functions/strerror.texi (strerror): Known broken systems are
61326         now Solaris 8, and not Interix.
61327         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
61328         Interix on cross-compile.
61329         Reported by Martin Koeppe in
61330         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
61331
61332 2007-10-11  Bruno Haible  <bruno@clisp.org>
61333
61334         * modules/i-ring-tests: New file.
61335         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
61336         instead of assert.
61337
61338 2007-10-11  Bruno Haible  <bruno@clisp.org>
61339
61340         * modules/filenamecat-tests: New file.
61341         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
61342         * lib/filenamecat.c: Remove test code.
61343
61344 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61345
61346         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
61347
61348         * lib/strerror.c: Include <string.h> always, to test interface,
61349         and to remove the need for the dummy.
61350         Include intprops.h to compute width instead of doing it ourselves
61351         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
61352         (strerror): Define it to return NULL if there's no system strerror.
61353         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
61354         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
61355         ancient pre-strerror Unix systems well any more.  Saying "unknown
61356         system error" is enough.
61357         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
61358         simpler strerror.c implementation.
61359         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
61360         Simplify the tests to reflect the simpler strerror implementation.
61361         * modules/strerror (Depends-on): Add intprops.
61362
61363 2007-10-09  Eric Blake  <ebb9@byu.net>
61364
61365         Silence test-fpending.
61366         * modules/fpending-tests (Files): Add wrapper script.
61367         * tests/test-fpending.sh: New file.
61368
61369 2007-10-09  Bruno Haible  <bruno@clisp.org>
61370
61371         * MODULES.html.sh (func_module): Don't create a hyperlink for
61372         function names like 'printf_frexp'.
61373         (Misc): Add crc, memxor.
61374         (Characteristics of floating types): New section.
61375         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
61376         isnanf-nolibm, signbit, trunc, truncf, truncl.
61377         (Enhancements for ISO C 99 functions): New subsection Input/output.
61378         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
61379         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
61380         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
61381         (Compatibility checks for POSIX:2001 functions): Add clock-time.
61382         (Enhancements for POSIX:2001 functions): Add chdir-long.
61383         (File system functions): Add areadlink, chdir-safer, read-file.
61384         Remove cycle-check.
61385         (File system as inode set): New section.
61386         (Date and time): Add gethrxtime.
61387         (Multithreading): Add openmp.
61388         (Internationalization functions): Add localename.
61389         (Unicode string functions): Add unistr/u*-mbsnlen.
61390         (Support for maintaining and releasing projects): Add git-version-gen.
61391         (Lone files): Remove directories.
61392
61393 2007-10-08  Ben Pfaff  <blp@gnu.org>
61394
61395         * lib/xmalloca.h: Fix typo in comment.
61396
61397 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61398
61399         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
61400         when avoiding problems with integer overflow.  Use a portable test
61401         instead.
61402
61403 2007-10-08  Simon Josefsson  <simon@josefsson.org>
61404
61405         * modules/dummy (License): Change to LGPLv2+.
61406         * modules/float (License): Likewise
61407         * modules/realloc (License): Likewise
61408         * modules/stdlib (License): Likewise
61409
61410 2007-10-07  Bruno Haible  <bruno@clisp.org>
61411
61412         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
61413         * floor.c (TWO_MANT_DIG): Likewise.
61414         * ceil.c (TWO_MANT_DIG): Likewise.
61415         Reported by Ben Pfaff.
61416
61417 2007-10-07  Bruno Haible  <bruno@clisp.org>
61418
61419         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
61420         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
61421         * lib/frexp.c (FUNC): Likewise.
61422         * lib/printf-frexp.h (printf_frexp): Likewise.
61423         * lib/printf-frexpl.h (printf_frexpl): Likewise.
61424         * lib/printf-frexp.c (FUNC): Likewise.
61425         Suggested by Jim Meyering.
61426
61427 2007-10-07  Jim Meyering  <meyering@redhat.com>
61428
61429         Make xnanosleep's integer overflow test more robust.
61430         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
61431         so that gcc-4.3.0 doesn't optimize away this test for overflow.
61432
61433 2007-10-07  Bruno Haible  <bruno@clisp.org>
61434
61435         * NEWS: Mention the license change.
61436
61437         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
61438         abbreviations in the modules files.
61439
61440         Change copyright notice from GPLv2+ to GPLv3+.
61441         * README: Change copyright notice.
61442         * MODULES.html.sh: Likewise.
61443         * build-aux/bootstrap.conf: Likewise.
61444         * build-aux/config.libpath: Likewise.
61445         * build-aux/csharpcomp.sh.in: Likewise.
61446         * build-aux/csharpexec.sh.in: Likewise.
61447         * build-aux/install-reloc: Likewise.
61448         * build-aux/javacomp.sh.in: Likewise.
61449         * build-aux/javaexec.sh.in: Likewise.
61450         * build-aux/ldd.sh.in: Likewise.
61451         * build-aux/reloc-ldflags: Likewise.
61452         * build-aux/relocatable.sh.in: Likewise.
61453         * build-aux/x-to-1.in: Likewise.
61454         * check-module: Likewise.
61455         * config/srclistvars.sh: Likewise.
61456         * gnulib-tool: Likewise.
61457         * lib/acl-internal.h: Likewise.
61458         * lib/acl.c: Likewise.
61459         * lib/acl.h: Likewise.
61460         * lib/acl_entries.c: Likewise.
61461         * lib/areadlink-with-size.c: Likewise.
61462         * lib/areadlink.c: Likewise.
61463         * lib/areadlink.h: Likewise.
61464         * lib/argmatch.c: Likewise.
61465         * lib/argmatch.h: Likewise.
61466         * lib/argp-ba.c: Likewise.
61467         * lib/argp-eexst.c: Likewise.
61468         * lib/argp-fmtstream.c: Likewise.
61469         * lib/argp-fmtstream.h: Likewise.
61470         * lib/argp-fs-xinl.c: Likewise.
61471         * lib/argp-help.c: Likewise.
61472         * lib/argp-namefrob.h: Likewise.
61473         * lib/argp-parse.c: Likewise.
61474         * lib/argp-pin.c: Likewise.
61475         * lib/argp-pv.c: Likewise.
61476         * lib/argp-pvh.c: Likewise.
61477         * lib/argp-xinl.c: Likewise.
61478         * lib/argp.h: Likewise.
61479         * lib/at-func.c: Likewise.
61480         * lib/atanl.c: Likewise.
61481         * lib/backupfile.c: Likewise.
61482         * lib/backupfile.h: Likewise.
61483         * lib/basename.c: Likewise.
61484         * lib/binary-io.h: Likewise.
61485         * lib/byteswap.in.h: Likewise.
61486         * lib/c-stack.c: Likewise.
61487         * lib/c-stack.h: Likewise.
61488         * lib/c-strcasestr.c: Likewise.
61489         * lib/c-strcasestr.h: Likewise.
61490         * lib/c-strstr.c: Likewise.
61491         * lib/c-strstr.h: Likewise.
61492         * lib/c-strtod.c: Likewise.
61493         * lib/calloc.c: Likewise.
61494         * lib/canon-host.c: Likewise.
61495         * lib/canon-host.h: Likewise.
61496         * lib/canonicalize-lgpl.c: Likewise.
61497         * lib/canonicalize.c: Likewise.
61498         * lib/canonicalize.h: Likewise.
61499         * lib/ceil.c: Likewise.
61500         * lib/ceilf.c: Likewise.
61501         * lib/ceill.c: Likewise.
61502         * lib/chdir-long.c: Likewise.
61503         * lib/chdir-long.h: Likewise.
61504         * lib/chdir-safer.c: Likewise.
61505         * lib/chdir-safer.h: Likewise.
61506         * lib/chown.c: Likewise.
61507         * lib/classpath.c: Likewise.
61508         * lib/classpath.h: Likewise.
61509         * lib/clean-temp.c: Likewise.
61510         * lib/clean-temp.h: Likewise.
61511         * lib/cloexec.c: Likewise.
61512         * lib/close-stream.c: Likewise.
61513         * lib/closein.c: Likewise.
61514         * lib/closein.h: Likewise.
61515         * lib/closeout.c: Likewise.
61516         * lib/closeout.h: Likewise.
61517         * lib/concat-filename.c: Likewise.
61518         * lib/copy-file.c: Likewise.
61519         * lib/copy-file.h: Likewise.
61520         * lib/count-one-bits.h: Likewise.
61521         * lib/crc.c: Likewise.
61522         * lib/crc.h: Likewise.
61523         * lib/creat-safer.c: Likewise.
61524         * lib/csharpcomp.c: Likewise.
61525         * lib/csharpcomp.h: Likewise.
61526         * lib/csharpexec.c: Likewise.
61527         * lib/csharpexec.h: Likewise.
61528         * lib/cycle-check.c: Likewise.
61529         * lib/cycle-check.h: Likewise.
61530         * lib/diacrit.c: Likewise.
61531         * lib/diacrit.h: Likewise.
61532         * lib/diffseq.h: Likewise.
61533         * lib/dirchownmod.c: Likewise.
61534         * lib/dirent.in.h: Likewise.
61535         * lib/dirfd.c: Likewise.
61536         * lib/dirfd.h: Likewise.
61537         * lib/dirname.c: Likewise.
61538         * lib/dirname.h: Likewise.
61539         * lib/dummy.c: Likewise.
61540         * lib/dup-safer.c: Likewise.
61541         * lib/dup2.c: Likewise.
61542         * lib/eealloc.h: Likewise.
61543         * lib/error.c: Likewise.
61544         * lib/error.h: Likewise.
61545         * lib/euidaccess.c: Likewise.
61546         * lib/exclude.c: Likewise.
61547         * lib/exclude.h: Likewise.
61548         * lib/execute.c: Likewise.
61549         * lib/execute.h: Likewise.
61550         * lib/exitfail.c: Likewise.
61551         * lib/exitfail.h: Likewise.
61552         * lib/expl.c: Likewise.
61553         * lib/fatal-signal.c: Likewise.
61554         * lib/fatal-signal.h: Likewise.
61555         * lib/fbufmode.c: Likewise.
61556         * lib/fbufmode.h: Likewise.
61557         * lib/fchdir.c: Likewise.
61558         * lib/fchmodat.c: Likewise.
61559         * lib/fchownat.c: Likewise.
61560         * lib/fcntl--.h: Likewise.
61561         * lib/fcntl-safer.h: Likewise.
61562         * lib/fcntl.in.h: Likewise.
61563         * lib/fd-safer.c: Likewise.
61564         * lib/fflush.c: Likewise.
61565         * lib/file-has-acl.c: Likewise.
61566         * lib/file-set.c: Likewise.
61567         * lib/file-type.c: Likewise.
61568         * lib/file-type.h: Likewise.
61569         * lib/fileblocks.c: Likewise.
61570         * lib/filemode.c: Likewise.
61571         * lib/filemode.h: Likewise.
61572         * lib/filename.h: Likewise.
61573         * lib/filenamecat.c: Likewise.
61574         * lib/filenamecat.h: Likewise.
61575         * lib/findprog.c: Likewise.
61576         * lib/findprog.h: Likewise.
61577         * lib/float.in.h: Likewise.
61578         * lib/floor.c: Likewise.
61579         * lib/floorf.c: Likewise.
61580         * lib/floorl.c: Likewise.
61581         * lib/fopen-safer.c: Likewise.
61582         * lib/fopen.c: Likewise.
61583         * lib/fpending.c: Likewise.
61584         * lib/fpending.h: Likewise.
61585         * lib/fprintf.c: Likewise.
61586         * lib/fprintftime.h: Likewise.
61587         * lib/fpucw.h: Likewise.
61588         * lib/fpurge.c: Likewise.
61589         * lib/fpurge.h: Likewise.
61590         * lib/freadable.c: Likewise.
61591         * lib/freadable.h: Likewise.
61592         * lib/freadahead.c: Likewise.
61593         * lib/freadahead.h: Likewise.
61594         * lib/freading.c: Likewise.
61595         * lib/freading.h: Likewise.
61596         * lib/free.c: Likewise.
61597         * lib/freopen.c: Likewise.
61598         * lib/frexp.c: Likewise.
61599         * lib/frexpl.c: Likewise.
61600         * lib/fseek.c: Likewise.
61601         * lib/fseterr.c: Likewise.
61602         * lib/fseterr.h: Likewise.
61603         * lib/fstatat.c: Likewise.
61604         * lib/fstrcmp.c: Likewise.
61605         * lib/fstrcmp.h: Likewise.
61606         * lib/fsusage.c: Likewise.
61607         * lib/fsusage.h: Likewise.
61608         * lib/ftell.c: Likewise.
61609         * lib/ftello.c: Likewise.
61610         * lib/fts-cycle.c: Likewise.
61611         * lib/fts.c: Likewise.
61612         * lib/fts_.h: Likewise.
61613         * lib/full-read.c: Likewise.
61614         * lib/full-read.h: Likewise.
61615         * lib/full-write.c: Likewise.
61616         * lib/full-write.h: Likewise.
61617         * lib/fwritable.c: Likewise.
61618         * lib/fwritable.h: Likewise.
61619         * lib/fwriteerror.c: Likewise.
61620         * lib/fwriteerror.h: Likewise.
61621         * lib/fwriting.c: Likewise.
61622         * lib/fwriting.h: Likewise.
61623         * lib/gcd.c: Likewise.
61624         * lib/gcd.h: Likewise.
61625         * lib/getcwd.c: Likewise.
61626         * lib/getdate.h: Likewise.
61627         * lib/getdate.y: Likewise.
61628         * lib/getdomainname.c: Likewise.
61629         * lib/getdomainname.h: Likewise.
61630         * lib/getgroups.c: Likewise.
61631         * lib/gethostname.c: Likewise.
61632         * lib/gethrxtime.c: Likewise.
61633         * lib/gethrxtime.h: Likewise.
61634         * lib/getloadavg.c: Likewise.
61635         * lib/getndelim2.c: Likewise.
61636         * lib/getndelim2.h: Likewise.
61637         * lib/getnline.c: Likewise.
61638         * lib/getnline.h: Likewise.
61639         * lib/getopt.c: Likewise.
61640         * lib/getopt.in.h: Likewise.
61641         * lib/getopt1.c: Likewise.
61642         * lib/getopt_int.h: Likewise.
61643         * lib/getpagesize.h: Likewise.
61644         * lib/getsubopt.c: Likewise.
61645         * lib/gettime.c: Likewise.
61646         * lib/getugroups.c: Likewise.
61647         * lib/getugroups.h: Likewise.
61648         * lib/getusershell.c: Likewise.
61649         * lib/gl_anyavltree_list1.h: Likewise.
61650         * lib/gl_anyavltree_list2.h: Likewise.
61651         * lib/gl_anyhash_list1.h: Likewise.
61652         * lib/gl_anyhash_list2.h: Likewise.
61653         * lib/gl_anylinked_list1.h: Likewise.
61654         * lib/gl_anylinked_list2.h: Likewise.
61655         * lib/gl_anyrbtree_list1.h: Likewise.
61656         * lib/gl_anyrbtree_list2.h: Likewise.
61657         * lib/gl_anytree_list1.h: Likewise.
61658         * lib/gl_anytree_list2.h: Likewise.
61659         * lib/gl_anytree_oset.h: Likewise.
61660         * lib/gl_anytreehash_list1.h: Likewise.
61661         * lib/gl_anytreehash_list2.h: Likewise.
61662         * lib/gl_array_list.c: Likewise.
61663         * lib/gl_array_list.h: Likewise.
61664         * lib/gl_array_oset.c: Likewise.
61665         * lib/gl_array_oset.h: Likewise.
61666         * lib/gl_avltree_list.c: Likewise.
61667         * lib/gl_avltree_list.h: Likewise.
61668         * lib/gl_avltree_oset.c: Likewise.
61669         * lib/gl_avltree_oset.h: Likewise.
61670         * lib/gl_avltreehash_list.c: Likewise.
61671         * lib/gl_avltreehash_list.h: Likewise.
61672         * lib/gl_carray_list.c: Likewise.
61673         * lib/gl_carray_list.h: Likewise.
61674         * lib/gl_linked_list.c: Likewise.
61675         * lib/gl_linked_list.h: Likewise.
61676         * lib/gl_linkedhash_list.c: Likewise.
61677         * lib/gl_linkedhash_list.h: Likewise.
61678         * lib/gl_list.c: Likewise.
61679         * lib/gl_list.h: Likewise.
61680         * lib/gl_oset.c: Likewise.
61681         * lib/gl_oset.h: Likewise.
61682         * lib/gl_rbtree_list.c: Likewise.
61683         * lib/gl_rbtree_list.h: Likewise.
61684         * lib/gl_rbtree_oset.c: Likewise.
61685         * lib/gl_rbtree_oset.h: Likewise.
61686         * lib/gl_rbtreehash_list.c: Likewise.
61687         * lib/gl_rbtreehash_list.h: Likewise.
61688         * lib/gl_sublist.c: Likewise.
61689         * lib/gl_sublist.h: Likewise.
61690         * lib/group-member.c: Likewise.
61691         * lib/group-member.h: Likewise.
61692         * lib/hard-locale.c: Likewise.
61693         * lib/hard-locale.h: Likewise.
61694         * lib/hash-pjw.c: Likewise.
61695         * lib/hash-pjw.h: Likewise.
61696         * lib/hash-triple.c: Likewise.
61697         * lib/hash.c: Likewise.
61698         * lib/hash.h: Likewise.
61699         * lib/human.c: Likewise.
61700         * lib/human.h: Likewise.
61701         * lib/i-ring.c: Likewise.
61702         * lib/i-ring.h: Likewise.
61703         * lib/idcache.c: Likewise.
61704         * lib/imaxabs.c: Likewise.
61705         * lib/imaxdiv.c: Likewise.
61706         * lib/inet_pton.c: Likewise.
61707         * lib/inet_pton.h: Likewise.
61708         * lib/intprops.h: Likewise.
61709         * lib/inttostr.c: Likewise.
61710         * lib/inttostr.h: Likewise.
61711         * lib/inttypes.in.h: Likewise.
61712         * lib/isapipe.c: Likewise.
61713         * lib/isdir.c: Likewise.
61714         * lib/isnan.c: Likewise.
61715         * lib/isnan.h: Likewise.
61716         * lib/isnanf.c: Likewise.
61717         * lib/isnanf.h: Likewise.
61718         * lib/isnanl-nolibm.h: Likewise.
61719         * lib/isnanl.c: Likewise.
61720         * lib/isnanl.h: Likewise.
61721         * lib/javacomp.c: Likewise.
61722         * lib/javacomp.h: Likewise.
61723         * lib/javaexec.c: Likewise.
61724         * lib/javaexec.h: Likewise.
61725         * lib/javaversion.c: Likewise.
61726         * lib/javaversion.h: Likewise.
61727         * lib/javaversion.java: Likewise.
61728         * lib/lbrkprop.h: Likewise.
61729         * lib/lchmod.h: Likewise.
61730         * lib/lchown.c: Likewise.
61731         * lib/ldexpl.c: Likewise.
61732         * lib/linebreak.c: Likewise.
61733         * lib/linebreak.h: Likewise.
61734         * lib/linebuffer.c: Likewise.
61735         * lib/linebuffer.h: Likewise.
61736         * lib/locale.in.h: Likewise.
61737         * lib/logl.c: Likewise.
61738         * lib/long-options.c: Likewise.
61739         * lib/long-options.h: Likewise.
61740         * lib/lstat.c: Likewise.
61741         * lib/lstat.h: Likewise.
61742         * lib/math.in.h: Likewise.
61743         * lib/mbchar.c: Likewise.
61744         * lib/mbchar.h: Likewise.
61745         * lib/mbfile.h: Likewise.
61746         * lib/mbiter.h: Likewise.
61747         * lib/mbscasecmp.c: Likewise.
61748         * lib/mbscasestr.c: Likewise.
61749         * lib/mbschr.c: Likewise.
61750         * lib/mbscspn.c: Likewise.
61751         * lib/mbslen.c: Likewise.
61752         * lib/mbsncasecmp.c: Likewise.
61753         * lib/mbsnlen.c: Likewise.
61754         * lib/mbspbrk.c: Likewise.
61755         * lib/mbspcasecmp.c: Likewise.
61756         * lib/mbsrchr.c: Likewise.
61757         * lib/mbssep.c: Likewise.
61758         * lib/mbsspn.c: Likewise.
61759         * lib/mbsstr.c: Likewise.
61760         * lib/mbstok_r.c: Likewise.
61761         * lib/mbswidth.c: Likewise.
61762         * lib/mbswidth.h: Likewise.
61763         * lib/mbuiter.h: Likewise.
61764         * lib/memcasecmp.c: Likewise.
61765         * lib/memcasecmp.h: Likewise.
61766         * lib/memchr.c: Likewise.
61767         * lib/memcmp.c: Likewise.
61768         * lib/memcoll.c: Likewise.
61769         * lib/memcoll.h: Likewise.
61770         * lib/memcpy.c: Likewise.
61771         * lib/memrchr.c: Likewise.
61772         * lib/mkancesdirs.c: Likewise.
61773         * lib/mkdir-p.c: Likewise.
61774         * lib/mkdir-p.h: Likewise.
61775         * lib/mkdir.c: Likewise.
61776         * lib/mkdirat.c: Likewise.
61777         * lib/mkdtemp.c: Likewise.
61778         * lib/mkstemp-safer.c: Likewise.
61779         * lib/mkstemp.c: Likewise.
61780         * lib/modechange.c: Likewise.
61781         * lib/modechange.h: Likewise.
61782         * lib/mountlist.c: Likewise.
61783         * lib/mountlist.h: Likewise.
61784         * lib/mpsort.c: Likewise.
61785         * lib/nanosleep.c: Likewise.
61786         * lib/obstack.c: Likewise.
61787         * lib/obstack.h: Likewise.
61788         * lib/open-safer.c: Likewise.
61789         * lib/open.c: Likewise.
61790         * lib/openat-die.c: Likewise.
61791         * lib/openat-priv.h: Likewise.
61792         * lib/openat-proc.c: Likewise.
61793         * lib/openat.c: Likewise.
61794         * lib/openat.h: Likewise.
61795         * lib/pagealign_alloc.c: Likewise.
61796         * lib/pagealign_alloc.h: Likewise.
61797         * lib/physmem.c: Likewise.
61798         * lib/physmem.h: Likewise.
61799         * lib/pipe-safer.c: Likewise.
61800         * lib/pipe.c: Likewise.
61801         * lib/pipe.h: Likewise.
61802         * lib/posixtm.c: Likewise.
61803         * lib/posixtm.h: Likewise.
61804         * lib/posixver.c: Likewise.
61805         * lib/printf-frexp.c: Likewise.
61806         * lib/printf-frexp.h: Likewise.
61807         * lib/printf-frexpl.c: Likewise.
61808         * lib/printf-frexpl.h: Likewise.
61809         * lib/printf.c: Likewise.
61810         * lib/progname.c: Likewise.
61811         * lib/progname.h: Likewise.
61812         * lib/progreloc.c: Likewise.
61813         * lib/putenv.c: Likewise.
61814         * lib/quote.c: Likewise.
61815         * lib/quote.h: Likewise.
61816         * lib/quotearg.c: Likewise.
61817         * lib/quotearg.h: Likewise.
61818         * lib/raise.c: Likewise.
61819         * lib/readline.c: Likewise.
61820         * lib/readline.h: Likewise.
61821         * lib/readlink.c: Likewise.
61822         * lib/readtokens.c: Likewise.
61823         * lib/readtokens.h: Likewise.
61824         * lib/readtokens0.c: Likewise.
61825         * lib/readtokens0.h: Likewise.
61826         * lib/readutmp.c: Likewise.
61827         * lib/readutmp.h: Likewise.
61828         * lib/realloc.c: Likewise.
61829         * lib/relocwrapper.c: Likewise.
61830         * lib/rename-dest-slash.c: Likewise.
61831         * lib/rename.c: Likewise.
61832         * lib/rmdir.c: Likewise.
61833         * lib/rpmatch.c: Likewise.
61834         * lib/safe-read.c: Likewise.
61835         * lib/safe-read.h: Likewise.
61836         * lib/safe-write.c: Likewise.
61837         * lib/safe-write.h: Likewise.
61838         * lib/same-inode.h: Likewise.
61839         * lib/same.c: Likewise.
61840         * lib/same.h: Likewise.
61841         * lib/save-cwd.c: Likewise.
61842         * lib/save-cwd.h: Likewise.
61843         * lib/savedir.c: Likewise.
61844         * lib/savedir.h: Likewise.
61845         * lib/savewd.c: Likewise.
61846         * lib/savewd.h: Likewise.
61847         * lib/search.in.h: Likewise.
61848         * lib/setenv.c: Likewise.
61849         * lib/setenv.h: Likewise.
61850         * lib/settime.c: Likewise.
61851         * lib/sh-quote.c: Likewise.
61852         * lib/sh-quote.h: Likewise.
61853         * lib/sig2str.c: Likewise.
61854         * lib/sig2str.h: Likewise.
61855         * lib/signal.in.h: Likewise.
61856         * lib/signbitd.c: Likewise.
61857         * lib/signbitf.c: Likewise.
61858         * lib/signbitl.c: Likewise.
61859         * lib/sigprocmask.c: Likewise.
61860         * lib/sincosl.c: Likewise.
61861         * lib/sleep.c: Likewise.
61862         * lib/sprintf.c: Likewise.
61863         * lib/sqrtl.c: Likewise.
61864         * lib/stat-time.h: Likewise.
61865         * lib/stdio--.h: Likewise.
61866         * lib/stdio-safer.h: Likewise.
61867         * lib/stdlib--.h: Likewise.
61868         * lib/stdlib-safer.h: Likewise.
61869         * lib/stdlib.in.h: Likewise.
61870         * lib/stpcpy.c: Likewise.
61871         * lib/stpncpy.c: Likewise.
61872         * lib/strchrnul.c: Likewise.
61873         * lib/strcspn.c: Likewise.
61874         * lib/strerror.c: Likewise.
61875         * lib/strftime.c: Likewise.
61876         * lib/strftime.h: Likewise.
61877         * lib/striconveh.c: Likewise.
61878         * lib/striconveh.h: Likewise.
61879         * lib/striconveha.c: Likewise.
61880         * lib/striconveha.h: Likewise.
61881         * lib/stripslash.c: Likewise.
61882         * lib/strnlen1.c: Likewise.
61883         * lib/strnlen1.h: Likewise.
61884         * lib/strtod.c: Likewise.
61885         * lib/strtoimax.c: Likewise.
61886         * lib/strtok_r.c: Likewise.
61887         * lib/strtol.c: Likewise.
61888         * lib/strtoll.c: Likewise.
61889         * lib/strtoul.c: Likewise.
61890         * lib/strtoull.c: Likewise.
61891         * lib/sysexits.in.h: Likewise.
61892         * lib/tempname.c: Likewise.
61893         * lib/tempname.h: Likewise.
61894         * lib/timespec.h: Likewise.
61895         * lib/tls.c: Likewise.
61896         * lib/tls.h: Likewise.
61897         * lib/tmpdir.c: Likewise.
61898         * lib/tmpdir.h: Likewise.
61899         * lib/tmpfile-safer.c: Likewise.
61900         * lib/tmpfile.c: Likewise.
61901         * lib/trigl.c: Likewise.
61902         * lib/trigl.h: Likewise.
61903         * lib/trim.c: Likewise.
61904         * lib/trim.h: Likewise.
61905         * lib/trunc.c: Likewise.
61906         * lib/truncf.c: Likewise.
61907         * lib/truncl.c: Likewise.
61908         * lib/tsearch.c: Likewise.
61909         * lib/unicodeio.c: Likewise.
61910         * lib/unicodeio.h: Likewise.
61911         * lib/unistd--.h: Likewise.
61912         * lib/unistd-safer.h: Likewise.
61913         * lib/unistdio/ulc-fprintf.c: Likewise.
61914         * lib/unistdio/ulc-vfprintf.c: Likewise.
61915         * lib/unlinkdir.c: Likewise.
61916         * lib/unlinkdir.h: Likewise.
61917         * lib/unlocked-io.h: Likewise.
61918         * lib/unsetenv.c: Likewise.
61919         * lib/userspec.c: Likewise.
61920         * lib/utime.c: Likewise.
61921         * lib/utimecmp.c: Likewise.
61922         * lib/utimecmp.h: Likewise.
61923         * lib/utimens.c: Likewise.
61924         * lib/verify.h: Likewise.
61925         * lib/verror.c: Likewise.
61926         * lib/verror.h: Likewise.
61927         * lib/version-etc-fsf.c: Likewise.
61928         * lib/version-etc.c: Likewise.
61929         * lib/version-etc.h: Likewise.
61930         * lib/vfprintf.c: Likewise.
61931         * lib/vprintf.c: Likewise.
61932         * lib/vsprintf.c: Likewise.
61933         * lib/w32spawn.h: Likewise.
61934         * lib/wait-process.c: Likewise.
61935         * lib/wait-process.h: Likewise.
61936         * lib/wcwidth.c: Likewise.
61937         * lib/write-any-file.c: Likewise.
61938         * lib/xalloc-die.c: Likewise.
61939         * lib/xalloc.h: Likewise.
61940         * lib/xasprintf.c: Likewise.
61941         * lib/xgetcwd.c: Likewise.
61942         * lib/xgetcwd.h: Likewise.
61943         * lib/xgetdomainname.c: Likewise.
61944         * lib/xgetdomainname.h: Likewise.
61945         * lib/xgethostname.c: Likewise.
61946         * lib/xmalloc.c: Likewise.
61947         * lib/xmalloca.c: Likewise.
61948         * lib/xmalloca.h: Likewise.
61949         * lib/xmemcoll.c: Likewise.
61950         * lib/xnanosleep.c: Likewise.
61951         * lib/xreadlink.c: Likewise.
61952         * lib/xreadlink.h: Likewise.
61953         * lib/xsetenv.c: Likewise.
61954         * lib/xsetenv.h: Likewise.
61955         * lib/xstriconv.c: Likewise.
61956         * lib/xstriconv.h: Likewise.
61957         * lib/xstrndup.c: Likewise.
61958         * lib/xstrndup.h: Likewise.
61959         * lib/xstrtod.c: Likewise.
61960         * lib/xstrtod.h: Likewise.
61961         * lib/xstrtol-error.c: Likewise.
61962         * lib/xstrtol.c: Likewise.
61963         * lib/xstrtol.h: Likewise.
61964         * lib/xtime.h: Likewise.
61965         * lib/xvasprintf.c: Likewise.
61966         * lib/xvasprintf.h: Likewise.
61967         * lib/yesno.c: Likewise.
61968         * lib/yesno.h: Likewise.
61969         * posix-modules: Likewise.
61970         * tests/test-alloca-opt.c: Likewise.
61971         * tests/test-arcfour.c: Likewise.
61972         * tests/test-arctwo.c: Likewise.
61973         * tests/test-argmatch.c: Likewise.
61974         * tests/test-argp-2.sh: Likewise.
61975         * tests/test-argp.c: Likewise.
61976         * tests/test-arpa_inet.c: Likewise.
61977         * tests/test-array_list.c: Likewise.
61978         * tests/test-array_oset.c: Likewise.
61979         * tests/test-atexit.c: Likewise.
61980         * tests/test-avltree_list.c: Likewise.
61981         * tests/test-avltree_oset.c: Likewise.
61982         * tests/test-avltreehash_list.c: Likewise.
61983         * tests/test-base64.c: Likewise.
61984         * tests/test-binary-io.c: Likewise.
61985         * tests/test-byteswap.c: Likewise.
61986         * tests/test-c-ctype.c: Likewise.
61987         * tests/test-c-strcasecmp.c: Likewise.
61988         * tests/test-c-strcasestr.c: Likewise.
61989         * tests/test-c-strncasecmp.c: Likewise.
61990         * tests/test-c-strstr.c: Likewise.
61991         * tests/test-canonicalize-lgpl.c: Likewise.
61992         * tests/test-canonicalize.c: Likewise.
61993         * tests/test-carray_list.c: Likewise.
61994         * tests/test-ceilf.c: Likewise.
61995         * tests/test-ceill.c: Likewise.
61996         * tests/test-count-one-bits.c: Likewise.
61997         * tests/test-crc.c: Likewise.
61998         * tests/test-dirname.c: Likewise.
61999         * tests/test-fbufmode.c: Likewise.
62000         * tests/test-fcntl.c: Likewise.
62001         * tests/test-fflush.c: Likewise.
62002         * tests/test-floorf.c: Likewise.
62003         * tests/test-floorl.c: Likewise.
62004         * tests/test-fopen.c: Likewise.
62005         * tests/test-fprintf-posix.c: Likewise.
62006         * tests/test-fprintf-posix.h: Likewise.
62007         * tests/test-fpurge.c: Likewise.
62008         * tests/test-freadable.c: Likewise.
62009         * tests/test-freadahead.c: Likewise.
62010         * tests/test-freading.c: Likewise.
62011         * tests/test-freopen.c: Likewise.
62012         * tests/test-frexp.c: Likewise.
62013         * tests/test-frexpl.c: Likewise.
62014         * tests/test-fseek.c: Likewise.
62015         * tests/test-fseeko.c: Likewise.
62016         * tests/test-fseterr.c: Likewise.
62017         * tests/test-fstrcmp.c: Likewise.
62018         * tests/test-ftell.c: Likewise.
62019         * tests/test-ftello.c: Likewise.
62020         * tests/test-fwritable.c: Likewise.
62021         * tests/test-fwriting.c: Likewise.
62022         * tests/test-getaddrinfo.c: Likewise.
62023         * tests/test-getpass.c: Likewise.
62024         * tests/test-gettimeofday.c: Likewise.
62025         * tests/test-hmac-md5.c: Likewise.
62026         * tests/test-hmac-sha1.c: Likewise.
62027         * tests/test-iconv.c: Likewise.
62028         * tests/test-iconvme.c: Likewise.
62029         * tests/test-inttypes.c: Likewise.
62030         * tests/test-isnan.c: Likewise.
62031         * tests/test-isnanf.c: Likewise.
62032         * tests/test-isnanl-nolibm.c: Likewise.
62033         * tests/test-isnanl.c: Likewise.
62034         * tests/test-isnanl.h: Likewise.
62035         * tests/test-ldexpl.c: Likewise.
62036         * tests/test-linked_list.c: Likewise.
62037         * tests/test-linkedhash_list.c: Likewise.
62038         * tests/test-locale.c: Likewise.
62039         * tests/test-localename.c: Likewise.
62040         * tests/test-lock.c: Likewise.
62041         * tests/test-lseek.c: Likewise.
62042         * tests/test-malloca.c: Likewise.
62043         * tests/test-math.c: Likewise.
62044         * tests/test-mbscasecmp.c: Likewise.
62045         * tests/test-mbscasestr1.c: Likewise.
62046         * tests/test-mbscasestr2.c: Likewise.
62047         * tests/test-mbscasestr3.c: Likewise.
62048         * tests/test-mbscasestr4.c: Likewise.
62049         * tests/test-mbschr.c: Likewise.
62050         * tests/test-mbscspn.c: Likewise.
62051         * tests/test-mbsncasecmp.c: Likewise.
62052         * tests/test-mbspbrk.c: Likewise.
62053         * tests/test-mbspcasecmp.c: Likewise.
62054         * tests/test-mbsrchr.c: Likewise.
62055         * tests/test-mbsspn.c: Likewise.
62056         * tests/test-mbsstr1.c: Likewise.
62057         * tests/test-mbsstr2.c: Likewise.
62058         * tests/test-mbsstr3.c: Likewise.
62059         * tests/test-md5.c: Likewise.
62060         * tests/test-memmem.c: Likewise.
62061         * tests/test-netinet_in.c: Likewise.
62062         * tests/test-open.c: Likewise.
62063         * tests/test-printf-frexp.c: Likewise.
62064         * tests/test-printf-frexpl.c: Likewise.
62065         * tests/test-printf-posix.c: Likewise.
62066         * tests/test-printf-posix.h: Likewise.
62067         * tests/test-rbtree_list.c: Likewise.
62068         * tests/test-rbtree_oset.c: Likewise.
62069         * tests/test-rbtreehash_list.c: Likewise.
62070         * tests/test-read-file.c: Likewise.
62071         * tests/test-rijndael.c: Likewise.
62072         * tests/test-search.c: Likewise.
62073         * tests/test-signbit.c: Likewise.
62074         * tests/test-sleep.c: Likewise.
62075         * tests/test-snprintf-posix.c: Likewise.
62076         * tests/test-snprintf-posix.h: Likewise.
62077         * tests/test-snprintf.c: Likewise.
62078         * tests/test-sprintf-posix.c: Likewise.
62079         * tests/test-sprintf-posix.h: Likewise.
62080         * tests/test-stat-time.c: Likewise.
62081         * tests/test-stdbool.c: Likewise.
62082         * tests/test-stdint.c: Likewise.
62083         * tests/test-stdio.c: Likewise.
62084         * tests/test-stdlib.c: Likewise.
62085         * tests/test-stpncpy.c: Likewise.
62086         * tests/test-strcasestr.c: Likewise.
62087         * tests/test-striconv.c: Likewise.
62088         * tests/test-striconveh.c: Likewise.
62089         * tests/test-striconveha.c: Likewise.
62090         * tests/test-string.c: Likewise.
62091         * tests/test-sys_select.c: Likewise.
62092         * tests/test-sys_socket.c: Likewise.
62093         * tests/test-sys_stat.c: Likewise.
62094         * tests/test-sys_time.c: Likewise.
62095         * tests/test-sysexits.c: Likewise.
62096         * tests/test-time.c: Likewise.
62097         * tests/test-tls.c: Likewise.
62098         * tests/test-trunc.c: Likewise.
62099         * tests/test-truncf.c: Likewise.
62100         * tests/test-truncl.c: Likewise.
62101         * tests/test-unistd.c: Likewise.
62102         * tests/test-vasnprintf-posix.c: Likewise.
62103         * tests/test-vasnprintf-posix2.c: Likewise.
62104         * tests/test-vasnprintf.c: Likewise.
62105         * tests/test-vasprintf-posix.c: Likewise.
62106         * tests/test-vasprintf.c: Likewise.
62107         * tests/test-verify.c: Likewise.
62108         * tests/test-vfprintf-posix.c: Likewise.
62109         * tests/test-vprintf-posix.c: Likewise.
62110         * tests/test-vsnprintf-posix.c: Likewise.
62111         * tests/test-vsnprintf.c: Likewise.
62112         * tests/test-vsprintf-posix.c: Likewise.
62113         * tests/test-wchar.c: Likewise.
62114         * tests/test-wctype.c: Likewise.
62115         * tests/test-wcwidth.c: Likewise.
62116         * tests/test-xstrtol.c: Likewise.
62117         * tests/test-xvasprintf.c: Likewise.
62118         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
62119         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
62120         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
62121         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
62122         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
62123         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
62124         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
62125         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
62126         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
62127         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
62128         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
62129         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
62130         * tests/uniname/test-uninames.c: Likewise.
62131         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
62132         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
62133         * tests/unistdio/test-u16-printf1.h: Likewise.
62134         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
62135         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
62136         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
62137         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
62138         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
62139         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
62140         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
62141         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
62142         * tests/unistdio/test-u32-printf1.h: Likewise.
62143         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
62144         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
62145         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
62146         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
62147         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
62148         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
62149         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
62150         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
62151         * tests/unistdio/test-u8-printf1.h: Likewise.
62152         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
62153         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
62154         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
62155         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
62156         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
62157         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
62158         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
62159         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
62160         * tests/unistdio/test-ulc-printf1.h: Likewise.
62161         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
62162         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
62163         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
62164         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
62165         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
62166         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
62167         * tests/uniwidth/test-u16-strwidth.c: Likewise.
62168         * tests/uniwidth/test-u16-width.c: Likewise.
62169         * tests/uniwidth/test-u32-strwidth.c: Likewise.
62170         * tests/uniwidth/test-u32-width.c: Likewise.
62171         * tests/uniwidth/test-u8-strwidth.c: Likewise.
62172         * tests/uniwidth/test-u8-width.c: Likewise.
62173         * tests/uniwidth/test-uc_width.c: Likewise.
62174         * config/srclist-update: Likewise.
62175         (fixlicense): Update to GPLv3+.
62176
62177         Change copyright notice from LGPLv2.1+ to LGPLv3+.
62178         * tests/test-tsearch.c: Change copyright notice.
62179
62180         Change copyright notice from LGPLv2.0+ to LGPLv3+.
62181         * lib/c-strcaseeq.h: Change copyright notice.
62182         * lib/streq.h: Likewise.
62183         * lib/uniconv.h: Likewise.
62184         * lib/uniconv/u-conv-from-enc.h: Likewise.
62185         * lib/uniconv/u-conv-to-enc.h: Likewise.
62186         * lib/uniconv/u-strconv-from-enc.h: Likewise.
62187         * lib/uniconv/u-strconv-to-enc.h: Likewise.
62188         * lib/uniconv/u16-conv-from-enc.c: Likewise.
62189         * lib/uniconv/u16-conv-to-enc.c: Likewise.
62190         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
62191         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
62192         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
62193         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
62194         * lib/uniconv/u32-conv-from-enc.c: Likewise.
62195         * lib/uniconv/u32-conv-to-enc.c: Likewise.
62196         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
62197         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
62198         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
62199         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
62200         * lib/uniconv/u8-conv-from-enc.c: Likewise.
62201         * lib/uniconv/u8-conv-to-enc.c: Likewise.
62202         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
62203         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
62204         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
62205         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
62206         * lib/uniname.h: Likewise.
62207         * lib/uniname/uniname.c: Likewise.
62208         * lib/unistdio.h: Likewise.
62209         * lib/unistdio/u-asnprintf.h: Likewise.
62210         * lib/unistdio/u-asprintf.h: Likewise.
62211         * lib/unistdio/u-printf-args.c: Likewise.
62212         * lib/unistdio/u-printf-args.h: Likewise.
62213         * lib/unistdio/u-printf-parse.h: Likewise.
62214         * lib/unistdio/u-snprintf.h: Likewise.
62215         * lib/unistdio/u-sprintf.h: Likewise.
62216         * lib/unistdio/u-vasprintf.h: Likewise.
62217         * lib/unistdio/u-vsnprintf.h: Likewise.
62218         * lib/unistdio/u-vsprintf.h: Likewise.
62219         * lib/unistdio/u16-asnprintf.c: Likewise.
62220         * lib/unistdio/u16-asprintf.c: Likewise.
62221         * lib/unistdio/u16-printf-parse.c: Likewise.
62222         * lib/unistdio/u16-snprintf.c: Likewise.
62223         * lib/unistdio/u16-sprintf.c: Likewise.
62224         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
62225         * lib/unistdio/u16-u16-asprintf.c: Likewise.
62226         * lib/unistdio/u16-u16-snprintf.c: Likewise.
62227         * lib/unistdio/u16-u16-sprintf.c: Likewise.
62228         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
62229         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
62230         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
62231         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
62232         * lib/unistdio/u16-vasnprintf.c: Likewise.
62233         * lib/unistdio/u16-vasprintf.c: Likewise.
62234         * lib/unistdio/u16-vsnprintf.c: Likewise.
62235         * lib/unistdio/u16-vsprintf.c: Likewise.
62236         * lib/unistdio/u32-asnprintf.c: Likewise.
62237         * lib/unistdio/u32-asprintf.c: Likewise.
62238         * lib/unistdio/u32-printf-parse.c: Likewise.
62239         * lib/unistdio/u32-snprintf.c: Likewise.
62240         * lib/unistdio/u32-sprintf.c: Likewise.
62241         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
62242         * lib/unistdio/u32-u32-asprintf.c: Likewise.
62243         * lib/unistdio/u32-u32-snprintf.c: Likewise.
62244         * lib/unistdio/u32-u32-sprintf.c: Likewise.
62245         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
62246         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
62247         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
62248         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
62249         * lib/unistdio/u32-vasnprintf.c: Likewise.
62250         * lib/unistdio/u32-vasprintf.c: Likewise.
62251         * lib/unistdio/u32-vsnprintf.c: Likewise.
62252         * lib/unistdio/u32-vsprintf.c: Likewise.
62253         * lib/unistdio/u8-asnprintf.c: Likewise.
62254         * lib/unistdio/u8-asprintf.c: Likewise.
62255         * lib/unistdio/u8-printf-parse.c: Likewise.
62256         * lib/unistdio/u8-snprintf.c: Likewise.
62257         * lib/unistdio/u8-sprintf.c: Likewise.
62258         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
62259         * lib/unistdio/u8-u8-asprintf.c: Likewise.
62260         * lib/unistdio/u8-u8-snprintf.c: Likewise.
62261         * lib/unistdio/u8-u8-sprintf.c: Likewise.
62262         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
62263         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
62264         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
62265         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
62266         * lib/unistdio/u8-vasnprintf.c: Likewise.
62267         * lib/unistdio/u8-vasprintf.c: Likewise.
62268         * lib/unistdio/u8-vsnprintf.c: Likewise.
62269         * lib/unistdio/u8-vsprintf.c: Likewise.
62270         * lib/unistdio/ulc-asnprintf.c: Likewise.
62271         * lib/unistdio/ulc-asprintf.c: Likewise.
62272         * lib/unistdio/ulc-printf-parse.c: Likewise.
62273         * lib/unistdio/ulc-snprintf.c: Likewise.
62274         * lib/unistdio/ulc-sprintf.c: Likewise.
62275         * lib/unistdio/ulc-vasnprintf.c: Likewise.
62276         * lib/unistdio/ulc-vasprintf.c: Likewise.
62277         * lib/unistdio/ulc-vsnprintf.c: Likewise.
62278         * lib/unistdio/ulc-vsprintf.c: Likewise.
62279         * lib/unistr.h: Likewise.
62280         * lib/unistr/u-cpy-alloc.h: Likewise.
62281         * lib/unistr/u-cpy.h: Likewise.
62282         * lib/unistr/u-endswith.h: Likewise.
62283         * lib/unistr/u-move.h: Likewise.
62284         * lib/unistr/u-set.h: Likewise.
62285         * lib/unistr/u-startswith.h: Likewise.
62286         * lib/unistr/u-stpcpy.h: Likewise.
62287         * lib/unistr/u-stpncpy.h: Likewise.
62288         * lib/unistr/u-strcat.h: Likewise.
62289         * lib/unistr/u-strcpy.h: Likewise.
62290         * lib/unistr/u-strcspn.h: Likewise.
62291         * lib/unistr/u-strdup.h: Likewise.
62292         * lib/unistr/u-strlen.h: Likewise.
62293         * lib/unistr/u-strncat.h: Likewise.
62294         * lib/unistr/u-strncpy.h: Likewise.
62295         * lib/unistr/u-strnlen.h: Likewise.
62296         * lib/unistr/u-strpbrk.h: Likewise.
62297         * lib/unistr/u-strspn.h: Likewise.
62298         * lib/unistr/u-strstr.h: Likewise.
62299         * lib/unistr/u-strtok.h: Likewise.
62300         * lib/unistr/u16-check.c: Likewise.
62301         * lib/unistr/u16-chr.c: Likewise.
62302         * lib/unistr/u16-cmp.c: Likewise.
62303         * lib/unistr/u16-cpy-alloc.c: Likewise.
62304         * lib/unistr/u16-cpy.c: Likewise.
62305         * lib/unistr/u16-endswith.c: Likewise.
62306         * lib/unistr/u16-mblen.c: Likewise.
62307         * lib/unistr/u16-mbsnlen.c: Likewise.
62308         * lib/unistr/u16-mbtouc-aux.c: Likewise.
62309         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
62310         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
62311         * lib/unistr/u16-mbtouc.c: Likewise.
62312         * lib/unistr/u16-mbtoucr.c: Likewise.
62313         * lib/unistr/u16-move.c: Likewise.
62314         * lib/unistr/u16-next.c: Likewise.
62315         * lib/unistr/u16-prev.c: Likewise.
62316         * lib/unistr/u16-set.c: Likewise.
62317         * lib/unistr/u16-startswith.c: Likewise.
62318         * lib/unistr/u16-stpcpy.c: Likewise.
62319         * lib/unistr/u16-stpncpy.c: Likewise.
62320         * lib/unistr/u16-strcat.c: Likewise.
62321         * lib/unistr/u16-strchr.c: Likewise.
62322         * lib/unistr/u16-strcmp.c: Likewise.
62323         * lib/unistr/u16-strcpy.c: Likewise.
62324         * lib/unistr/u16-strcspn.c: Likewise.
62325         * lib/unistr/u16-strdup.c: Likewise.
62326         * lib/unistr/u16-strlen.c: Likewise.
62327         * lib/unistr/u16-strmblen.c: Likewise.
62328         * lib/unistr/u16-strmbtouc.c: Likewise.
62329         * lib/unistr/u16-strncat.c: Likewise.
62330         * lib/unistr/u16-strncmp.c: Likewise.
62331         * lib/unistr/u16-strncpy.c: Likewise.
62332         * lib/unistr/u16-strnlen.c: Likewise.
62333         * lib/unistr/u16-strpbrk.c: Likewise.
62334         * lib/unistr/u16-strrchr.c: Likewise.
62335         * lib/unistr/u16-strspn.c: Likewise.
62336         * lib/unistr/u16-strstr.c: Likewise.
62337         * lib/unistr/u16-strtok.c: Likewise.
62338         * lib/unistr/u16-to-u32.c: Likewise.
62339         * lib/unistr/u16-to-u8.c: Likewise.
62340         * lib/unistr/u16-uctomb-aux.c: Likewise.
62341         * lib/unistr/u16-uctomb.c: Likewise.
62342         * lib/unistr/u32-check.c: Likewise.
62343         * lib/unistr/u32-chr.c: Likewise.
62344         * lib/unistr/u32-cmp.c: Likewise.
62345         * lib/unistr/u32-cpy-alloc.c: Likewise.
62346         * lib/unistr/u32-cpy.c: Likewise.
62347         * lib/unistr/u32-endswith.c: Likewise.
62348         * lib/unistr/u32-mblen.c: Likewise.
62349         * lib/unistr/u32-mbsnlen.c: Likewise.
62350         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
62351         * lib/unistr/u32-mbtouc.c: Likewise.
62352         * lib/unistr/u32-mbtoucr.c: Likewise.
62353         * lib/unistr/u32-move.c: Likewise.
62354         * lib/unistr/u32-next.c: Likewise.
62355         * lib/unistr/u32-prev.c: Likewise.
62356         * lib/unistr/u32-set.c: Likewise.
62357         * lib/unistr/u32-startswith.c: Likewise.
62358         * lib/unistr/u32-stpcpy.c: Likewise.
62359         * lib/unistr/u32-stpncpy.c: Likewise.
62360         * lib/unistr/u32-strcat.c: Likewise.
62361         * lib/unistr/u32-strchr.c: Likewise.
62362         * lib/unistr/u32-strcmp.c: Likewise.
62363         * lib/unistr/u32-strcpy.c: Likewise.
62364         * lib/unistr/u32-strcspn.c: Likewise.
62365         * lib/unistr/u32-strdup.c: Likewise.
62366         * lib/unistr/u32-strlen.c: Likewise.
62367         * lib/unistr/u32-strmblen.c: Likewise.
62368         * lib/unistr/u32-strmbtouc.c: Likewise.
62369         * lib/unistr/u32-strncat.c: Likewise.
62370         * lib/unistr/u32-strncmp.c: Likewise.
62371         * lib/unistr/u32-strncpy.c: Likewise.
62372         * lib/unistr/u32-strnlen.c: Likewise.
62373         * lib/unistr/u32-strpbrk.c: Likewise.
62374         * lib/unistr/u32-strrchr.c: Likewise.
62375         * lib/unistr/u32-strspn.c: Likewise.
62376         * lib/unistr/u32-strstr.c: Likewise.
62377         * lib/unistr/u32-strtok.c: Likewise.
62378         * lib/unistr/u32-to-u16.c: Likewise.
62379         * lib/unistr/u32-to-u8.c: Likewise.
62380         * lib/unistr/u32-uctomb.c: Likewise.
62381         * lib/unistr/u8-check.c: Likewise.
62382         * lib/unistr/u8-chr.c: Likewise.
62383         * lib/unistr/u8-cmp.c: Likewise.
62384         * lib/unistr/u8-cpy-alloc.c: Likewise.
62385         * lib/unistr/u8-cpy.c: Likewise.
62386         * lib/unistr/u8-endswith.c: Likewise.
62387         * lib/unistr/u8-mblen.c: Likewise.
62388         * lib/unistr/u8-mbsnlen.c: Likewise.
62389         * lib/unistr/u8-mbtouc-aux.c: Likewise.
62390         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
62391         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
62392         * lib/unistr/u8-mbtouc.c: Likewise.
62393         * lib/unistr/u8-mbtoucr.c: Likewise.
62394         * lib/unistr/u8-move.c: Likewise.
62395         * lib/unistr/u8-next.c: Likewise.
62396         * lib/unistr/u8-prev.c: Likewise.
62397         * lib/unistr/u8-set.c: Likewise.
62398         * lib/unistr/u8-startswith.c: Likewise.
62399         * lib/unistr/u8-stpcpy.c: Likewise.
62400         * lib/unistr/u8-stpncpy.c: Likewise.
62401         * lib/unistr/u8-strcat.c: Likewise.
62402         * lib/unistr/u8-strchr.c: Likewise.
62403         * lib/unistr/u8-strcmp.c: Likewise.
62404         * lib/unistr/u8-strcpy.c: Likewise.
62405         * lib/unistr/u8-strcspn.c: Likewise.
62406         * lib/unistr/u8-strdup.c: Likewise.
62407         * lib/unistr/u8-strlen.c: Likewise.
62408         * lib/unistr/u8-strmblen.c: Likewise.
62409         * lib/unistr/u8-strmbtouc.c: Likewise.
62410         * lib/unistr/u8-strncat.c: Likewise.
62411         * lib/unistr/u8-strncmp.c: Likewise.
62412         * lib/unistr/u8-strncpy.c: Likewise.
62413         * lib/unistr/u8-strnlen.c: Likewise.
62414         * lib/unistr/u8-strpbrk.c: Likewise.
62415         * lib/unistr/u8-strrchr.c: Likewise.
62416         * lib/unistr/u8-strspn.c: Likewise.
62417         * lib/unistr/u8-strstr.c: Likewise.
62418         * lib/unistr/u8-strtok.c: Likewise.
62419         * lib/unistr/u8-to-u16.c: Likewise.
62420         * lib/unistr/u8-to-u32.c: Likewise.
62421         * lib/unistr/u8-uctomb-aux.c: Likewise.
62422         * lib/unistr/u8-uctomb.c: Likewise.
62423         * lib/unitypes.h: Likewise.
62424         * lib/uniwidth.h: Likewise.
62425         * lib/uniwidth/cjk.h: Likewise.
62426         * lib/uniwidth/u16-strwidth.c: Likewise.
62427         * lib/uniwidth/u16-width.c: Likewise.
62428         * lib/uniwidth/u32-strwidth.c: Likewise.
62429         * lib/uniwidth/u32-width.c: Likewise.
62430         * lib/uniwidth/u8-strwidth.c: Likewise.
62431         * lib/uniwidth/u8-width.c: Likewise.
62432         * lib/uniwidth/width.c: Likewise.
62433
62434 2007-10-07  Bruno Haible  <bruno@clisp.org>
62435
62436         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
62437         The file is still under LGPL (see modules/inttypes).
62438
62439 2007-10-06  Bruno Haible  <bruno@clisp.org>
62440
62441         * modules/trunc (Dependencies): Add 'extensions'.
62442         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
62443         Reported by Ben Pfaff <blp@gnu.org>.
62444
62445 2007-10-06  Bruno Haible  <bruno@clisp.org>
62446
62447         * modules/freopen-tests: New file.
62448         * tests/test-freopen.c: New file.
62449
62450         * modules/fopen-tests: New file.
62451         * tests/test-fopen.c: New file.
62452
62453         * modules/fopen: New file.
62454         * lib/fopen.c: New file.
62455         * m4/fopen.m4: New file.
62456         * modules/freopen: New file.
62457         * lib/freopen.c: New file.
62458         * m4/freopen.m4: New file.
62459         * lib/stdio.in.h (fopen, freopen): New declarations.
62460         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
62461         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62462         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
62463         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62464         * doc/functions/fopen.texi: Mention the 'fopen' module.
62465         * doc/functions/freopen.texi: Mention the 'freopen' module.
62466
62467 2007-10-06  Bruno Haible  <bruno@clisp.org>
62468
62469         * modules/open-tests: New file.
62470         * tests/test-open.c: New file.
62471
62472         * modules/open: New file.
62473         * lib/open.c: New file.
62474         * m4/open.m4: New file.
62475         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
62476         lib/open.c does.
62477         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
62478         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
62479         macros.
62480         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
62481         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
62482         REPLACE_OPEN.
62483         * doc/functions/open.texi: Mention the 'open' module.
62484
62485 2007-10-04  Bruno Haible  <bruno@clisp.org>
62486
62487         * modules/ceill-tests: New file.
62488         * tests/test-ceill.c: New file.
62489
62490         * modules/ceill: New file.
62491         * lib/ceill.c: Replace entire file.
62492         * m4/ceill.m4: New file.
62493         * lib/math.in.h (ceill): Replace declaration.
62494         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
62495         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
62496         * doc/functions/ceill.texi: Mention the 'ceill' module.
62497         * modules/mathl (Files): Remove lib/ceill.c.
62498         (Depends-on): Add ceill.
62499
62500 2007-10-04  Bruno Haible  <bruno@clisp.org>
62501
62502         * modules/ceilf-tests: New file.
62503         * tests/test-ceilf.c: New file.
62504
62505         * modules/ceilf: New file.
62506         * lib/ceil.c: New file.
62507         * lib/ceilf.c: New file.
62508         * m4/ceilf.m4: New file.
62509         * lib/math.in.h (ceilf): New declaration.
62510         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
62511         HAVE_DECL_CEILF.
62512         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
62513         HAVE_DECL_CEILF.
62514         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
62515
62516 2007-10-04  Bruno Haible  <bruno@clisp.org>
62517
62518         * modules/floorl-tests: New file.
62519         * tests/test-floorl.c: New file.
62520
62521         * modules/floorl: New file.
62522         * lib/floorl.c: Replace entire file.
62523         * m4/floorl.m4: New file.
62524         * lib/math.in.h (floorl): Replace declaration.
62525         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
62526         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
62527         * doc/functions/floorl.texi: Mention the 'floorl' module.
62528         * modules/mathl (Files): Remove lib/floorl.c.
62529         (Depends-on): Add floorl.
62530
62531 2007-10-04  Bruno Haible  <bruno@clisp.org>
62532
62533         * modules/floorf-tests: New file.
62534         * tests/test-floorf.c: New file.
62535
62536         * modules/floorf: New file.
62537         * lib/floor.c: New file.
62538         * lib/floorf.c: New file.
62539         * m4/floorf.m4: New file.
62540         * lib/math.in.h (floorf): New declaration.
62541         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
62542         HAVE_DECL_FLOORF.
62543         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
62544         HAVE_DECL_FLOORF.
62545         * doc/functions/floorf.texi: Mention the 'floorf' module.
62546
62547 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
62548             Bruno Haible  <bruno@clisp.org>
62549
62550         Advertise for the Git server instead of the CVS server.
62551         * doc/gnulib-intro.texi (Steady Development): Mention the Git
62552         repository instead of the CVS one.
62553         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
62554         about all VCS systems generically.
62555         * doc/gnulib.texi (Introduction): Capitalize `Git'.
62556
62557 2007-10-04  Bruno Haible  <bruno@clisp.org>
62558
62559         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
62560         means.
62561         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
62562
62563 2007-10-04  Bruno Haible  <bruno@clisp.org>
62564
62565         * modules/truncl-tests: New file.
62566         * tests/test-truncl.c: New file.
62567
62568         * modules/truncl: New file.
62569         * lib/truncl.c: New file.
62570         * m4/truncl.m4: New file.
62571         * lib/math.in.h (truncl): New declaration.
62572         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
62573         HAVE_DECL_TRUNCL.
62574         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
62575         HAVE_DECL_TRUNCL.
62576         * doc/functions/truncl.texi: Mention the 'truncl' module.
62577
62578 2007-10-04  Bruno Haible  <bruno@clisp.org>
62579
62580         * modules/truncf-tests: New file.
62581         * tests/test-truncf.c: New file.
62582
62583         * modules/truncf: New file.
62584         * lib/trunc.c: Make paramerizable through USE_* macros.
62585         * lib/truncf.c: New file.
62586         * m4/truncf.m4: New file.
62587         * lib/math.in.h (truncf): New declaration.
62588         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
62589         HAVE_DECL_TRUNCF.
62590         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
62591         HAVE_DECL_TRUNCF.
62592         * doc/functions/truncf.texi: Mention the 'truncf' module.
62593
62594 2007-10-03  Bruno Haible  <bruno@clisp.org>
62595
62596         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
62597         augmentation also for tests modules.
62598         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
62599         * modules/atexit-tests (Makefile.am): Likewise.
62600         * modules/binary-io-tests (Makefile.am): Likewise.
62601         * modules/c-strcase-tests (Makefile.am): Likewise.
62602         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
62603         * modules/canonicalize-tests (Makefile.am): Likewise.
62604         * modules/closein-tests (Makefile.am): Likewise.
62605         * modules/fprintf-posix-tests (Makefile.am): Likewise.
62606         * modules/freadahead-tests (Makefile.am): Likewise.
62607         * modules/fseek-tests (Makefile.am): Likewise.
62608         * modules/fseeko-tests (Makefile.am): Likewise.
62609         * modules/ftell-tests (Makefile.am): Likewise.
62610         * modules/ftello-tests (Makefile.am): Likewise.
62611         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
62612         * modules/isnanl-tests (Makefile.am): Likewise.
62613         * modules/lseek-tests (Makefile.am): Likewise.
62614         * modules/mbscasecmp-tests (Makefile.am): Likewise.
62615         * modules/mbscasestr-tests (Makefile.am): Likewise.
62616         * modules/mbschr-tests (Makefile.am): Likewise.
62617         * modules/mbscspn-tests (Makefile.am): Likewise.
62618         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
62619         * modules/mbspbrk-tests (Makefile.am): Likewise.
62620         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
62621         * modules/mbsrchr-tests (Makefile.am): Likewise.
62622         * modules/mbsspn-tests (Makefile.am): Likewise.
62623         * modules/mbsstr-tests (Makefile.am): Likewise.
62624         * modules/printf-posix-tests (Makefile.am): Likewise.
62625         * modules/snprintf-posix-tests (Makefile.am): Likewise.
62626         * modules/sprintf-posix-tests (Makefile.am): Likewise.
62627         * modules/tsearch-tests (Makefile.am): Likewise.
62628         * modules/uniname/uniname-tests (Makefile.am): Likewise.
62629         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
62630         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
62631         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
62632         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
62633         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
62634         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
62635         * modules/vprintf-posix-tests (Makefile.am): Likewise.
62636         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
62637         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
62638         * modules/xstrtoimax-tests (Makefile.am): Likewise.
62639         * modules/xstrtol-tests (Makefile.am): Likewise.
62640         * modules/xstrtoumax-tests (Makefile.am): Likewise.
62641         * modules/yesno-tests (Makefile.am): Likewise.
62642
62643 2007-10-03  Bruno Haible  <bruno@clisp.org>
62644
62645         * modules/trunc-tests: New file.
62646         * tests/test-trunc.c: New file.
62647
62648         * modules/trunc: New file.
62649         * lib/trunc.c: New file.
62650         * m4/trunc.m4: New file.
62651         * lib/math.in.h (trunc): New declaration.
62652         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
62653         HAVE_DECL_TRUNC.
62654         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
62655         HAVE_DECL_TRUNC.
62656         * doc/functions/trunc.texi: Mention the 'trunc' module.
62657
62658 2007-10-03  Bruno Haible  <bruno@clisp.org>
62659
62660         * tests/test-fpending.c: New file, mostly copied
62661         from coreutils/lib/t-fpending.c.
62662         * modules/fpending-tests: New file.
62663
62664 2007-10-03  Bruno Haible  <bruno@clisp.org>
62665
62666         Port the stdio extensions to QNX (untested).
62667         * lib/fseterr.c (fseterr): Add support for QNX.
62668         * lib/fbufmode.c (fbufmode): Likewise.
62669         * lib/freadable.c (freadable): Likewise.
62670         * lib/fwritable.c (fwritable): Likewise.
62671         * lib/freading.c (freading): Likewise.
62672         * lib/fwriting.c (fwriting): Likewise.
62673         * lib/freadahead.c (freadahed): Likewise.
62674         * lib/fpurge.c (fpurge): Likewise.
62675         * lib/fseeko.c (rpl_fseeko): Likewise.
62676
62677 2007-10-03  Bruno Haible  <bruno@clisp.org>
62678             Jim Meyering  <jim@meyering.net>
62679             Eric Blake  <ebb9@byu.net>
62680
62681         * doc/relocatable.texi: Use @command instead of @program.
62682
62683 2007-10-02  Jim Meyering  <jim@meyering.net>
62684
62685         Perform one more "_.h" -> ".in.h" substitution.
62686         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
62687         instead of unistd_.h here, too.
62688
62689 2007-10-01  Bruno Haible  <bruno@clisp.org>
62690
62691         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
62692         Needed for the alloca-opt module.
62693
62694 2007-09-30  Bruno Haible  <bruno@clisp.org>
62695
62696         * lib/alloca.in.h: Renamed from lib/alloca_.h.
62697         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
62698         alloca_.h.
62699         * lib/argz.in.h: Renamed from lib/argz_.h.
62700         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
62701         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
62702         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
62703         byteswap_.h.
62704         * lib/dirent.in.h: Renamed from lib/dirent_.h.
62705         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
62706         dirent_.h.
62707         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
62708         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
62709         fcntl_.h.
62710         * lib/float.in.h: Renamed from lib/float_.h.
62711         * modules/float (Files, Makefile.am): Use float.in.h instead of
62712         float_.h.
62713         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
62714         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
62715         fnmatch_.h.
62716         * lib/getopt.in.h: Renamed from lib/getopt_.h.
62717         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
62718         getopt_.h.
62719         * lib/glob.in.h: Renamed from lib/glob_.h.
62720         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
62721         * lib/iconv.in.h: Renamed from lib/iconv_.h.
62722         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
62723         iconv_.h.
62724         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
62725         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
62726         inttypes_.h.
62727         * lib/locale.in.h: Renamed from lib/locale_.h.
62728         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
62729         locale_.h.
62730         * lib/math.in.h: Renamed from lib/math_.h.
62731         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
62732         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
62733         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
62734         of netinet_in_.h. Add dependency.
62735         * lib/poll.in.h: Renamed from lib/poll_.h.
62736         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
62737         * lib/search.in.h: Renamed from lib/search_.h.
62738         * modules/search (Files, Makefile.am): Use search.in.h instead of
62739         search_.h.
62740         * lib/signal.in.h: Renamed from lib/signal_.h.
62741         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
62742         _signal.h.
62743         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
62744         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
62745         stdbool_.h.
62746         * lib/stdint.in.h: Renamed from lib/stdint_.h.
62747         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
62748         stdint_.h.
62749         * lib/stdio.in.h: Renamed from lib/stdio_.h.
62750         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
62751         stdio_.h.
62752         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
62753         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
62754         stdlib_.h.
62755         * lib/string.in.h: Renamed from lib/string_.h.
62756         * modules/string (Files, Makefile.am): Use string.in.h instead of
62757         string_.h.
62758         * doc/gnulib-tool.texi (Initial import): Update.
62759         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
62760         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
62761         of sys_select_.h. Add dependency.
62762         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
62763         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
62764         of sys_socket_.h.
62765         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
62766         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
62767         sys_stat_.h.
62768         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
62769         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
62770         sys_time_.h.
62771         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
62772         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
62773         sysexits_.h.
62774         * lib/time.in.h: Renamed from lib/time_.h.
62775         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
62776         * lib/unistd.in.h: Renamed from lib/unistd_.h.
62777         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
62778         unistd_.h.
62779         * lib/wchar.in.h: Renamed from lib/wchar_.h.
62780         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
62781         wchar_.h.
62782         * lib/wctype.in.h: Renamed from lib/wctype_.h.
62783         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
62784         wctype_.h.
62785         * build-aux/bootstrap (slurp): Update.
62786         * lib/.cppi-disable: Update.
62787
62788 2007-09-30  Bruno Haible  <bruno@clisp.org>
62789
62790         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
62791         Needed on BeOS.
62792
62793 2007-09-30  Bruno Haible  <bruno@clisp.org>
62794
62795         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
62796
62797 2007-09-29  Bruno Haible  <bruno@clisp.org>
62798
62799         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
62800
62801 2007-09-29  Bruno Haible  <bruno@clisp.org>
62802
62803         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
62804         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
62805         * build-aux/install-reloc: Compile also areadlink.c.
62806         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
62807
62808 2007-09-29  Bruno Haible  <bruno@clisp.org>
62809
62810         * gnulib-tool (func_emit_initmacro_done): Indentation.
62811
62812 2007-09-29  Bruno Haible  <bruno@clisp.org>
62813
62814         * README: Add CVS checkout update instructions.
62815         Info from Bob Proulx <bob@proulx.com>.
62816
62817 2007-09-28  Eric Blake  <ebb9@byu.net>
62818
62819         Provide move-if-change.
62820         * build-aux/move-if-change: New file, based on best practice
62821         rather than any canonical upstream location.
62822
62823 2007-09-28  Jim Meyering  <jim@meyering.net>
62824
62825         Fix canonicalize loop-detection corner case.
62826         Do not attempt to stat the symlink values stored via seen_triple.
62827         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
62828         on linux-2.6.18, (but not 2.6.22).
62829         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
62830         triple_compare.  The former compares dev,ino,filename, while the latter
62831         would actually stat dirname(filename) when dev and ino were equal.
62832         * lib/hash-triple.c: Install <string.h>.
62833         (STREQ): Define.
62834         (triple_compare_ino_str): New function.
62835         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
62836
62837 2007-09-28  Eric Blake  <ebb9@byu.net>
62838
62839         Enforce that AC_REPLACE_FUNCS files exist.
62840         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
62841         override check for typos.
62842
62843         Fix test-closein on Solaris 10.
62844         * tests/test-closein.c (main): Don't assume stdin can be inherited
62845         closed on all systems.
62846         * tests/test-closein.sh: Likewise.
62847         Reported by Piotr Tarnowski.
62848
62849 2007-09-28  Jim Meyering  <jim@meyering.net>
62850
62851         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
62852
62853 2007-09-27  Jim Meyering  <jim@meyering.net>
62854
62855         canonicalize: Avoid a false-positive cycle failure.
62856         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
62857         Sort.  Remove cycle-check.
62858         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
62859         not cycle-check.h.
62860         (seen_triple): New function.
62861         (canonicalize_filename_mode): Use it instead of cycle-check.
62862         * tests/test-canonicalize.c: Add a test for this bug.
62863         * tests/test-canonicalize.sh: Set up and run the test.
62864
62865         New module, file-set, from coreutils.
62866         * modules/file-set: Define it.
62867         * lib/file-set.c, lib/file-set.h: Implement.
62868
62869         New module, hash-triple, from coreutils.
62870         * modules/hash-triple: Define it.
62871         * lib/hash-triple.c, lib/hash-triple.h: Implement.
62872
62873 2007-09-25  Eric Blake  <ebb9@byu.net>
62874
62875         Fix strerror on Interix.
62876         * lib/string_.h (strerror): Declare replacement.
62877         * doc/functions/strerror.texi (strerror): Document the Interix
62878         shortcoming.
62879         * modules/string (Makefile.am): Support new hooks.
62880         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
62881         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
62882         gl_FUNC_STRERROR_SEPARATE.
62883         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
62884         * lib/strerror.c (rpl_strerror): Provide replacement.
62885         * modules/strerror (Depends-on): Add string.
62886         (configure.ac): Detect use of module.
62887         * tests/test-strerror.c: New file.
62888         * modules/strerror-tests: New test module.
62889         * modules/argp (Depends-on): Add strerror.
62890         * modules/error (Depends-on): Likewise.
62891         Reported by Martin Koeppe.
62892
62893 2007-09-24  Bruno Haible  <bruno@clisp.org>
62894
62895         * README: Update git instructions.
62896
62897 2007-09-24  Eric Blake  <ebb9@byu.net>
62898
62899         Revert fpending breakage from 2007-09-08.
62900         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
62901         __fpending.c.
62902
62903 2007-09-24  Jim Meyering  <jim@meyering.net>
62904
62905         filenamecat.c: Add a test.
62906         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
62907         showing how the function works when DIR is the empty string.
62908
62909 2007-09-21  Simon Josefsson  <simon@josefsson.org>
62910
62911         * tests/test-canonicalize.sh: Turn on executable bit.
62912
62913 2007-09-19  Eric Blake  <ebb9@byu.net>
62914
62915         * README: Update CVS instructions.
62916
62917 2007-09-18  Bruno Haible  <bruno@clisp.org>
62918
62919         * modules/areadlink: New file.
62920         * lib/areadlink.h (areadlink): New declaration.
62921         * lib/areadlink.c: New file, based on lib/xreadlink.c.
62922
62923 2007-09-17  Jim Meyering  <jim@meyering.net>
62924
62925         * lib/savewd.c (ESTALE) [!defined]: Define.
62926         Reported to be required on Interix by Martin Koeppe.
62927
62928 2007-09-17  Bruno Haible  <bruno@clisp.org>
62929
62930         * gnulib-tool (func_version): Use $version.
62931
62932 2007-09-16  Bruno Haible  <bruno@clisp.org>
62933
62934         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
62935         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
62936         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
62937         Reported by Greg Schafer <gschafer@zip.com.au>.
62938
62939 2007-09-15  Bruno Haible  <bruno@clisp.org>
62940
62941         * gnulib-tool (sed): Try a little harder to make bash understand the
62942         alias.
62943         Reported by Bruce Korb <bruce.korb@gmail.com>.
62944
62945 2007-09-13  Eric Blake  <ebb9@byu.net>
62946
62947         * ChangeLog: Remove conflict markers.
62948
62949 2007-09-13  Simon Josefsson  <simon@josefsson.org>
62950
62951         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
62952         Reported by Bruno Haible <bruno@clisp.org>.
62953
62954 2007-09-12  Bruno Haible  <bruno@clisp.org>
62955
62956         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
62957         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
62958         is not defined.
62959
62960 2007-09-12  Eric Blake  <ebb9@byu.net>
62961
62962         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
62963         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
62964         Autoconf definition.
62965         * modules/euidaccess (Depends-on): Add extensions, for
62966         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
62967         * modules/fnmatch (Depends-on): Likewise.
62968         * modules/getaddrinfo (Depends-on): Likewise.
62969         * modules/getdelim (Depends-on): Likewise.
62970         * modules/getline (Depends-on): Likewise.
62971         * modules/getsubopt (Depends-on): Likewise.
62972         * modules/gettext (Depends-on): Likewise.
62973         * modules/group-member (Depends-on): Likewise.
62974         * modules/mbchar (Depends-on): Likewise.
62975         * modules/memmem (Depends-on): Likewise.
62976         * modules/mempcpy (Depends-on): Likewise.
62977         * modules/memrchr (Depends-on): Likewise.
62978         * modules/pagealign_alloc (Depends-on): Likewise.
62979         * modules/readutmp (Depends-on): Likewise.
62980         * modules/stpcpy (Depends-on): Likewise.
62981         * modules/stpncpy (Depends-on): Likewise.
62982         * modules/strchrnul (Depends-on): Likewise.
62983         * modules/strndup (Depends-on): Likewise.
62984         * modules/strsep (Depends-on): Likewise.
62985         * modules/strverscmp (Depends-on): Likewise.
62986         * modules/vasprintf (Depends-on): Likewise.
62987         * modules/wcwidth (Depends-on): Likewise.
62988         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
62989         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
62990         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
62991         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
62992         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62993         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62994         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
62995         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62996         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
62997         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
62998         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62999         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
63000         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
63001         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
63002         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
63003         * m4/readutmp.m4 (gl_READUTMP): Likewise.
63004         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63005         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
63006         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63007         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
63008         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
63009         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
63010         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
63011         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
63012         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
63013         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63014         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
63015         so that lock.m4 can be used in gettext without extensions module.
63016
63017 2007-09-11  Bruno Haible  <bruno@clisp.org>
63018
63019         * m4/isc-posix.m4: Remove file.
63020         Suggested by Eric Blake.
63021
63022 2007-09-11  Eric Blake  <ebb9@byu.net>
63023
63024         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
63025
63026 2007-09-10  Bruno Haible  <bruno@clisp.org>
63027
63028         * posix-modules: Fix typo in error message.
63029         Reported by Matt <mkraai@beckman.com>.
63030
63031 2007-09-09  Bruno Haible  <bruno@clisp.org>
63032
63033         * doc/functions/getdelim.texi: Update list of platforms lacking the
63034         function.
63035         * doc/functions/getline.texi: Likewise.
63036
63037 2007-09-09  Jim Meyering  <jim@meyering.net>
63038
63039         * lib/hash.c (hash_initialize): Detect calloc failure.
63040         Reported by Bruno Haible.
63041
63042 2007-09-09  Bruno Haible  <bruno@clisp.org>
63043
63044         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
63045         malloc or realloc fails.
63046
63047 2007-09-09  Bruno Haible  <bruno@clisp.org>
63048
63049         * modules/getcwd (Depends-on): Add malloc-posix.
63050         * modules/glob (Depends-on): Likewise.
63051         * modules/putenv (Depends-on): Likewise.
63052         * modules/strdup (Depends-on): Likewise.
63053         * modules/getdelim (Depends-on): Add realloc-posix.
63054         * modules/read-file (Depends-on): Likewise.
63055
63056 2007-09-09  Bruno Haible  <bruno@clisp.org>
63057
63058         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
63059         (gl_FUNC_MALLOC_POSIX): Require it.
63060         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
63061         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
63062         * modules/realloc (Files): Add m4/malloc.m4.
63063         * modules/calloc (Files): Likewise.
63064
63065 2007-09-09  Bruno Haible  <bruno@clisp.org>
63066
63067         * modules/malloc-posix: New file.
63068         * modules/malloc (Depends-on): Add malloc-posix.
63069         * lib/malloc.c: Include errno.h.
63070         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
63071         and a POSIX-compatible malloc into a single function. Set ENOMEM
63072         when returning NULL.
63073         * m4/malloc.m4: New file.
63074         * doc/functions/malloc.texi: Mention the malloc-posix module.
63075         * lib/stdlib_.h (malloc): New declaration.
63076         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63077         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
63078         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
63079         and HAVE_MALLOC_POSIX.
63080
63081 2007-09-09  Bruno Haible  <bruno@clisp.org>
63082
63083         * modules/realloc-posix: New file.
63084         * modules/realloc (Depends-on): Add realloc-posix.
63085         * lib/realloc.c: Include errno.h.
63086         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
63087         and a POSIX-compatible realloc into a single function. Set ENOMEM
63088         when returning NULL.
63089         * m4/realloc.m4: New file.
63090         * doc/functions/realloc.texi: Mention the realloc-posix module.
63091         * lib/stdlib_.h (realloc): New declaration.
63092         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63093         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
63094         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
63095         and HAVE_REALLOC_POSIX.
63096
63097 2007-09-09  Bruno Haible  <bruno@clisp.org>
63098
63099         * modules/calloc-posix: New file.
63100         * modules/calloc (Depends-on): Add calloc-posix.
63101         * lib/calloc.c: Include errno.h.
63102         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
63103         and a POSIX-compatible calloc into a single function. Set ENOMEM
63104         when returning NULL.
63105         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
63106         * doc/functions/calloc.texi: Mention the calloc-posix module.
63107         * lib/stdlib_.h (calloc): New declaration.
63108         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63109         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
63110         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
63111         and HAVE_CALLOC_POSIX.
63112
63113 2007-09-09  Bruno Haible  <bruno@clisp.org>
63114
63115         Allow for modules to show an arbitrary notice.
63116         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
63117         * gnulib-tool: New option --extract-notice.
63118         (func_usage): Document it.
63119         (sed_extract_prog): Update.
63120         (func_get_notice): New function.
63121         (func_modules_notice): New function.
63122         (func_import, func_create_testdir): Invoke it.
63123         Suggested by Jim Meyering.
63124
63125 2007-09-09  Bruno Haible  <bruno@clisp.org>
63126
63127         * gnulib-tool: New options --verbose, --quiet.
63128         (func_usage): Document them.
63129         (verbose): New variable.
63130         (func_execute_command): New function.
63131         (func_import): Don't show the module list and the file list if
63132         $verbose < 0.
63133         (func_create_testdir): Likewise. Use func_execute_command.
63134         (func_create_megatestdir): Use func_execute_command.
63135
63136 2007-09-08  Bruno Haible  <bruno@clisp.org>
63137
63138         * gnulib-tool (func_import): Prefer rsync over wget when available,
63139         for fetching the PO files.
63140
63141 2007-09-08  Bruno Haible  <bruno@clisp.org>
63142
63143         * posix-modules: New file. Portions copied from gnulib-tool.
63144         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
63145
63146 2007-09-08  Jim Meyering  <jim@meyering.net>
63147
63148         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
63149         * lib/fpending.h: Rename from __fpending.h.
63150         * lib/fpending.c: Rename from __fpending.c.
63151         Include "fpending.h", not "__fpending.h".
63152         * lib/__fpending.h, lib/__fpending.c: Remove files.
63153         * modules/fpending (Files): Reflect new file names.
63154         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
63155
63156 2007-09-08  Bruno Haible  <bruno@clisp.org>
63157
63158         * m4/inttypes-h.m4: Remove stub file.
63159
63160 2007-09-07  Simon Josefsson  <simon@josefsson.org>
63161
63162         * doc/headers/stdint.texi: Discuss #include_next issue.
63163
63164 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63165
63166         * build-aux/bootstrap: Remove obsolete comment about wget --help.
63167
63168 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63169
63170         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
63171         in variable name.
63172
63173 2007-09-03  Jim Meyering  <jim@meyering.net>
63174
63175         New module: git-version-gen.
63176         * modules/git-version-gen: New file.
63177
63178         Import changes from coreutils for bootstrap script.
63179
63180         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
63181
63182         bootstrap: uses rsync to download the .po files
63183         * build-aux/bootstrap (po_download_command_format): New global.
63184         (download_po_files): Use rsync.
63185         (update_po_files): Don't remove .po files after download,
63186         so future rsync runs can take advantage of the copies.
63187
63188         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
63189
63190         Solve the unnecessary-.po-file-regeneration problem once and for all.
63191         * build-aux/bootstrap (download_po_files): New function, renamed from
63192         get_translations.  Now, downloads, but doesn't update LINGUAS.
63193         (update_po_files): New function.
63194
63195         bootstrap: Ignore more.
63196         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
63197         uniwidth to e.g., lib/.gitignore.
63198         (slurp): Handle the sys_stat_.h -> sys mapping, too.
63199
63200         * build-aux/bootstrap: New setting: vc_ignore.
63201         (insert_sorted_if_absent): Create $file if absent.
63202         Adapt to new, possibly empty, list: $vc_ignore.
63203
63204         bootstrap: generate more ignorable names
63205         * build-aux/bootstrap (slurp): When generating ignorable names,
63206         also map .sin to .sed, .gperf to .c, and .y to .c.
63207
63208 2007-09-03  Jim Meyering  <jim@meyering.net>
63209
63210         * build-aux/git-version-gen: New file, from coreutils.  For details, see
63211         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
63212
63213 2007-09-02  Bruno Haible  <bruno@clisp.org>
63214
63215         Fix mis-recognition of 'mcs' on QNX 6.
63216         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
63217         output contains the string "Mono".
63218         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
63219         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
63220
63221 2007-09-01  Bruno Haible  <bruno@clisp.org>
63222
63223         Fix collision between uniwidth/* and linebreak modules.
63224         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
63225         u32_width): Remove declarations.
63226         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
63227         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
63228         streq3, streq2, streq1, streq0): Remove functions.
63229         (STREQ): Remove macro.
63230         (is_cjk_encoding): Remove function.
63231         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
63232         (uc_width, u8_width, u16_width, u32_width): Remove functions.
63233         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
63234         * NEWS: Document the change.
63235
63236 2007-09-01  Bruno Haible  <bruno@clisp.org>
63237
63238         * lib/streq.h: Add double-inclusion guard.
63239
63240 2007-09-01  Karl Berry  <karl@gnu.org>
63241
63242         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
63243
63244 2007-08-28  Jim Meyering  <jim@meyering.net>
63245
63246         Rename mreadlink_with_size to areadlink_with_size.
63247         * NEWS: Document the change.
63248         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
63249         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
63250         * lib/mreadlink.h: Rename this to...
63251         * lib/areadlink.h: ...this.
63252         * modules/mreadlink-with-size: Rename this to...
63253         * modules/areadlink-with-size: ...this.
63254         * lib/canonicalize.c: Reflect the renaming.
63255         * modules/canonicalize: Likewise.
63256
63257 2007-08-26  Bruno Haible  <bruno@clisp.org>
63258
63259         * gnulib-tool (func_import): When deciding which files to remove,
63260         consider also dangling symbolic links.
63261         Reported by Eric Blake.
63262
63263 2007-08-26  Bruno Haible  <bruno@clisp.org>
63264
63265         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
63266
63267 2007-08-23  Simon Josefsson  <simon@josefsson.org>
63268
63269         * lib/readline.c: Don't include getline.h, the prototype is now
63270         found in stdio.h.
63271
63272 2007-08-23  Jim Meyering  <jim@meyering.net>
63273
63274         Getdelim touchup.
63275         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
63276         around the funlockfile call, since funlockfile never sets errno.
63277         Don't set errno upon failed realloc.
63278
63279 2007-08-22  Eric Blake  <ebb9@byu.net>
63280
63281         Getline touchups.
63282         * lib/getdelim.c (getdelim): Revert regression that required *n to
63283         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
63284         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
63285         getdelim, rather than whether implementation is missing.
63286         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
63287         * lib/stdio_.h (getline): Also declare if replacement is
63288         required.
63289         * doc/functions/getdelim.texi: New file.
63290         * doc/functions/getline.texi: Likewise.
63291         * doc/gnulib.texi (Function Substitutes): Add new files.
63292         Reported by Bruno Haible.
63293
63294 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
63295
63296         * users.txt: Add Guile.
63297
63298 2007-08-22  Eric Blake  <ebb9@byu.net>
63299
63300         * tests/test-getdelim.c (main): Use remove, not unlink.
63301         * tests/test-getline.c (main): Likewise.
63302
63303         Move getline and getdelim into stdio.h, per POSIX 200x.
63304         * modules/getline (Files): Remove getline.h.
63305         (Depends-on): Add stdio.
63306         (configure.ac): Add module indicator.
63307         * modules/getdelim (Files): Remove getdelim.h.
63308         (Depends-on): Add stdio.
63309         (configure.ac): Add module indicator.
63310         * modules/stdio (Makefile.am): Work with new indicators.
63311         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
63312         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
63313         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63314         * lib/getdelim.h: Delete.
63315         * lib/getline.h: Delete.
63316         * lib/stdio_.h (getdelim, getline): Declare.
63317         * modules/getdelim-tests: New module.
63318         * modules/getline-tests: Likewise.
63319         * tests/test-getdelim.c: New file.
63320         * tests/test-getline.c: Likewise.
63321         * NEWS: Document the change.
63322         * lib/getline.c: Update choice of header.
63323         * lib/csharpcomp.c: Likewise.
63324         * lib/getpass.c: Likewise.
63325         * lib/javacomp.c: Likewise.
63326         * lib/javaversion.c: Likewise.
63327         * lib/yesno.c: Likewise.
63328         * lib/getdelim.c: Likewise.
63329         (getdelim): Set errno on failure, and avoid memory leak.
63330
63331 2007-08-19  Bruno Haible  <bruno@clisp.org>
63332
63333         * modules/closein (Depends-on): Add freadahead.
63334         * lib/closein.c: Include freadahead.h.
63335         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
63336         is zero.
63337
63338 2007-08-19  Bruno Haible  <bruno@clisp.org>
63339
63340         * modules/freadahead-tests: New file.
63341         * tests/test-freadahead.sh: New file.
63342         * tests/test-freadahead.c: New file.
63343
63344         * modules/freadahead: New file.
63345         * lib/freadahead.h: New file.
63346         * lib/freadahead.c: New file.
63347         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
63348         fbufmode, fpurge, freadable, fwritable.
63349
63350 2007-08-19  Eric Blake  <ebb9@byu.net>
63351
63352         Test yesno in combination with closein.
63353         * lib/yesno.c (yesno): Document use of stdin.
63354         * modules/yesno-tests (Files): New module.
63355         * tests/test-yesno.c (main): New file.
63356         * tests/test-yesno.sh: Likewise.
63357
63358 2007-08-19  Bruno Haible  <bruno@clisp.org>
63359
63360         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
63361         * lib/fseeko.c (rpl_fseeko): Likewise.
63362         * lib/fseterr.c (fseterr): Likewise.
63363
63364 2007-08-19  Bruno Haible  <bruno@clisp.org>
63365
63366         * tests/test-lseek.c (main): Disable a test for BeOS.
63367         * doc/functions/lseek.texi: Document the BeOS bug.
63368
63369 2007-08-19  Bruno Haible  <bruno@clisp.org>
63370             Eric Blake  <ebb9@byu.net>
63371
63372         * lib/lseek.c: Include <sys/stat.h>.
63373         (rpl_lseek): Add workaround code also for Unix platforms.
63374         Needed for BeOS.
63375         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
63376         * doc/functions/lseek.texi: Document BeOS definiency.
63377
63378 2007-08-18  Bruno Haible  <bruno@clisp.org>
63379
63380         * modules/fstrcmp-tests: New file.
63381         * tests/test-fstrcmp.c: New file.
63382
63383 2007-08-18  Bruno Haible  <bruno@clisp.org>
63384
63385         * modules/fstrcmp: New file, from GNU gettext with modifications.
63386         * lib/fstrcmp.h: New file, from GNU gettext.
63387         * lib/fstrcmp.c: New file, from GNU gettext.
63388         * MODULES.html.sh (String handling): Add fstrcmp.
63389
63390 2007-08-18  Bruno Haible  <bruno@clisp.org>
63391
63392         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
63393         'bool'.
63394         (diag, compareseq): Remove const from the ctxt argument.
63395         (USE_HEURISTIC): Undefine at the end.
63396
63397 2007-08-18  Jim Meyering  <jim@meyering.net>
63398
63399         New file: lib/idcache.h
63400         * NEWS: Mention the addition.
63401         * modules/idcache (Files): Add lib/idcache.h
63402         * lib/idcache.c: Include "idcache.h".
63403         Don't include <sys/types.h>.
63404         Add a FIXME comment.
63405         Move file-scoped "static" declarations to the top.
63406         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
63407
63408 2007-08-17  Bruno Haible  <bruno@clisp.org>
63409         and Paul Eggert  <eggert@cs.ucla.edu>
63410
63411         * MODULES.html.sh: Add diffseq.
63412         * modules/diffseq: New file.
63413         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
63414         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
63415
63416 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63417
63418         Import changes from coreutils for bootstrap script.
63419
63420         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
63421
63422         * build-aux/bootstrap (slurp): Work even in environments where
63423         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
63424         current code does not slurp files whose names start with ".", and
63425         this looks like it might be a troublesome area.
63426
63427         2007-07-11  Jim Meyering  <jim@meyering.net>
63428
63429         If there's a GPL vN copyright comment, require that N == 3.
63430
63431         2007-07-08  Jim Meyering  <jim@meyering.net>
63432
63433         Run the coreutils-specific code only if tests/Makefile.am.in exists.
63434         * build-aux/bootstrap (mam_template): Move definition out of loop.
63435
63436         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
63437
63438         * build-aux/bootstrap (symlink_to_dir): Rename function from
63439         symlink_to_gnulib.  Add a directory parameter.  Update all
63440         callers.
63441         (cp_mark_as_generated): Also check for -- and link to -- files in
63442         gl/.
63443
63444         2007-07-08  Jim Meyering  <jim@meyering.net>
63445
63446         Adapt to deeper hierarchy in gnulib.
63447         * build-aux/bootstrap (symlink_to_dir): If the destination
63448         directory doesn't exist, create it. This is required at least for
63449         "lib/uniwidth/cjk.h".
63450
63451         2007-05-15  Jim Meyering  <jim@meyering.net>
63452
63453         * build-aux/bootstrap: Now that generated Makefile.am files
63454         are no longer under version control, they must be created at
63455         bootstrap time.
63456
63457 2007-08-14  Ben Pfaff  <blp@gnu.org>
63458
63459         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
63460
63461 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63462
63463         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
63464         given the changes below.
63465         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
63466         even on hosts that have padding bits beyond the supported 64.
63467
63468 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
63469
63470         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
63471         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
63472         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
63473         depends on it.
63474         (xstrtol_error): Remove.
63475         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
63476         but with a different signature.
63477         (ATTRIBUTE_NORETURN, __attribute__): New macros.
63478         * lib/xstrtol-error.c: Include exitfail.h.
63479         (xstrtol_fatal): New function, with a different signature from the
63480         old xstrtol_error, so that the caller need not worry about passing
63481         in an exit status, or about storage management of the option argument.
63482         (xstrtol_error): Now a static function.  Redo signature to
63483         implement xstrtol_fatal.  Output the correct number of hyphens in
63484         front of the option so that the caller need not worry about
63485         storage management.
63486         (N_): New macro.
63487         (_): Remove; not used now.
63488         * modules/xstrtol: Depend on getopt.
63489         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
63490         of old STRTOL_FATAL_ERROR macro.
63491         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
63492         of test program.
63493         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
63494         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
63495
63496 2007-08-08  Eric Blake  <ebb9@byu.net>
63497
63498         * lib/xstrtol-error.c: Add missing include.
63499
63500         Move xstrtol messages into gnulib domain, when --pobase is used.
63501         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
63502         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
63503         * modules/xstrtol (Files): Distribute new file.
63504         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
63505         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
63506         * tests/test-xstrtol.c: ...into new file.
63507         * tests/test-xstrtoul.c: Also test xstrtoul.
63508         * tests/test-xstrtoimax.c: Also test xstrtoimax.
63509         * tests/test-xstrtoumax.c: Also test xstrtoumax.
63510         * tests/test-xstrtol.sh: Drive the tests.
63511         * tests/test-xstrtoimax.sh: Likewise.
63512         * tests/test-xstrtoumax.sh: Likewise.
63513         * modules/xstrtol-tests: New module.
63514         * modules/xstrtoimax-tests: Likewise.
63515         * modules/xstrtoumax-tests: Likewise.
63516
63517 2007-08-08  Jim Meyering  <jim@meyering.net>
63518
63519         New function: mfile_name_concat.
63520         * lib/filenamecat.c (mfile_name_concat): New function, just like
63521         file_name_concat, but return NULL upon failure rather than exiting
63522         with a diagnostic.
63523         * lib/filenamecat.h: Declare it.
63524
63525 2007-08-07  Bruno Haible  <bruno@clisp.org>
63526
63527         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
63528         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
63529         warning from gcc.
63530         Reported by Eric Blake.
63531
63532 2007-08-07  Simon Josefsson  <simon@josefsson.org>
63533
63534         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
63535         * modules/crypto/arcfour (License): Likewise.
63536         * modules/crypto/des-tests (License): Likewise.
63537         * modules/crypto/gc-arctwo-tests (License): Likewise.
63538         * modules/crypto/gc-des-tests (License): Likewise.
63539         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
63540         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
63541         * modules/crypto/gc-md2-tests (License): Likewise.
63542         * modules/crypto/gc-md4-tests (License): Likewise.
63543         * modules/crypto/gc-md5-tests (License): Likewise.
63544         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
63545         * modules/crypto/gc-rijndael-tests (License): Likewise.
63546         * modules/crypto/gc-sha1-tests (License): Likewise.
63547         * modules/crypto/gc-tests (License): Likewise.
63548         * modules/crypto/hmac-md5 (License): Likewise.
63549         * modules/crypto/hmac-sha1 (License): Likewise.
63550         * modules/crypto/md2-tests (License): Likewise.
63551         * modules/crypto/md4-tests (License): Likewise.
63552         * modules/crypto/md5 (License): Likewise.
63553         * modules/crypto/rijndael (License): Likewise.
63554         * modules/crypto/sha1 (License): Likewise.
63555         * modules/memxor (License): Likewise.
63556
63557 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
63558         and Bruno Haible  <bruno@clisp.org>
63559
63560         * NEWS: Describe interface changes to human, xstrtol.
63561         * lib/human.h: Include <xstrtol.h>.
63562         (human_options): Return enum strtol_error, not int.  Remove
63563         bool arg; take int * instead.
63564         * lib/human.c: Don't include "gettext.h".
63565         (_): Remove; no longer used.
63566         Don't include <xstrtol.h>, since human.h does it.
63567         (human_options): Adjust to abovementioned interface changes.
63568         Do not report error to stderr; that's now the caller's
63569         responsibility.
63570         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
63571         interface change.
63572         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
63573         Str, Argument_type_string.  All uses changed.  Put " argument"
63574         in diagnostics to make them clearer.  Change wording of suffix
63575         message for clarity.
63576         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
63577         Argument_type_string.
63578         (STRTOL_FATAL_WARN): Remove; no longer used.
63579         * modules/human (Depends-on): Remove gettext-h.
63580
63581 2007-08-06  Simon Josefsson  <simon@josefsson.org>
63582
63583         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
63584
63585 2007-07-31  Bruno Haible  <bruno@clisp.org>
63586
63587         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
63588         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
63589         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
63590
63591 2007-07-31  Bruno Haible  <bruno@clisp.org>
63592
63593         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
63594         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
63595
63596 2007-07-30  Bruno Haible  <bruno@clisp.org>
63597
63598         * modules/base64 (License): Use the synonymous term "LGPLv2+".
63599         * modules/c-ctype (License): Likewise.
63600         * modules/c-strcase (License): Likewise.
63601         * modules/check-version (License): Likewise.
63602         * modules/iconv (License): Likewise.
63603         * modules/iconv_open (License): Likewise.
63604         * modules/read-file (License): Likewise.
63605         * modules/striconv (License): Likewise.
63606         * modules/strverscmp (License): Likewise.
63607         * modules/vasprintf (License): Likewise.
63608         * modules/crypto/des (License): Likewise.
63609         * modules/crypto/gc (License): Likewise.
63610         * modules/crypto/gc-arcfour (License): Likewise.
63611         * modules/crypto/gc-arctwo (License): Likewise.
63612         * modules/crypto/gc-des (License): Likewise.
63613         * modules/crypto/gc-hmac-md5 (License): Likewise.
63614         * modules/crypto/gc-hmac-sha1 (License): Likewise.
63615         * modules/crypto/gc-md2 (License): Likewise.
63616         * modules/crypto/gc-md4 (License): Likewise.
63617         * modules/crypto/gc-md5 (License): Likewise.
63618         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
63619         * modules/crypto/gc-random (License): Likewise.
63620         * modules/crypto/gc-rijndael (License): Likewise.
63621         * modules/crypto/gc-sha1 (License): Likewise.
63622         * modules/crypto/md2 (License): Likewise.
63623         * modules/crypto/md4 (License): Likewise.
63624
63625 2007-07-30  Jim Meyering  <jim@meyering.net>
63626
63627         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
63628         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
63629         it has valid stat data.  This bug would cause du not to count the
63630         sizes of inaccessible directories.
63631         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
63632         in <http://bugzilla.redhat.com/250077>.
63633
63634 2007-07-25  Peter O'Gorman  <peter@pogma.com>
63635             Bruno Haible  <bruno@clisp.org>
63636
63637         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
63638         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
63639         #include_next, gives a diagnostic about it, but reports no error in
63640         the exit code.
63641         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
63642
63643 2007-07-24  Ben Pfaff  <blp@gnu.org>
63644
63645         Improve name: "count-one-bits" is better than "popcount".
63646         * MODULES.html.sh: Update name.
63647         * lib/popcount.h: Renamed lib/count-one-bits.h.
63648         (popcount): Renamed count_one_bits.
63649         (popcountl): Renamed count_one_bits_l.
63650         (popcountll): Renamed count_one_bits_ll.
63651         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
63652         * modules/popcount: Renamed module/count-one-bits.
63653         * modules/popcount-tests: Renamed module/count-one-bits-tests.
63654         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
63655
63656 2007-07-23  Ben Pfaff  <blp@gnu.org>
63657
63658         * lib/popcount.h (popcount32): Reduce size of constants, to allow
63659         better code generation, and add U to large constants to avoid
63660         warnings, in non-GCC case.
63661         Suggested by Bruno Haible.
63662
63663 2007-07-23  Ben Pfaff  <blp@gnu.org>
63664
63665         * lib/popcount.h: Use verify_true instead of if...abort.
63666         * modules/popcount: Depend on verify module.
63667         Suggested by Jim Meyering.
63668
63669 2007-07-23  Bruno Haible  <bruno@clisp.org>
63670
63671         * gnulib-tool (func_import): Create a .cvsignore file also when the
63672         directory is not yet in CVS but the toplevel directory is. When
63673         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
63674         Reported by Karl Berry.
63675
63676 2007-07-22  Ben Pfaff  <blp@gnu.org>
63677
63678         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
63679         case.
63680         Suggested by Eric Blake.
63681
63682 2007-07-22  Ben Pfaff  <blp@gnu.org>
63683
63684         New module: popcount.
63685         * MODULES.html.sh: Add popcount.
63686         * modules/popcount: New file.
63687         * modules/popcount-tests: New file.
63688         * tests/test-popcount.c: New file.
63689         * lib/popcount.h: New file.
63690         * m4/popcount.m4: New file.
63691
63692 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63693
63694         * build-aux/announce-gen: Update to GPLv3.
63695
63696         * build-aux/config.guess: Update from config.
63697
63698 2007-07-21  Bruno Haible  <bruno@clisp.org>
63699
63700         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
63701         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
63702
63703 2007-07-20  Jim Meyering  <jim@meyering.net>
63704
63705         * check-module: Diagnose a self-dependency.
63706
63707 2007-07-19  Bruno Haible  <bruno@clisp.org>
63708
63709         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
63710         empty.
63711         Reported by Eric Blake.
63712
63713 2007-07-18  Bruno Haible  <bruno@clisp.org>
63714
63715         * gnulib-tool: New options --po-base, --po-domain.
63716         (func_usage): Document them.
63717         (pobase, po_domain): New variables.
63718         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
63719         DEFAULT_TEXT_DOMAIN.
63720         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
63721         (func_import): Consider pobase and po_domain. Create a po/ directory.
63722         (func_create_testdir): Set pobase and po_domain to empty.
63723         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
63724         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
63725
63726 2007-07-18  Bruno Haible  <bruno@clisp.org>
63727
63728         * gnulib-tool (func_get_automake_snippet): Synthesize also an
63729         EXTRA_DIST augmentation for files in build-aux/.
63730
63731 2007-07-16  Bruno Haible  <bruno@clisp.org>
63732
63733         * modules/lseek (License): Use the synonymous term "LGPLv2+".
63734         * modules/getdelim (License): Likewise.
63735
63736 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63737
63738         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
63739         * modules/d-type (License): Likewise.
63740         * modules/extensions (License): Likewise.
63741         * modules/fnmatch (License): Likewise.
63742         * modules/fseeko (License): Likewise.
63743         * modules/getaddrinfo (License): Likewise.
63744         * modules/getline (License): Likewise.
63745         * modules/getlogin_r (License): Likewise.
63746         * modules/getpass (License): Likewise.
63747         * modules/gettimeofday (License): Likewise.
63748         * modules/glob (License): Likewise.
63749         * modules/inet_ntop (License): Likewise.
63750         * modules/malloc (License): Likewise.
63751         * modules/malloca (License): Likewise.
63752         * modules/memmem (License): Likewise.
63753         * modules/mempcpy (License): Likewise.
63754         * modules/memset (License): Likewise.
63755         * modules/minmax (License): Likewise.
63756         * modules/mktime (License): Likewise.
63757         * modules/netinet_in (License): Likewise.
63758         * modules/pathmax (License): Likewise.
63759         * modules/poll (License): Likewise.
63760         * modules/regex (License): Likewise.
63761         * modules/snprintf (License): Likewise.
63762         * modules/stdbool (License): Likewise.
63763         * modules/stdint (License): Likewise.
63764         * modules/stdio (License): Likewise.
63765         * modules/strcase (License): Likewise.
63766         * modules/strcasestr (License): Likewise.
63767         * modules/strdup (License): Likewise.
63768         * modules/string (License): Likewise.
63769         * modules/strndup (License): Likewise.
63770         * modules/strnlen (License): Likewise.
63771         * modules/strpbrk (License): Likewise.
63772         * modules/strptime (License): Likewise.
63773         * modules/strsep (License): Likewise.
63774         * modules/sys_select (License): Likewise.
63775         * modules/sys_socket (License): Likewise.
63776         * modules/sys_stat (License): Likewise.
63777         * modules/sys_time (License): Likewise.
63778         * modules/time (License): Likewise.
63779         * modules/time_r (License): Likewise.
63780         * modules/timegm (License): Likewise.
63781         * modules/unistd (License): Likewise.
63782         * modules/vsnprintf (License): Likewise.
63783         * modules/wctype (License): Likewise.
63784
63785 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63786
63787         * modules/argz (License): LGPLv2+.
63788
63789 2007-07-15  Karl Berry  <karl@gnu.org>
63790
63791         * doc/gnulib.texi: revise node structure per new fdl.texi.
63792
63793 2007-07-14  Bruno Haible  <bruno@clisp.org>
63794
63795         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
63796         the output file.
63797         * lib/uniname/uninames.h: Regenerated.
63798
63799 2007-07-14  Karl Berry  <karl@gnu.org>
63800
63801         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
63802         omitting sectioning and index commands.
63803
63804 2007-07-13  Bruno Haible  <bruno@clisp.org>
63805
63806         New gnulib-tool option --more-symlinks.
63807         * gnulib-tool (func_usage): Document --more-symlinks.
63808         (do_copyrights): New variable.
63809         Recognize option --more-symlinks.
63810         (func_import): Don't add a copyright notice transform to
63811         sed_transform_lib_file if do_copyrights is empty.
63812
63813 2007-07-13  Bruno Haible  <bruno@clisp.org>
63814
63815         * lib/vasnprintf.c (decimal_point_char): Define also if
63816         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
63817         && !NEED_PRINTF_DIRECTIVE_A.
63818         Reported by Clemens Koller <clemens.koller@anagramm.de> via
63819         Gary V. Vaughan <gary@gnu.org>.
63820
63821 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
63822
63823         * lib/inttypes_.h: Undo previous change, since it was fixed
63824         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
63825
63826 2007-07-13  Bruno Haible  <bruno@clisp.org>
63827
63828         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
63829         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
63830
63831 2007-07-13  Jim Meyering  <jim@meyering.net>
63832
63833         df: Don't fail for Tru64's "file-on-file mount".
63834         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
63835         so we fall through and use statfs instead.  Details here:
63836         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
63837         Reported by Albert Chin.
63838
63839 2007-07-13  Bruno Haible  <bruno@clisp.org>
63840
63841         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
63842         * modules/configmake (License): Likewise.
63843         * modules/gettext (License): Likewise.
63844         * modules/gettext-h (License): Likewise.
63845         * modules/include_next (License): Likewise.
63846         * modules/link-warning (License): Likewise.
63847         * modules/localcharset (License): Likewise.
63848         * modules/localename (License): Likewise.
63849         * modules/lock (License): Likewise.
63850         * modules/relocatable-lib-lgpl (License): Likewise.
63851         * modules/size_max (License): Likewise.
63852         * modules/vasnprintf (License): Likewise.
63853         * modules/wchar (License): Likewise.
63854         * modules/xsize (License): Likewise.
63855
63856 2007-07-13  Bruno Haible  <bruno@clisp.org>
63857
63858         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
63859         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
63860
63861 2007-07-12  Bruno Haible  <bruno@clisp.org>
63862
63863         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
63864         in the modules files.
63865
63866 2007-07-11  Karl Berry  <karl@gnu.org>
63867
63868         * MODULES.html.sh (func_module): use
63869          sed -e '\|^'"${includefile}"'$|d'
63870          instead of /.../d, to avoid errors on $includefile's containing /.
63871
63872 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63873
63874         * gnulib-tool (func_import): Avoid duplication of --avoid
63875         statements
63876         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
63877         names to `_' in variable names.
63878
63879 2007-07-10  Eric Blake  <ebb9@byu.net>
63880
63881         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
63882         * NEWS: Document this change.
63883
63884 2007-07-08  Bruno Haible  <bruno@clisp.org>
63885
63886         Update to Unicode 5.0.
63887         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
63888         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
63889         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
63890         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
63891         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
63892         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
63893         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
63894         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
63895         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
63896         U+10A3F, U+1D242..U+1D244.
63897         (nonspacing_table_ind): Update.
63898         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
63899         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
63900
63901 2007-07-08  Bruno Haible  <bruno@clisp.org>
63902
63903         Update to Unicode 5.0.
63904         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
63905         code transform. Extend the name index field of unicode_name_to_code and
63906         unicode_code_to_name from 16 to 24 bits.
63907         * lib/uniname/uniname.c (unicode_character_name,
63908         unicode_name_character): Add the range 0x12xxx to the code transform.
63909         * lib/uniname/uninames.h: Regenerated.
63910         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
63911
63912 2007-07-07  Bruno Haible  <bruno@clisp.org>
63913
63914         * modules/wcwidth-tests: New file.
63915         * tests/test-wcwidth.c: New file.
63916
63917         Work around MacOS X wcwidth() bug.
63918         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
63919         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
63920         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
63921         original wcwidth in non-UTF-8 locales.
63922         * modules/wcwidth (Depends-on): Add localcharset, streq,
63923         uniwidth/width.
63924         * doc/functions/wcwidth.texi: Update.
63925
63926 2007-07-07  Bruno Haible  <bruno@clisp.org>
63927
63928         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
63929         (wcwidth): New declaration.
63930         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
63931         macros.
63932         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
63933         here. Prepare for creating <wchar.h> unconditionally.
63934         * modules/wchar (Depends-on): Add link-warning.
63935         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
63936         REPLACE_WCWIDTH, and GL_LINK_WARNING.
63937         * lib/wcwidth.h: Remove file.
63938         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
63939         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
63940         * modules/wcwidth (Files): Remove lib/wcwidth.h.
63941         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
63942         (Include): Replace wcwidth.h with <wchar.h>.
63943         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
63944         * lib/mbchar.h: Don't include wcwidth.h.
63945         * lib/mbswidth.c: Likewise.
63946         * NEWS: Mention the change.
63947
63948 2007-07-07  Bruno Haible  <bruno@clisp.org>
63949
63950         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
63951         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
63952         definition with an external declaration.
63953         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
63954         defined as a function. Remove AC_C_INLINE requirement.
63955         * modules/wcwidth (Files): Add lib/wcwidth.c.
63956         (Makefile.am): Remove redundant statement.
63957
63958 2007-07-07  Bruno Haible  <bruno@clisp.org>
63959
63960         * MODULES.html.sh (Unicode string functions): Add the new modules.
63961
63962         * tests/uniwidth/test-u32-strwidth.c: New file.
63963         * modules/uniwidth/u32-strwidth-tests: New file.
63964
63965         * lib/uniwidth/u32-strwidth.c: New file.
63966         * modules/uniwidth/u32-strwidth: New file.
63967
63968         * tests/uniwidth/test-u16-strwidth.c: New file.
63969         * modules/uniwidth/u16-strwidth-tests: New file.
63970
63971         * lib/uniwidth/u16-strwidth.c: New file.
63972         * modules/uniwidth/u16-strwidth: New file.
63973
63974         * tests/uniwidth/test-u8-strwidth.c: New file.
63975         * modules/uniwidth/u8-strwidth-tests: New file.
63976
63977         * lib/uniwidth/u8-strwidth.c: New file.
63978         * modules/uniwidth/u8-strwidth: New file.
63979
63980         * tests/uniwidth/test-u32-width.c: New file.
63981         * modules/uniwidth/u32-width-tests: New file.
63982
63983         * lib/uniwidth/u32-width.c: New file.
63984         * modules/uniwidth/u32-width: New file.
63985
63986         * tests/uniwidth/test-u16-width.c: New file.
63987         * modules/uniwidth/u16-width-tests: New file.
63988
63989         * lib/uniwidth/u16-width.c: New file.
63990         * modules/uniwidth/u16-width: New file.
63991
63992         * tests/uniwidth/test-u8-width.c: New file.
63993         * modules/uniwidth/u8-width-tests: New file.
63994
63995         * lib/uniwidth/u8-width.c: New file.
63996         * modules/uniwidth/u8-width: New file.
63997
63998         * tests/uniwidth/test-uc_width.c: New file.
63999         * modules/uniwidth/width-tests: New file.
64000
64001         * lib/uniwidth/width.c: New file, from GNU libiconv.
64002         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
64003         * modules/uniwidth/width: New file.
64004
64005         * lib/uniwidth.h: New file, from GNU libiconv.
64006         * modules/uniwidth/base: New file.
64007
64008 2007-07-07  Bruno Haible  <bruno@clisp.org>
64009
64010         * lib/uniname.h: New file, from GNU gettext.
64011         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
64012         * lib/uniname/uninames.h: New file, from GNU gettext.
64013         * lib/uniname/uniname.c: New file, from GNU gettext.
64014         * tests/uniname/test-uninames.sh: New file.
64015         * tests/uniname/test-uninames.c: New file, from GNU gettext.
64016         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
64017         * modules/uniname/base: New file.
64018         * modules/uniname/uniname: New file.
64019         * modules/uniname/uniname-tests: New file.
64020         * MODULES.html.sh (Unicode string functions): Add the new modules.
64021
64022 2007-07-06  Bruno Haible  <bruno@clisp.org>
64023
64024         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
64025
64026 2007-07-06  Bruno Haible  <bruno@clisp.org>
64027
64028         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
64029         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
64030         includes <cygwin/sys_time.h> which includes <sys/select.h> which
64031         include <sys/time.h>.
64032         Reported by Eric Blake.
64033
64034 2007-07-06  Eric Blake  <ebb9@byu.net>
64035
64036         Fix testing canonicalize on cygwin.
64037         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
64038         Revert patch from 2007-06-19.
64039         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
64040         canonicalize module is also in use.
64041         * tests/test-canonicalize.c: New file.
64042         * tests/test-canonicalize.sh: Likewise.
64043         * modules/canonicalize-tests: Likewise.
64044
64045 2007-07-06  Jim Meyering  <jim@meyering.net>
64046
64047         * lib/getugroups.c (getugroups): Detect getgrent failure.
64048         Adjust comment to reflect reality: this function may return -1.
64049
64050 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
64051
64052         * build-aux/bootstrap (TP_URL,get_translations): Update to use
64053         the new TP address.
64054         (usage): Fix typo
64055         (gnulib_mk): New variable.
64056
64057 2007-07-05  Jim Meyering  <jim@meyering.net>
64058
64059         Don't let endgrent clobber errno, no matter how improbable.
64060         * lib/getugroups.c (getugroups): Save and restore errno around
64061         endgrent call.
64062
64063         Close the group DB even when failing with 2^31 or more members.
64064         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
64065
64066 2007-07-04  Jim Meyering  <jim@meyering.net>
64067
64068         * lib/getugroups.h: New file.
64069         * lib/getugroups.c: Include "getugroups.h".
64070         Remove uses of "register" keyword.
64071         Move local variable, "cp", down into scope where used.
64072         Give "username" parameter the "const" attribute.
64073         * modules/getugroups (Files): Add lib/getugroups.h
64074
64075 2007-07-04  Karl Berry  <karl@gnu.org>
64076
64077         * MODULES.html.sh (func_all_modules): Complete rename of
64078         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
64079
64080 2007-07-02  Bruno Haible  <bruno@clisp.org>
64081
64082         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
64083         mode, when inttypes.h comes from gnulib.
64084         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
64085
64086 2007-07-02  Simon Josefsson  <simon@josefsson.org>
64087
64088         * NEWS: Mention lgpl module name change.
64089
64090         * modules/lgpl-2.1: Renamed from lgpl.
64091
64092         * NEWS: Mention gpl module name change.
64093
64094         * modules/gpl-3.0: New file, based on gpl-2.0.
64095
64096         * modules/gpl-2.0: Renamed from gpl.
64097
64098         * modules/gpl: Fix filename, doc/gpl.texi is now found at
64099         doc/gpl-2.0.texi.
64100
64101 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
64102
64103         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
64104         #define __STDC_LIMIT_MACROS temporarily while including
64105         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
64106         Problem reported by Joel E. Denny in
64107         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
64108
64109 2007-07-01  Bruno Haible  <bruno@clisp.org>
64110
64111         * lib/unistdio.h: New file.
64112         * lib/unistdio/u-asnprintf.h: New file.
64113         * lib/unistdio/u-asprintf.h: New file.
64114         * lib/unistdio/u-printf-args.c: New file.
64115         * lib/unistdio/u-printf-args.h: New file.
64116         * lib/unistdio/u-printf-parse.h: New file.
64117         * lib/unistdio/u-snprintf.h: New file.
64118         * lib/unistdio/u-sprintf.h: New file.
64119         * lib/unistdio/u-vasprintf.h: New file.
64120         * lib/unistdio/u-vsnprintf.h: New file.
64121         * lib/unistdio/u-vsprintf.h: New file.
64122         * lib/unistdio/ulc-asnprintf.c: New file.
64123         * lib/unistdio/ulc-asprintf.c: New file.
64124         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
64125         * lib/unistdio/ulc-printf-parse.c: New file.
64126         * lib/unistdio/ulc-snprintf.c: New file.
64127         * lib/unistdio/ulc-sprintf.c: New file.
64128         * lib/unistdio/ulc-vasnprintf.c: New file.
64129         * lib/unistdio/ulc-vasprintf.c: New file.
64130         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
64131         * lib/unistdio/ulc-vsnprintf.c: New file.
64132         * lib/unistdio/ulc-vsprintf.c: New file.
64133         * lib/unistdio/u8-asnprintf.c: New file.
64134         * lib/unistdio/u8-asprintf.c: New file.
64135         * lib/unistdio/u8-printf-parse.c: New file.
64136         * lib/unistdio/u8-snprintf.c: New file.
64137         * lib/unistdio/u8-sprintf.c: New file.
64138         * lib/unistdio/u8-vasnprintf.c: New file.
64139         * lib/unistdio/u8-vasprintf.c: New file.
64140         * lib/unistdio/u8-vsnprintf.c: New file.
64141         * lib/unistdio/u8-vsprintf.c: New file.
64142         * lib/unistdio/u8-u8-asnprintf.c: New file.
64143         * lib/unistdio/u8-u8-asprintf.c: New file.
64144         * lib/unistdio/u8-u8-snprintf.c: New file.
64145         * lib/unistdio/u8-u8-sprintf.c: New file.
64146         * lib/unistdio/u8-u8-vasnprintf.c: New file.
64147         * lib/unistdio/u8-u8-vasprintf.c: New file.
64148         * lib/unistdio/u8-u8-vsnprintf.c: New file.
64149         * lib/unistdio/u8-u8-vsprintf.c: New file.
64150         * lib/unistdio/u16-asnprintf.c: New file.
64151         * lib/unistdio/u16-asprintf.c: New file.
64152         * lib/unistdio/u16-printf-parse.c: New file.
64153         * lib/unistdio/u16-snprintf.c: New file.
64154         * lib/unistdio/u16-sprintf.c: New file.
64155         * lib/unistdio/u16-vasnprintf.c: New file.
64156         * lib/unistdio/u16-vasprintf.c: New file.
64157         * lib/unistdio/u16-vsnprintf.c: New file.
64158         * lib/unistdio/u16-vsprintf.c: New file.
64159         * lib/unistdio/u16-u16-asnprintf.c: New file.
64160         * lib/unistdio/u16-u16-asprintf.c: New file.
64161         * lib/unistdio/u16-u16-snprintf.c: New file.
64162         * lib/unistdio/u16-u16-sprintf.c: New file.
64163         * lib/unistdio/u16-u16-vasnprintf.c: New file.
64164         * lib/unistdio/u16-u16-vasprintf.c: New file.
64165         * lib/unistdio/u16-u16-vsnprintf.c: New file.
64166         * lib/unistdio/u16-u16-vsprintf.c: New file.
64167         * lib/unistdio/u32-asnprintf.c: New file.
64168         * lib/unistdio/u32-asprintf.c: New file.
64169         * lib/unistdio/u32-printf-parse.c: New file.
64170         * lib/unistdio/u32-snprintf.c: New file.
64171         * lib/unistdio/u32-sprintf.c: New file.
64172         * lib/unistdio/u32-vasnprintf.c: New file.
64173         * lib/unistdio/u32-vasprintf.c: New file.
64174         * lib/unistdio/u32-vsnprintf.c: New file.
64175         * lib/unistdio/u32-vsprintf.c: New file.
64176         * lib/unistdio/u32-u32-asnprintf.c: New file.
64177         * lib/unistdio/u32-u32-asprintf.c: New file.
64178         * lib/unistdio/u32-u32-snprintf.c: New file.
64179         * lib/unistdio/u32-u32-sprintf.c: New file.
64180         * lib/unistdio/u32-u32-vasnprintf.c: New file.
64181         * lib/unistdio/u32-u32-vasprintf.c: New file.
64182         * lib/unistdio/u32-u32-vsnprintf.c: New file.
64183         * lib/unistdio/u32-u32-vsprintf.c: New file.
64184         * tests/unistdio/test-ulc-asnprintf1.c: New file.
64185         * tests/unistdio/test-ulc-asnprintf1.h: New file.
64186         * tests/unistdio/test-ulc-printf1.h: New file.
64187         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
64188         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
64189         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
64190         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
64191         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
64192         * tests/unistdio/test-ulc-vasprintf1.c: New file.
64193         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
64194         * tests/unistdio/test-ulc-vsprintf1.c: New file.
64195         * tests/unistdio/test-u8-asnprintf1.c: New file.
64196         * tests/unistdio/test-u8-asnprintf1.h: New file.
64197         * tests/unistdio/test-u8-printf1.h: New file.
64198         * tests/unistdio/test-u8-vasnprintf1.c: New file.
64199         * tests/unistdio/test-u8-vasnprintf2.c: New file.
64200         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
64201         * tests/unistdio/test-u8-vasnprintf3.c: New file.
64202         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
64203         * tests/unistdio/test-u8-vasprintf1.c: New file.
64204         * tests/unistdio/test-u8-vsnprintf1.c: New file.
64205         * tests/unistdio/test-u8-vsprintf1.c: New file.
64206         * tests/unistdio/test-u16-asnprintf1.c: New file.
64207         * tests/unistdio/test-u16-asnprintf1.h: New file.
64208         * tests/unistdio/test-u16-printf1.h: New file.
64209         * tests/unistdio/test-u16-vasnprintf1.c: New file.
64210         * tests/unistdio/test-u16-vasnprintf2.c: New file.
64211         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
64212         * tests/unistdio/test-u16-vasnprintf3.c: New file.
64213         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
64214         * tests/unistdio/test-u16-vasprintf1.c: New file.
64215         * tests/unistdio/test-u16-vsnprintf1.c: New file.
64216         * tests/unistdio/test-u16-vsprintf1.c: New file.
64217         * tests/unistdio/test-u32-asnprintf1.c: New file.
64218         * tests/unistdio/test-u32-asnprintf1.h: New file.
64219         * tests/unistdio/test-u32-printf1.h: New file.
64220         * tests/unistdio/test-u32-vasnprintf1.c: New file.
64221         * tests/unistdio/test-u32-vasnprintf2.c: New file.
64222         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
64223         * tests/unistdio/test-u32-vasnprintf3.c: New file.
64224         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
64225         * tests/unistdio/test-u32-vasprintf1.c: New file.
64226         * tests/unistdio/test-u32-vsnprintf1.c: New file.
64227         * tests/unistdio/test-u32-vsprintf1.c: New file.
64228         * modules/unistdio/base: New file.
64229         * modules/unistdio/u-printf-args: New file.
64230         * modules/unistdio/ulc-asnprintf: New file.
64231         * modules/unistdio/ulc-asprintf: New file.
64232         * modules/unistdio/ulc-fprintf: New file.
64233         * modules/unistdio/ulc-printf-parse: New file.
64234         * modules/unistdio/ulc-snprintf: New file.
64235         * modules/unistdio/ulc-sprintf: New file.
64236         * modules/unistdio/ulc-vasnprintf: New file.
64237         * modules/unistdio/ulc-vasprintf: New file.
64238         * modules/unistdio/ulc-vfprintf: New file.
64239         * modules/unistdio/ulc-vsnprintf: New file.
64240         * modules/unistdio/ulc-vsprintf: New file.
64241         * modules/unistdio/u8-asnprintf: New file.
64242         * modules/unistdio/u8-asprintf: New file.
64243         * modules/unistdio/u8-printf-parse: New file.
64244         * modules/unistdio/u8-snprintf: New file.
64245         * modules/unistdio/u8-sprintf: New file.
64246         * modules/unistdio/u8-vasnprintf: New file.
64247         * modules/unistdio/u8-vasprintf: New file.
64248         * modules/unistdio/u8-vsnprintf: New file.
64249         * modules/unistdio/u8-vsprintf: New file.
64250         * modules/unistdio/u8-u8-asnprintf: New file.
64251         * modules/unistdio/u8-u8-asprintf: New file.
64252         * modules/unistdio/u8-u8-snprintf: New file.
64253         * modules/unistdio/u8-u8-sprintf: New file.
64254         * modules/unistdio/u8-u8-vasnprintf: New file.
64255         * modules/unistdio/u8-u8-vasprintf: New file.
64256         * modules/unistdio/u8-u8-vsnprintf: New file.
64257         * modules/unistdio/u8-u8-vsprintf: New file.
64258         * modules/unistdio/u16-asnprintf: New file.
64259         * modules/unistdio/u16-asprintf: New file.
64260         * modules/unistdio/u16-printf-parse: New file.
64261         * modules/unistdio/u16-snprintf: New file.
64262         * modules/unistdio/u16-sprintf: New file.
64263         * modules/unistdio/u16-vasnprintf: New file.
64264         * modules/unistdio/u16-vasprintf: New file.
64265         * modules/unistdio/u16-vsnprintf: New file.
64266         * modules/unistdio/u16-vsprintf: New file.
64267         * modules/unistdio/u16-u16-asnprintf: New file.
64268         * modules/unistdio/u16-u16-asprintf: New file.
64269         * modules/unistdio/u16-u16-snprintf: New file.
64270         * modules/unistdio/u16-u16-sprintf: New file.
64271         * modules/unistdio/u16-u16-vasnprintf: New file.
64272         * modules/unistdio/u16-u16-vasprintf: New file.
64273         * modules/unistdio/u16-u16-vsnprintf: New file.
64274         * modules/unistdio/u16-u16-vsprintf: New file.
64275         * modules/unistdio/u32-asnprintf: New file.
64276         * modules/unistdio/u32-asprintf: New file.
64277         * modules/unistdio/u32-printf-parse: New file.
64278         * modules/unistdio/u32-snprintf: New file.
64279         * modules/unistdio/u32-sprintf: New file.
64280         * modules/unistdio/u32-vasnprintf: New file.
64281         * modules/unistdio/u32-vasprintf: New file.
64282         * modules/unistdio/u32-vsnprintf: New file.
64283         * modules/unistdio/u32-vsprintf: New file.
64284         * modules/unistdio/u32-u32-asnprintf: New file.
64285         * modules/unistdio/u32-u32-asprintf: New file.
64286         * modules/unistdio/u32-u32-snprintf: New file.
64287         * modules/unistdio/u32-u32-sprintf: New file.
64288         * modules/unistdio/u32-u32-vasnprintf: New file.
64289         * modules/unistdio/u32-u32-vasprintf: New file.
64290         * modules/unistdio/u32-u32-vsnprintf: New file.
64291         * modules/unistdio/u32-u32-vsprintf: New file.
64292         * modules/unistdio/ulc-asnprintf-tests: New file.
64293         * modules/unistdio/ulc-vasnprintf-tests: New file.
64294         * modules/unistdio/ulc-vasprintf-tests: New file.
64295         * modules/unistdio/ulc-vsnprintf-tests: New file.
64296         * modules/unistdio/ulc-vsprintf-tests: New file.
64297         * modules/unistdio/u8-asnprintf-tests: New file.
64298         * modules/unistdio/u8-vasnprintf-tests: New file.
64299         * modules/unistdio/u8-vasprintf-tests: New file.
64300         * modules/unistdio/u8-vsnprintf-tests: New file.
64301         * modules/unistdio/u8-vsprintf-tests: New file.
64302         * modules/unistdio/u16-asnprintf-tests: New file.
64303         * modules/unistdio/u16-vasnprintf-tests: New file.
64304         * modules/unistdio/u16-vasprintf-tests: New file.
64305         * modules/unistdio/u16-vsnprintf-tests: New file.
64306         * modules/unistdio/u16-vsprintf-tests: New file.
64307         * modules/unistdio/u32-asnprintf-tests: New file.
64308         * modules/unistdio/u32-vasnprintf-tests: New file.
64309         * modules/unistdio/u32-vasprintf-tests: New file.
64310         * modules/unistdio/u32-vsnprintf-tests: New file.
64311         * modules/unistdio/u32-vsprintf-tests: New file.
64312         * MODULES.html.sh (Unicode string functions): Add the new modules.
64313
64314 2007-07-01  Bruno Haible  <bruno@clisp.org>
64315
64316         * lib/sprintf.c (sprintf): Limit the available length estimation,
64317         to avoid address wraparound.
64318         * lib/vsprintf.c (vsprintf): Likewise.
64319         * modules/sprintf-posix (Dependencies): Add stdint.
64320         * modules/vsprintf-posix (Dependencies): Likewise.
64321
64322 2007-07-01  Bruno Haible  <bruno@clisp.org>
64323
64324         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
64325         Windows PATH as well. Conservative double-quoting. Comments.
64326
64327 2007-07-01  Bruno Haible  <bruno@clisp.org>
64328             Eric Blake  <ebb9@byu.net>
64329             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64330
64331         * gnulib-tool (self_abspathname): Fix algorithm to cope with
64332         empty components in $PATH, denoting '.'.
64333
64334 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64335
64336         * gnulib-tool: Fix indentation.
64337         (func_create_megatestdir): Likewise.
64338         Report by Bruno Haible.
64339
64340 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64341
64342         Sync from Automake.
64343         * build-aux/gnupload: Fix shell portability issues with for loops.
64344         Report by Karl Berry.
64345
64346 2007-06-29  Simon Josefsson  <simon@josefsson.org>
64347
64348         * build-aux/maint.mk (POURL): Use translationproject.org.
64349
64350 2007-06-27  Simon Josefsson  <simon@josefsson.org>
64351             Bruno Haible  <bruno@clisp.org>
64352
64353         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
64354         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
64355         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
64356         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
64357         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
64358
64359 2007-06-27  Bruno Haible  <bruno@clisp.org>
64360
64361         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
64362         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
64363
64364 2007-06-26  Karl Berry  <karl@gnu.org>
64365
64366         * MODULES.html.sh: remove xreadlink-with-size.
64367
64368 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64369
64370         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
64371         method that I hope also handles the double-include problem noted
64372         by Bruno Haible in
64373         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
64374
64375 2007-06-23  Bruno Haible  <bruno@clisp.org>
64376
64377         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64378         Don't let the 'mostlyclean' target fail if the last subdirectory could
64379         not be removed.
64380         Reported by Karl Berry.
64381
64382 2007-06-23  Bruno Haible  <bruno@clisp.org>
64383
64384         * gnulib-tool (echo): Add a speedier workaround for ksh.
64385         * tests/test-echo.sh: Likewise.
64386
64387 2007-06-23  Bruno Haible  <bruno@clisp.org>
64388
64389         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
64390         * tests/test-echo.sh: Likewise.
64391
64392 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64393
64394         * gnulib-tool (IFS): Initialize early, so we don't set it to
64395         empty later.
64396         (self_abspathname): Rewrite algorithm to set it, reindent.
64397         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
64398         (func_create_megatestdir): Merge some sed scripts.
64399
64400 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64401
64402         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
64403         exposed by Sun Studio 11 cc on Solaris 8.
64404
64405 2007-06-22  Bruno Haible  <bruno@clisp.org>
64406
64407         * gnulib-tool (echo): Ensure the echo primitive does not interpret
64408         backslashes.
64409         * tests/test-echo.sh: New file.
64410
64411 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64412
64413         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
64414         simplify `sed_replace_build_aux' scripts, they are portable but
64415         echoing them with `echo' is not.
64416         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
64417
64418 2007-06-21  Karl Berry  <karl@gnu.org>
64419
64420         * config/srclist.txt: guess we can't handle the licenses via
64421         srclist at the moment.
64422
64423 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
64424
64425         * MODULES.html.sh: Add include_next.
64426         * modules/include_next: New file.
64427
64428 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
64429
64430         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
64431         INCLUDE_NEXT.
64432         (gl_CHECK_NEXT_HEADERS): New macro.
64433         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
64434         the obsolescent gl_ABSOLUTE_HEADER.
64435         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
64436         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
64437         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
64438         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
64439         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
64440         * m4/math_h.m4 (gl_MATH_H): Likewise.
64441         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
64442         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
64443         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
64444         * m4/stdint.m4 (gl_STDINT_H): Likewise.
64445         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
64446         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
64447         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
64448         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
64449         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
64450         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
64451         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
64452         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
64453         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
64454         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
64455         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
64456         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64457         * m4/inttypes.m4 (gl_INTTYPES_H): Define
64458         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
64459         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
64460         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
64461         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
64462         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
64463         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
64464         * lib/float_.h: Likewise.
64465         * lib/inttypes_.h: Likewise.
64466         * lib/math_.h: Likewise.
64467         * lib/search_.h: Likewise.
64468         * lib/signal_.h: Likewise.
64469         * lib/stdint_.h: Likewise.
64470         * lib/stdio_.h: Likewise.
64471         * lib/stdlib_.h: Likewise.
64472         * lib/string_.h: Likewise.
64473         * lib/sys_stat_.h: Likewise.
64474         * lib/sys_time_.h: Likewise.
64475         * lib/time_.h: Likewise.
64476         * lib/unistd_.h: Likewise.
64477         * lib/wchar_.h: Likewise.
64478         * lib/wctype_.h: Likewise.
64479         * lib/dirent_.h: Likewise.
64480         * lib/iconv_.h: Likewise.
64481         * lib/locale_.h: Likewise.
64482         * lib/netinet_in_.h: Likewise.
64483         * lib/sys_select_.h: Likewise.
64484         * lib/sys_socket_.h: Likewise.
64485         * lib/sysexits_.h: Likewise.
64486         * modules/fcntl (Depends-on): Depend on include_next, not
64487         absolute_header.
64488         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
64489         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
64490         * modules/fchdir: Likewise.
64491         * modules/float: Likewise.
64492         * modules/iconv_open: Likewise.
64493         * modules/inttypes: Likewise.
64494         * modules/locale: Likewise.
64495         * modules/math: Likewise.
64496         * modules/netinet_in: Likewise.
64497         * modules/search: Likewise.
64498         * modules/signal: Likewise.
64499         * modules/stdint: Likewise.
64500         * modules/stdio: Likewise.
64501         * modules/stdlib: Likewise.
64502         * modules/string: Likewise.
64503         * modules/sys_select: Likewise.
64504         * modules/sys_socket: Likewise.
64505         * modules/sys_stat: Likewise.
64506         * modules/sys_time: Likewise.
64507         * modules/sysexits: Likewise.
64508         * modules/time: Likewise.
64509         * modules/unistd: Likewise.
64510         * modules/wchar: Likewise.
64511         * modules/wctype: Likewise.
64512         * modules/sys_stat: Change maintainer to "all".
64513         * modules/unistd: Likewise.
64514
64515 2007-06-20  Karl Berry  <karl@gnu.org>
64516
64517         * config/srclist.txt: track www changes in license files.
64518
64519 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
64520
64521         * build-aux/bootstrap: Remove stray dot.
64522         Make sure build_aux settings are honored when linking
64523         gnulib_extra_files.
64524
64525 2007-06-19  Eric Blake  <ebb9@byu.net>
64526
64527         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
64528         Allow compilation on cygwin.
64529
64530 2007-06-19  Jim Meyering  <jim@meyering.net>
64531
64532         xreadlink-with-size: Remove module.  No longer used.
64533         Ex-callers now use xreadlink or mreadlink-with-size.
64534         * modules/xreadlink-with-size: Remove module.
64535         * lib/xreadlink-with-size.c: Remove file.
64536         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
64537         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
64538         just before the function definition *is* accurate.
64539
64540         Eliminate one way canonicalize_filename_mode could exit.
64541         * lib/canonicalize.c (canonicalize_filename_mode):
64542         Use mreadlink_with_size, not xreadlink_with_size.
64543
64544 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
64545
64546         Detect porting problems to FreeBSD/arm, which has time_t wider than
64547         long int.  Original problem reported for GNU diff by Xin Li in
64548         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
64549         * modules/getdate (Depends-on): Add intprops, verify.
64550         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
64551         is an integer type no wider than long int.
64552
64553 2007-06-18  Jim Meyering  <jim@meyering.net>
64554
64555         New module: mreadlink-with-size.
64556         * MODULES.html.sh: Add mreadlink-with-size.
64557         * modules/mreadlink-with-size: New module
64558         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
64559         not xreadlink-with-size.
64560         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
64561
64562 2007-06-16  Bruno Haible  <bruno@clisp.org>
64563
64564         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
64565         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
64566         Reported by Gary V. Vaughan <gary@gnu.org>.
64567
64568 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
64569
64570         Revamp lchown so that it lives in unistd.h where it belongs.
64571         * lib/lchown.h: Remove.
64572         * lib/dirchownmod.c: Don't include lib/lchown.h.
64573         * lib/fchownat.c: Likewise.
64574         * lib/openat.c: Likewise.
64575         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
64576         does not follow symlinks.
64577         (EOPNOTSUPP): Define if not defined.
64578         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
64579         is defined to 0.
64580         (lchown): New decl.
64581         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
64582         Do not check for lchown decl.
64583         Set REPLACE_LCHOWN.
64584         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
64585         REPLACE_LCHOWN.
64586         * modules/chown: Make it clear it follows symlinks.
64587         * modules/lchown: Make it clear it doesn't follow symlinks.
64588         (Files): Remove lib/lchown.h
64589         (Depends-on): Add unistd.
64590         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
64591         (Include): Include <unistd.h>, not "lchown.h".
64592         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
64593         REPLACE_LCHOWN.
64594
64595 2007-06-15  Jim Meyering  <jim@meyering.net>
64596
64597         Change license (GPL to LGPL) of fsusage and dependents.
64598         * modules/fsusage (License): Change to LGPL.
64599         * modules/full-read (License): Likewise.
64600         * modules/full-write (License): Likewise.
64601         * modules/safe-read (License): Likewise.
64602         * modules/safe-write (License): Likewise.
64603
64604 2007-06-14  Ben Pfaff  <blp@gnu.org>
64605
64606         Missing part of allocsa -> malloca transition.
64607         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
64608         gl_MALLOCA.
64609
64610 2007-06-12  Bruno Haible  <bruno@clisp.org>
64611
64612         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
64613         to ia64, x86_64, i386.
64614         Reported by Eric Blake.
64615
64616 2007-06-12  Bruno Haible  <bruno@clisp.org>
64617
64618         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
64619         cross-compiling to x86_64.
64620
64621 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
64622
64623         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
64624         glitch reported by Ralf Wildenhues in
64625         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
64626
64627         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
64628         Vin Shelton.
64629
64630 2007-06-11  Bruno Haible  <bruno@clisp.org>
64631
64632         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
64633         replacement string.
64634         Reported by Eric Blake.
64635
64636 2007-06-10  Bruno Haible  <bruno@clisp.org>
64637
64638         Prepare vasnprintf code for use with Unicode strings.
64639         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
64640         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
64641         TYPE_U32_STRING.
64642         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
64643         a_u32_string variants.
64644         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64645         * lib/printf-args.c: Don't include config.h and the specification
64646         header if PRINTF_FETCHARGS is already defined.
64647         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64648         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
64649         TYPE_U16_STRING, TYPE_U32_STRING.
64650         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
64651         u16_directive, u16_directives, u32_directive, u32_directives): New
64652         types.
64653         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
64654         New declarations.
64655         * lib/printf-parse.c: Don't include config.h and the specification
64656         header if PRINTF_PARSE is already defined. Eliminate the set of
64657         parameters for WIDE_CHAR_VERSION; the user of this file must provide
64658         them now. Include c-ctype.h.
64659         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
64660         directive and CHAR_T_ONLY_ASCII.
64661         * lib/vasnprintf.c: Don't include config.h and the specification header
64662         if VASNPRINTF is already defined.
64663         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
64664         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
64665         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
64666         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
64667         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
64668         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
64669         code accordingly.
64670         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
64671         pad_ourselves also in this case, with the 'c' and 's' directives, and
64672         with a different notion of "width".
64673         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
64674
64675 2007-06-10  Bruno Haible  <bruno@clisp.org>
64676
64677         * modules/unistr/u32-mbsnlen: New file.
64678         * lib/unistr/u32-mbsnlen.c: New file.
64679
64680         * modules/unistr/u16-mbsnlen: New file.
64681         * lib/unistr/u16-mbsnlen.c: New file.
64682
64683         * modules/unistr/u8-mbsnlen: New file.
64684         * lib/unistr/u8-mbsnlen.c: New file.
64685
64686         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
64687         declarations.
64688
64689 2007-06-10  Bruno Haible  <bruno@clisp.org>
64690
64691         * lib/string_.h (mbsnlen): New declaration.
64692         * lib/mbsnlen.c: New file.
64693         * m4/mbsnlen.m4: New file.
64694         * modules/mbsnlen: New file.
64695         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
64696         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
64697         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
64698
64699 2007-06-10  Bruno Haible  <bruno@clisp.org>
64700
64701         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
64702
64703 2007-06-10  Bruno Haible  <bruno@clisp.org>
64704
64705         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
64706         * lib/mbuiter.h: Likewise.
64707
64708 2007-06-10  Bruno Haible  <bruno@clisp.org>
64709
64710         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
64711         declaration.
64712
64713 2007-06-10  Karl Berry  <karl@gnu.org>
64714
64715         * config/srclist.txt: remove gettext entries, Bruno prefers
64716         to update individually.
64717
64718 2007-06-10  Bruno Haible  <bruno@clisp.org>
64719
64720         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
64721         'maxlen'. Ensure only length + width bytes are allocated, not
64722         length + 1 + width.
64723
64724 2007-06-09  Bruno Haible  <bruno@clisp.org>
64725
64726         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
64727         (CHAR_T): Remove macro.
64728         (VASNPRINTF): Update.
64729
64730 2007-06-09  Bruno Haible  <bruno@clisp.org>
64731
64732         * MODULES.html.sh (Unicode string functions): Add the new modules.
64733
64734         * modules/uniconv/u32-conv-to-enc: New file.
64735         * lib/uniconv/u32-conv-to-enc.c: New file.
64736         * modules/uniconv/u32-conv-to-enc-tests: New file.
64737         * tests/uniconv/test-u32-conv-to-enc.c: New file.
64738
64739         * modules/uniconv/u16-conv-to-enc: New file.
64740         * lib/uniconv/u16-conv-to-enc.c: New file.
64741         * lib/uniconv/u-conv-to-enc.h: New file.
64742         * modules/uniconv/u16-conv-to-enc-tests: New file.
64743         * tests/uniconv/test-u16-conv-to-enc.c: New file.
64744
64745         * modules/uniconv/u8-conv-to-enc: New file.
64746         * lib/uniconv/u8-conv-to-enc.c: New file.
64747         * modules/uniconv/u8-conv-to-enc-tests: New file.
64748         * tests/uniconv/test-u8-conv-to-enc.c: New file.
64749
64750         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
64751         u32_conv_to_encoding): New declarations.
64752
64753 2007-06-09  Bruno Haible  <bruno@clisp.org>
64754
64755         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
64756
64757 2007-06-09  Bruno Haible  <bruno@clisp.org>
64758
64759         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
64760         * modules/malloca: Renamed from modules/allocsa, updated.
64761         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
64762         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
64763         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
64764         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
64765         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
64766         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
64767         * modules/xmalloca: Renamed from modules/xallocsa, updated.
64768         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
64769         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
64770         * modules/c-strcasestr (Depends-on): Update.
64771         * lib/c-strcasestr.c: Update.
64772         * modules/c-strstr (Depends-on): Update.
64773         * lib/c-strstr.c: Update.
64774         * modules/canonicalize-lgpl (Depends-on): Update.
64775         * lib/canonicalize-lgpl.c: Update.
64776         * modules/clean-temp (Depends-on): Update.
64777         * lib/clean-temp.c: Update.
64778         * modules/csharpcomp (Depends-on): Update.
64779         * lib/csharpcomp.c: Update.
64780         * modules/csharpexec (Depends-on): Update.
64781         * lib/csharpexec.c: Update.
64782         * modules/javacomp (Depends-on): Update.
64783         * lib/javacomp.c: Update.
64784         * modules/javaexec (Depends-on): Update.
64785         * lib/javaexec.c: Update.
64786         * modules/mbscasestr (Depends-on): Update.
64787         * lib/mbscasestr.c: Update.
64788         * modules/mbsstr (Depends-on): Update.
64789         * lib/mbsstr.c: Update.
64790         * modules/setenv (Depends-on): Update.
64791         * lib/setenv.c: Update.
64792         * modules/strcasestr (Depends-on): Update.
64793         * lib/strcasestr.c: Update.
64794         * modules/striconveha (Depends-on): Update.
64795         * lib/striconveha.c: Update.
64796         * modules/relocatable-prog-wrapper (Files): Update.
64797         * lib/relocwrapper.c: Update.
64798         * build-aux/install-reloc: Update.
64799         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
64800
64801 2007-06-08  Bruno Haible  <bruno@clisp.org>
64802
64803         Port to uClibc.
64804         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
64805         * lib/fpurge.c (fpurge): Likewise.
64806         * lib/freading.c (freading): Likewise.
64807         * lib/fseeko.c (rpl_fseeko): Likewise.
64808         * lib/fseterr.c (fseterr): Likewise.
64809         * lib/fwriting.c (fwriting): Likewise.
64810         * tests/test-fflush.c (main): Avoid a failure on uClibc.
64811
64812 2007-06-08  Bruno Haible  <bruno@clisp.org>
64813
64814         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
64815         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
64816         * modules/gettext (Files): Add m4/intlmacosx.m4.
64817
64818 2007-06-07  Bruno Haible  <bruno@clisp.org>
64819
64820         * modules/localename-tests: New file.
64821         * tests/test-localename.c: New file.
64822
64823         New module 'localename'.
64824         * lib/localename.h: New file.
64825         * lib/localename.c: New file, from GNU gettext.
64826         * m4/localename.m4: New file.
64827         * modules/localename: New file.
64828
64829 2007-06-07  Bruno Haible  <bruno@clisp.org>
64830
64831         Work around the lack of <wchar.h> on some builds of uClibc.
64832         * doc/headers/wchar.texi: Update.
64833         * lib/wchar_.h: Include <wchar.h> only if it exists.
64834         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
64835         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
64836         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
64837         doesn't exist.
64838         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
64839         * modules/mbfile (Depends-on): Add wchar.
64840         * modules/mbiter (Depends-on): Likewise.
64841         * modules/mbuiter (Depends-on): Likewise.
64842         Reported by Simon Josefsson.
64843
64844 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
64845
64846         Work around problem reported by Steven M. Schweda in
64847         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
64848         Tru64 5.1B with the Compaq compiler environment installed declares
64849         an 'isblank' function but does not define it in the C library.
64850         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
64851         * lib/regex_internal.h (isblank): Likewise.
64852         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
64853         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64854
64855 2007-06-05  Bruno Haible  <bruno@clisp.org>
64856
64857         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
64858         ia64.
64859         * modules/printf-safe: New file.
64860         * modules/fprintf-posix (Depends-on): Add printf-safe.
64861         * modules/printf-posix (Depends-on): Likewise.
64862         * modules/snprintf-posix (Depends-on): Likewise.
64863         * modules/sprintf-posix (Depends-on): Likewise.
64864         * modules/vasnprintf-posix (Depends-on): Likewise.
64865         * modules/vasprintf-posix (Depends-on): Likewise.
64866         * modules/vfprintf-posix (Depends-on): Likewise.
64867         * modules/vprintf-posix (Depends-on): Likewise.
64868         * modules/vsnprintf-posix (Depends-on): Likewise.
64869         * modules/vsprintf-posix (Depends-on): Likewise.
64870         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
64871         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
64872         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
64873         "no" on i386, x86_64, ia64.
64874         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
64875         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64876         on i386, x86_64, ia64.
64877         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
64878         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64879         on i386, x86_64, ia64.
64880         * tests/test-vasnprintf-posix.c: Include float.h.
64881         (LDBL80_WORDS): New macro.
64882         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64883         on i386, x86_64, ia64.
64884         * tests/test-vasprintf-posix.c: Include float.h.
64885         (LDBL80_WORDS): New macro.
64886         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64887         on i386, x86_64, ia64.
64888         * tests/test-snprintf-posix.c: Include float.h.
64889         * tests/test-sprintf-posix.c: Likewise.
64890         * tests/test-vsnprintf-posix.c: Likewise.
64891         * tests/test-vsprintf-posix.c: Likewise.
64892
64893 2007-06-05  Bruno Haible  <bruno@clisp.org>
64894
64895         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
64896         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
64897         non-IEEE numbers on i386, x86_64, ia64.
64898         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
64899         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
64900         * tests/test-isnanl.h: Include float.h.
64901         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
64902
64903 2007-06-05  Bruno Haible  <bruno@clisp.org>
64904
64905         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
64906         also the %a / %A. Handle the %a / %A code before this extra handling.
64907
64908 2007-06-05  Bruno Haible  <bruno@clisp.org>
64909
64910         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
64911         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
64912
64913 2007-06-05  Bruno Haible  <bruno@clisp.org>
64914
64915         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
64916         typo in variable name.
64917
64918 2007-06-05  Eric Blake  <ebb9@byu.net>
64919
64920         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
64921         Reported by Simon Josefsson.
64922
64923 2007-06-04  Bruno Haible  <bruno@clisp.org>
64924
64925         Avoid test failures on some PowerPC platforms.
64926         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
64927         Define differently for PowerPC.
64928         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
64929         Reported by Gary V. Vaughan <gary@gnu.org>.
64930
64931 2007-06-02  Bruno Haible  <bruno@clisp.org>
64932
64933         Fix test-stdint failure on FreeBSD/ia64.
64934         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
64935         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
64936         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
64937         * doc/headers/stdint.texi: Update.
64938
64939 2007-06-01  Bruno Haible  <bruno@clisp.org>
64940
64941         * tests/test-binary-io.c (main): Pass a third argument to open().
64942         Reported by Gary V. Vaughan <gary@gnu.org>.
64943
64944 2007-06-01  Bruno Haible  <bruno@clisp.org>
64945
64946         * doc/functions/frexpl.texi: Update for mingw.
64947
64948 2007-06-01  Bruno Haible  <bruno@clisp.org>
64949
64950         * tests/test-lseek.c (main): Disable test of errno for invalid third
64951         argument.
64952         * doc/functions/lseek.texi: Update.
64953         Reported by Gary V. Vaughan <gary@gnu.org>.
64954
64955 2007-05-28  Bruno Haible  <bruno@clisp.org>
64956
64957         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
64958
64959 2007-05-31  Eric Blake  <ebb9@byu.net>
64960
64961         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
64962         cross compiling.
64963
64964 2007-05-30  Eric Blake  <ebb9@byu.net>
64965         and Bruno Haible  <bruno@clisp.org>
64966
64967         Work around mingw test failures exposed by m4-1.4.9b.
64968         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
64969         * tests/test-unistd.c: Disable uid_t and git_t tests for the
64970         moment.
64971
64972 2007-05-30  Bruno Haible  <bruno@clisp.org>
64973
64974         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
64975         assuming that they are closed. Needed on HP-UX 11.
64976
64977 2007-05-29  Bruno Haible  <bruno@clisp.org>
64978
64979         Fix a problem with #include_next.
64980         * lib/dirent_.h: Split the double-inclusion guard.
64981         * lib/fcntl_.h: Likewise.
64982         * lib/float_.h: Likewise.
64983         * lib/iconv_.h: Likewise.
64984         * lib/inttypes_.h: Likewise.
64985         * lib/locale_.h: Likewise.
64986         * lib/math_.h: Likewise.
64987         * lib/netinet_in_.h: Likewise.
64988         * lib/search_.h: Likewise.
64989         * lib/signal_.h: Likewise.
64990         * lib/stdint_.h: Likewise.
64991         * lib/stdio_.h: Likewise.
64992         * lib/stdlib_.h: Likewise.
64993         * lib/string_.h: Likewise.
64994         * lib/sys_select_.h: Likewise.
64995         * lib/sys_socket_.h: Likewise.
64996         * lib/sys_stat_.h: Likewise.
64997         * lib/sys_time_.h: Likewise.
64998         * lib/sysexits_.h: Likewise.
64999         * lib/time_.h: Likewise.
65000         * lib/unistd_.h: Likewise.
65001         * lib/wchar_.h: Likewise.
65002         * lib/wctype_.h: Likewise.
65003
65004 2007-05-29  Bruno Haible  <bruno@clisp.org>
65005
65006         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
65007         for the moment.
65008
65009 2007-05-29  Bruno Haible  <bruno@clisp.org>
65010
65011         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
65012         invocation.
65013         Reported by Eric Blake.
65014
65015 2007-05-29  Bruno Haible  <bruno@clisp.org>
65016
65017         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
65018         compiling case.
65019
65020 2007-05-29  Eric Blake  <ebb9@byu.net>
65021             Bruno Haible  <bruno@clisp.org>
65022
65023         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
65024         cross compiles.
65025
65026 2007-05-28  Eric Blake  <ebb9@byu.net>
65027
65028         * modules/closein-tests (test_closein_LDADD): Support test on
65029         cygwin with libtool.
65030
65031 2007-05-28  Bruno Haible  <bruno@clisp.org>
65032
65033         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
65034         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
65035         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
65036         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
65037         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
65038         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
65039         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
65040         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
65041         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
65042
65043 2007-05-28  Eric Blake  <ebb9@byu.net>
65044
65045         Unconditionally include <config.h> in unit tests.
65046         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
65047         * tests/test-allocsa.c, tests/test-arcfour.c,
65048         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
65049         tests/test-array_list.c, tests/test-array_oset.c,
65050         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
65051         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
65052         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
65053         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
65054         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
65055         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
65056         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
65057         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
65058         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
65059         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
65060         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
65061         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
65062         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
65063         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
65064         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
65065         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
65066         test-md5.c, test-memmem.c, test-printf-posix.c,
65067         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
65068         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
65069         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
65070         test-strcasestr.c, test-striconv.c, test-striconveh.c,
65071         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
65072         test-vasnprintf-posix2.c, test-vasnprintf.c,
65073         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
65074         test-vfprintf-posix.c, test-vprintf-posix.c,
65075         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
65076         test-xvasprintf.c: Likewise.
65077
65078 2007-05-28  Bruno Haible  <bruno@clisp.org>
65079
65080         * gnulib-tool (func_import): Remember the --with-tests command-line
65081         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
65082         Reported by Eric Blake.
65083
65084 2007-05-28  Bruno Haible  <bruno@clisp.org>
65085
65086         * modules/ftell-tests: New file.
65087         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
65088         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
65089
65090         * lib/ftell.c: New file.
65091         * modules/ftell: New file.
65092         * m4/ftell.m4: New file.
65093         * doc/functions/ftell.texi: Update.
65094         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
65095         REPLACE_FTELL.
65096         * lib/stdio_.h (rpl_ftell): New declaration.
65097         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
65098         REPLACE_FTELL.
65099
65100 2007-05-28  Eric Blake  <ebb9@byu.net>
65101
65102         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
65103
65104 2007-05-28  Bruno Haible  <bruno@clisp.org>
65105
65106         * modules/fseek-tests: New file.
65107         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
65108         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
65109
65110         * lib/fseek.c: New file.
65111         * modules/fseek: New file.
65112         * m4/fseek.m4: New file.
65113         * doc/functions/fseek.texi: Update.
65114         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
65115         REPLACE_FSEEK.
65116         * lib/stdio_.h (rpl_fseek): New declaration.
65117         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
65118         REPLACE_FSEEK.
65119
65120 2007-05-28  Bruno Haible  <bruno@clisp.org>
65121
65122         * lib/stdio_.h (fflush): More comments.
65123
65124 2007-05-28  Bruno Haible  <bruno@clisp.org>
65125
65126         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
65127         runtime test.
65128
65129 2007-05-28  Eric Blake  <ebb9@byu.net>
65130
65131         Improve lseek module.
65132         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
65133         * lib/unistd_.h (lseek): Scale back link warning message.
65134         * tests/test-lseek.c: Beef up test.
65135         * tests/test-lseek.sh: Exercise more facets of lseek.
65136         Reported by Bruno Haible.
65137
65138 2007-05-28  Bruno Haible  <bruno@clisp.org>
65139
65140         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
65141         to define.
65142
65143 2007-05-27  Bruno Haible  <bruno@clisp.org>
65144
65145         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
65146
65147 2007-05-27  Bruno Haible  <bruno@clisp.org>
65148
65149         * modules/openmp: New file.
65150         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
65151         Noah Misch.
65152
65153 2007-05-26  Bruno Haible  <bruno@clisp.org>
65154
65155         * modules/chdir-long (Depends-on): Add fchdir.
65156         * modules/chdir-safer (Depends-on): Likewise.
65157         * modules/fts (Depends-on): Likewise.
65158         * modules/fts-lgpl (Depends-on): Likewise.
65159         * modules/openat (Depends-on): Likewise.
65160         * modules/savewd (Depends-on): Likewise.
65161
65162 2007-05-24  Eric Blake  <ebb9@byu.net>
65163
65164         Fix lseek on mingw.
65165         * modules/lseek: New module.
65166         * m4/lseek.m4: New file.
65167         * lib/lseek.c: New file.
65168         * modules/lseek-tests: New file.
65169         * tests/test-lseek.c: New file.
65170         * tests/test-lseek.sh: New file.
65171         * MODULES.html.sh: Document lseek module.
65172         * modules/fflush (Depends-on): Add lseek, fseeko.
65173         * modules/fseeko (Depends-on): Likewise.
65174         * modules/ftello (Depends-on): Likewise.
65175         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
65176         broken.
65177         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
65178         broken.
65179         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
65180         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
65181         * lib/ftello.c (rpl_ftello): Likewise.
65182         * tests/test-fseeko.c (main): Test this.
65183         * tests/test-fseeko.sh: Likewise.
65184         * tests/test-ftello.c (main): Likewise.
65185         * tests/test-ftello.sh: Likewise.
65186         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
65187         implies replacing fseek.
65188         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
65189         HAVE_FTELLO.
65190         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
65191         * modules/unistd (Makefile.am): Likewise.
65192         * lib/unistd_.h (lseek): Declare a replacement.
65193         * doc/functions/lseek.texi (lseek): Document this fix.
65194         * doc/functions/fseek.texi (fseek): Likewise.
65195         * doc/functions/ftell.texi (ftell): Likewise.
65196
65197 2007-05-24  Bruno Haible  <bruno@clisp.org>
65198
65199         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
65200         in the printed representation of a NaN.
65201         * tests/test-vasprintf-posix.c (test_function): Likewise.
65202         * tests/test-snprintf-posix.h (test_function): Likewise.
65203         * tests/test-sprintf-posix.h (test_function): Likewise.
65204         Reported by Eric Blake.
65205
65206 2007-05-23  Eric Blake  <ebb9@byu.net>
65207
65208         Fix fseeko/ftello on cygwin 1.5.24.
65209         * doc/functions/fseeko.texi (fseeko): Document the fix.
65210         * doc/functions/ftello.texi (ftello): Document the fix.
65211         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
65212         * doc/functions/stdout.text (stdout): New file.
65213         * doc/functions/stderr.text (stderr): New file.
65214         * doc/gnulib.texi (Function Substitutes): Use new files.
65215         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
65216         prior to 1.7.0.
65217         * tests/test-ftello.c (main): Likewise for ftello.
65218         * tests/test-fseeko.sh: New file.
65219         * tests/test-ftello.sh: New file.
65220         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
65221         with seekable stdin.
65222         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
65223         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
65224         (gl_REPLACE_FSEEKO): New macro.
65225         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
65226         * modules/fseeko (Files): Distribute fseeko.c.
65227         * modules/ftello (Files): Distribute ftello.c.
65228         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
65229         mode.
65230         * lib/ftello.c (rpl_ftello): New file.
65231         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
65232         fseeko, ftello.
65233         (gl_STDIN_LARGE_OFFSET): New macro.
65234         * modules/stdio (Makefile.am): Perform the replacement.
65235         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
65236
65237 2007-05-23  Bruno Haible  <bruno@clisp.org>
65238
65239         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
65240         GNULIB_POSIXCHECK is defined.
65241
65242 2007-05-21  Bruno Haible  <bruno@clisp.org>
65243
65244         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
65245         Check also the output for NaN arguments. When cross-compiling, guess
65246         no on IRIX.
65247         * lib/vasnprintf.c: Update comments.
65248         * tests/test-vasnprintf-posix.c (strisnan): New function.
65249         (test_function): Use it.
65250         * tests/test-vasprintf-posix.c (strisnan): New function.
65251         (test_function): Use it.
65252         * tests/test-snprintf-posix.h (strisnan): New function.
65253         (test_function): Use it.
65254         * tests/test-sprintf-posix.h (strisnan): New function.
65255         (test_function): Use it.
65256         Reported by Eric Blake.
65257
65258 2007-05-20  Bruno Haible  <bruno@clisp.org>
65259
65260         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
65261         numbers that fails on BeOS.
65262         * doc/functions/frexpl.texi: Update.
65263
65264 2007-05-20  Jim Meyering  <jim@meyering.net>
65265
65266         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
65267         forced upon us by glibc-2.6.
65268
65269 2007-05-20  Bruno Haible  <bruno@clisp.org>
65270
65271         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
65272         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
65273         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
65274         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
65275         NEED_PRINTF_INFINITE.
65276         (is_infinitel): New function.
65277         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
65278         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
65279         gl_PREREQ_VASNPRINTF_INFINITE.
65280         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
65281         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65282         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
65283         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
65284         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
65285         gl_PREREQ_VASNPRINTF_INFINITE.
65286         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65287         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65288         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65289         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65290         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65291         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65292         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65293         * doc/functions/fprintf.texi: Update.
65294         * doc/functions/printf.texi: Update.
65295         * doc/functions/snprintf.texi: Update.
65296         * doc/functions/sprintf.texi: Update.
65297         * doc/functions/vfprintf.texi: Update.
65298         * doc/functions/vprintf.texi: Update.
65299         * doc/functions/vsnprintf.texi: Update.
65300         * doc/functions/vsprintf.texi: Update.
65301
65302 2007-05-20  Bruno Haible  <bruno@clisp.org>
65303
65304         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
65305         was not found in libc.
65306         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
65307
65308 2007-05-20  Bruno Haible  <bruno@clisp.org>
65309
65310         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65311         printed as "-nan" instead of "nan".
65312         * tests/test-vasprintf-posix.c (test_function): Likewise.
65313         * tests/test-snprintf-posix.h (test_function): Likewise.
65314         * tests/test-sprintf-posix.h (test_function): Likewise.
65315         Needed for HP-UX 11.
65316
65317 2007-05-20  Jim Meyering  <jim@meyering.net>
65318
65319         Fix buggy test for the fchownat-deref bug.
65320         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
65321         symlink required for the run-test.  Without it, this test would
65322         always declare that fchownat doesn't work, and client code would
65323         unnecessarily use the replacement function with fixed libc.
65324         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
65325         Reported by Greg Schafer.
65326
65327 2007-05-19  Bruno Haible  <bruno@clisp.org>
65328
65329         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
65330         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
65331         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
65332         Needed for IRIX 6.5 and Solaris 2.5.1.
65333
65334 2007-05-19  Bruno Haible  <bruno@clisp.org>
65335
65336         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
65337         (test_function): Skip tests involving -0.0 on platforms where
65338         -0.0 = 0.0.
65339         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
65340         (test_function): Skip tests involving -0.0 on platforms where
65341         -0.0 = 0.0.
65342         * tests/test-snprintf-posix.h (have_minus_zero): New function.
65343         (test_function): Skip tests involving -0.0 on platforms where
65344         -0.0 = 0.0.
65345         * tests/test-sprintf-posix.h (have_minus_zero): New function.
65346         (test_function): Skip tests involving -0.0 on platforms where
65347         -0.0 = 0.0.
65348         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
65349         tests.
65350         * tests/test-printf-posix.h (test_function): Likewise.
65351         * tests/test-printf-posix.output: Remove all -0.0 related results.
65352         Needed for IRIX 6.5.
65353
65354 2007-05-19  Bruno Haible  <bruno@clisp.org>
65355
65356         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65357         printed as "nan0x7fffffff" instead of "nan".
65358         * tests/test-vasprintf-posix.c (test_function): Likewise.
65359         * tests/test-snprintf-posix.h (test_function): Likewise.
65360         * tests/test-sprintf-posix.h (test_function): Likewise.
65361         * tests/test-fprintf-posix.h (NaN): Remove macro.
65362         (test_function): Remove all NaN related tests.
65363         * tests/test-printf-posix.h (NaN): Remove macro.
65364         (test_function): Remove all NaN related tests.
65365         * tests/test-printf-posix.output: Remove all NaN related results.
65366         Needed for IRIX 6.5.
65367
65368 2007-05-19  Bruno Haible  <bruno@clisp.org>
65369
65370         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
65371         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
65372
65373 2007-05-19  Bruno Haible  <bruno@clisp.org>
65374
65375         * lib/float_.h: New file.
65376         * m4/float_h.m4: New file.
65377         * modules/float: New file.
65378         * modules/isnanl (Dependencies): Add float.
65379         * modules/isnanl-nolibm (Dependencies): Likewise.
65380         * modules/mathl (Dependencies): Likewise.
65381         * modules/printf-frexpl (Dependencies): Likewise.
65382         * modules/signbit (Dependencies): Likewise.
65383         * modules/vasnprintf (Dependencies): Likewise.
65384         * doc/headers/float.texi: Update.
65385
65386 2007-05-19  Jim Meyering  <jim@meyering.net>
65387
65388         * lib/utimens.c (gl_futimens): Rename from futimens,
65389         now that glibc-2.6 declares futimens.
65390         * lib/utimens.h: Likewise.
65391
65392 2007-05-19  Bruno Haible  <bruno@clisp.org>
65393
65394         Avoid test failures on mingw.
65395         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
65396         * tests/test-printf-posix.sh: Likewise.
65397         * tests/test-vfprintf-posix.sh: Likewise.
65398         * tests/test-vprintf-posix.sh: Likewise.
65399
65400 2007-05-19  Bruno Haible  <bruno@clisp.org>
65401
65402         Fix *printf result for NaN, Inf, -0.0 on mingw.
65403         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
65404         * lib/vasnprintf.c: Include math.h and isnan.h.
65405         (is_infinite_or_zero): New function.
65406         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
65407         values in the %f, %F, %e, %E, %g, %G directives.
65408         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
65409         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65410         gl_PRINTF_INFINITE and test its result. Invoke
65411         gl_PREREQ_VASNPRINTF_INFINITE.
65412         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65413         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65414         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65415         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65416         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65417         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65418         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65419         * doc/functions/fprintf.texi: Update.
65420         * doc/functions/printf.texi: Update.
65421         * doc/functions/snprintf.texi: Update.
65422         * doc/functions/sprintf.texi: Update.
65423         * doc/functions/vfprintf.texi: Update.
65424         * doc/functions/vprintf.texi: Update.
65425         * doc/functions/vsnprintf.texi: Update.
65426         * doc/functions/vsprintf.texi: Update.
65427
65428 2007-05-19  Bruno Haible  <bruno@clisp.org>
65429
65430         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
65431         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
65432         Instead of multiplying with 10^k, set extra_zeroes to k.
65433         (scale10_round_long_double): Remove function.
65434
65435 2007-05-18  Bruno Haible  <bruno@clisp.org>
65436
65437         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
65438         introduced on 2007-05-06.
65439
65440 2007-05-18  Bruno Haible  <bruno@clisp.org>
65441
65442         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
65443         %g directives.
65444         * tests/test-vasprintf-posix.c (test_function): Likewise.
65445         * tests/test-snprintf-posix.h (test_function): Likewise.
65446         * tests/test-sprintf-posix.h (test_function): Likewise.
65447
65448 2007-05-18  Bruno Haible  <bruno@clisp.org>
65449
65450         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
65451         (strmatch): New function.
65452         (test_function): Test the %f directive on numbers of various exponents.
65453         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
65454         (strmatch): New function.
65455         (test_function): Test the %f directive on numbers of various exponents.
65456         * tests/test-snprintf-posix.h (strmatch): New function.
65457         (test_function): Test the %f directive on numbers of various exponents.
65458         * tests/test-sprintf-posix.h (strmatch): New function.
65459         (test_function): Test the %f directive on numbers of various exponents.
65460         * tests/test-snprintf-posix.c (SIZEOF): New macro.
65461         * tests/test-sprintf-posix.c (SIZEOF): New macro.
65462         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
65463         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
65464
65465 2007-05-18  Bruno Haible  <bruno@clisp.org>
65466
65467         Add support for 'long double' number output.
65468         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
65469         * lib/vasnprintf.c: Include math.h and float+.h.
65470         (mp_limb_t): New type.
65471         (GMP_LIMB_BITS): New macro.
65472         (mp_twolimb_t): New type.
65473         (GMP_TWOLIMB_BITS): New macro.
65474         (mpn_t): New type.
65475         (multiply, divide, convert_to_decimal, decode_long_double,
65476         scale10_round_long_double, scale10_round_decimal_long_double,
65477         floorlog10l): New functions.
65478         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
65479         for the %f, %F, %e, %E, %g, %G directives.
65480         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
65481         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65482         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
65483         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
65484         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65485         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65486         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65487         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65488         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65489         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65490         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65491         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
65492         * modules/snprintf-posix (Depends-on): Likewise.
65493         * modules/sprintf-posix (Depends-on): Likewise.
65494         * modules/vasnprintf-posix (Depends-on): Likewise.
65495         * modules/vasprintf-posix (Depends-on): Likewise.
65496         * modules/vfprintf-posix (Depends-on): Likewise.
65497         * modules/vsnprintf-posix (Depends-on): Likewise.
65498         * modules/vsprintf-posix (Depends-on): Likewise.
65499         * modules/vasnprintf (Files): Add lib/float+.h.
65500         * doc/functions/fprintf.texi: Update.
65501         * doc/functions/printf.texi: Update.
65502         * doc/functions/snprintf.texi: Update.
65503         * doc/functions/sprintf.texi: Update.
65504         * doc/functions/vfprintf.texi: Update.
65505         * doc/functions/vprintf.texi: Update.
65506         * doc/functions/vsnprintf.texi: Update.
65507         * doc/functions/vsprintf.texi: Update.
65508
65509 2007-05-18  Bruno Haible  <bruno@clisp.org>
65510
65511         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
65512
65513 2007-05-18  Bruno Haible  <bruno@clisp.org>
65514
65515         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
65516         for printing 64-bit integers. Needed for mingw.
65517
65518 2007-05-18  Bruno Haible  <bruno@clisp.org>
65519
65520         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
65521         gl_FUNC_FREXPL_WORKS.
65522         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
65523
65524 2007-05-18  Bruno Haible  <bruno@clisp.org>
65525
65526         * modules/frexpl-nolibm-tests: New file.
65527
65528         * modules/frexpl-nolibm: New file.
65529         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
65530
65531 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
65532
65533         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
65534         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65535         GCC 4.2, which otherwise issues a lot of warnings.
65536         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
65537         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
65538         Likewise.
65539         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
65540         * modules/iconv_open (iconv.h): Likewise.
65541         * modules/locale (locale.h): Likewise.
65542         * modules/netinet_in (netinet/in.h): Likewise.
65543         * modules/sys_select (sys_select.h): Likewise.
65544         * modules/sys_socket (sys/socket.h): Likewise.
65545         * modules/sys_stat (sys/stat.h): Likewise.
65546         * modules/sysexits (sysexits.h): Likewise.
65547         * modules/unistd (unistd.h): Likewise.
65548
65549 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65550
65551         * modules/closein-tests (Makefile.am): Distribute
65552         `test-closein.sh'.
65553
65554 2007-05-17  Bruno Haible  <bruno@clisp.org>
65555
65556         * tests/test-printf-posix.output: Renamed from
65557         tests/test-fprintf-posix.out.
65558         * modules/fprintf-posix-tests: Update.
65559         * modules/printf-posix-tests: Update.
65560         * modules/vfprintf-posix-tests: Update.
65561         * modules/vprintf-posix-tests: Update.
65562         * tests/test-fprintf-posix.sh: Update.
65563         * tests/test-printf-posix.sh: Update.
65564         * tests/test-vfprintf-posix.sh: Update.
65565         * tests/test-vprintf-posix.sh: Update.
65566         Reported by Ralf Wildenhues.
65567
65568 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
65569
65570         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
65571         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65572         GCC 4.2, which otherwise issues a lot of warnings.
65573         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
65574         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
65575         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
65576         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
65577         it should no longer be needed.
65578         * lib/string_.h: Likewise.
65579         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
65580         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
65581         * modules/inttypes (inttypes.h): Likewise.
65582         * modules/math (math.h): Likewise.
65583         * modules/search (search.h): Likewise.
65584         * modules/signal (signal.h): Likewise.
65585         * modules/stdint (stdint.h): Likewise.
65586         * modules/stdio (stdio.h): Likewise.
65587         * modules/stdlib (stdlib.h): Likewise.
65588         * modules/string (string.h): Likewise.
65589         * modules/sys_time (sys/time.h): Likewise.
65590         * modules/time (time.h): Likewise.
65591         * modules/wchar (wchar.h): Likewise.
65592         * modules/wctype (wtype.h): Likewise.
65593
65594 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
65595
65596         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
65597
65598 2007-05-13  Bruno Haible  <bruno@clisp.org>
65599
65600         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
65601         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65602         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
65603         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65604         (gl_PREREQ_STRTOK_R): Don't require it here.
65605
65606 2007-05-13  Bruno Haible  <bruno@clisp.org>
65607
65608         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
65609         when used in C++ mode.
65610
65611 2007-05-12  Bruno Haible  <bruno@clisp.org>
65612
65613         * lib/linebuffer.h: Tweak doc.
65614         * lib/linebuffer.c: Likewise.
65615
65616 2007-05-12  James Youngman  <jay@gnu.org>
65617
65618         * lib/linebuffer.c (readlinebuffer_delim): New function,
65619         like readlinebuffer, but use a caller-specified delimiter.
65620         (readlinebuffer): Just call readlinebuffer_delim with '\n'
65621         as the delimiter.
65622         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
65623
65624 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65625
65626         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
65627         * modules/openat (Files): Remove openat-die.c.
65628         (Depends-on): Add openat-die.
65629         * modules/openat-die: New module.
65630
65631 2007-05-06  Bruno Haible  <bruno@clisp.org>
65632
65633         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
65634         Update with info about Cygwin.
65635         * doc/functions/fprintf.texi: Update.
65636         * doc/functions/printf.texi: Update.
65637         * doc/functions/snprintf.texi: Update.
65638         * doc/functions/sprintf.texi: Update.
65639         * doc/functions/vfprintf.texi: Update.
65640         * doc/functions/vprintf.texi: Update.
65641         * doc/functions/vsnprintf.texi: Update.
65642         * doc/functions/vsprintf.texi: Update.
65643         Reported by Eric Blake.
65644
65645 2007-05-06  Bruno Haible  <bruno@clisp.org>
65646
65647         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
65648         padding ourselves for the floating-point directives.
65649         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
65650         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
65651         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65652         gl_PRINTF_FLAG_ZERO and test its result. Invoke
65653         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
65654         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65655         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65656         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65657         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65658         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65659         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65660         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65661         * tests/test-snprintf-posix.h (test_function): Also check the width
65662         and some flags in the %f directive.
65663         * tests/test-sprintf-posix.h (test_function): Likewise.
65664         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65665         * tests/test-vasprintf-posix.c (test_function): Likewise.
65666         * doc/functions/fprintf.texi: Update.
65667         * doc/functions/printf.texi: Update.
65668         * doc/functions/snprintf.texi: Update.
65669         * doc/functions/sprintf.texi: Update.
65670         * doc/functions/vfprintf.texi: Update.
65671         * doc/functions/vprintf.texi: Update.
65672         * doc/functions/vsnprintf.texi: Update.
65673         * doc/functions/vsprintf.texi: Update.
65674
65675 2007-05-06  Bruno Haible  <bruno@clisp.org>
65676
65677         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
65678         pass the ' flag character to sprintf or snprintf.
65679         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
65680         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
65681         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65682         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
65683         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
65684         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65685         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65686         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65687         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65688         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65689         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65690         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65691         * tests/test-snprintf-posix.h (test_function): Also check the grouping
65692         flag.
65693         * tests/test-sprintf-posix.h (test_function): Likewise.
65694         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65695         * tests/test-vasprintf-posix.c (test_function): Likewise.
65696         * doc/functions/fprintf.texi: Update.
65697         * doc/functions/printf.texi: Update.
65698         * doc/functions/snprintf.texi: Update.
65699         * doc/functions/sprintf.texi: Update.
65700         * doc/functions/vfprintf.texi: Update.
65701         * doc/functions/vprintf.texi: Update.
65702         * doc/functions/vsnprintf.texi: Update.
65703         * doc/functions/vsprintf.texi: Update.
65704
65705 2007-05-01  Bruno Haible  <bruno@clisp.org>
65706
65707         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
65708
65709 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
65710
65711         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
65712         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
65713
65714 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65715
65716         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
65717         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
65718         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
65719
65720 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
65721
65722         * lib/argp-help.c (struct hol_entry): New member `ord'.
65723         (HOL_ENTRY_PTRCMP): Use ord for comparison
65724         (hol_sort): Initialize ord.
65725
65726 2007-05-01  Bruno Haible  <bruno@clisp.org>
65727
65728         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
65729         Reported by Eric Blake.
65730         * doc/gnulib.texi (Function Substitutes): Update.
65731
65732 2007-05-01  Bruno Haible  <bruno@clisp.org>
65733
65734         * doc/functions.texi: Remove file, now redundant through
65735         doc/functions/*.texi.
65736
65737 2007-05-01  Bruno Haible  <bruno@clisp.org>
65738
65739         * modules/argp (Depends-on): Add sleep.
65740
65741 2007-05-01  Bruno Haible  <bruno@clisp.org>
65742
65743         * modules/sleep-tests: New file.
65744         * tests/test-sleep.c: New file.
65745
65746         * modules/sleep: New file.
65747         * lib/sleep.c: New file.
65748         * m4/sleep.m4: New file.
65749         * lib/unistd_.h (sleep): New declaration.
65750         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
65751         HAVE_SLEEP.
65752         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
65753         * doc/functions/sleep.texi: Document the sleep module.
65754
65755 2007-05-01  Bruno Haible  <bruno@clisp.org>
65756
65757         * lib/sigprocmask.h: Remove file.
65758         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
65759         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
65760         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
65761         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
65762         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
65763         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
65764         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
65765         HAVE_SIGSET_T as a shell variable.
65766         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
65767         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
65768         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
65769         (Depends-on): Add signal. Remove verify.
65770         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
65771         (Include): Mention <signal.h> instead of sigprocmask.h.
65772         * NEWS: Mention the change.
65773         * lib/fatal-signal.c: Don't include sigprocmask.h.
65774
65775 2007-05-01  Bruno Haible  <bruno@clisp.org>
65776
65777         * modules/signal: New file.
65778         * lib/signal_.h: New file.
65779         * m4/signal_h.m4: New file.
65780
65781 2007-05-01  Bruno Haible  <bruno@clisp.org>
65782
65783         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
65784         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
65785         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
65786         HAVE_WCTYPE_CTMP_BUG into wctype.h.
65787
65788 2007-05-01  Bruno Haible  <bruno@clisp.org>
65789
65790         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
65791         configure time.
65792         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
65793         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
65794         * modules/sys_stat (Makefile.am): Substitute their values into
65795         sys/stat.h.
65796
65797 2007-05-01  Bruno Haible  <bruno@clisp.org>
65798
65799         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
65800         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
65801         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
65802
65803 2007-05-01  Bruno Haible  <bruno@clisp.org>
65804
65805         * doc/header/assert.texi: Undo last change: don't mention the gnulib
65806         'assert' module here.
65807
65808 2007-05-01  Bruno Haible  <bruno@clisp.org>
65809
65810         * doc/functions/*.texi: New files.
65811         * doc/functions/google-ranking.txt: New file.
65812         * doc/gnulib.texi (Function Substitutes): New chapter.
65813         (ctime, inet_ntoa): Remove sections.
65814         * doc/ctime.texi: Remove file.
65815         * doc/inet_ntoa.texi: Remove file.
65816         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
65817         dependencies.
65818         (%.info): New rule, specifying a --reference-limit.
65819
65820 2007-05-01  Bruno Haible  <bruno@clisp.org>
65821
65822         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
65823
65824 2007-05-01  Bruno Haible  <bruno@clisp.org>
65825
65826         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
65827         the portability of 'mkdir' to mingw systems.
65828
65829 2007-05-01  Bruno Haible  <bruno@clisp.org>
65830
65831         * doc/headers/google-ranking.txt: New file.
65832
65833 2007-04-30  Eric Blake  <ebb9@byu.net>
65834
65835         Prefer fseeko to fseek.
65836         * modules/getpass (Depends-on): Add fseeko.
65837         * lib/getpass.c (getpass): Use fseeko, not fseek.
65838
65839 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
65840
65841         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
65842         assumes the sorting is stable, while most qsort implementations
65843         are not.  Use argument addresses to ensure they never compare as
65844         equal.
65845
65846         * tests/test-argp-2.sh (usage-indent test): Fix output
65847         (func_compare): Restore diff options
65848         * tests/test-argp.c: Restore #include "progname.h"
65849
65850 2007-04-29  Bruno Haible  <bruno@clisp.org>
65851
65852         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
65853         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65854         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
65855         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65856         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
65857         (configure.ac): Define CHECK_SNPRINTF_POSIX.
65858         (TESTS, check_PROGRAMS): Add test-snprintf.
65859         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
65860         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
65861         (TESTS, check_PROGRAMS): Add test-vsnprintf.
65862         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
65863         assertions that fail on HP-UX, OSF/1, or IRIX.
65864         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
65865
65866 2007-04-29  Bruno Haible  <bruno@clisp.org>
65867
65868         * MODULES.html.sh (posix_functions): Remove 'contents'.
65869
65870 2007-04-29  Karl Berry  <karl@gnu.org>
65871
65872         * config/srclist.txt (gendocs_template_min): new entry.
65873
65874 2007-04-29  Bruno Haible  <bruno@clisp.org>
65875
65876         Work around fpurge bug on BSD systems.
65877         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
65878         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
65879         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
65880         fpurge to rpl_fpurge if the system already has this function.
65881         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
65882         the case where the system already has this function. Correct invariants
65883         on BSD systems.
65884         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
65885         BSD systems.
65886
65887 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
65888
65889         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
65890         proposed by Sven Verdoolaege.
65891
65892         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
65893         options.
65894         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
65895         (usage and help tests): Update
65896
65897 2007-04-29  Bruno Haible  <bruno@clisp.org>
65898
65899         * tests/test-fflush.c (main): Use a file of size 17, not 10.
65900         Print more information in case of failure. Disable a test on BeOS.
65901
65902 2007-04-29  Bruno Haible  <bruno@clisp.org>
65903
65904         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
65905         This helps debugging on systems on which no gdb is available.
65906
65907 2007-04-29  Bruno Haible  <bruno@clisp.org>
65908
65909         * lib/freading.h: Improve comments.
65910         * lib/fwriting.h: Likewise.
65911         * tests/test-freading.c (main): Don't check freading immediately after
65912         repositioning. Needed for glibc.
65913
65914 2007-04-29  Bruno Haible  <bruno@clisp.org>
65915
65916         * lib/freading.c (freading): Trivial simplification.
65917
65918 2007-04-28  Bruno Haible  <bruno@clisp.org>
65919
65920         * tests/test-fwriting.c (main): Also test the interaction between
65921         fflush and fwriting.
65922         * modules/fwriting-tests (Depends-on): Add fflush.
65923
65924         * tests/test-freading.c (main): Also test the interaction between
65925         fflush and freading.
65926         * modules/freading-tests (Depends-on): Add fflush.
65927
65928 2007-04-28  Bruno Haible  <bruno@clisp.org>
65929
65930         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
65931         fseeko and ftello.
65932         Suggested by Eric Blake.
65933
65934 2007-04-28  Jim Meyering  <jim@meyering.net>
65935
65936         Avoid false-negative in gl_STDINT_H's C99 conformance test.
65937         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
65938         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
65939
65940 2007-04-27  Eric Blake  <ebb9@byu.net>
65941
65942         * doc/headers/assert.texi (assert.h): Document assert module use.
65943
65944 2007-04-27  Bruno Haible  <bruno@clisp.org>
65945
65946         * doc/headers/*.texi: New files.
65947         * doc/gnulib.texi (Header File Substitutes): New chapter.
65948         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
65949         dependencies.
65950         (standards.info ,standards.html, standards.dvi): Update dependencies.
65951         (mostlyclean, clean): New targets.
65952
65953 2007-04-27  Bruno Haible  <bruno@clisp.org>
65954
65955         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
65956         * modules/sysexits (Files, Makefile.am): Update.
65957
65958         * lib/sys_socket_.h: Renamed from lib/socket_.h.
65959         * modules/sys_socket (Files, Makefile.am): Update.
65960
65961         * lib/sys_stat_.h: Renamed from lib/stat_.h.
65962         * modules/sys_stat (Files, Makefile.am): Update.
65963
65964 2007-04-27  Eric Blake  <ebb9@byu.net>
65965
65966         * lib/freading.h: Improve comments.
65967         * lib/fwriting.h: Likewise.
65968         * lib/fflush.c: Likewise.
65969
65970         Fix closein for mingw.
65971         * modules/closein-tests: Add tests for closein.
65972         * tests/test-closein.c: New file.
65973         * tests/test-closein.sh: Likewise.
65974         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
65975         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
65976
65977 2007-04-27  Bruno Haible  <bruno@clisp.org>
65978
65979         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
65980         version is < 6.
65981         * lib/math_.h [__DECC]: Likewise.
65982         * lib/stdio_.h [__DECC]: Likewise.
65983         * lib/stdlib_.h [__DECC]: Likewise.
65984         * lib/string_.h [__DECC]: Likewise.
65985         * lib/time_.h [__DECC]: Likewise.
65986         * lib/wchar_.h [__DECC]: Likewise.
65987         * lib/wctype_.h [__DECC]: Likewise.
65988
65989 2007-04-27  Bruno Haible  <bruno@clisp.org>
65990
65991         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
65992
65993 2007-04-27  Bruno Haible  <bruno@clisp.org>
65994
65995         * lib/fflush.c: Add comments.
65996         * modules/fpurge-tests (Depends-on): Add fflush.
65997         * modules/freadable-tests (Depends-on): Likewise.
65998         * modules/fwritable-tests (Depends-on): Likewise.
65999
66000 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
66001
66002         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
66003         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
66004         Report by Bruno Haible <bruno@clisp.org>.
66005
66006 2007-04-26  Eric Blake  <ebb9@byu.net>
66007
66008         Fix fflush on mingw.
66009         * modules/fflush (Depends-on): Add freading.
66010         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
66011         but unread data.
66012
66013 2007-04-26  Eric Blake  <ebb9@byu.net>
66014         and Bruno Haible  <bruno@clisp.org>
66015
66016         Implement freading and fwriting.
66017         * lib/freading.c: New file.
66018         * lib/freading.h: Likewise.
66019         * m4/freading.m4: Likewise.
66020         * modules/freading: Likewise.
66021         * modules/freading-tests: Likewise.
66022         * tests/test-freading.c: Likewise.
66023         * lib/fwriting.c: New file.
66024         * lib/fwriting.h: Likewise.
66025         * m4/fwriting.m4: Likewise.
66026         * modules/fwriting: Likewise.
66027         * modules/fwriting-tests: Likewise.
66028         * tests/test-fwriting.c: Likewise.
66029         * MODULES.html.sh (File stream based Input/Output): Mention them.
66030
66031 2007-04-26  Bruno Haible  <bruno@clisp.org>
66032
66033         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
66034         'long' when we assume it.
66035         Suggested by Eric Blake.
66036
66037 2007-04-26  Bruno Haible  <bruno@clisp.org>
66038
66039         Ensure fseeko, ftello are declared on glibc systems.
66040         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
66041         * modules/fseeko (configure.ac-early): Likewise.
66042         * modules/ftello (configure.ac-early): Likewise.
66043         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
66044         AC_FUNC_FSEEKO for this.
66045         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
66046         (gl_CHECK_FSEEKO): Remove macro.
66047
66048 2007-04-26  Bruno Haible  <bruno@clisp.org>
66049
66050         * tests/test-fflush.c (main): Also check the ftell result after
66051         fflush and fseek/fseeko.
66052         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
66053         file descriptor position cache in the stream.
66054         * lib/fseeko.c (rpl_fseeko): Likewise.
66055
66056 2007-04-26  Bruno Haible  <bruno@clisp.org>
66057
66058         * modules/fflush-tests (Depends-on): Add fseeko.
66059
66060 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
66061             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66062
66063         * lib/argz_.h: ensure error_t definition is obtained in same
66064         mechanism system argz.h would have.
66065         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
66066         argz facilities are known bad.  Err on the side of caution if
66067         cross-compiling.
66068
66069 2007-04-25  Eric Blake  <ebb9@byu.net>
66070
66071         * lib/fpurge.c (includes): Use stdlib.h for free.
66072         * tests/test-fflush.c (main): Also test fflush-fseeko.
66073
66074 2007-04-25  Bruno Haible  <bruno@clisp.org>
66075
66076         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
66077         * lib/fseeko.c: New file.
66078         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
66079         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
66080         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
66081         gl_FUNC_FSEEKO.
66082         (gl_FUNC_FSEEKO): Invoke it.
66083         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
66084         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
66085         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
66086
66087 2007-04-25  Bruno Haible  <bruno@clisp.org>
66088
66089         * modules/fflush (Depends-on): Add ftello.
66090
66091 2007-04-25  Bruno Haible  <bruno@clisp.org>
66092
66093         * modules/ftello-tests: New file.
66094         * tests/test-ftello.c: New file.
66095
66096         * modules/ftello: New file.
66097         * m4/ftello.m4: New file.
66098         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
66099         HAVE_FTELLO.
66100         * lib/stdio_.h (ftello): New declaration.
66101         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
66102         HAVE_FTELLO.
66103
66104 2007-04-25  Bruno Haible  <bruno@clisp.org>
66105
66106         * modules/fseeko-tests: New file.
66107         * tests/test-fseeko.c: New file.
66108
66109         * modules/fseeko: New file.
66110         * m4/fseeko.m4: New file.
66111         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
66112         HAVE_FSEEKO.
66113         * lib/stdio_.h (fseeko): New declaration.
66114         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
66115         HAVE_FSEEKO.
66116
66117 2007-04-25  Bruno Haible  <bruno@clisp.org>
66118
66119         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
66120
66121 2007-04-25  Bruno Haible  <bruno@clisp.org>
66122
66123         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
66124         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
66125         * tests/test-unistd.c: Likewise.
66126         * tests/test-fcntl.c: Likewise.
66127
66128 2007-04-23  Eric Blake  <ebb9@byu.net>
66129
66130         * lib/fflush.c: Fix missing include.
66131         Reported by Bruno Haible.
66132
66133 2007-04-23  Bruno Haible  <bruno@clisp.org>
66134
66135         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
66136         Reported by Eric Blake.
66137
66138 2007-04-23  Bruno Haible  <bruno@clisp.org>
66139
66140         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
66141
66142 2007-04-23  Bruno Haible  <bruno@clisp.org>
66143
66144         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
66145
66146 2007-04-23  Bruno Haible  <bruno@clisp.org>
66147
66148         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
66149         Needed on HP-UX 11.
66150
66151 2007-04-16  Eric Blake  <ebb9@byu.net>
66152
66153         Make fflush rely on fpurge.
66154         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
66155         open coding all variants.
66156         * modules/fflush (Depends-on): Add fpurge and unistd.
66157         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
66158         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
66159
66160         Fix --with-tests compilation on cygwin.
66161         * modules/argmatch-tests (Makefile.am): List gnulib library first
66162         in LDADD.
66163         * modules/argp-tests (Makefile.am): Likewise.
66164         * modules/array-list-tests (Makefile.am): Likewise.
66165         * modules/array-oset-tests (Makefile.am): Likewise.
66166         * modules/avltree-list-tests (Makefile.am): Likewise.
66167         * modules/avltree-oset-tests (Makefile.am): Likewise.
66168         * modules/avltreehash-list-tests (Makefile.am): Likewise.
66169         * modules/carray-list-tests (Makefile.am): Likewise.
66170         * modules/dirname-tests (Makefile.am): Likewise.
66171         * modules/frexp-tests (Makefile.am): Likewise.
66172         * modules/isnanl-tests (Makefile.am): Likewise.
66173         * modules/linked-list-tests (Makefile.am): Likewise.
66174         * modules/linkedhash-list-tests (Makefile.am): Likewise.
66175         * modules/lock-tests (Makefile.am): Likewise.
66176         * modules/rbtree-list-tests (Makefile.am): Likewise.
66177         * modules/rbtree-oset-tests (Makefile.am): Likewise.
66178         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
66179         * modules/tls-tests (Makefile.am): Likewise.
66180         * modules/tsearch-tests (Makefile.am): Likewise.
66181         * modules/xvasprintf-tests (Makefile.am): Likewise.
66182
66183         Fix fpurge for cygwin.
66184         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
66185         value.
66186         * modules/fpurge-tests (Depends-on): Clean up trash.
66187
66188 2007-04-16  Simon Josefsson  <simon@josefsson.org>
66189
66190         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
66191
66192         * m4/autobuild.m4: Re-indent.
66193
66194 2007-04-13  Bruno Haible  <bruno@clisp.org>
66195
66196         * modules/fpurge-tests: New file.
66197         * tests/test-fpurge.c: New file.
66198
66199         * modules/fpurge: New file.
66200         * lib/fpurge.h: New file.
66201         * lib/fpurge.c: New file.
66202         * m4/fpurge.m4: New file.
66203
66204 2007-04-13  Bruno Haible  <bruno@clisp.org>
66205
66206         * modules/fbufmode-tests: New file.
66207         * tests/test-fbufmode.c: New file.
66208
66209         * modules/fbufmode: New file.
66210         * lib/fbufmode.h: New file.
66211         * lib/fbufmode.c: New file.
66212         * m4/fbufmode.m4: New file.
66213
66214 2007-04-13  Bruno Haible  <bruno@clisp.org>
66215
66216         * modules/fwritable-tests: New file.
66217         * tests/test-fwritable.c: New file.
66218
66219         * modules/fwritable: New file.
66220         * lib/fwritable.h: New file.
66221         * lib/fwritable.c: New file.
66222         * m4/fwritable.m4: New file.
66223
66224 2007-04-13  Bruno Haible  <bruno@clisp.org>
66225
66226         * modules/freadable-tests: New file.
66227         * tests/test-freadable.c: New file.
66228
66229         * modules/freadable: New file.
66230         * lib/freadable.h: New file.
66231         * lib/freadable.c: New file.
66232         * m4/freadable.m4: New file.
66233
66234 2007-04-13  Bruno Haible  <bruno@clisp.org>
66235
66236         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
66237         MOSTLYCLEANFILES.
66238
66239 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66240
66241         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
66242         gzip bootstrap.conf to avoid dragging in i18n machinery.
66243         (gnulib_tool_option): Use it.
66244
66245 2007-04-13  Bruno Haible  <bruno@clisp.org>
66246
66247         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
66248         %F directives.
66249         * tests/test-vasprintf-posix.c (test_function): Likewise.
66250         * tests/test-snprintf-posix.h (test_function): Likewise.
66251         * tests/test-sprintf-posix.h (test_function): Likewise.
66252         * tests/test-fprintf-posix.h (test_function): Likewise.
66253         * tests/test-printf-posix.h (test_function): Likewise.
66254         * tests/test-fprintf-posix.out: Likewise.
66255
66256 2007-04-13  Bruno Haible  <bruno@clisp.org>
66257
66258         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
66259         * modules/tls-tests (configure.ac): Likewise.
66260         Reported by Arto C. Nirkko <anirkko@insel.ch>.
66261
66262 2007-04-13  Bruno Haible  <bruno@clisp.org>
66263
66264         * lib/tls.c (glthread_tls_get): Fix return type.
66265         Patch by Arto C. Nirkko <anirkko@insel.ch>.
66266
66267 2007-04-12  Eric Blake  <ebb9@byu.net>
66268
66269         * modules/gettime (Depends-on): Remove gettime.
66270         Reported by Dmitry V. Levin.
66271
66272 2007-04-12  Bruno Haible  <bruno@clisp.org>
66273
66274         * modules/fflush (Include): Mention <stdio.h>.
66275         * modules/strtoimax (Include): Mention <inttypes.h>.
66276         * modules/strtoumax (Include): Likewise.
66277
66278 2007-04-12  Eric Blake  <ebb9@byu.net>
66279
66280         * .cvsignore: New file.
66281         * .gitignore: Likewise.
66282
66283 2007-04-12  Bruno Haible  <bruno@clisp.org>
66284
66285         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
66286         not before, since $(LDADD) often contains libgnu.a.
66287         * modules/striconv-tests (test_striconv_LDADD): Likewise.
66288         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
66289         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
66290         Needed on Cygwin.
66291
66292 2007-04-12  Eric Blake  <ebb9@byu.net>
66293
66294         Work around glibc's failure to flush stdin on fclose.
66295         * lib/closein.c (close_stdin): Flush stdin before closing.
66296
66297         Work around glibc's failure to reset seekable stdin on exit.
66298         * modules/closein: New module.
66299         * lib/closein.c: New file.
66300         * lib/closein.h: Likewise.
66301         * m4/closein.m4: Likewise.
66302         * MODULES.html.sh (File stream based Input/Output): Document it.
66303
66304 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66305
66306         * gnulib-tool: Rename generated 'autobuild' script to
66307         'do-autobuild' in --create-megatestdir output.
66308
66309         * doc/gnulib.texi (Build robot for gnulib): Fix.
66310
66311 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66312
66313         * modules/sysexits (Depends-on): Add absolute-header.
66314
66315 2007-04-12  Eric Blake  <ebb9@byu.net>
66316
66317         No need to preserve errno on success.
66318         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
66319         Reported by Bruno Haible.
66320
66321 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66322
66323         * MODULES.html.sh (Support for maintaining and releasing
66324         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
66325
66326 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66327
66328         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
66329
66330 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66331
66332         * modules/autobuild: New module.
66333
66334         * m4/autobuild.m4: New file.
66335
66336 2007-04-11  Bruno Haible  <bruno@clisp.org>
66337
66338         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
66339         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
66340         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
66341         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
66342         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66343         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66344         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66345         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66346         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66347         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66348         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
66349         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66350         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66351         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
66352         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66353         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66354         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
66355         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66356         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66357         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
66358         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66359         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66360         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
66361         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66362         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66363         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
66364         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66365         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66366         Reported by Eric Blake.
66367
66368 2007-04-11  Bruno Haible  <bruno@clisp.org>
66369
66370         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
66371
66372 2007-04-10  Bruno Haible  <bruno@clisp.org>
66373
66374         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
66375         for NaN and Infinity. Needed on FreeBSD 6.1.
66376         * tests/test-vasnprintf-posix.c (test_function): Undo last change
66377         regarding results for "%010a" of Infinity and NaN.
66378         * tests/test-vasprintf-posix.c (test_function): Likewise.
66379         * tests/test-snprintf-posix.h (test_function): Likewise.
66380         * tests/test-sprintf-posix.h (test_function): Likewise.
66381         * tests/test-fprintf-posix.h (test_function): Likewise.
66382         * tests/test-printf-posix.h (test_function): Likewise.
66383         * tests/test-fprintf-posix.out: Likewise.
66384
66385 2007-04-10  Bruno Haible  <bruno@clisp.org>
66386
66387         * modules/locale-tests: New file.
66388         * tests/test-locale.c: New file.
66389
66390         * modules/locale: New file.
66391         * lib/locale_.h: New file.
66392         * m4/locale_h.m4: New file.
66393
66394 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
66395             Bruno Haible  <bruno@clisp.org>
66396
66397         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
66398         be determined, test for availability of the copysignf, copysign,
66399         copysignl functions.
66400         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
66401         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
66402         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
66403
66404 2007-04-09  Eric Blake  <ebb9@byu.net>
66405
66406         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
66407         * modules/stdio (Makefile.am): Support fflush.
66408         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
66409         * modules/fflush: New file.
66410         * lib/fflush.c: Likewise.
66411         * m4/fflush.m4: Likewise.
66412         * modules/fflush-tests: New test.
66413         * tests/test-fflush.c: Likewise.
66414         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
66415
66416 2007-04-06  Bruno Haible  <bruno@clisp.org>
66417
66418         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
66419         (VASNPRINTF): Use signbit for faster determination whether to print a
66420         minus sign.
66421         * modules/vasnprintf (Files): Remove lib/float+.h.
66422         * modules/fprintf-posix (Depends-on): Add signbit.
66423         * modules/snprintf-posix (Depends-on): Likewise.
66424         * modules/sprintf-posix (Depends-on): Likewise.
66425         * modules/vasnprintf-posix (Depends-on): Likewise.
66426         * modules/vasprintf-posix (Depends-on): Likewise.
66427         * modules/vfprintf-posix (Depends-on): Likewise.
66428         * modules/vsnprintf-posix (Depends-on): Likewise.
66429         * modules/vsprintf-posix (Depends-on): Likewise.
66430
66431 2007-04-06  Bruno Haible  <bruno@clisp.org>
66432
66433         * tests/test-frexp.c (main): Test also the sign bit of zero results.
66434         * tests/test-frexpl.c (main): Likewise.
66435         * tests/test-ldexpl.c (main): Likewise.
66436         * modules/frexp-tests (Depends-on): Add signbit.
66437         * modules/frexpl-tests (Depdends-on): Likewise.
66438         * modules/ldexpl-tests (Depdends-on): Likewise.
66439
66440 2007-04-06  Bruno Haible  <bruno@clisp.org>
66441
66442         * modules/signbit-tests: New file.
66443         * tests/test-signbit.c: New file.
66444
66445         * modules/signbit: New file.
66446         * lib/signbitf.c: New file.
66447         * lib/signbitd.c: New file.
66448         * lib/signbitl.c: New file.
66449         * m4/signbit.m4: New file.
66450         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
66451         (signbit): New macro.
66452         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
66453         REPLACE_SIGNBIT.
66454         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
66455         REPLACE_FREXPL into math.h.
66456
66457 2007-04-06  Bruno Haible  <bruno@clisp.org>
66458
66459         * modules/isnanf-nolibm-tests: New file.
66460         * tests/test-isnanf.c: New file.
66461
66462         * modules/isnanf-nolibm: New file.
66463         * lib/isnanf.h: New file.
66464         * lib/isnanf.c: New file.
66465         * lib/isnan.c: Consider the USE_FLOAT macro.
66466         * m4/isnanf.m4: New file.
66467
66468 2007-04-06  Bruno Haible  <bruno@clisp.org>
66469
66470         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
66471         (Link): New section.
66472
66473         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
66474
66475 2007-04-06  Bruno Haible  <bruno@clisp.org>
66476
66477         Assume the 'long double' type.
66478         * m4/longdouble.m4: Remove file.
66479         * config/srclist.txt: Don't mention longdouble.m4.
66480         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
66481         * lib/float+.h: Likewise.
66482         * lib/frexp.c: Likewise.
66483         * lib/printf-args.h: Likewise.
66484         * lib/printf-args.c: Likewise.
66485         * lib/printf-frexp.c: Likewise.
66486         * lib/printf-parse.c: Likewise.
66487         * lib/vasnprintf.c: Likewise.
66488         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
66489         * m4/intl.m4: Likewise.
66490         * m4/isnanl.m4: Likewise.
66491         * m4/printf.m4: Likewise.
66492         * m4/printf-frexpl.m4: Likewise.
66493         * m4/vasnprintf.m4: Likewise.
66494         * modules/allocsa (Files): Remove m4/longdouble.m4.
66495         * modules/gettext (Files): Likewise.
66496         * modules/relocatable-prog-wrapper (Files): Likewise.
66497         * modules/vasnprintf (Files): Likewise.
66498         * modules/isnanl (Files): Likewise.
66499         (Include): Simplify.
66500         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
66501         (Include): Simplify.
66502         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
66503         (Include): Simplify.
66504         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
66505         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66506         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
66507         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66508         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66509         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66510         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
66511         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66512         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66513         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66514         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
66515         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66516         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
66517         * tests/test-isnanl.c: Likewise.
66518         * tests/test-snprintf-posix.h: Likewise.
66519         * tests/test-sprintf-posix.h: Likewise.
66520         * tests/test-vasnprintf-posix.c: Likewise.
66521         * tests/test-vasnprintf-posix2.c: Likewise.
66522         * tests/test-vasprintf-posix.c: Likewise.
66523
66524 2007-04-06  Bruno Haible  <bruno@clisp.org>
66525
66526         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
66527         * lib/math_.h [__DECC]: Include the overridden include file through
66528         #include_next, outside the double-inclusion guard.
66529         * lib/stdio_.h [__DECC]: Likewise.
66530         * lib/stdlib_.h [__DECC]: Likewise.
66531         * lib/string_.h [__DECC]: Likewise.
66532         * lib/time_.h [__DECC]: Likewise.
66533         * lib/wchar_.h [__DECC]: Likewise.
66534         * lib/wctype_.h [__DECC]: Likewise.
66535         * lib/inttypes_.h [__DECC]: Likewise.
66536         Reported by Albert Chin <china@thewrittenword.com> in
66537         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
66538
66539 2007-04-04  Eric Blake  <ebb9@byu.net>
66540
66541         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
66542         1.5.x.
66543
66544 2007-04-04  Bruno Haible  <bruno@clisp.org>
66545
66546         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
66547         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
66548
66549 2007-04-04  Bruno Haible  <bruno@clisp.org>
66550
66551         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
66552         results for "%010a" of Infinity and NaN.
66553         * tests/test-vasprintf-posix.c (test_function): Likewise.
66554         * tests/test-snprintf-posix.h (test_function): Likewise.
66555         * tests/test-sprintf-posix.h (test_function): Likewise.
66556         * tests/test-fprintf-posix.h (test_function): Remove these tests.
66557         * tests/test-printf-posix.h (test_function): Likewise.
66558         * tests/test-fprintf-posix.out: Update.
66559         Needed for FreeBSD 6.1.
66560
66561 2007-04-04  Bruno Haible  <bruno@clisp.org>
66562
66563         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
66564         directly used by the gnulib modules nor by gnulib-tool.
66565
66566 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
66567
66568         * DEPENDENCIES: Give overall description of version dependency
66569         desirability.  Use more-typical names for apps.
66570         Add shell, coreutils, diffutils, grep, tar, gzip.
66571
66572 2007-04-04  Simon Josefsson  <simon@josefsson.org>
66573
66574         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
66575
66576 2007-04-04  Karl Berry  <karl@gnu.org>
66577
66578         * MODULES.html.sh (func_module): missing '.
66579
66580 2007-04-03  Bruno Haible  <bruno@clisp.org>
66581
66582         * modules/argmatch-tests (Makefile.am): New variable
66583         test_argmatch_LDADD.
66584         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
66585         * modules/array-list-tests (Makefile.am): New variable
66586         test_array_list_LDADD.
66587         * modules/array-oset-tests (Makefile.am): New variable
66588         test_array_oset_LDADD.
66589         * modules/avltree-list-tests (Makefile.am): New variable
66590         test_avltree_list_LDADD.
66591         * modules/avltree-oset-tests (Makefile.am): New variable
66592         test_avltree_oset_LDADD.
66593         * modules/avltreehash-list-tests (Makefile.am): New variable
66594         test_avltreehash_list_LDADD.
66595         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
66596         test_canonicalize_lgpl_LDADD.
66597         * modules/carray-list-tests (Makefile.am): New variable
66598         test_carray_list_LDADD.
66599         * modules/dirname-tests (Makefile.am): New variable
66600         test_dirname_LDADD.
66601         * modules/linked-list-tests (Makefile.am): New variable
66602         test_linked_list_LDADD.
66603         * modules/linkedhash-list-tests (Makefile.am): New variable
66604         test_linkedhash_list_LDADD.
66605         * modules/rbtree-list-tests (Makefile.am): New variable
66606         test_rbtree_list_LDADD.
66607         * modules/rbtree-oset-tests (Makefile.am): New variable
66608         test_rbtree_oset_LDADD.
66609         * modules/rbtreehash-list-tests (Makefile.am): New variable
66610         test_rbtreehash_list_LDADD.
66611         * modules/xvasprintf-tests (Makefile.am): New variable
66612         test_xvasprintf_LDADD.
66613         Reported by Eric Blake.
66614
66615 2007-04-03  Eric Blake  <ebb9@byu.net>
66616
66617         * DEPENDENCIES: Weaken m4 requirements.
66618
66619 2007-04-03  Bruno Haible  <bruno@clisp.org>
66620
66621         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
66622         * modules/isnanl-tests (configure.ac): Likewise.
66623
66624 2007-04-03  Ben Pfaff  <blp@gnu.org>
66625
66626         * modules/iconv_open: Add $(srcdir)/ to source directory
66627         references in Makefile fragments that call gperf, to fix VPATH
66628         builds.
66629
66630 2007-04-03  Bruno Haible  <bruno@clisp.org>
66631
66632         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
66633         * lib/ldexpl.c: Undo last change.
66634
66635 2007-04-03  Bruno Haible  <bruno@clisp.org>
66636
66637         * modules/printf-frexpl (Depends-on): Undo last change.
66638         (Files): Add m4/ldexpl.m4.
66639
66640 2007-04-03  Bruno Haible  <bruno@clisp.org>
66641
66642         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
66643         * modules/isnanl (Link): New section.
66644
66645         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
66646         * modules/frexp (Link): New section.
66647
66648         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
66649         * modules/frexpl (Link): New section.
66650
66651         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
66652         * modules/ldexpl (Link): New section.
66653
66654 2007-04-03  Bruno Haible  <bruno@clisp.org>
66655
66656         * modules/TEMPLATE-EXTENDED: New file.
66657         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
66658
66659 2007-04-03  Bruno Haible  <bruno@clisp.org>
66660
66661         * DEPENDENCIES: New file.
66662         Suggested by Simon Josefsson.
66663
66664 2007-04-03  Bruno Haible  <bruno@clisp.org>
66665
66666         * doc/gnulib.texi: Escape @.
66667
66668 2007-04-03  James Youngman  <jay@gnu.org>
66669         and Paul Eggert  <eggert@cs.ucla.edu>
66670
66671         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
66672         birthtime on all systems that have birthtime, not just those which
66673         use st_birthtimensec rather than st_birthtim.  Putting zero in
66674         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
66675         that the birth time is not available for files on an NFS mount.
66676
66677 2007-04-03  Simon Josefsson  <simon@josefsson.org>
66678
66679         * modules/memxor: Move back from crypto/, suggested by Bruno.
66680         * modules/crypto/hmac-sha1: Fix memxor dependency.
66681
66682         * modules/crypto/gc: Moved from ../.
66683
66684 2007-04-02  Eric Blake  <ebb9@byu.net>
66685
66686         * lib/ldexpl.c (includes): Avoid libm.
66687
66688         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
66689
66690 2007-04-02  Bruno Haible  <bruno@clisp.org>
66691
66692         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
66693         on IRIX.
66694
66695 2007-04-02  Bruno Haible  <bruno@clisp.org>
66696
66697         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
66698         x86 or x86_64 platforms running MacOS X.
66699         Reported by Ryan Schmidt <@ryandesign.com>.
66700
66701 2007-04-02  Bruno Haible  <bruno@clisp.org>
66702
66703         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
66704         i386.
66705
66706 2007-04-01  Simon Josefsson  <simon@josefsson.org>
66707
66708         * modules/crypto/arcfour: Moved from ../.
66709         * modules/crypto/arcfour-tests: Moved from ../.
66710         * modules/crypto/arctwo: Moved from ../.
66711         * modules/crypto/arctwo-tests: Moved from ../.
66712         * modules/crypto/des: Moved from ../.
66713         * modules/crypto/des-tests: Moved from ../.
66714         * modules/crypto/gc-arcfour: Moved from ../.
66715         * modules/crypto/gc-arcfour-tests: Moved from ../.
66716         * modules/crypto/gc-arctwo: Moved from ../.
66717         * modules/crypto/gc-arctwo-tests: Moved from ../.
66718         * modules/crypto/gc-des: Moved from ../.
66719         * modules/crypto/gc-des-tests: Moved from ../.
66720         * modules/crypto/gc-hmac-md5: Moved from ../.
66721         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
66722         * modules/crypto/gc-hmac-sha1: Moved from ../.
66723         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
66724         * modules/crypto/gc-md2: Moved from ../.
66725         * modules/crypto/gc-md2-tests: Moved from ../.
66726         * modules/crypto/gc-md4: Moved from ../.
66727         * modules/crypto/gc-md4-tests: Moved from ../.
66728         * modules/crypto/gc-md5: Moved from ../.
66729         * modules/crypto/gc-md5-tests: Moved from ../.
66730         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
66731         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
66732         * modules/crypto/gc-random: Moved from ../.
66733         * modules/crypto/gc-rijndael: Moved from ../.
66734         * modules/crypto/gc-rijndael-tests: Moved from ../.
66735         * modules/crypto/gc-sha1: Moved from ../.
66736         * modules/crypto/gc-sha1-tests: Moved from ../.
66737         * modules/crypto/gc-tests: Moved from ../.
66738         * modules/crypto/hmac-md5: Moved from ../.
66739         * modules/crypto/hmac-md5-tests: Moved from ../.
66740         * modules/crypto/hmac-sha1: Moved from ../.
66741         * modules/crypto/hmac-sha1-tests: Moved from ../.
66742         * modules/crypto/md2: Moved from ../.
66743         * modules/crypto/md2-tests: Moved from ../.
66744         * modules/crypto/md4: Moved from ../.
66745         * modules/crypto/md4-tests: Moved from ../.
66746         * modules/crypto/md5: Moved from ../.
66747         * modules/crypto/md5-tests: Moved from ../.
66748         * modules/crypto/memxor: Moved from ../.
66749         * modules/crypto/rijndael: Moved from ../.
66750         * modules/crypto/rijndael-tests: Moved from ../.
66751         * modules/crypto/sha1: Moved from ../.
66752
66753 2007-03-30  James Youngman  <jay@gnu.org>
66754
66755         * tests/test-stat-time.c (prepare_test): use chmod() rather than
66756         rename() to change the ctime of a file (because ctime is unaffected
66757         by rename on jfs2 on AIX 5.1).
66758         (main): Start by doing cleanup, in case a previous run failed leaving
66759         test files behind.
66760
66761 2007-03-31  Bruno Haible  <bruno@clisp.org>
66762
66763         Support old proprietary implementations of iconv.
66764         * modules/iconv_open: New file.
66765         * lib/iconv_.h: New file.
66766         * m4/iconv_h.m4: New file.
66767         * lib/iconv_open.c: New file.
66768         * lib/iconv_open-aix.gperf: New file.
66769         * lib/iconv_open-hpux.gperf: New file.
66770         * lib/iconv_open-irix.gperf: New file.
66771         * lib/iconv_open-osf.gperf: New file.
66772         * m4/iconv_open.m4: New file.
66773         * modules/linebreak (Depends-on): Add iconv_open.
66774         * modules/striconv (Depends-on): Likewise.
66775         * modules/striconveh (Depends-on): Likewise.
66776         * modules/unicodeio (Depends-on): Likewise.
66777         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
66778         (iconv_t)(-1).
66779         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
66780         conversion if cd is (iconv_t)(-1).
66781         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
66782         is not possible.
66783
66784 2007-03-31  Bruno Haible  <bruno@clisp.org>
66785
66786         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66787         work on Solaris either. Protect also second use of "autodetect_jp".
66788
66789 2007-03-31  Bruno Haible  <bruno@clisp.org>
66790
66791         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
66792         the function is not present.
66793
66794 2007-03-31  Bruno Haible  <bruno@clisp.org>
66795
66796         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
66797         the function is not present.
66798
66799 2007-03-31  Bruno Haible  <bruno@clisp.org>
66800
66801         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
66802         a bug in HP-UX iconv_open().
66803
66804 2007-03-31  Bruno Haible  <bruno@clisp.org>
66805
66806         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
66807         (Mathematics <math.h>): New section, add fpieee.
66808         (Input/output <stdio.h>): Add fseterr.
66809         (Mathematics <math.h>): New section, add printf-frexp.
66810         (Container data structures): Add sublist.
66811         (Core language properties): Add fpucw, inline.
66812         (Functions for greatest-width integer types <inttypes.h>): Add
66813         imaxabs, imaxdiv, inttypes.
66814         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
66815         isnanl-nolibm, ldexp.
66816         (Mathematics <math.h>): New section, add printf-frexpl.
66817         (Support for systems lacking POSIX:2001): Add fprintf-posix,
66818         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
66819         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
66820         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
66821         (Unicode string functions): Add unistr/u*-mbtoucr.
66822         (Java): Add javacomp-script, javaexec-script.
66823         (C#): Add csharpcomp-script, csharpexec-script.
66824         (Support for building libraries and executables): Add havelib,
66825         relocatable-*.
66826         (Support for maintaining and releasing projects): Renamed from
66827         'Support for maintaining and release projects'. Add announce-gen.
66828
66829 2007-03-31  Bruno Haible  <bruno@clisp.org>
66830
66831         * README: Talk primarily about git.
66832         (git and CVS): Renamed from CVS.
66833         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
66834         gnulib is available through git.
66835         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
66836
66837 2007-03-30  Bruno Haible  <bruno@clisp.org>
66838
66839         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
66840         * lib/poll_.h: Likewise.
66841         * lib/stat_.h: Likewise.
66842         * lib/sys_time_.h: Likewise.
66843         * lib/sysexit_.h: Likewise.
66844         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
66845         * lib/stdbool_.h: Likewise.
66846         * lib/byteswap_.h: Add double-inclusion guard.
66847
66848 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
66849
66850         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
66851
66852 2007-03-30  Karl Berry  <karl@gnu.org>
66853
66854         * config/srclist-update: double space after USA in the license
66855         substitution, since that's how it's usually (?) written.
66856
66857 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
66858
66859         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
66860         reported by Bruno Haible.
66861
66862 2007-03-29  Bruno Haible  <bruno@clisp.org>
66863
66864         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
66865         a bug in AIX iconv().
66866
66867 2007-03-29  Bruno Haible  <bruno@clisp.org>
66868
66869         * modules/ldexpl-tests: New file.
66870         * tests/test-ldexpl.c: New file.
66871
66872 2007-03-29  Bruno Haible  <bruno@clisp.org>
66873
66874         * lib/ldexpl.c: Include fpucw.h.
66875         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
66876         multiplication.
66877         * modules/ldexpl (Depends-on): Add fpucw.
66878
66879 2007-03-29  Bruno Haible  <bruno@clisp.org>
66880
66881         * modules/ldexpl: New file.
66882         * m4/ldexpl.m4: New file.
66883         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
66884         set.
66885         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
66886         REPLACE_LDEXPL.
66887         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
66888         REPLACE_LDEXPL.
66889         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66890         gl_FUNC_LDEXPL_WORKS.
66891         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
66892         * modules/mathl (Files): Remove lib/ldexpl.c.
66893         (Depends-on): Add ldexpl.
66894
66895 2007-03-29  Bruno Haible  <bruno@clisp.org>
66896
66897         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
66898
66899 2007-03-29  Bruno Haible  <bruno@clisp.org>
66900
66901         * tests/test-striconveh.c (main): Don't assume that a direct conversion
66902         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
66903         and possibly also HP-UX.
66904         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66905         work on AIX, IRIX, HP-UX, OSF/1.
66906         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
66907         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
66908         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
66909         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
66910         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
66911         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
66912
66913 2007-03-29  Bruno Haible  <bruno@clisp.org>
66914
66915         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
66916
66917 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66918
66919         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
66920         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
66921
66922 2007-03-29  Eric Blake  <ebb9@byu.net>
66923
66924         * lib/acl-internal.h: Remove redundant include.
66925         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
66926         Cygwin when a file is locked.
66927
66928 2007-03-29  Bruno Haible  <bruno@clisp.org>
66929
66930         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
66931         file.
66932         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
66933
66934 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66935
66936         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
66937         try to remove a parent directory if the child couldn't be removed
66938         (except for the first rmdir, which could fail because the child
66939         doesn't exist).  Problem reported by Jeff Blaine in
66940         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
66941
66942 2007-03-28  Bruno Haible  <bruno@clisp.org>
66943
66944         * lib/striconveh.c (utf8conv_carefully): New function.
66945         (mem_cd_iconveh_internal): Invoke it.
66946
66947 2007-03-28  Bruno Haible  <bruno@clisp.org>
66948
66949         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
66950         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
66951         input.
66952         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
66953         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
66954         unistr/u8-uctomb.
66955
66956 2007-03-28  Bruno Haible  <bruno@clisp.org>
66957
66958         * modules/unistr/u8-mbtoucr: New file.
66959         * lib/unistr/u8-mbtoucr.c: New file.
66960         * modules/unistr/u16-mbtoucr: New file.
66961         * lib/unistr/u16-mbtoucr.c: New file.
66962         * modules/unistr/u16-mbtoucr: New file.
66963         * lib/unistr/u16-mbtoucr.c: New file.
66964         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
66965
66966 2007-03-27  Simon Josefsson  <simon@josefsson.org>
66967             Bruno Haible  <bruno@clisp.org>
66968
66969         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
66970         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
66971         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
66972
66973         * m4/stdio_h.m4: Add stubs for vasprintf too.
66974
66975         * modules/stdio: Support vasprintf in sed command.
66976
66977         * modules/vasprintf: Depend on stdio for prototypes.  Remove
66978         vasprintf.h.  Add stdio module indicator.
66979
66980         * lib/stdio_.h: Declare asprintf and vasprintf, based on
66981         vasprintf.h.
66982
66983         * lib/vasprintf.h: File removed.
66984
66985         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
66986         * lib/vasprintf.c: Ditto.
66987         * lib/xvasprintf.c: Ditto.
66988         * tests/test-vasprintf-posix.c: Ditto.
66989         * tests/test-vasprintf.c: Ditto.
66990
66991 2007-03-27  Bruno Haible  <bruno@clisp.org>
66992
66993         Make vasnprintf multithread-safe.
66994         * lib/vasnprintf.c (decimal_point_char): New function.
66995         (VASNPRINTF): Use it.
66996         Suggested by Simon Josefsson.
66997
66998 2007-03-27  Eric Blake  <ebb9@byu.net>
66999
67000         Support sub-second birthtime on cygwin.
67001         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
67002         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
67003         (get_stat_birthtime): Also work with st_birthtim.
67004
67005 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
67006
67007         * lib/stat-time.h (USE_BIRTHTIME): Remove.
67008         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
67009         (get_stat_birthtime_ns): Do not try to use "spare" fields.
67010         (get_stat_birthtime_ns): Simplify compile-time tests.
67011         (get_stat_birthtime): Change the API to look like
67012         get_stat_mtime etc., except return a negative tv_nsec on error.
67013         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
67014         Don't check for "spare" fields.
67015         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
67016         or for struct stat.st_birthtime, as these tests aren't used.
67017         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
67018
67019 2007-03-27  Bruno Haible  <bruno@clisp.org>
67020
67021         * lib/stat-time.h: Include <sys/stat.h>.
67022
67023 2007-03-27  James Youngman  <jay@gnu.org>
67024
67025         * lib/stat-time.h (get_stat_birthtime): New function for
67026           retrieving st_birthtime as provided by UFS2 (hence *BSD).
67027         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
67028           and its variants.
67029         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
67030         * modules/stat-time-test: New file.
67031         * tests/test-stat-time.c: New test, devised by Bruno Haible.
67032
67033 2007-03-26  Bruno Haible  <bruno@clisp.org>
67034
67035         Better support of signalling NaNs.
67036         * lib/atanl.c: Include isnanl.h.
67037         (atanl): Perform test for NaN at the beginning of the function and
67038         through a call to isnanl.
67039         * lib/cosl.c: Include isnanl.h.
67040         (cosl): Perform test for NaN at the beginning of the function and
67041         through a call to isnanl.
67042         * lib/ldexpl.c: Include isnanl.h.
67043         (ldexpl): Perform test for NaN through a call to isnanl.
67044         * lib/logl.c: Include isnanl.h.
67045         (logl): Perform test for NaN at the beginning of the function and
67046         through a call to isnanl.
67047         * lib/sinl.c: Include isnanl.h.
67048         (sinl): Perform test for NaN at the beginning of the function and
67049         through a call to isnanl.
67050         * lib/sqrtl.c: Include isnanl.h.
67051         (sqrtl): Perform test for NaN at the beginning of the function and
67052         through a call to isnanl.
67053         * lib/tanl.c: Include isnanl.h.
67054         (tanl): Perform test for NaN at the beginning of the function and
67055         through a call to isnanl.
67056         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
67057         * modules/mathl (Depends-on): Add isnanl.
67058
67059 2007-03-26  Eric Blake  <ebb9@byu.net>
67060
67061         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
67062         regression in logic sense of previous patch.
67063
67064 2007-03-26  Bruno Haible  <bruno@clisp.org>
67065
67066         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
67067         unportable shell command "if ! ...".
67068         Reported by Ralf Wildenhues.
67069
67070 2007-03-25  Bruno Haible  <bruno@clisp.org>
67071
67072         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
67073         <sysexits.h> file, and only add EX_CONFIG.
67074         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
67075         absolute file name and whether it is sufficient. Substitute also
67076         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
67077         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
67078         ABSOLUTE_SYSEXITS_H into sysexits.h.
67079
67080 2007-03-25  Bruno Haible  <bruno@clisp.org>
67081
67082         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
67083         hints is NULL.
67084
67085 2007-03-25  Bruno Haible  <bruno@clisp.org>
67086
67087         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
67088         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
67089
67090 2007-03-25  Bruno Haible  <bruno@clisp.org>
67091
67092         * lib/vasnprintf.c: Include langinfo.h.
67093         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
67094         multithread-safe.
67095         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
67096         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
67097         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67098         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67099         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67100         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67101         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67102         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
67103         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67104         Reported by Simon Josefsson.
67105
67106 2007-03-25  Bruno Haible  <bruno@clisp.org>
67107
67108         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
67109         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
67110         * modules/vasnprintf (Depends-on): Add stdint.
67111
67112 2007-03-25  Bruno Haible  <bruno@clisp.org>
67113
67114         * modules/fpieee: New file.
67115         * m4/fpieee.m4: New file.
67116         * modules/isnan-nolibm (Depends-on): Add fpieee.
67117         * modules/isnanl-nolibm (Depends-on): Add fpieee.
67118         * modules/isnanl (Depends-on): Add fpieee.
67119
67120 2007-03-25  Bruno Haible  <bruno@clisp.org>
67121
67122         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
67123
67124 2007-03-25  Bruno Haible  <bruno@clisp.org>
67125
67126         Avoid test failures on IRIX 6.5.
67127         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
67128         (main): Use it.
67129         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
67130         macros.
67131         (main): Use them.
67132
67133 2007-03-25  Bruno Haible  <bruno@clisp.org>
67134
67135         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
67136         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
67137         exists but doesn't work.
67138         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
67139         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
67140         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
67141         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
67142         math.h.
67143
67144 2007-03-25  Bruno Haible  <bruno@clisp.org>
67145
67146         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
67147         returns inf. Needed on IRIX 6.5.
67148
67149 2007-03-25  Bruno Haible  <bruno@clisp.org>
67150
67151         * tests/test-frexpl.c: Include isnanl-nolibm.h.
67152         (main): Use isnanl instead of x != x idiom.
67153         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
67154
67155         * tests/test-frexp.c: Include isnan.h.
67156         (main): Use isnan instead of x != x idiom.
67157         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
67158
67159 2007-03-25  Bruno Haible  <bruno@clisp.org>
67160
67161         * tests/test-frexp.c (NaN): New function/macro.
67162         (main): Use it instead of 0.0 / 0.0.
67163         * tests/test-isnan.c (NaN): New function/macro.
67164         (main): Use it instead of 0.0 / 0.0.
67165         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
67166         (test_function): Use it instead of 0.0 / 0.0.
67167         * tests/test-vasprintf-posix.c (NaN): New function/macro.
67168         (test_function): Use it instead of 0.0 / 0.0.
67169         * tests/test-snprintf-posix.h (NaN): New function/macro.
67170         (test_function): Use it instead of 0.0 / 0.0.
67171         * tests/test-sprintf-posix.h (NaN): New function/macro.
67172         (test_function): Use it instead of 0.0 / 0.0.
67173         * tests/test-fprintf-posix.h (NaN): New function/macro.
67174         (test_function): Use it instead of 0.0 / 0.0.
67175         * tests/test-printf-posix.h (NaN): New function/macro.
67176         (test_function): Use it instead of 0.0 / 0.0.
67177
67178         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
67179
67180 2007-03-25  Bruno Haible  <bruno@clisp.org>
67181
67182         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
67183
67184 2007-03-25  Bruno Haible  <bruno@clisp.org>
67185
67186         * lib/regexec.c (merge_state_with_log): Make static.
67187
67188 2007-03-25  Bruno Haible  <bruno@clisp.org>
67189
67190         * lib/trigl.c (kernel_rem_pio2): Make static.
67191
67192 2007-03-25  Bruno Haible  <bruno@clisp.org>
67193
67194         * lib/sincosl.c (sincosl_table): Make static.
67195
67196 2007-03-25  Bruno Haible  <bruno@clisp.org>
67197
67198         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
67199         if the compiler does not support C99.
67200
67201 2007-03-25  Bruno Haible  <bruno@clisp.org>
67202
67203         * modules/time (Makefile.am): Ensure all rule action lines start with a
67204         tab.
67205
67206 2007-03-24  Bruno Haible  <bruno@clisp.org>
67207
67208         * modules/tsearch-tests: New file.
67209         * tests/test-tsearch.sh: New file.
67210         * tests/test-tsearch.c: New file, mostly copied from glibc.
67211
67212         * modules/search-tests: New file.
67213         * tests/test-search.c: New file.
67214
67215         * modules/search: New file.
67216         * lib/search_.h: New file, incorporating lib/tsearch.h.
67217         * m4/search_h.m4: New file.
67218         * lib/tsearch.h: Remove file.
67219         * lib/tsearch.c: Include search.h instead of tsearch.h.
67220         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
67221         HAVE_TSEARCH.
67222         * modules/tsearch (Files): Remove lib/tsearch.h.
67223         (Depends-on): Add search.
67224         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
67225         (Include): Change tsearch.h into search.h.
67226
67227 2007-03-24  Bruno Haible  <bruno@clisp.org>
67228
67229         * modules/fpucw: New file.
67230         * lib/fpucw.h: New file.
67231         * lib/frexp.c: Include fpucw.h.
67232         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
67233         (FUNC): Use them.
67234         * lib/printf-frexp.c: Include fpucw.h.
67235         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
67236         (FUNC): Use them.
67237         * lib/vasnprintf.c: Include fpucw.h.
67238         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
67239         'long double' calculations.
67240         * tests/test-frexpl.c: Include fpucw.h.
67241         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
67242         * tests/test-printf-frexpl.c: Include fpucw.h.
67243         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
67244         * modules/frexpl (Depends-on): Add fpucw.
67245         * modules/printf-frexpl (Depends-on): Likewise.
67246         * modules/fprintf-posix (Depends-on): Likewise.
67247         * modules/snprintf-posix (Depends-on): Likewise.
67248         * modules/sprintf-posix (Depends-on): Likewise.
67249         * modules/vasnprintf-posix (Depends-on): Likewise.
67250         * modules/vasprintf-posix (Depends-on): Likewise.
67251         * modules/vfprintf-posix (Depends-on): Likewise.
67252         * modules/vsnprintf-posix (Depends-on): Likewise.
67253         * modules/vsprintf-posix (Depends-on): Likewise.
67254         * modules/frexpl-tests (Depends-on): Likewise.
67255         * modules/printf-frexpl-tests (Depends-on): Likewise.
67256
67257 2007-03-24  Bruno Haible  <bruno@clisp.org>
67258
67259         * lib/float+.h: New file.
67260         * lib/isnan.c: Include float+.h.
67261         (SIZE): New macro.
67262         (FUNC): Compare only SIZE bytes of the value.
67263         * lib/vasnprintf.c: Include float+.h.
67264         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
67265         SIZEOF_LDBL or SIZEOF_DBL bytes.
67266         * modules/isnan-nolibm (Files): Add lib/float+.h.
67267         * modules/isnanl-nolibm (Files): Add lib/float+.h.
67268         * modules/isnanl (Files): Add lib/float+.h.
67269         * modules/vasnprintf (Files): Add lib/float+.h.
67270
67271 2007-03-24  Bruno Haible  <bruno@clisp.org>
67272
67273         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
67274         include isnanl-nolibm.h.
67275
67276 2007-03-24  Bruno Haible  <bruno@clisp.org>
67277
67278         * tests/test-read-file.c (main): Don't produce spurious output for
67279         expected situations. Make the test fail if it encountered unexpected
67280         results.
67281
67282 2007-03-24  Bruno Haible  <bruno@clisp.org>
67283
67284         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
67285         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
67286
67287 2007-03-24  Bruno Haible  <bruno@clisp.org>
67288
67289         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
67290
67291 2007-03-24  Bruno Haible  <bruno@clisp.org>
67292
67293         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
67294         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
67295
67296         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
67297         * modules/utf8-ucs4: Turn into a symbolic link to module
67298         unistr/u8-mbtouc.
67299
67300         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
67301         utf8-ucs4-unsafe.
67302         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
67303         unistr/u8-mbtouc-unsafe.
67304
67305         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
67306         * modules/utf16-ucs4: Turn into a symbolic link to module
67307         unistr/u16-mbtouc.
67308
67309         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
67310         utf16-ucs4-unsafe.
67311         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
67312         unistr/u16-mbtouc-unsafe.
67313
67314         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
67315         * modules/ucs4-utf8: Turn into a symbolic link to module
67316         unistr/u8-ubtomb.
67317
67318         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
67319         * modules/ucs4-utf16: Turn into a symbolic link to module
67320         unistr/u16-ubtomb.
67321
67322 2007-03-24  Bruno Haible  <bruno@clisp.org>
67323
67324         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
67325         Enable the function only if HAVE_INLINE.
67326         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
67327         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67328         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
67329         Enable the function only if HAVE_INLINE.
67330         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
67331         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67332         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
67333         Enable the function only if HAVE_INLINE.
67334         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
67335         Enable the function only if HAVE_INLINE.
67336         * modules/utf8-ucs4: Update.
67337         * modules/utf8-ucs4-unsafe: Update.
67338         * modules/utf16-ucs4: Update.
67339         * modules/utf16-ucs4-unsafe: Update.
67340         * modules/ucs4-utf8: Update.
67341         * modules/ucs4-utf16: Update.
67342
67343 2007-03-24  Bruno Haible  <bruno@clisp.org>
67344
67345         * lib/utf8-ucs4.h: Remove file.
67346         * lib/utf8-ucs4-unsafe.h: Remove file.
67347         * lib/utf16-ucs4.h: Remove file.
67348         * lib/utf16-ucs4-unsafe.h: Remove file.
67349         * lib/ucs4-utf8.h: Remove file.
67350         * lib/ucs4-utf16.h: Remove file.
67351         * lib/unistr.h: Include their previous contents.
67352         * m4/utf-ucs4.m4: Remove file.
67353         * m4/ucs4-utf.m4: Remove file.
67354         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
67355         (Depends-on): Add unistr/base.
67356         (configure.ac): Remove gl_UTF_UCS4.
67357         (Makefile.am): Update.
67358         (Include): Change to unistr.h.
67359         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
67360         (Depends-on): Add unistr/base.
67361         (configure.ac): Remove gl_UTF_UCS4.
67362         (Makefile.am): Update.
67363         (Include): Change to unistr.h.
67364         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
67365         (Depends-on): Add unistr/base.
67366         (configure.ac): Remove gl_UTF_UCS4.
67367         (Makefile.am): Update.
67368         (Include): Change to unistr.h.
67369         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
67370         (Depends-on): Add unistr/base.
67371         (configure.ac): Remove gl_UTF_UCS4.
67372         (Makefile.am): Update.
67373         (Include): Change to unistr.h.
67374         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
67375         (Depends-on): Add unistr/base.
67376         (configure.ac): Remove gl_UCS4_UTF.
67377         (Makefile.am): Update.
67378         (Include): Change to unistr.h.
67379         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
67380         (Depends-on): Add unistr/base.
67381         (configure.ac): Remove gl_UCS4_UTF.
67382         (Makefile.am): Update.
67383         (Include): Change to unistr.h.
67384         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
67385         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
67386         utf8-ucs4-unsafe.h.
67387         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
67388         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
67389         utf16-ucs4-unsafe.h.
67390         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
67391         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
67392         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
67393         * lib/unistr/u8-strchr.c: Likewise.
67394         * lib/unistr/u8-strrchr.c: Likewise.
67395         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
67396         * lib/unistr/u16-strchr.c: Likewise.
67397         * lib/unistr/u16-strrchr.c: Likewise.
67398         * lib/striconveh.c: Update.
67399         * lib/linebreak.c: Update.
67400
67401 2007-03-24  Bruno Haible  <bruno@clisp.org>
67402
67403         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
67404         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
67405
67406 2007-03-22  Bruno Haible  <bruno@clisp.org>
67407
67408         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
67409
67410 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
67411
67412         * MODULES.html.sh (File system functions): New module write-any-file.
67413         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
67414         * m4/write-any-file.m4: New files.
67415
67416 2007-03-23  Eric Blake  <ebb9@byu.net>
67417
67418         * gnulib-tool: Rearrange space-tab sequences, since some editors
67419         like to eat them.
67420
67421 2007-03-23  Eric Blake  <ebb9@byu.net>
67422
67423         * lib/version-etc.c (version_etc_va): Update license wording to
67424         be more concise.  Recommended by Richard Stallman.
67425
67426 2007-03-22  Bruno Haible  <bruno@clisp.org>
67427
67428         * lib/poll.c (MSG_PEEK): New fallback definition.
67429
67430 2007-03-22  Bruno Haible  <bruno@clisp.org>
67431
67432         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
67433         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
67434         (main): Update.
67435         Fixes a compilation error on BeOS.
67436
67437 2007-03-22  Bruno Haible  <bruno@clisp.org>
67438
67439         * modules/frexpl-tests: New file.
67440         * tests/test-frexpl.c: New file.
67441
67442         * modules/frexpl: New file.
67443         * m4/frexpl.m4: New file.
67444         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
67445         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
67446         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
67447         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
67448         (Depends-on): Add frexpl. Remove isnanl-nolibm.
67449         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
67450
67451 2007-03-22  Bruno Haible  <bruno@clisp.org>
67452
67453         * lib/frexpl.c: Share code with lib/frexp.c.
67454         * modules/mathl (Files): Add lib/frexp.c.
67455         (Depends-on): Add isnanl-nolibm.
67456
67457 2007-03-22  Bruno Haible  <bruno@clisp.org>
67458
67459         * modules/printf-frexp (Files): Add m4/frexp.m4.
67460         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
67461         only if the found frexp function actually works.
67462
67463 2007-03-22  Bruno Haible  <bruno@clisp.org>
67464
67465         * lib/frexp.c: Remove older implementation that uses divisions.
67466
67467 2007-03-21  Bruno Haible  <bruno@clisp.org>
67468
67469         * modules/frexp-tests: New file.
67470         * tests/test-frexp.c: New file.
67471
67472         * modules/frexp: New file.
67473         * lib/frexp.c: New file.
67474         * m4/frexp.m4: New file.
67475         * lib/math_.h (frexp): New declaration.
67476         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
67477         REPLACE_FREXP.
67478         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
67479
67480 2007-03-21  Bruno Haible  <bruno@clisp.org>
67481
67482         * modules/isnanl-tests: New file.
67483         * tests/test-isnanl.c: New file.
67484
67485         * modules/isnanl: New file.
67486         * lib/isnanl.h: New file.
67487         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
67488         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
67489         gl_FUNC_ISNANL_WORKS.
67490         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
67491         New macros.
67492
67493 2007-03-21  Bruno Haible  <bruno@clisp.org>
67494
67495         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
67496         lib/isnanl.h.
67497         (Include): Update.
67498         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
67499         * lib/vasnprintf.c: Update.
67500         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
67501         tests/test-isnanl.h, remove tests/test-isnanl.c.
67502         (Makefile.am): Update.
67503         * tests/test-isnanl-nolibm.c: New file.
67504         * tests/test-isnanl.h: New file.
67505         * tests/test-isnanl.c: Remove file.
67506
67507 2007-03-21  Jim Meyering  <jim@meyering.net>
67508
67509         When trying to open ".", treat ESTALE like EACCES.
67510         * lib/savewd.c (savewd_save): Resort to forking not just upon
67511         failure with EACCES, but also when errno is ESTALE.
67512
67513 2007-03-20  Bruno Haible  <bruno@clisp.org>
67514
67515         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
67516         Needed on AIX 5.1. Reported by Matthew Woehlke.
67517
67518 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67519
67520         Suggestions by Bruno Haible:
67521         * lib/acl-internal.h: Include "gettext.h" rather than rolling
67522         our own.
67523         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
67524         * modules/acl (Depends-on): Add gettext.
67525
67526 2007-03-19  Bruno Haible  <bruno@clisp.org>
67527
67528         * modules/iconvme: Remove file.
67529         * lib/iconvme.h: Remove file.
67530         * lib/iconvme.c: Remove file.
67531         * m4/iconvme.m4: Remove file.
67532
67533 2007-03-19  Bruno Haible  <bruno@clisp.org>
67534
67535         * doc/relocatable-maint.texi: Break long shell script line.
67536         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67537
67538 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67539
67540         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
67541         handle file_has_acl.
67542         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
67543         * lib/acl.c: Move header inclusions and related macro defns into
67544         lib/acl-internal.h.
67545         (S_ISLNK): Remove defn, since that's now done for us.
67546         (file_has_acl): Move to lib/file-has-acl.c.
67547         Call acl_trivial if available.  This is the crucial part of the fix.
67548         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
67549         shared within the library.  Rewrite a bit, partly to make it compatible
67550         with the GNU coding style.
67551         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
67552         Remove unnecessary double-quotes.
67553         Don't test for acl_to_text; the build will catch that.
67554         Replace acl_entries if it doesn't exist and it is needed.
67555         Check for -lsec and acl_trivial (as used on Solaris 10).
67556         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
67557         lib/file-has-acl.c.
67558         (Depends-on): Add sys_stat, for S_ISLNK.
67559
67560 2007-03-19  Ben Pfaff  <blp@gnu.org>
67561
67562         * doc/gnulib.texi: Fix typos.
67563         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67564
67565 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67566
67567         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
67568         If size is zero here, buf must be zero.
67569
67570 2007-03-19  Simon Josefsson  <simon@josefsson.org>
67571
67572         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
67573         <bruno@clisp.org>.
67574
67575 2007-03-18  Bruno Haible  <bruno@clisp.org>
67576
67577         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
67578         Suggested by Eric Blake.
67579
67580 2007-03-18  Ben Pfaff  <blp@gnu.org>
67581
67582         * doc/relocatable.texi: Recommend using as prefix a directory
67583         that does not exist and will never be created.  Based on
67584         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
67585         and others.
67586
67587 2007-03-17  Bruno Haible  <bruno@clisp.org>
67588
67589         * lib/fchownat.c: Include lchown.h.
67590
67591 2007-03-17  Bruno Haible  <bruno@clisp.org>
67592
67593         Fix endless loop when the given allocated size was > INT_MAX.
67594         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
67595         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
67596         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
67597         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
67598         * lib/sprintf.c (sprintf): Likewise.
67599
67600 2007-03-17  Bruno Haible  <bruno@clisp.org>
67601
67602         * tests/test-argp-2.sh (func_compare): Output a context diff.
67603
67604 2007-03-17  Bruno Haible  <bruno@clisp.org>
67605
67606         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
67607         locale's decimal-point character.
67608
67609 2007-03-17  Bruno Haible  <bruno@clisp.org>
67610
67611         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
67612         before comparing it. Needed because on some platforms (e.g. x86) a
67613         'long double' occupies less bytes than sizeof (long double).
67614
67615 2007-03-17  Bruno Haible  <bruno@clisp.org>
67616
67617         * tests/test-crc.c (main): Make printf statements 64-bit clean.
67618         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
67619         * tests/test-getaddrinfo.c (simple): Likewise.
67620         * tests/test-read-file.c (main): Likewise.
67621
67622 2007-03-17  Bruno Haible  <bruno@clisp.org>
67623
67624         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
67625
67626 2007-03-17  Bruno Haible  <bruno@clisp.org>
67627
67628         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
67629         unused variable.
67630
67631 2007-03-17  Bruno Haible  <bruno@clisp.org>
67632
67633         * tests/test-c-strcasecmp.c: Include c-strcase.h.
67634         * tests/test-c-strncasecmp.c: Likewise.
67635
67636 2007-03-17  Bruno Haible  <bruno@clisp.org>
67637
67638         * modules/stdlib (Depends-on): Add unistd.
67639         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
67640         Needed for MacOS X 10.3.
67641
67642 2007-03-17  Bruno Haible  <bruno@clisp.org>
67643
67644         * lib/unistr/u-strdup.h: Include <stdlib.h>.
67645
67646 2007-03-17  Bruno Haible  <bruno@clisp.org>
67647
67648         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
67649
67650 2007-03-17  Bruno Haible  <bruno@clisp.org>
67651
67652         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
67653         to reflect files copied from gnulib (with or without modifications).
67654         Suggested by Jim Meyering.
67655
67656 2007-03-17  Eric Blake  <ebb9@byu.net>
67657
67658         * NEWS: Document stdlib change from 2007-02-18.
67659
67660 2007-03-17  Jim Meyering  <jim@meyering.net>
67661
67662         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
67663         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
67664         someone uses a name containing shell meta-characters.
67665         Reported by Alfred M. Szmidt.
67666
67667         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
67668
67669 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67670
67671         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
67672         and copy gettext configuration files only if configure.ac contains
67673         a use of AM_GNU_GETTEXT_VERSION.
67674
67675 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67676
67677         * build-aux/bootstrap (gnulib_name): New variable.
67678         (gnulib_tool_options): Use it.
67679
67680 2007-03-13  Simon Josefsson  <simon@josefsson.org>
67681
67682         * tests/test-des.c: Use new namespace.
67683
67684 2007-03-15  Bruno Haible  <bruno@clisp.org>
67685
67686         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
67687         Reported by James Youngman <jay@gnu.org>.
67688
67689 2007-03-15  Bruno Haible  <bruno@clisp.org>
67690
67691         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
67692         declared prototype. Needed with cc on OSF/1 5.1.
67693
67694 2007-03-15  Bruno Haible  <bruno@clisp.org>
67695
67696         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
67697         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
67698         (struct gl_list_implementation): Add dispose_fn argument to the
67699         'create_empty', 'create' methods.
67700         (struct gl_list_impl_base): Add field 'dispose_fn'.
67701         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
67702         argument.
67703         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
67704         dispose_fn argument.
67705         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
67706         dispose_fn on the dropped values.
67707         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
67708         dispose_fn argument.
67709         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
67710         dropped values.
67711         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
67712         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67713         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
67714         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67715         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
67716         argument.
67717         (gl_tree_list_free): Call dispose_fn on the dropped values.
67718         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
67719         the dropped values.
67720         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67721         Add dispose_fn argument.
67722         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
67723         Call dispose_fn on the dropped values.
67724         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
67725         Add dispose_fn argument.
67726         (gl_sublist_create): Initialize the 'dispose_fn' field.
67727         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
67728         * tests/test-array_list.c (main): Update.
67729         * tests/test-carray_list.c (main): Update.
67730         * tests/test-avltree_list.c (main): Update.
67731         * tests/test-rbtree_list.c (main): Update.
67732         * tests/test-avltreehash_list.c (main): Update.
67733         * tests/test-rbtreehash_list.c (main): Update.
67734         * tests/test-linked_list.c (main): Update.
67735         * tests/test-linkedhash_list.c (main): Update.
67736         * tests/test-array_oset.c (main): Update.
67737
67738 2007-03-15  Bruno Haible  <bruno@clisp.org>
67739
67740         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
67741         (gl_oset_create_empty): Add dispose_fn argument.
67742         (struct gl_oset_implementation): Add dispose_fn argument to
67743         'create_empty' method.
67744         (struct gl_oset_impl_base): Add dispose_fn field.
67745         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
67746         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
67747         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
67748         values.
67749         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
67750         (gl_tree_oset_free): Call dispose_fn on the dropped values.
67751         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67752         dropped value.
67753         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67754         dropped value.
67755         * tests/test-array_oset.c (main): Update.
67756         * tests/test-avltree_oset.c (main): Update.
67757         * tests/test-rbtree_oset.c (main): Update.
67758         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
67759
67760 2007-03-13  Bruno Haible  <bruno@clisp.org>
67761
67762         * tests/test-stdbool.c (i): Update after last patch.
67763
67764 2007-03-12  Bruno Haible  <bruno@clisp.org>
67765
67766         * lib/quotearg.c: Include <wctype.h> early, before the definition of
67767         the iswprint macro. Needed on Solaris 2.5.1.
67768
67769 2007-03-12  Bruno Haible  <bruno@clisp.org>
67770
67771         * tests/test-printf-frexp.c (main): Declare x as volatile.
67772
67773 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67774
67775         * doc/gnulib.texi (Build robot for gnulib): New section.
67776
67777 2007-03-12  Jim Meyering  <jim@meyering.net>
67778
67779         * build-aux/bootstrap: New file.
67780         * build-aux/bootstrap.conf: New file, from coreutils.
67781
67782 2007-03-11  Bruno Haible  <bruno@clisp.org>
67783
67784         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
67785
67786 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67787
67788         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
67789         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
67790         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
67791
67792 2007-03-11  Bruno Haible  <bruno@clisp.org>
67793
67794         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
67795         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
67796
67797 2007-03-11  Bruno Haible  <bruno@clisp.org>
67798
67799         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
67800         formula. Needed for SunPRO C 5.0.
67801
67802 2007-03-11  Bruno Haible  <bruno@clisp.org>
67803
67804         * modules/long-options (Depends-on): Add getopt.
67805
67806 2007-03-11  Bruno Haible  <bruno@clisp.org>
67807
67808         * modules/modechange (Depends-on): Add stdbool.
67809
67810 2007-03-11  Bruno Haible  <bruno@clisp.org>
67811
67812         * modules/i-ring (Depends-on): Add stdbool.
67813
67814 2007-03-11  Bruno Haible  <bruno@clisp.org>
67815
67816         * modules/gc-des (Depends-on): Add stdbool.
67817
67818 2007-03-11  Bruno Haible  <bruno@clisp.org>
67819
67820         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
67821
67822 2007-03-11  Bruno Haible  <bruno@clisp.org>
67823
67824         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
67825
67826 2007-03-11  Bruno Haible  <bruno@clisp.org>
67827
67828         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
67829
67830 2007-03-11  Bruno Haible  <bruno@clisp.org>
67831
67832         * lib/vasnprintf.c (sprintf): Undefine.
67833
67834 2007-03-11  Bruno Haible  <bruno@clisp.org>
67835
67836         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
67837         initializers in SunPRO C and Compaq C compilers.
67838
67839 2007-03-11  Bruno Haible  <bruno@clisp.org>
67840
67841         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
67842         decrementing code ANSI C compliant.
67843
67844 2007-03-11  Bruno Haible  <bruno@clisp.org>
67845
67846         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
67847         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
67848
67849 2007-03-11  Bruno Haible  <bruno@clisp.org>
67850
67851         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
67852         <stdbool.h> substitute doesn't pass.
67853
67854 2007-03-11  Bruno Haible  <bruno@clisp.org>
67855
67856         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
67857
67858 2007-03-11  Bruno Haible  <bruno@clisp.org>
67859
67860         * gnulib-tool (func_create_megatestdir): Create also an autobuild
67861         script, for submission to autobuild.josefsson.org.
67862
67863 2007-03-10  Bruno Haible  <bruno@clisp.org>
67864
67865         * modules/canonicalize-lgpl-tests: New file.
67866         * tests/test-canonicalize-lgpl.sh: New file.
67867         * tests/test-canonicalize-lgpl.c: New file.
67868
67869         * modules/c-strcase-tests: New file.
67870         * tests/test-c-strcase.sh: New file.
67871         * tests/test-c-strcasecmp.c: New file.
67872         * tests/test-c-strncasecmp.c: New file.
67873
67874         * modules/atexit-tests: New file.
67875         * tests/test-atexit.sh: New file.
67876         * tests/test-atexit.c: New file.
67877
67878 2007-03-10  Bruno Haible  <bruno@clisp.org>
67879
67880         * tests/test-binary-io.sh: Use temporary filenames that are not so
67881         likely to clash with those of other tests (in a parallel make).
67882         * tests/test-binary-io.c: Likewise.
67883
67884 2007-03-10  Bruno Haible  <bruno@clisp.org>
67885
67886         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
67887         fallback; use #error instead.
67888         Suggested by Simon Josefsson.
67889
67890 2007-03-10  Bruno Haible  <bruno@clisp.org>
67891
67892         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
67893         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
67894         first and the last.
67895
67896 2007-03-10  Bruno Haible  <bruno@clisp.org>
67897
67898         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
67899
67900 2007-03-10  Bruno Haible  <bruno@clisp.org>
67901
67902         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
67903         "make distcheck".
67904         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
67905         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
67906         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
67907
67908 2007-03-10  Bruno Haible  <bruno@clisp.org>
67909
67910         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
67911         variable.
67912         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
67913         variable.
67914
67915 2007-03-09  Eric Blake  <ebb9@byu.net>
67916         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
67917
67918         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
67919         types are not being provided by gnulib.
67920         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
67921         types are supported.
67922
67923 2007-03-10  Bruno Haible  <bruno@clisp.org>
67924
67925         * lib/stdio_.h (__attribute__): New macro.
67926         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
67927         vsprintf): Specify __attribute__ __format__ for GCC.
67928         Suggested by Eric Blake.
67929
67930 2007-03-09  Bruno Haible  <bruno@clisp.org>
67931
67932         * modules/printf-posix-tests: New file.
67933         * tests/test-printf-posix.sh: New file.
67934         * tests/test-printf-posix.c: New file.
67935
67936         * modules/printf-posix: New file.
67937         * lib/printf.c: New file.
67938         * m4/printf-posix-rpl.m4: New file.
67939         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
67940         REPLACE_PRINTF.
67941         * lib/stdio_.h (printf): New declaration.
67942         (format, __format__, ____printf____, ____scanf____, ____strftime____,
67943         ____strfmon____): New macros.
67944         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
67945         REPLACE_PRINTF.
67946
67947 2007-03-09  Bruno Haible  <bruno@clisp.org>
67948
67949         * tests/test-vasnprintf-posix2.sh: New file.
67950         * tests/test-vasnprintf-posix2.c: New file.
67951         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
67952         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
67953         (Makefile.am): Activate test-vasnprintf-posix2.sh.
67954
67955         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
67956         a locale dependent decimal point, rather than always '.'.
67957
67958 2007-03-09  Eric Blake  <ebb9@byu.net>
67959
67960         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
67961         spite of platforms like Tandem/NSK that define it to -1.
67962
67963 2007-03-08  Bruno Haible  <bruno@clisp.org>
67964
67965         * modules/vprintf-posix-tests: New file.
67966         * tests/test-vprintf-posix.sh: New file.
67967         * tests/test-vprintf-posix.c: New file.
67968         * tests/test-printf-posix.h: New file.
67969
67970         * modules/vprintf-posix: New file.
67971         * lib/vprintf.c: New file.
67972         * m4/vprintf-posix.m4: New file.
67973         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
67974         REPLACE_VPRINTF.
67975         * lib/stdio_.h (vprintf): New declaration.
67976         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
67977         REPLACE_VPRINTF.
67978
67979 2007-03-08  Bruno Haible  <bruno@clisp.org>
67980
67981         * modules/fprintf-posix-tests: New file.
67982         * tests/test-fprintf-posix.sh: New file.
67983         * tests/test-fprintf-posix.c: New file.
67984
67985         * modules/fprintf-posix: New file.
67986         * lib/fprintf.c: New file.
67987         * m4/fprintf-posix.m4: New file.
67988         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
67989         REPLACE_FPRINTF.
67990         * lib/stdio_.h (fprintf): New declaration.
67991         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
67992         REPLACE_FPRINTF.
67993
67994 2007-03-08  Bruno Haible  <bruno@clisp.org>
67995
67996         * modules/vfprintf-posix-tests: New file.
67997         * tests/test-vfprintf-posix.sh: New file.
67998         * tests/test-vfprintf-posix.c: New file.
67999         * tests/test-fprintf-posix.h: New file.
68000         * tests/test-fprintf-posix.out: New file.
68001
68002         * modules/vfprintf-posix: New file.
68003         * lib/vfprintf.c: New file.
68004         * m4/vfprintf-posix.m4: New file.
68005         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
68006         REPLACE_VFPRINTF.
68007         * lib/stdio_.h (vfprintf): New declaration.
68008         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
68009         REPLACE_VFPRINTF.
68010
68011 2007-03-08  Bruno Haible  <bruno@clisp.org>
68012
68013         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
68014
68015 2007-03-08  Bruno Haible  <bruno@clisp.org>
68016
68017         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
68018         instead of 'expr' invocations.
68019         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68020         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68021         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68022         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68023         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68024         Suggested by Paul Eggert.
68025
68026 2007-03-08  Bruno Haible  <bruno@clisp.org>
68027
68028         * modules/fseterr-tests: New file.
68029         * tests/test-fseterr.c: New file.
68030
68031         * modules/fseterr: New file.
68032         * lib/fseterr.h: New file.
68033         * lib/fseterr.c: New file.
68034
68035 2007-03-08  Bruno Haible  <bruno@clisp.org>
68036
68037         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
68038         * lib/getopt_.h: Likewise.
68039         * lib/mbswidth.h: Likewise.
68040         * lib/setenv.h: Likewise.
68041         * lib/vasnprintf.h: Likewise.
68042         * lib/vasprintf.h: Likewise.
68043         * lib/verror.h: Likewise.
68044         * lib/xsetenv.h: Likewise.
68045         * lib/xvasprintf.h: Likewise.
68046
68047 2007-03-08  Jim Meyering  <jim@meyering.net>
68048
68049         * users.txt: Add parted.
68050
68051         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
68052
68053 2007-03-07  Bruno Haible  <bruno@clisp.org>
68054
68055         * m4/printf.m4: Make the shell script snippets copy&pastable.
68056
68057 2007-03-02  Bruno Haible  <bruno@clisp.org>
68058
68059         * lib/netinet_in_.h: New file.
68060         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
68061         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
68062         * modules/netinet_in (Files): Add lib/netinet_in_.h.
68063         (Depends-on): Add absolute-header.
68064         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
68065         into netinet/in.h.
68066
68067 2007-03-03  Bruno Haible  <bruno@clisp.org>
68068
68069         * lib/sys_select_.h: New file.
68070         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
68071         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
68072         * modules/sys_select (Files): Add lib/sys_select_.h.
68073         (Depends-on): Add absolute-header.
68074         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
68075         into sys/select.h.
68076
68077 2007-03-02  Bruno Haible  <bruno@clisp.org>
68078
68079         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
68080         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
68081         values.
68082         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
68083         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
68084         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
68085         * modules/sys_socket (Depends-on): Add absolute-header.
68086         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
68087         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
68088         (Include): Remove requirement of inclusion of <sys/types.h>.
68089
68090 2007-03-02  Bruno Haible  <bruno@clisp.org>
68091
68092         * lib/byteswap_.h (bswap_32): Fix formula.
68093
68094 2007-03-06  Bruno Haible  <bruno@clisp.org>
68095
68096         * modules/sprintf-posix-tests: New file.
68097         * tests/test-sprintf-posix.c: New file.
68098
68099         * modules/sprintf-posix: New file.
68100         * lib/sprintf.c: New file.
68101         * m4/sprintf-posix.m4: New file.
68102         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
68103         REPLACE_SPRINTF.
68104         * lib/stdio_.h (sprintf): New declaration.
68105         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
68106         REPLACE_SPRINTF.
68107
68108 2007-03-06  Bruno Haible  <bruno@clisp.org>
68109
68110         * modules/vsprintf-posix-tests: New file.
68111         * tests/test-vsprintf-posix.c: New file.
68112         * tests/test-sprintf-posix.h: New file.
68113
68114         * modules/vsprintf-posix: New file.
68115         * lib/vsprintf.c: New file.
68116         * m4/vsprintf-posix.m4: New file.
68117         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
68118         REPLACE_VSPRINTF.
68119         * lib/stdio_.h (vsprintf): New declaration.
68120         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
68121         REPLACE_VSPRINTF.
68122
68123 2007-03-06  Bruno Haible  <bruno@clisp.org>
68124
68125         * modules/vsnprintf (Depend-on): Remove minmax.
68126
68127 2007-03-06  Bruno Haible  <bruno@clisp.org>
68128
68129         * modules/snprintf-posix-tests: New file.
68130         * tests/test-snprintf-posix.c: New file.
68131
68132         * modules/snprintf-posix: New file.
68133         * m4/snprintf-posix.m4: New file.
68134         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
68135         gl_FUNC_SNPRINTF.
68136         (gl_FUNC_SNPRINTF): Invoke it.
68137         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
68138         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
68139         is set.
68140         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
68141
68142 2007-03-06  Bruno Haible  <bruno@clisp.org>
68143
68144         * modules/vsnprintf-posix-tests: New file.
68145         * tests/test-vsnprintf-posix.c: New file.
68146         * tests/test-snprintf-posix.h: New file.
68147
68148         * modules/vsnprintf-posix: New file.
68149         * m4/vsnprintf-posix.m4: New file.
68150         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
68151         gl_FUNC_VSNPRINTF.
68152         (gl_FUNC_VSNPRINTF): Invoke it.
68153         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
68154         * lib/stdio_.h (vsnprintf): Define as a replacement if
68155         REPLACE_VSNPRINTF is set.
68156         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
68157
68158 2007-03-06  Bruno Haible  <bruno@clisp.org>
68159
68160         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
68161         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
68162
68163 2007-03-06  Bruno Haible  <bruno@clisp.org>
68164
68165         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
68166         (asinl): Declare also if HAVE_DECL_ASINL is set.
68167         (atanl): Declare also if HAVE_DECL_ATANL is set.
68168         (ceill): Declare also if HAVE_DECL_CEILL is set.
68169         (cosl): Declare also if HAVE_DECL_COSL is set.
68170         (expl): Declare also if HAVE_DECL_EXPL is set.
68171         (floorl): Declare also if HAVE_DECL_FLOORL is set.
68172         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
68173         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
68174         (logl): Declare also if HAVE_DECL_LOGL is set.
68175         (sinl): Declare also if HAVE_DECL_SINL is set.
68176         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
68177         (tanl): Declare also if HAVE_DECL_TANL is set.
68178         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
68179         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
68180         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
68181         declaration of frexpl, ldexpl.
68182         * modules/printf-frexpl (Depends-on): Add math.
68183         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
68184
68185 2007-03-05  Bruno Haible  <bruno@clisp.org>
68186
68187         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
68188         frexpl and ldexpl are declared.
68189         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
68190
68191 2007-03-05  Bruno Haible  <bruno@clisp.org>
68192
68193         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
68194         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
68195
68196 2007-03-05  Bruno Haible  <bruno@clisp.org>
68197
68198         * lib/stdio_.h: Include <stddef.h>.
68199
68200 2007-03-05  Bruno Haible  <bruno@clisp.org>
68201
68202         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
68203
68204 2007-03-05  Bruno Haible  <bruno@clisp.org>
68205
68206         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
68207         NetBSD 4, from Ralf Wildenhues.
68208
68209 2007-03-04  Bruno Haible  <bruno@clisp.org>
68210
68211         * lib/vasprintf.h: Update #if logic for the case when the functions
68212         exist but are overridden.
68213
68214 2007-03-04  Bruno Haible  <bruno@clisp.org>
68215
68216         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
68217         implementations: glibc-2.4 and MacOS X 10.3.
68218         * tests/test-vasnprintf-posix.c (test_function): Test also the case
68219         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
68220         * tests/test-vasprintf-posix.c (test_function): Likewise.
68221
68222 2007-03-04  Bruno Haible  <bruno@clisp.org>
68223
68224         * modules/vasprintf-posix-tests: New file.
68225         * tests/test-vasprintf-posix.c: New file.
68226
68227         * modules/vasprintf-posix: New file.
68228         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
68229         defined.
68230         * m4/vasprintf-posix.m4: New file.
68231         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
68232         gl_FUNC_VASPRINTF.
68233         (gl_FUNC_VASPRINTF): Invoke it.
68234         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
68235         here.
68236         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
68237
68238 2007-03-04  Bruno Haible  <bruno@clisp.org>
68239
68240         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
68241         REPLACE_GETTIMEOFDAY.
68242         * modules/sys_time (Makefile.am): Likewise.
68243         * m4/sys_time_h.m4: Likewise.
68244         * m4/gettimeofday.m4: Likewise.
68245
68246 2007-03-04  Bruno Haible  <bruno@clisp.org>
68247
68248         * modules/vasnprintf-posix-tests: New file.
68249         * tests/test-vasnprintf-posix.c: New file.
68250
68251         * modules/vasnprintf-posix: New file.
68252         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
68253         printf-frexpl.h.
68254         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
68255         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
68256         REPLACE_VASNPRINTF is defined.
68257         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
68258         gl_FUNC_VASNPRINTF.
68259         (gl_FUNC_VASNPRINTF): Invoke it.
68260         * m4/vasnprintf-posix.m4: New file.
68261         * m4/printf.m4: New file.
68262
68263 2007-03-04  Bruno Haible  <bruno@clisp.org>
68264
68265         Compile progreloc.c only if --enable-relocatable is specified.
68266         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
68267         if --enable-relocatable was specified.
68268         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
68269         lib_SOURCES.
68270
68271 2007-03-04  Jim Meyering  <jim@meyering.net>
68272
68273         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
68274         Use it consistently, rather than enumerating errno constants.
68275
68276 2007-03-04  Bruno Haible  <bruno@clisp.org>
68277
68278         * modules/xvasprintf-tests: New file.
68279         * tests/test-xvasprintf.c: New file.
68280
68281         * modules/vasprintf-tests: New file.
68282         * tests/test-vasprintf.c: New file.
68283
68284         * modules/vasnprintf-tests: New file.
68285         * tests/test-vasnprintf.c: New file.
68286
68287         * modules/vsnprintf-tests: New file.
68288         * tests/test-vsnprintf.c: New file.
68289
68290         * modules/snprintf-tests: New file.
68291         * tests/test-snprintf.c: New file.
68292
68293 2007-03-04  Bruno Haible  <bruno@clisp.org>
68294
68295         Compile relocatable.c only if --enable-relocatable is specified.
68296         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
68297         gl_RELOCATABLE_LIBRARY.
68298         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
68299         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
68300         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
68301         gl_RELOCATABLE_LIBRARY.
68302         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
68303         (Makefile.am): Remove lib_SOURCES.
68304         * modules/relocatable-lib-lgpl (configure.ac): Invoke
68305         gl_RELOCATABLE_LIBRARY.
68306         (Makefile.am): Remove lib_SOURCES.
68307         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
68308         always.
68309         * modules/relocatable-prog-wrapper (configure.ac): Invoke
68310         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
68311
68312 2007-03-04  Bruno Haible  <bruno@clisp.org>
68313
68314         * modules/argmatch-tests: New file.
68315         * tests/test-argmatch.c: New file.
68316
68317         * tests/test-allocsa.c (main): Halve the number of loop runs.
68318
68319         * modules/alloca-opt-tests: New file.
68320         * tests/test-alloca-opt.c: New file.
68321
68322 2007-03-04  Jim Meyering  <jim@meyering.net>
68323
68324         Work around difference between Linux ACLs and Solaris 10 ZFS.
68325         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
68326         for EINVAL.
68327
68328 2007-03-03  Bruno Haible  <bruno@clisp.org>
68329
68330         * modules/relocatable-prog (Depends-on): Add back progreloc's
68331         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
68332
68333 2007-03-03  Bruno Haible  <bruno@clisp.org>
68334
68335         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
68336         * modules/relocatable-lib: New file.
68337
68338 2007-03-03  Bruno Haible  <bruno@clisp.org>
68339
68340         * modules/relocatable-prog: Renamed from modules/relocatable.
68341         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
68342
68343 2007-03-03  Bruno Haible  <bruno@clisp.org>
68344
68345         * modules/relocatable-script (Files): Add doc/relocatable.texi,
68346         m4/relocatable-lib.m4.
68347         (Depends-on): Remove 'relocatable'.
68348         (configure.ac): Add gl_RELOCATABLE_NOP.
68349
68350 2007-03-03  Bruno Haible  <bruno@clisp.org>
68351
68352         * modules/relocatable-prog-wrapper: New file.
68353         * modules/relocatable (Depends-on): Add it. Remove all other
68354         dependencies except progname.
68355         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
68356
68357         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
68358         (gl_FUNC_STRERROR): Nop.
68359         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
68360
68361         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
68362         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
68363
68364         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
68365         (gl_FUNC_READLINK): Update.
68366
68367         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
68368
68369 2007-03-03  Bruno Haible  <bruno@clisp.org>
68370
68371         * lib/xreadlink.c: Include <unistd.h> unconditionally.
68372         * modules/xreadlink (Depends-on): Add unistd.
68373         * modules/xreadlink-with-size (Depends-on): Likewise.
68374
68375 2007-03-03  Bruno Haible  <bruno@clisp.org>
68376
68377         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
68378         extracted from gt_FUNC_SETENV.
68379         (gt_FUNC_SETENV): Remove macro.
68380         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
68381         remove gt_FUNC_SETENV.
68382
68383 2007-03-03  Bruno Haible  <bruno@clisp.org>
68384
68385         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
68386         ENABLE_RELOCATABLE here.
68387         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
68388
68389 2007-03-03  Bruno Haible  <bruno@clisp.org>
68390
68391         * modules/rbtreehash-list-tests (Depends-on): Add progname.
68392         * tests/test-rbtreehash_list.c: Include progname.h.
68393         (main): Call set_program_name.
68394
68395         * modules/rbtree-oset-tests (Depends-on): Add progname.
68396         * tests/test-rbtree_oset.c: Include progname.h.
68397         (main): Call set_program_name.
68398
68399         * modules/rbtree-list-tests (Depends-on): Add progname.
68400         * tests/test-rbtree_list.c: Include progname.h.
68401         (main): Call set_program_name.
68402
68403         * modules/linked-list-tests (Depends-on): Add progname.
68404         * tests/test-linked_list.c: Include progname.h.
68405         (main): Call set_program_name.
68406
68407 2007-03-03  Bruno Haible  <bruno@clisp.org>
68408
68409         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
68410         All uses of __restrict changed to _Restrict_.
68411         * lib/glob_.h (__restrict): Remove macro.
68412
68413 2007-03-02  Bruno Haible  <bruno@clisp.org>
68414
68415         * modules/gettext (configure.ac): Require gettext infrastructure
68416         from version 0.16.1.
68417
68418 2007-03-02  Bruno Haible  <bruno@clisp.org>
68419
68420         * modules/linkedhash-list-tests (Depends-on): Add progname.
68421         * tests/test-linkedhash_list.c: Include progname.h.
68422         (main): Call set_program_name.
68423
68424         * modules/carray-list-tests (Depends-on): Add progname.
68425         * tests/test-carray_list.c: Include progname.h.
68426         (main): Call set_program_name.
68427
68428         * modules/avltreehash-list-tests (Depends-on): Add progname.
68429         * tests/test-avltreehash_list.c: Include progname.h.
68430         (main): Call set_program_name.
68431
68432         * modules/avltree-oset-tests (Depends-on): Add progname.
68433         * tests/test-avltree_oset.c: Include progname.h.
68434         (main): Call set_program_name.
68435
68436         * modules/avltree-list-tests (Depends-on): Add progname.
68437         * tests/test-avltree_list.c: Include progname.h.
68438         (main): Call set_program_name.
68439
68440         * modules/array-oset-tests (Depends-on): Add progname.
68441         * tests/test-array_oset.c: Include progname.h.
68442         (main): Call set_program_name.
68443
68444         * modules/array-list-tests (Depends-on): Add progname.
68445         * tests/test-array_list.c: Include progname.h.
68446         (main): Call set_program_name.
68447
68448         * modules/argp-tests (Depends-on): Add progname.
68449         * tests/test-argp.c: Include argp.h first. Include progname.h.
68450         (main): Call set_program_name.
68451
68452 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
68453
68454         * doc/gnulib-tool.texi (Initial import): Reword description of
68455         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
68456         limited effect even if defined after the first system include.
68457
68458 2007-03-01  Bruno Haible  <bruno@clisp.org>
68459
68460         * build-aux/config.libpath: Update to libtool-1.5.22.
68461         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68462
68463 2007-03-01  Bruno Haible  <bruno@clisp.org>
68464
68465         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
68466         foo_CFLAGS.
68467         Reported by Ralf Wildenhues.
68468
68469 2007-03-01  Bruno Haible  <bruno@clisp.org>
68470
68471         * build-aux/install-reloc: Remove object files left over by some
68472         compilers.
68473         Reported by Ralf Wildenhues.
68474
68475 2007-03-01  Bruno Haible  <bruno@clisp.org>
68476
68477         * build-aux/install-reloc: Break long lines.
68478
68479 2007-03-01  Bruno Haible  <bruno@clisp.org>
68480
68481         * doc/relocatable.texi: Document that it may not work on OpenBSD.
68482         Reported by Ralf Wildenhues.
68483
68484 2007-03-01  Bruno Haible  <bruno@clisp.org>
68485
68486         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
68487         include ordering constraints.
68488
68489 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68490
68491         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
68492         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
68493         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
68494         as another example.
68495         * lib/time_.h: Fix misspelling.
68496         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68497         Require gl_HEADER_TIME_H_DEFAULTS.
68498         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
68499         * m4/time_r.m4 (gl_TIME_R): Likewise.
68500         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
68501
68502 2007-03-01  Bruno Haible  <bruno@clisp.org>
68503
68504         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
68505         * m4/utimens.m4 (gl_UTIMENS): Likewise.
68506
68507 2007-03-01  Jim Meyering  <jim@meyering.net>
68508
68509         * modules/xreadlink (Maintainer): Add my name.
68510         * modules/xreadlink-with-size (Depends-on): Alphabetize.
68511
68512 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
68513             Bruno Haible  <bruno@clisp.org>
68514
68515         * build-aux/install-reloc: Compile also c-ctype.c.
68516         * build-aux/relocatable.sh.in: New file.
68517         * doc/relocatable.texi: New file.
68518         * doc/relocatable-maint.texi: New file.
68519         * doc/gnulib.texi: Include relocatable-maint.texi.
68520         * lib/progreloc.c: Include unistd.h unconditionally.
68521         * lib/relocwrapper.c: Include unistd.h unconditionally.
68522         Include c-ctype.h.
68523         (add_dotbin): Use c_tolower.
68524         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
68525         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
68526         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
68527         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
68528         to m4/relocatable-lib.m4.
68529         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
68530         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
68531         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
68532         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
68533         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
68534         * modules/relocatable: New file.
68535         * modules/relocatable-lib: New file.
68536         * modules/relocatable-script: New file.
68537
68538 2007-02-28  Bruno Haible  <bruno@clisp.org>
68539
68540         Import --enable-relocatable infrastructure.
68541         * build-aux/config.libpath: New file, from GNU gettext.
68542         * build-aux/install-reloc: New file, from GNU gettext.
68543         * build-aux/reloc-ldflags: New file, from GNU gettext.
68544         * lib/relocatable.h: New file, from GNU gettext.
68545         * lib/relocatable.c: New file, from GNU gettext.
68546         * lib/relocwrapper.c: New file, from GNU gettext.
68547         * m4/relocatable.m4: New file, from GNU gettext.
68548
68549 2007-02-28  Bruno Haible  <bruno@clisp.org>
68550
68551         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
68552
68553         * modules/xreadlink: New file, from GNU gettext with modifications.
68554         * lib/xreadlink.c: New file, from GNU gettext.
68555         * lib/xreadlink.h: Add comments.
68556         (xreadlink): New declaration.
68557
68558         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
68559         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
68560         lib/xreadlink-with-size.c.
68561         (configure.ac): Remove gl_XREADLINK invocation.
68562         (Makefile.am): Augment lib_SOURCES.
68563         * m4/xreadlink.m4: Remove file.
68564         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
68565         (xreadlink_with_size): Renamed from xreadink.
68566         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
68567         * modules/canonicalize (Depends-on): Replace xreadlink with
68568         xreadlink-with-size.
68569         * lib/canonicalize.c (canonicalize_filename_mode): Update.
68570
68571 2007-02-25  Jim Meyering  <jim@meyering.net>
68572
68573         * build-aux/announce-gen: When complaining about excess arguments,
68574         list them.
68575
68576 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68577
68578         * README: Document signed integer overflow situation more
68579         accurately.
68580
68581 2007-02-25  Bruno Haible  <bruno@clisp.org>
68582
68583         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
68584         'a' or 'A' conversion.
68585
68586 2007-02-25  Bruno Haible  <bruno@clisp.org>
68587
68588         * modules/filename: Renamed from modules/pathname.
68589         (Files): Replace lib/pathname.h with lib/filename.h. Replace
68590         lib/concatpath.c with lib/concat-filename.c.
68591         (Makefile.am): Update.
68592         (Include): Replace pathname.h with filename.h.
68593         * lib/filename.h: Renamed from lib/pathname.h.
68594         (concatenated_filename): Renamed from concatenated_pathname.
68595         * lib/concat-filename.c: Renamed from lib/concatpath.c.
68596         (concatenated_filename): Renamed from concatenated_pathname.
68597         * lib/findprog.c: Include filename.h instead of pathname.h.
68598         (find_in_path): Update.
68599         * lib/javacomp.c: Include filename.h instead of pathname.h.
68600         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
68601         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
68602         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
68603         is_oldgcj_14_13_usable, is_javac_usable): Update.
68604         * lib/javaexec.c: Include filename.h instead of pathname.h.
68605         (execute_java_class): Update.
68606         * modules/findprog: Update.
68607         * modules/javacomp: Update.
68608         * modules/javaexec: Update.
68609         * MODULES.html.sh (File system functions): Add 'filename', remove
68610         'pathname'.
68611
68612 2007-02-25  Bruno Haible  <bruno@clisp.org>
68613
68614         * modules/printf-frexpl-tests: New file.
68615         * tests/test-printf-frexpl.c: New file.
68616
68617         * modules/printf-frexpl: New file.
68618         * lib/printf-frexpl.h: New file.
68619         * lib/printf-frexpl.c: New file.
68620         * m4/printf-frexpl.m4: New file.
68621
68622 2007-02-25  Bruno Haible  <bruno@clisp.org>
68623
68624         * modules/printf-frexp-tests: New file.
68625         * tests/test-printf-frexp.c: New file.
68626
68627         * modules/printf-frexp: New file.
68628         * lib/printf-frexp.h: New file.
68629         * lib/printf-frexp.c: New file.
68630         * m4/printf-frexp.m4: New file.
68631
68632 2007-02-25  Bruno Haible  <bruno@clisp.org>
68633
68634         Assume automake >= 1.10 for the tests.
68635         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
68636         * modules/arctwo-tests: Likewise.
68637         * modules/argp-tests: Likewise.
68638         * modules/avltree-list-tests: Likewise.
68639         * modules/avltree-oset-tests: Likewise.
68640         * modules/avltreehash-list-tests: Likewise.
68641         * modules/carray-list-tests: Likewise.
68642         * modules/crc-tests: Likewise.
68643         * modules/des-tests: Likewise.
68644         * modules/gc-arcfour-tests: Likewise.
68645         * modules/gc-arctwo-tests: Likewise.
68646         * modules/gc-des-tests: Likewise.
68647         * modules/gc-hmac-md5-tests: Likewise.
68648         * modules/gc-hmac-sha1-tests: Likewise.
68649         * modules/gc-md2-tests: Likewise.
68650         * modules/gc-md4-tests: Likewise.
68651         * modules/gc-md5-tests: Likewise.
68652         * modules/gc-pbkdf2-sha1-tests: Likewise.
68653         * modules/gc-rijndael-tests: Likewise.
68654         * modules/gc-sha1-tests: Likewise.
68655         * modules/gc-tests: Likewise.
68656         * modules/getaddrinfo-tests: Likewise.
68657         * modules/hmac-md5-tests: Likewise.
68658         * modules/hmac-sha1-tests: Likewise.
68659         * modules/linked-list-tests: Likewise.
68660         * modules/linkedhash-list-tests: Likewise.
68661         * modules/lock-tests: Likewise.
68662         * modules/md2-tests: Likewise.
68663         * modules/md4-tests: Likewise.
68664         * modules/md5-tests: Likewise.
68665         * modules/rbtree-list-tests: Likewise.
68666         * modules/rbtree-oset-tests: Likewise.
68667         * modules/rbtreehash-list-tests: Likewise.
68668         * modules/read-file-tests: Likewise.
68669         * modules/rijndael-tests: Likewise.
68670         * modules/stdint-tests: Likewise.
68671         * modules/tls-tests: Likewise.
68672
68673 2007-02-24  Bruno Haible  <bruno@clisp.org>
68674
68675         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
68676         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
68677         function; instead check whether isnan with a double argument links.
68678         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
68679         function; instead check whether isnan with a 'long double' argument
68680         links.
68681         Reported by Eric Blake <ebb9@byu.net>.
68682
68683 2007-02-24  Bruno Haible  <bruno@clisp.org>
68684
68685         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
68686         defined.
68687         * lib/isnanl.c: Remove all code. Just include isnan.c.
68688         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
68689
68690 2007-02-25  Jim Meyering  <jim@meyering.net>
68691
68692         Avoid conflicting types for 'unsetenv' on FreeBSD.
68693         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
68694         conflicting with FreeBSD's (5.0 and 6.1) function declaration
68695         in stdlib.h.
68696
68697 2007-02-24  Bruno Haible  <bruno@clisp.org>
68698
68699         * modules/isnanl-nolibm-tests: New file.
68700         * tests/test-isnanl.c: New file.
68701
68702         * modules/isnanl-nolibm: New file.
68703         * lib/isnanl.h: New file.
68704         * lib/isnanl.c: New file.
68705         * m4/isnanl.m4: New file.
68706
68707 2007-02-24  Bruno Haible  <bruno@clisp.org>
68708
68709         * modules/isnan-nolibm-tests: New file.
68710         * tests/test-isnan.c: New file.
68711
68712         * modules/isnan-nolibm: New file.
68713         * lib/isnan.h: New file.
68714         * lib/isnan.c: New file.
68715         * m4/isnan.m4: New file.
68716
68717 2007-02-24  Bruno Haible  <bruno@clisp.org>
68718
68719         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
68720         assume that an exponent fits in 20 bits.
68721
68722 2007-02-24  Jim Meyering  <jim@meyering.net>
68723
68724         * m4/regex.m4: Update the description of the configure-time option,
68725         --without-included-regex, to state accurately what the defaults are,
68726         and perhaps to give people an idea why using this option is risky.
68727
68728 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
68729
68730         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
68731         loops on small arguments.  This attempts to avoid the problem
68732         Bruno Haible reported for AIX 4.3.2 in
68733         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
68734
68735 2007-02-23  Bruno Haible  <bruno@clisp.org>
68736
68737         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
68738         Needed for help2man.
68739
68740 2007-02-23  Karl Berry  <karl@gnu.org>
68741
68742         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
68743         exists, foo.h should be cvs-ignored, not committed.
68744
68745 2007-02-23  Eric Blake  <ebb9@byu.net>
68746
68747         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
68748         * lib/stat-time.h (includes): Likewise.
68749         * lib/utimecmp.c (includes): Likewise.
68750         * lib/utimens.h (includes): Likewise.
68751         * lib/getdate.y (includes): Also include "timespec.h" for use
68752         internal to the module.
68753         * modules/utimens (Depends-on): Revert yesterday's patch.
68754         * modules/nanosleep (Depends-on): Add missing dependency.
68755
68756 2007-02-22  Bruno Haible  <bruno@clisp.org>
68757
68758         * lib/glob.c: Don't include getlogin_r.h.
68759
68760 2007-02-22  Jim Meyering  <jim@meyering.net>
68761
68762         * modules/utimens (Depends-on): Add timespec, required for
68763         utimens.h's inclusion of timespec.h.
68764
68765 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
68766
68767         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
68768         long unreadable paths in GNU/Linux.  Problem reported by Andreas
68769         Schwab in
68770         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
68771         I'll try to think of a better way to fix the Solaris problem.
68772
68773         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
68774         like glibc; on Solaris 10, it fails with errno == EINVAL.
68775         POSIX says the behavior is unspecified if the first argument is NULL,
68776         so play it safe and never pass NULL to the system getcwd.
68777
68778 2007-02-21  Jim Meyering  <jim@meyering.net>
68779
68780         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
68781         of gettimeofday.  It would conflict with the one now always
68782         provided via sys_time_.h.  Reported by Matthew Woehlke, as
68783         an IRIX 6.5 build failure.
68784
68785 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68786
68787         Minor fixups to port to Solaris 10 with Sun C 5.8.
68788         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
68789         * modules/getcwd (Depends-on): Add dirfd.
68790         * lib/putenv.c (putenv): #undef it.
68791         (rpl_putenv): New decl.
68792         (malloc, free): Include <stdlib.h> rather than prototyping separately.
68793
68794 2007-02-20  Bruno Haible  <bruno@clisp.org>
68795
68796         * modules/stdio-tests: New file.
68797         * tests/test-stdio.c: New file.
68798
68799         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
68800         (Depends-on): Add stdio.
68801         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68802         (Include): Use <stdio.h> instead of vsnprintf.h.
68803         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68804         HAVE_DECL_VSNPRINTF.
68805         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
68806
68807         * modules/snprintf (Files): Remove lib/snprintf.h.
68808         (Depends-on): Add stdio.
68809         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68810         (Include): Use <stdio.h> instead of snprintf.h.
68811         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68812         HAVE_DECL_SNPRINTF.
68813         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
68814         * lib/getaddrinfo.c: Likewise.
68815
68816         * modules/stdio: New file.
68817         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
68818         * lib/snprintf.h: Remove file.
68819         * lib/vsnprintf.h: Remove file.
68820         * lib/.cppi-disable: Remove snprintf.h.
68821         * m4/stdio_h.m4: New file.
68822         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
68823
68824 2007-02-20  Jim Meyering  <jim@meyering.net>
68825
68826         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
68827         used by e.g., mingw.  From Bruno Haible.
68828
68829 2007-02-19  Bruno Haible  <bruno@clisp.org>
68830
68831         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
68832         warnings.
68833         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68834
68835 2007-02-19  Bruno Haible  <bruno@clisp.org>
68836
68837         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
68838         from mingw users.
68839
68840 2007-02-19  Bruno Haible  <bruno@clisp.org>
68841
68842         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
68843         warnings.
68844         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
68845
68846 2007-02-19  Jim Meyering  <jim@meyering.net>
68847
68848         Don't use FD after a successful "fdopendir (fd)".
68849         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
68850         Reset it by calling dirfd on the just-obtained DIR*.
68851
68852         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
68853         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
68854
68855 2007-02-18  Bruno Haible  <bruno@clisp.org>
68856
68857         * lib/readlink.c: Include <unistd.h>.
68858         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
68859         HAVE_READLINK.
68860         * modules/readlink (Depends-on): Add unistd.
68861         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68862         (Include): Add <unistd.h>.
68863
68864         * lib/getlogin_r.h: Remove file.
68865         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
68866         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
68867         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
68868         HAVE_DECL_GETLOGIN_R.
68869         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
68870         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68871         (Include): Use <unistd.h> instead of getlogin_r.h.
68872
68873         * lib/getcwd.h: Remove file.
68874         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
68875         * lib/xgetcwd.c: Likewise.
68876         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
68877         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
68878         * modules/getcwd (Files): Remove lib/getcwd.h.
68879         (Depends-on): Add unistd.
68880         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68881         (Include): Use <unistd.h> instad of getcwd.h.
68882
68883         * lib/ftruncate.c: Include <unistd.h> first.
68884         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
68885         Set HAVE_FTRUNCATE.
68886         * modules/ftruncate (Depends-on): Add unistd.
68887         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68888
68889         * lib/fchdir.c: Include <unistd.h> first.
68890         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
68891         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
68892         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
68893         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68894         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
68895
68896         * lib/dup2.c: Include <unistd.h> first.
68897         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
68898         HAVE_DUP2.
68899         * modules/dup2 (Depends-on): Add unistd.
68900         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68901
68902         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
68903         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
68904         REPLACE_CHOWN. Don't define chown as a macro here.
68905         * modules/chown (Depends-on): Add unistd.
68906         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68907
68908         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
68909         Add definition for GL_LINK_WARNING.
68910         (chown, dup2): New declarations.
68911         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
68912         link warning.
68913         (ftruncate): New declaration.
68914         (getcwd): New declaration, taken from old getcwd.h.
68915         (getlogin_r): New declaration, taken from old getlogin_r.h.
68916         (readlink): New declaration.
68917         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
68918         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
68919         (gl_PREREQ_UNISTD): Remove macro.
68920         (gl_UNISTD_MODULE_INDICATOR): New macro.
68921         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
68922         many new variables. Don't set UNISTD_H.
68923         * modules/unistd (Description): Change.
68924         (Depends-on): Add link-warning.
68925         (configure.ac): Update.
68926         (Makefile.am): Create unistd.h always. Substitute many new variables
68927         into it.
68928
68929 2007-02-18  Bruno Haible  <bruno@clisp.org>
68930
68931         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
68932         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
68933         HAVE_GETSUBOPT.
68934         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
68935         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
68936         * lib/getsubopt.h: Remove file.
68937         * modules/getsubopt (Files): Remove lib/getsubopt.h.
68938         (Depends-on): Add stdlib.
68939         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68940         (Includes): Use <stdlib.h> instead of getsubopt.h.
68941         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
68942         Set HAVE_GETSUBOPT.
68943         * lib/getsubopt.c: Don't include getsubopt.h.
68944
68945 2007-02-18  Bruno Haible  <bruno@clisp.org>
68946
68947         * modules/fchdir (Depends-on): Add dup2.
68948
68949 2007-02-18  Bruno Haible  <bruno@clisp.org>
68950
68951         * lib/stdlib_.h: Handle glibc's special invocation convention
68952         specially.
68953
68954 2007-02-18  Bruno Haible  <bruno@clisp.org>
68955
68956         * modules/stdlib-tests: New file.
68957         * tests/test-stdlib.c: New file.
68958
68959         * modules/mkstemp (Files): Remove lib/mkstemp.h.
68960         (Depends-on): Add stdlib.
68961         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68962         (Includes): Use <stdlib.h> instead of mkstemp.h.
68963         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68964         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
68965         * lib/mkstemp.c: Don't include mkstemp.h.
68966         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
68967         * lib/stdlib--.h: Don't include mkstemp.h.
68968
68969         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
68970         (Depends-on): Add stdlib.
68971         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68972         (Includes): Use <stdlib.h> instead of mkdtemp.h.
68973         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68974         HAVE_MKDTEMP.
68975         * lib/mkdtemp.c: Don't include mkdtemp.h.
68976         * lib/clean-temp.c: Don't include mkdtemp.h.
68977
68978         * modules/exit (Files): Remove lib/exit.h.
68979         (Depends-on): Add stdlib.
68980         (Makefile.am): Remove lib_SOURCES.
68981         (Include): Use <stdlib.h> instead of exit.h.
68982         * lib/argmatch.c: Don't include exit.h.
68983         * lib/execute.c: Likewise.
68984         * lib/pagealign_alloc.c: Likewise.
68985         * lib/pipe.c: Likewise.
68986         * lib/wait-process.c: Likewise.
68987         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
68988         * lib/exitfail.c: Likewise.
68989         * lib/savewd.c: Likewise.
68990         * lib/xsetenv.c: Likewise.
68991
68992         * modules/stdlib: New file.
68993         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
68994         and extra comments about mkstemp().
68995         * lib/exit.h: Remove file.
68996         * lib/mkdtemp.h: Remove file.
68997         * lib/mkstemp.h: Remove file.
68998         * m4/stdlib_h.m4: New file.
68999         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
69000
69001 2007-02-18  Bruno Haible  <bruno@clisp.org>
69002
69003         * modules/math-tests: New file.
69004         * tests/test-math.c: New file.
69005
69006         * modules/math: New file.
69007         * modules/mathl (Files): Remove lib/mathl.h.
69008         (Depends-on): Add math.
69009         (Makefile.am): Don't mention mathl.h.
69010         (Include): Use <math.h> instead of mathl.h.
69011         * lib/math_.h: New file.
69012         * lib/mathl.h: Remove file.
69013         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
69014         mathl.h.
69015         * lib/asinl.c: Likewise.
69016         * lib/atanl.c: Likewise.
69017         * lib/ceill.c: Likewise.
69018         * lib/cosl.c: Likewise.
69019         * lib/expl.c: Likewise.
69020         * lib/floorl.c: Likewise.
69021         * lib/frexpl.c: Likewise.
69022         * lib/ldexpl.c: Likewise.
69023         * lib/logl.c: Likewise.
69024         * lib/sincosl.c: Likewise.
69025         * lib/sinl.c: Likewise.
69026         * lib/sqrtl.c: Likewise.
69027         * lib/tanl.c: Likewise.
69028         * lib/trigl.c: Likewise.
69029         * m4/math_h.m4: New file.
69030         * MODULES.html.sh (Mathematics): Add math.
69031
69032 2007-02-17  Bruno Haible  <bruno@clisp.org>
69033
69034         * modules/wctype-tests: New file.
69035         * tests/test-wctype.c: New file.
69036
69037         * modules/wchar-tests: New file.
69038         * tests/test-wchar.c: New file.
69039
69040         * modules/unistd-tests: New file.
69041         * tests/test-unistd.c: New file.
69042
69043         * modules/time-tests: New file.
69044         * tests/test-time.c: New file.
69045
69046         * modules/sysexits-tests: New file.
69047         * tests/test-sysexits.c: New file.
69048
69049         * modules/sys_time-tests: New file.
69050         * tests/test-sys_time.c: New file.
69051
69052         * modules/sys_stat-tests: New file.
69053         * tests/test-sys_stat.c: New file.
69054
69055         * modules/sys_socket-tests: New file.
69056         * tests/test-sys_socket.c: New file.
69057
69058         * modules/sys_select-tests: New file.
69059         * tests/test-sys_select.c: New file.
69060
69061         * modules/string-tests: New file.
69062         * tests/test-string.c: New file.
69063
69064         * modules/stdbool-tests: New file.
69065         * tests/test-stdbool.c: New file.
69066
69067         * modules/netinet_in-tests: New file.
69068         * tests/test-netinet_in.c: New file.
69069
69070         * modules/inttypes-tests: New file.
69071         * tests/test-inttypes.c: New file.
69072
69073         * modules/fcntl-tests: New file.
69074         * tests/test-fcntl.c: New file.
69075
69076         * modules/byteswap-tests: New file.
69077         * tests/test-byteswap.c: New file.
69078
69079         * modules/arpa_inet-tests: New file.
69080         * tests/test-arpa_inet.c: New file.
69081
69082 2007-02-17  Bruno Haible  <bruno@clisp.org>
69083
69084         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
69085         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
69086         if the corresponding module is not enabled. Emit link warnings if
69087         the function is used nevertheless.
69088         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
69089         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
69090         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
69091         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
69092         * modules/inttypes (Depends-on): Add link-warning.
69093         (Makefile.am): Copy the contents of build-aux/link-warning.h into
69094         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
69095         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
69096         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
69097         * modules/imaxdiv (configure.ac): Likewise.
69098         * modules/strtoimax (configure.ac): Likewise.
69099         * modules/strtoumax (configure.ac): Likewise.
69100
69101 2007-02-17  Bruno Haible  <bruno@clisp.org>
69102
69103         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
69104         gl_STRING_MODULE_INDICATOR_DEFAULTS.
69105         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
69106         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
69107
69108 2007-02-17  Bruno Haible  <bruno@clisp.org>
69109
69110         * modules/link-warning: New file.
69111         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
69112         * lib/string_.h (GL_LINK_WARNING): Remove definition.
69113         * modules/string (Depends-on): Add link-warning.
69114         (Makefile.am): Copy the contents of build-aux/link-warning.h into
69115         string.h.
69116         * MODULES.html.sh (Support for building libraries and executables): Add
69117         link-warning.
69118
69119 2007-02-17  Bruno Haible  <bruno@clisp.org>
69120
69121         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
69122         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
69123         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
69124         long lines.
69125
69126 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
69127             Bruno Haible  <bruno@clisp.org>
69128
69129         * modules/tmpfile: New file.
69130         * lib/tmpfile.c: New file.
69131         * m4/tmpfile.m4: New file.
69132         * MODULES.html.sh (func_all_modules): New section "Input/output".
69133
69134 2007-02-15  Bruno Haible  <bruno@clisp.org>
69135
69136         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
69137         (supports_delete_on_close): New function.
69138         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
69139
69140 2007-02-14  Bruno Haible  <bruno@clisp.org>
69141
69142         * modules/mbspcasecmp-tests: New file.
69143         * tests/test-mbspcasecmp.sh: New file.
69144         * tests/test-mbspcasecmp.c: New file.
69145
69146         New module mbspcasecmp.
69147         * modules/mbspcasecmp: New file.
69148         * lib/mbspcasecmp.c: New file.
69149         * lib/string_.h (strncasecmp): Change warning message.
69150         (mbspcasecmp): New declaration.
69151         * m4/mbspcasecmp.m4: New file.
69152         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69153         GNULIB_MBSPCASECMP.
69154         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
69155         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
69156
69157 2007-02-14  Bruno Haible  <bruno@clisp.org>
69158
69159         * modules/mbsncasecmp-tests: New file.
69160         * tests/test-mbsncasecmp.sh: New file.
69161         * tests/test-mbsncasecmp.c: New file.
69162
69163         New module mbsncasecmp.
69164         * modules/mbsncasecmp: New file.
69165         * lib/mbsncasecmp.c: New file.
69166         * lib/string_.h (mbsncasecmp): New declaration.
69167         * m4/mbsncasecmp.m4: New file.
69168         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69169         GNULIB_MBSNCASECMP.
69170         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
69171         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
69172
69173 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
69174
69175         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
69176         Verify that it doesn't overlap with our flags.
69177         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
69178         do not have the desired effect in multibyte locales; instead, use
69179         mbscasecmp.
69180         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
69181         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
69182         we don't require GNU fnmatch ourselves (if our users require it, they
69183         should do so explicitly).
69184
69185         Fix regex code so it doesn't rely on strcasecmp.
69186         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
69187         Otherwise, include gnulib's langinfo.h.
69188         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
69189         undesirable behavior in non-C locales.  Instead, rely on localecharset.
69190         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
69191         * modules/regex (FILES): Remove m4/codeset.m4.
69192         (Depends-on): Add localcharset.  Remove strcase.
69193
69194 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69195
69196         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
69197         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
69198
69199 2007-02-13  Bruno Haible  <bruno@clisp.org>
69200
69201         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
69202         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69203
69204 2007-02-12  Bruno Haible  <bruno@clisp.org>
69205
69206         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69207         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
69208         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
69209         time warning rather than a link error.
69210
69211 2007-02-12  Bruno Haible  <bruno@clisp.org>
69212
69213         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
69214         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
69215         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69216
69217 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
69218
69219         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
69220         args, not 2.
69221
69222 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
69223
69224         New module 'time', so that apps can include <time.h> as per
69225         POSIX and GNU instead of separate include files like time_r.h
69226         and timegm.h.  This implementation tries out a simpler approach
69227         for replacing decls in standard include files (as compared to
69228         the string module), somewhat as an experiment.
69229
69230         * config/srclist.txt: Comment out mktime.c for now.
69231         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
69232         since it doesn't apply any more.  Use generic wording instead.
69233         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
69234         'time'.
69235         * lib/time_.h, m4/time_h.m4, modules/time: New files.
69236         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
69237         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
69238         Don't include <sys/types.h>; no longer needed since we assume C89.
69239         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
69240         * lib/strftime.c: Likewise.
69241         * lib/time_r.c: Likewise.
69242         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
69243         * lib/nanosleep.c: Include <time.h> first, to check interface.
69244         * lib/strptime.c: Likewise.
69245         * lib/time_r.c: Likewise.
69246         * lib/timegm.c: Likewise.
69247         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
69248         needed.
69249         * lib/timegm.c: Don't include timegm.h; no longer needed.
69250         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
69251         time.h now handles any problems in that area.
69252         (struct timespec, nanosleep): Remove; time.h now arranges for these.
69253         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
69254         that time.h defines struct timespec.
69255         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
69256         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
69257         handles that.
69258         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
69259         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
69260         needed.  Set REPLACE_LOCALTIME.
69261         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
69262         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
69263         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
69264         nanosleep; time_h.m4 now does that.  Don't require
69265         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
69266         module handles this now.
69267         * modules/getdate (Depends-on): Remove timespec.  Add time.
69268         * modules/nanosleep (Depends-on): Likewise.
69269         * modules/stat-time (Depends-on): Likewise.
69270         * modules/nanosleep (Include): Include time.h, not timespec.h.
69271         * modules/strptime (Files): Remove lib/strptime.h.
69272         (Depends-on): Add extensions, time.
69273         (Include): Include time.h, not strptime.h.
69274         * modules/time_r (Files): Remove lib/time_r.h.
69275         (Depends-on): Add time.
69276         (Include): Include time.h, not time_r.h.
69277         * modules/timegm: Likewise.
69278         * modules/timespec (Description): Now does timespec-related decls
69279         of our own, instead of struct timespec itself.
69280         (Depends-on): Add time; remove extensions.
69281         (Maintainer): Add self.
69282         * modules/utimecmp (Depends-on): Add time; remove timespec.
69283         * modules/utimens (Depends-on): Likewise.
69284         * modules/xnanosleep (Depends-on): Likewise.
69285
69286 2007-02-11  Bruno Haible  <bruno@clisp.org>
69287
69288         * lib/c-strstr.c: Include allocsa.h.
69289         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69290         * lib/c-strcasestr.c: Include allocsa.h.
69291         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69292         * lib/strcasestr.c: Include allocsa.h.
69293         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69294         * lib/mbsstr.c: Include allocsa.h.
69295         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69296         allocsa/freesa instead of malloc/free.
69297         * lib/mbscasestr.c: Include allocsa.h.
69298         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69299         allocsa/freesa instead of malloc/free.
69300         * modules/c-strstr (Depends-on): Add allocsa.
69301         * modules/c-strcasestr (Depends-on): Likewise.
69302         * modules/strcasestr (Depends-on): Likewise.
69303         * modules/mbsstr (Depends-on): Likewise.
69304         * modules/mbscasestr (Depends-on): Likewise.
69305
69306 2007-02-11  Bruno Haible  <bruno@clisp.org>
69307
69308         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
69309
69310         * modules/mbsspn-tests: New file.
69311         * tests/test-mbsspn.sh: New file.
69312         * tests/test-mbsspn.c: New file.
69313
69314 2007-02-11  Bruno Haible  <bruno@clisp.org>
69315
69316         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
69317
69318         * modules/mbspbrk-tests: New file.
69319         * tests/test-mbspbrk.sh: New file.
69320         * tests/test-mbspbrk.c: New file.
69321
69322 2007-02-11  Bruno Haible  <bruno@clisp.org>
69323
69324         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
69325         unneeded cast.
69326
69327         * modules/mbscspn-tests: New file.
69328         * tests/test-mbscspn.sh: New file.
69329         * tests/test-mbscspn.c: New file.
69330
69331 2007-02-11  Bruno Haible  <bruno@clisp.org>
69332
69333         * modules/mbscasecmp-tests: New file.
69334         * tests/test-mbscasecmp.sh: New file.
69335         * tests/test-mbscasecmp.c: New file.
69336
69337 2007-02-11  Bruno Haible  <bruno@clisp.org>
69338
69339         Ensure O(n) worst-case complexity of mbscasestr.
69340         * lib/mbscasestr.c: Include stdbool.h.
69341         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69342         functions.
69343         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
69344         the bookkeeping indicates that it's worth it.
69345         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
69346
69347         * modules/mbscasestr-tests: New file.
69348         * tests/test-mbscasestr1.c: New file.
69349         * tests/test-mbscasestr2.sh: New file.
69350         * tests/test-mbscasestr2.c: New file.
69351         * tests/test-mbscasestr3.sh: New file.
69352         * tests/test-mbscasestr3.c: New file.
69353         * tests/test-mbscasestr4.sh: New file.
69354         * tests/test-mbscasestr4.c: New file.
69355         * m4/locale-tr.m4: New file.
69356
69357 2007-02-11  Bruno Haible  <bruno@clisp.org>
69358
69359         Ensure O(n) worst-case complexity of mbsstr.
69360         * lib/mbsstr.c: Include stdbool.h.
69361         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69362         functions.
69363         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
69364         bookkeeping indicates that it's worth it.
69365         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
69366
69367         * modules/mbsstr-tests: New file.
69368         * tests/test-mbsstr1.c: New file.
69369         * tests/test-mbsstr2.sh: New file.
69370         * tests/test-mbsstr2.c: New file.
69371         * tests/test-mbsstr3.sh: New file.
69372         * tests/test-mbsstr3.c: New file.
69373         * m4/locale-fr.m4: New file.
69374
69375 2007-02-11  Bruno Haible  <bruno@clisp.org>
69376
69377         * lib/mbsrchr.c (mbsrchr): Fix bug.
69378
69379         * modules/mbsrchr-tests: New file.
69380         * tests/test-mbsrchr.sh: New file.
69381         * tests/test-mbsrchr.c: New file.
69382
69383 2007-02-11  Bruno Haible  <bruno@clisp.org>
69384
69385         * lib/mbschr.c (mbschr): Fix bug.
69386
69387         * modules/mbschr-tests: New file.
69388         * tests/test-mbschr.sh: New file.
69389         * tests/test-mbschr.c: New file.
69390         * m4/locale-zh.m4: New file.
69391
69392 2007-02-11  Bruno Haible  <bruno@clisp.org>
69393
69394         Support for copying multibyte string iterators.
69395         * lib/mbiter.h: Include <string.h>.
69396         (mbiter_multi_copy): New function.
69397         (mbi_copy): New macro.
69398         * lib/mbuiter.h: Include <string.h>.
69399         (mbuiter_multi_copy): New function.
69400         (mbui_copy): New macro.
69401
69402 2007-02-11  Bruno Haible  <bruno@clisp.org>
69403
69404         New module mbslen.
69405         * modules/mbslen: New file.
69406         * lib/mbslen.c: New file.
69407         * lib/string_.h (mbslen): New declaration.
69408         * m4/mbslen.m4: New file.
69409         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69410         GNULIB_MBSLEN.
69411         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
69412         * MODULES.html.sh (Internationalization functions): Add mbslen.
69413
69414 2007-02-11  Bruno Haible  <bruno@clisp.org>
69415
69416         Ensure O(n) worst-case complexity of strcasestr substitute.
69417         * lib/strcasestr.c: Include stdbool.h.
69418         (knuth_morris_pratt): New function.
69419         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69420         bookkeeping indicates that it's worth it.
69421         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
69422
69423         * modules/strcasestr-tests: New file.
69424         * tests/test-strcasestr.c: New file.
69425
69426 2007-02-11  Bruno Haible  <bruno@clisp.org>
69427
69428         Ensure O(n) worst-case complexity of c_strcasestr.
69429         * lib/c-strcasestr.c: Include stdbool.h, string.h.
69430         (knuth_morris_pratt): New function.
69431         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
69432         the bookkeeping indicates that it's worth it.
69433         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
69434
69435         * modules/c-strcasestr-tests: New file.
69436         * tests/test-c-strcasestr.c: New file.
69437
69438 2007-02-11  Bruno Haible  <bruno@clisp.org>
69439
69440         Ensure O(n) worst-case complexity of c_strstr.
69441         * lib/c-strstr.c: Include stdbool.h, string.h.
69442         (knuth_morris_pratt): New function.
69443         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69444         bookkeeping indicates that it's worth it.
69445         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
69446
69447         * lib/c-strstr.c: Complete rewrite for maintainability.
69448
69449         * modules/c-strstr-tests: New file.
69450         * tests/test-c-strstr.c: New file.
69451
69452 2007-02-11  Bruno Haible  <bruno@clisp.org>
69453
69454         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
69455         5.2.1 and earlier, whereby \055 was treated just like the range
69456         delimiter '-'.
69457         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
69458
69459 2007-02-08  Bruno Haible  <bruno@clisp.org>
69460
69461         * modules/regex (Depends-on): Add stdbool.
69462         Reported by Dalibor Topic <robilad@kaffe.org>.
69463
69464 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
69465
69466         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
69467         Prefer returning from main to exiting from it.
69468         Remove unnecessary parens after sizeof.
69469
69470 2007-02-05  Bruno Haible  <bruno@clisp.org>
69471
69472         New module mbssep.
69473         * modules/mbssep: New file.
69474         * lib/mbssep.c: New file.
69475         * lib/string_.h (strsep): Add a conditional link warning.
69476         (mbssep): New declaration.
69477         * m4/mbssep.m4: New file.
69478         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69479         GNULIB_MBSSEP.
69480         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
69481         * MODULES.html.sh (Internationalization functions): Add mbssep.
69482
69483 2007-02-05  Bruno Haible  <bruno@clisp.org>
69484
69485         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
69486         Optimize search in case of 1 delimiter.
69487
69488 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69489
69490         * lib/acl.h: Include sys/types.h before sys/acl.h.
69491
69492 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69493
69494         Merge upstream fix for glibc bugzilla #3957:
69495
69496         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
69497
69498         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
69499         bit for RE_HAT_LISTS_NOT_NEWLINE.
69500         (build_charclass_op): Remove bogus comment.
69501
69502 2007-02-05  Simon Josefsson  <simon@josefsson.org>
69503
69504         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
69505
69506 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69507
69508         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
69509         * lib/memmem.c [!defined _LIBC]: Include config.h.
69510
69511 2007-02-04  Bruno Haible  <bruno@clisp.org>
69512
69513         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
69514         warning message.
69515
69516 2007-02-04  Bruno Haible  <bruno@clisp.org>
69517
69518         New module mbstok_r.
69519         * modules/mbstok_r: New file.
69520         * lib/mbstok_r.c: New file.
69521         * lib/string_.h (strtok_r): Change argument names to match the
69522         comments. Add a conditional link warning.
69523         (mbstok_r): New declaration.
69524         * m4/mbstok_r.m4: New file.
69525         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69526         GNULIB_MBSTOK_R.
69527         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
69528         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
69529
69530 2007-02-04  Bruno Haible  <bruno@clisp.org>
69531
69532         New module mbsspn.
69533         * modules/mbsspn: New file.
69534         * lib/mbsspn.c: New file.
69535         * lib/string_.h (strspn): Add a conditional link warning.
69536         (mbsspn): New declaration.
69537         * m4/mbsspn.m4: New file.
69538         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69539         GNULIB_MBSSPN.
69540         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
69541         * MODULES.html.sh (Internationalization functions): Add mbsspn.
69542
69543 2007-02-04  Bruno Haible  <bruno@clisp.org>
69544
69545         New module mbspbrk.
69546         * modules/mbspbrk: New file.
69547         * lib/mbspbrk.c: New file.
69548         * lib/string_.h (strpbrk): Add a conditional link warning.
69549         (mbspbrk): New declaration.
69550         * m4/mbspbrk.m4: New file.
69551         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69552         GNULIB_MBSPBRK.
69553         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
69554         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
69555
69556 2007-02-04  Bruno Haible  <bruno@clisp.org>
69557
69558         New module mbscspn.
69559         * modules/mbscspn: New file.
69560         * lib/mbscspn.c: New file.
69561         * lib/string_.h (strcspn): Add a conditional link warning.
69562         (mbscspn): New declaration.
69563         * m4/mbscspn.m4: New file.
69564         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69565         GNULIB_MBSCSPN.
69566         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
69567         * MODULES.html.sh (Internationalization functions): Add mbscspn.
69568
69569 2007-02-04  Bruno Haible  <bruno@clisp.org>
69570
69571         New module mbscasestr, reduced goal of strcasestr.
69572         * modules/mbscasestr: New file.
69573         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
69574         (mbscasestr): Renamed from strcasestr.
69575         * lib/strcasestr.c: Don't include mbuiter.h.
69576         (strcasestr): Remove support for multibyte locales.
69577         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
69578         Change the conditional link warning.
69579         (mbscasestr): New declaration.
69580         * m4/mbscasestr.m4: New file.
69581         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
69582         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
69583         REPLACE_STRCASESTR.
69584         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
69585         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69586         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69587         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
69588         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
69589         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69590         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
69591         (Depends-on): Remove mbuiter.
69592         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
69593
69594 2007-02-04  Bruno Haible  <bruno@clisp.org>
69595
69596         Simplify handling of strncasecmp.
69597         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
69598         the conditional link warning.
69599         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69600         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
69601         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
69602         * modules/strcase (configure.ac): Don't invoke
69603         gl_STRING_MODULE_INDICATOR.
69604         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
69605
69606 2007-02-04  Bruno Haible  <bruno@clisp.org>
69607
69608         New module mbscasecmp, reduced goal of strcasecmp.
69609         * modules/mbscasecmp: New file.
69610         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
69611         (mbscasecmp): Renamed from strcasecmp.
69612         * lib/strcasecmp.c: Don't include mbuiter.h.
69613         (strcasecmp): Remove support for multibyte locales.
69614         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
69615         Change the conditional link warning.
69616         (mbscasecmp): New declaration.
69617         * m4/mbscasecmp.m4: New file.
69618         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
69619         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
69620         REPLACE_STRCASECMP.
69621         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
69622         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69623         GNULIB_MBSCASECMP.
69624         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
69625         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
69626         * modules/strcase (Files): Remove m4/mbrtowc.m4.
69627         (Depends-on): Remove mbuiter.
69628         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
69629
69630 2007-02-04  Bruno Haible  <bruno@clisp.org>
69631
69632         New module mbsstr. Remove module strstr.
69633         * modules/mbsstr: New file.
69634         * modules/strstr: Remove file.
69635         * lib/mbsstr.c: Renamed from lib/strstr.c.
69636         (mbsstr): Renamed from strstr.
69637         * lib/string_.h (strstr): Remove declaration. Change the conditional
69638         link warning.
69639         (mbsstr): New declaration.
69640         * m4/mbsstr.m4: New file.
69641         * m4/strstr.m4: Remove file.
69642         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
69643         REPLACE_STRSTR.
69644         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
69645         Don't initialize GNULIB_STRSTR.
69646         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
69647         substitute GNULIB_STRSTR and REPLACE_STRSTR.
69648         * MODULES.html.sh (Internationalization functions): Add mbsstr.
69649         (Support for systems lacking ANSI C 89): Remove strstr.
69650
69651 2007-02-04  Bruno Haible  <bruno@clisp.org>
69652
69653         New module mbsrchr.
69654         * modules/mbsrchr: New file.
69655         * lib/mbsrchr.c: New file.
69656         * lib/string_.h (strrchr): Add a conditional link warning.
69657         (mbsrchr): New declaration.
69658         * m4/mbsrchr.m4: New file.
69659         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69660         GNULIB_MBSRCHR.
69661         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
69662         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
69663
69664 2007-02-04  Bruno Haible  <bruno@clisp.org>
69665
69666         New module mbschr.
69667         * modules/mbschr: New file.
69668         * lib/mbschr.c: New file.
69669         * lib/string_.h (strchr): Add a conditional link warning.
69670         (mbschr): New declaration.
69671         * m4/mbschr.m4: New file.
69672         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69673         GNULIB_MBSCHR.
69674         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
69675         * MODULES.html.sh (Internationalization functions): Add mbschr.
69676
69677 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69678
69679         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
69680
69681         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
69682
69683 2007-02-04  Bruno Haible  <bruno@clisp.org>
69684
69685         New module description section 'configure.ac-early'.
69686         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
69687         (func_get_autoconf_early_snippet): New function.
69688         (func_import, func_create_testdir): Use it. Remove special cases for
69689         modules 'extensions' and 'lock'.
69690         * modules/extensions (configure.ac-early): Require
69691         gl_USE_SYSTEM_EXTENSIONS.
69692         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
69693
69694 2007-02-04  Bruno Haible  <bruno@clisp.org>
69695
69696         Make use of gcj-4.3's -fsource and -ftarget option.
69697         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
69698         and if so try the options -fsource and -ftarget.
69699         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
69700         source_version, ftarget_option, target_version arguments.
69701         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
69702         (is_envjavac_oldgcj_14_14_usable): Renamed from
69703         is_envjavac_gcj_14_14_usable.
69704         (is_envjavac_oldgcj_14_13_usable): Renamed from
69705         is_envjavac_gcj_14_13_usable.
69706         (is_gcj_present): Update.
69707         (is_gcj_43, is_gcj43_usable): New functions.
69708         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
69709         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
69710         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
69711         try the options -fsource and -ftarget.
69712
69713 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69714
69715         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
69716         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
69717         larger value.
69718
69719 2007-02-03  Jim Meyering  <jim@meyering.net>
69720
69721         Give tools a better chance to allocate space for very large buffers.
69722         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
69723
69724         Make pwd and readlink work also when run with an unreadable parent dir
69725         on systems with openat support.
69726         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
69727         provided getcwd function, even when we have openat support.
69728         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
69729
69730 2007-02-02  Bruno Haible  <bruno@clisp.org>
69731
69732         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69733         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
69734         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
69735         portability problems if one of these functions is only used on specific
69736         platforms.
69737         Reported by Paul Eggert.
69738
69739 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
69740
69741         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
69742         is causing more trouble than it's curing.
69743         * lib/regex_internal.h (__mempcpy): Remove.
69744         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
69745         (and make the code a tad smaller to boot).
69746         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
69747
69748 2007-02-02  Jim Meyering  <jim@meyering.net>
69749
69750         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
69751         section, not in the Makefile.am: one.
69752
69753 2007-02-02  Eric Blake  <ebb9@byu.net>
69754
69755         * lib/strchrnul.c: Always include config.h first.
69756
69757         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
69758         gnulib strstr is not necessary here.
69759
69760 2007-02-02  Simon Josefsson  <simon@josefsson.org>
69761
69762         * m4/socklen.m4: Fix typo.
69763
69764 2007-02-02  Eric Blake  <ebb9@byu.net>
69765
69766         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
69767         * modules/netinet_in (Makefile.am): Likewise.
69768
69769 2007-02-01  Bruno Haible  <bruno@clisp.org>
69770
69771         * lib/string_.h (GL_LINK_WARNING): New macro.
69772         (strcasecmp, strstr, strcasestr): If provided by the system,
69773         conditionally define as a macro that leads to a warning instead of to
69774         an error.
69775         (strncasecmp): Conditionally define as a macro that leads to a warning.
69776
69777 2007-02-01  Karl Berry  <karl@gnu.org>
69778
69779         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
69780
69781 2007-02-01  Bruno Haible  <bruno@clisp.org>
69782
69783         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
69784         renamings.
69785
69786 2007-02-01  Eric Blake  <ebb9@byu.net>
69787
69788         * modules/regex (Depends-on): Revert dependence on mempcpy.
69789         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
69790         module's definition of mempcpy.
69791         Reported by Paul Eggert.
69792
69793 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
69794
69795         * lib/string_.h: If the gnulib module XYZ is not present, undefine
69796         the symbol XYZ before redefining it.  This fixes a problem with
69797         programs that don't use XYZ, when compiled on systems that define
69798         XYZ to something else.
69799
69800 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
69801
69802         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
69803         occurs when "mkdir -m foo" creates a setgid directory that is (1)
69804         writeable to group or other and (2) is intended to have a special
69805         mode bit that is set or cleared.  In such a case, the directory
69806         should be neither group- nor other-writeable until the special
69807         mode bits are right.
69808
69809 2007-01-31  Eric Blake  <ebb9@byu.net>
69810
69811         * modules/mountlist (Depends-on): Add strstr.
69812
69813         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
69814         bug.
69815         * modules/string (Makefile.am): Remove redundant replacement.
69816         * modules/regex (Depends-on): Add mempcpy.
69817
69818 2007-01-31  Bruno Haible  <bruno@clisp.org>
69819
69820         New module description field 'Link'.
69821         * gnulib-tool (func_usage): Document --extract-link-directive.
69822         (sed_extract_prog): Recognize 'Link' directive.
69823         (func_get_link_directive): New function.
69824         (func_import): Show summary of link directives.
69825         Handle --extract-link-directive option.
69826         * modules/acl (Link): New section.
69827         * modules/clock-time (Link): New section.
69828         * modules/euidaccess (Link): New section.
69829         * modules/gettext (Link): New section.
69830         * modules/iconv (Link): New section.
69831         * modules/lock (Link): New section.
69832         * modules/nanosleep (Link): New section.
69833         * modules/readline (Link): New section.
69834
69835 2007-01-27  Bruno Haible  <bruno@clisp.org>
69836
69837         Enforce the use of gnulib modules for unportable <string.h> functions.
69838         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
69839         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
69840         (gl_HEADER_STRING_H_BODY): Require it.
69841         * lib/string_.h: If the gnulib module XYZ is not present, redefine
69842         the symbol XYZ to one that gives a link error.
69843         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
69844         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
69845         * modules/mempcpy (configure.ac): Likewise.
69846         * modules/memrchr (configure.ac): Likewise.
69847         * modules/stpcpy (configure.ac): Likewise.
69848         * modules/stpncpy (configure.ac): Likewise.
69849         * modules/strcase (configure.ac): Likewise.
69850         * modules/strcasestr (configure.ac): Likewise.
69851         * modules/strchrnul (configure.ac): Likewise.
69852         * modules/strdup (configure.ac): Likewise.
69853         * modules/strndup (configure.ac): Likewise.
69854         * modules/strnlen (configure.ac): Likewise.
69855         * modules/strpbrk (configure.ac): Likewise.
69856         * modules/strsep (configure.ac): Likewise.
69857         * modules/strstr (configure.ac): Likewise.
69858         * modules/strtok_r (configure.ac): Likewise.
69859
69860 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
69861
69862         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
69863
69864 2007-01-30  Jim Meyering  <jim@meyering.net>
69865
69866         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
69867
69868 2007-01-29  Bruno Haible  <bruno@clisp.org>
69869
69870         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
69871         * lib/execute.c: Likewise.
69872         * lib/pipe.c: Likewise.
69873         * lib/printf-args.h: Likewise.
69874         * lib/printf-args.c: Likewise.
69875         * lib/printf-parse.c: Likewise.
69876         * lib/vasnprintf.c: Likewise.
69877
69878 2007-01-29  Eric Blake  <ebb9@byu.net>
69879
69880         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
69881         declaration.
69882
69883 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
69884
69885         * lib/strptime.h (strptime): Use 'restrict' for args where
69886         POSIX requires this.
69887         * lib/strptime.c (strptime): Likewise.
69888         Change license notice from LGPL to GPL, since gnulib-tool will
69889         change this as needed.
69890         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
69891         defined.
69892         Include "strptime.h" first, to check interface.
69893         Do not #undef _LIBC and _NL_CURRENT.
69894         Do not include <stdlib.h>; no longer needed.
69895         Include "time_r.h" and declare ptime_locale_status
69896         only if _LIBC is not defined.
69897         (__P): Remove unused macro.
69898         (match_string): Bring back glibc version, but use it only if _LIBC
69899         is defined.
69900         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
69901         Remove unnecessary assertion and abort() call.
69902         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
69903         * m4/strptime.m4: Fix serial number comment.
69904         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
69905         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
69906         (Depends-on): Add time_r.
69907
69908 2007-01-29  Bruno Haible  <bruno@clisp.org>
69909
69910         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69911         strptime.
69912         * modules/strptime (Depends-on): Add stdbool.
69913         * lib/strptime.h: Include <time.h> always. Add comments.
69914
69915 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69916
69917         * modules/strptime: New file.
69918         * lib/strptime.h: New file.
69919         * lib/strptime.c: New file.
69920         * m4/strptime.m4: New file.
69921
69922 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69923
69924         * MODULES.html.sh: New module mpsort.
69925         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
69926
69927         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
69928         a circularity problem with HP-UX ia64 reported by Bob Proulx in
69929         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
69930         All uses changed.
69931         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
69932         All uses changed.
69933         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
69934         to _Restrict_.
69935         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
69936         the parameter matches the prototype.
69937
69938 2007-01-28  Jim Meyering  <jim@meyering.net>
69939
69940         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
69941         sys/time.h here, reverting that part of the previous patch:
69942         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
69943
69944 2007-01-28  Bruno Haible  <bruno@clisp.org>
69945
69946         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
69947         value of $(SYS_TIME_H).
69948         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
69949         remove it conditionally, too. [added by Jim Meyering]
69950         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
69951         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69952         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
69953         GETTIMEOFDAY_REPLACEMENT to 1.
69954
69955 2007-01-28  Bruno Haible  <bruno@clisp.org>
69956
69957         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
69958         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
69959         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
69960         Set UNISTD_H instead of UNISTD_H2.
69961         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
69962
69963 2007-01-28  Bruno Haible  <bruno@clisp.org>
69964
69965         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
69966         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
69967
69968 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69969
69970         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
69971         (func_create_testdir): Ensure C locale for `grep' and `tr'
69972         character ranges.
69973         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
69974         ACLOCAL_AMFLAGS parsing state machine.
69975
69976 2007-01-27  Bruno Haible  <bruno@clisp.org>
69977
69978         * modules/unistr/base: Update.
69979
69980 2007-01-27  Bruno Haible  <bruno@clisp.org>
69981
69982         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
69983         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
69984         * modules/unistr/u32-mbtouc-unsafe: Renamed from
69985         modules/unistr/u32-mbtouc.
69986         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
69987         * lib/unistr.h: Update.
69988         * lib/linebreak.c: Update.
69989         * modules/unistr/u32-mbtouc: Renamed from
69990         modules/unistr/u32-mbtouc-safe.
69991         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
69992         * lib/unistr.h: Update.
69993         * lib/unistr/u32-to-u8.c: Update.
69994         * lib/unistr/u32-to-u16.c: Update.
69995
69996 2007-01-27  Bruno Haible  <bruno@clisp.org>
69997
69998         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
69999         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
70000         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
70001         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
70002         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
70003         * modules/unistr/u16-mbtouc-unsafe: Renamed from
70004         modules/unistr/u16-mbtouc.
70005         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
70006         * lib/unistr.h: Update.
70007         * lib/linebreak.c: Update.
70008         * modules/linebreak: Update.
70009         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
70010         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
70011         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
70012         * modules/unistr/u16-mbtouc: Renamed from
70013         modules/unistr/u16-mbtouc-safe.
70014         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
70015         * lib/unistr.h: Update.
70016         * lib/unistr/u16-to-u8.c: Update.
70017         * modules/unistr/u16-to-u8: Update.
70018         * lib/unistr/u16-to-u32.c: Update.
70019         * modules/unistr/u16-to-u32: Update.
70020
70021 2007-01-27  Bruno Haible  <bruno@clisp.org>
70022
70023         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
70024         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
70025         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
70026         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
70027         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
70028         * modules/unistr/u8-mbtouc-unsafe: Renamed from
70029         modules/unistr/u8-mbtouc.
70030         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
70031         * lib/unistr.h: Update.
70032         * lib/striconveh.c: Update.
70033         * modules/striconveh: Update.
70034         * lib/linebreak.c: Update.
70035         * modules/linebreak: Update.
70036         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
70037         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
70038         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
70039         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
70040         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
70041         * lib/unistr.h: Update.
70042         * lib/striconveh.c: Update.
70043         * modules/striconveh: Update.
70044         * lib/unistr/u8-to-u16.c: Update.
70045         * modules/unistr/u8-to-u16: Update.
70046         * lib/unistr/u8-to-u32.c: Update.
70047         * modules/unistr/u8-to-u32: Update.
70048
70049 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70050
70051         Sync from Libtool.
70052         * lib/argz.c: Do not include strings.h nor memory.h, include
70053         string.h unconditionally.  Patch by Simon Josefsson.
70054
70055 2007-01-27  Bruno Haible  <bruno@clisp.org>
70056
70057         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
70058         from gl_HEADER_STRING_H_BODY.
70059         (gl_HEADER_STRING_H_BODY): Require it.
70060         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
70061         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
70062         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
70063         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
70064         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
70065         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
70066         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
70067         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
70068         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
70069         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
70070         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
70071         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
70072         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
70073         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
70074         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70075
70076 2007-01-27  Bruno Haible  <bruno@clisp.org>
70077
70078         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
70079         check_PROGRAMS into noinst_PROGRAMS.
70080         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
70081         check_PROGRAMS in this case.
70082         (func_import): Set for_test to false.
70083         (func_create_testdir): Set for_test to true.
70084
70085 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
70086             Bruno Haible  <bruno@clisp.org>
70087
70088         * modules/strcasestr (Files): Remove lib/strcasestr.h.
70089         (Depends-on): Add string.
70090         (Includes): Use <string.h> instead of strcasestr.h.
70091         * modules/string (Makefile.am): Also substitute the value of
70092         REPLACE_STRCASESTR.
70093         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
70094         assume strcasestr is declared in <string.h> not <strings.h>. Also
70095         set REPLACE_STRCASESTR.
70096         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
70097         REPLACE_STRCASESTR.
70098         * lib/strcasestr.h: Remove file.
70099         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
70100         * lib/string_.h (strcasestr): New declaration.
70101
70102 2007-01-27  Bruno Haible  <bruno@clisp.org>
70103
70104         * lib/string_.h: Use 'extern'.
70105
70106 2007-01-27  Jim Meyering  <jim@meyering.net>
70107
70108         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
70109         of set-but-not-used local, "q".
70110
70111         * lib/mempcpy.c: Include <config.h> before <string.h>.
70112         This fixes a compilation error on HP-UX, due to the system's
70113         "restrict"-using mempcpy prototype.
70114
70115 2007-01-26  Bruno Haible  <bruno@clisp.org>
70116
70117         Small optimization.
70118         * lib/javacomp.c: Include c-strstr.h.
70119          (is_envjavac_gcj): Use c_strstr instead of strstr.
70120         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
70121
70122 2007-01-26  Bruno Haible  <bruno@clisp.org>
70123
70124         * MODULES.html.sh (Unicode string functions): Add the new modules.
70125
70126         * modules/uniconv/u32-strconv-to-locale: New file.
70127         * lib/uniconv/u32-strconv-to-locale.c: New file.
70128
70129         * modules/uniconv/u16-strconv-to-locale: New file.
70130         * lib/uniconv/u16-strconv-to-locale.c: New file.
70131
70132         * modules/uniconv/u8-strconv-to-locale: New file.
70133         * lib/uniconv/u8-strconv-to-locale.c: New file.
70134
70135         * modules/uniconv/u32-strconv-from-locale: New file.
70136         * lib/uniconv/u32-strconv-from-locale.c: New file.
70137
70138         * modules/uniconv/u16-strconv-from-locale: New file.
70139         * lib/uniconv/u16-strconv-from-locale.c: New file.
70140
70141         * modules/uniconv/u8-strconv-from-locale: New file.
70142         * lib/uniconv/u8-strconv-from-locale.c: New file.
70143
70144         * modules/uniconv/u32-strconv-to-enc: New file.
70145         * lib/uniconv/u32-strconv-to-enc.c: New file.
70146         * modules/uniconv/u32-strconv-to-enc-tests: New file.
70147         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
70148
70149         * modules/uniconv/u16-strconv-to-enc: New file.
70150         * lib/uniconv/u16-strconv-to-enc.c: New file.
70151         * lib/uniconv/u-strconv-to-enc.h: New file.
70152         * modules/uniconv/u16-strconv-to-enc-tests: New file.
70153         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
70154
70155         * modules/uniconv/u8-strconv-to-enc: New file.
70156         * lib/uniconv/u8-strconv-to-enc.c: New file.
70157         * modules/uniconv/u8-strconv-to-enc-tests: New file.
70158         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
70159
70160         * modules/uniconv/u32-strconv-from-enc: New file.
70161         * lib/uniconv/u32-strconv-from-enc.c: New file.
70162         * modules/uniconv/u32-strconv-from-enc-tests: New file.
70163         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
70164
70165         * modules/uniconv/u16-strconv-from-enc: New file.
70166         * lib/uniconv/u16-strconv-from-enc.c: New file.
70167         * modules/uniconv/u16-strconv-from-enc-tests: New file.
70168         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
70169
70170         * modules/uniconv/u8-strconv-from-enc: New file.
70171         * lib/uniconv/u8-strconv-from-enc.c: New file.
70172         * lib/uniconv/u-strconv-from-enc.h: New file.
70173         * modules/uniconv/u8-strconv-from-enc-tests: New file.
70174         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
70175
70176         * modules/uniconv/u32-conv-from-enc: New file.
70177         * lib/uniconv/u32-conv-from-enc.c: New file.
70178         * modules/uniconv/u32-conv-from-enc-tests: New file.
70179         * tests/uniconv/test-u32-conv-from-enc.c: New file.
70180
70181         * modules/uniconv/u16-conv-from-enc: New file.
70182         * lib/uniconv/u16-conv-from-enc.c: New file.
70183         * lib/uniconv/u-conv-from-enc.h: New file.
70184         * modules/uniconv/u16-conv-from-enc-tests: New file.
70185         * tests/uniconv/test-u16-conv-from-enc.c: New file.
70186
70187         * modules/uniconv/u8-conv-from-enc: New file.
70188         * lib/uniconv/u8-conv-from-enc.c: New file.
70189         * modules/uniconv/u8-conv-from-enc-tests: New file.
70190         * tests/uniconv/test-u8-conv-from-enc.c: New file.
70191
70192         * modules/uniconv/base: New file.
70193         * lib/uniconv.h: New file.
70194
70195 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
70196
70197         * doc/gnulib-tool.texi (Initial import): Update to match current
70198         behavior with strdup module.
70199         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
70200         * lib/memmem.h: Remove; all uses removed.  This is now done
70201         by <string.h>.
70202         * lib/mempcpy.h: Likewise.
70203         * lib/memrchr.h: Likewise.
70204         * lib/stpcpy.h: Likewise.
70205         * lib/stpncpy.h: Likewise.
70206         * lib/strcase.h: Likewise.
70207         * lib/strchrnul.h: Likewise.
70208         * lib/strdup.h: Likewise.
70209         * lib/strndup.h: Likewise.
70210         * lib/strnlen.h: Likewise.
70211         * lib/strpbrk.h: Likewise.
70212         * lib/strsep.h: Likewise.
70213         * lib/strstr.h: Likewise.
70214         * lib/strtok_r.h: Likewise.
70215         * lib/string_.h: New file.
70216         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
70217         Rely on <string.h> instead.
70218         * lib/canon-host.c: Likewise.
70219         * lib/chdir-long.c: Likewise.
70220         * lib/concatpath.c: Likewise.
70221         * lib/exclude.c: Likewise.
70222         * lib/fchdir.c: Likewise.
70223         * lib/getaddrinfo.c: Likewise.
70224         * lib/getcwd.c: Likewise.
70225         * lib/getsubopt.c: Likewise.
70226         * lib/glob.c: Likewise.
70227         * lib/hard-locale.c: Likewise.
70228         * lib/iconvme.c: Likewise.
70229         * lib/javacomp.c: Likewise.
70230         * lib/mempcpy.c: Likewise.
70231         * lib/memrchr.c: Likewise.
70232         * lib/regex_internal.h: Likewise.
70233         * lib/stpncpy.c: Likewise.
70234         * lib/strcasecmp.c: Likewise.
70235         * lib/strchrnul.c: Likewise.
70236         * lib/strdup.c: Likewise.
70237         * lib/striconv.c: Likewise.
70238         * lib/striconveh.c: Likewise.
70239         * lib/striconveha.c: Likewise.
70240         * lib/strncasecmp.c: Likewise.
70241         * lib/strndup.c: Likewise.
70242         * lib/strnlen.c: Likewise.
70243         * lib/strsep.c: Likewise.
70244         * lib/strstr.c: Likewise.
70245         * lib/strtok_r.c: Likewise.
70246         * lib/userspec.c: Likewise.
70247         * lib/w32spawn.h: Likewise.
70248         * lib/xstrndup.c: Likewise.
70249         * lib/mountlist.c (strstr): Remove decl.
70250         * m4/string_h.m4: New file.
70251         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
70252         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
70253         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
70254         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
70255         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
70256         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
70257         Set REPLACE_STRCASECMP if necessary.
70258         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
70259         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
70260         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
70261         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
70262         HAVE_DECL_STRDUP if necessary.
70263         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
70264         since gl_FUNC_STRNDUP does that now.
70265         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
70266         Check for decl here...
70267         (gl_PREREQ_STRNLEN): ... not here.
70268         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
70269         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
70270         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
70271         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
70272         necessary.
70273         * modules/string: New file.
70274         * modules/memmem (Files): Remove special-purpose include file.
70275         (Depends-on): Add string.
70276         (Include): Include <string.h>, not the removed file.
70277         * modules/mempcpy: Likewise.
70278         * modules/memrchr: Likewise.
70279         * modules/stpcpy: Likewise.
70280         * modules/stpncpy: Likewise.
70281         * modules/strcase: Likewise.
70282         * modules/strchrnul: Likewise.
70283         * modules/strdup: Likewise.
70284         * modules/strndup: Likewise.
70285         * modules/strnlen: Likewise.
70286         * modules/strpbrk: Likewise.
70287         * modules/strsep: Likewise.
70288         * modules/strstr: Likewise.
70289         * modules/strtok_r: Likewise.
70290         * tests/test-dirname.c: Don't include "strdup.h", since
70291         <string.h> now suffices.
70292         * tests/test-memmem.c: Don't include "memmem.h", since
70293         <string.h> now suffices.
70294
70295 2007-01-25  Bruno Haible  <bruno@clisp.org>
70296
70297         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
70298         *resultp is 0.
70299
70300         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
70301         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
70302         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
70303         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
70304
70305         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
70306         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
70307         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
70308         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
70309         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
70310         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
70311
70312 2007-01-24  Bruno Haible  <bruno@clisp.org>
70313
70314         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
70315         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
70316         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
70317         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
70318         gl_FUNC_FTS_CORE.
70319         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
70320         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
70321         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70322         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
70323         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
70324         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
70325         gl_FUNC_FCHOWNAT.
70326         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
70327         gl_FUNC_STRFTIME.
70328         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
70329         Reported by Ralf Wildenhues.
70330
70331 2007-01-24  Bruno Haible  <bruno@clisp.org>
70332
70333         Drop AC_REQUIRE calls that are redundant with the module dependencies.
70334         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
70335         gl_GETADDRINFO.
70336         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
70337         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
70338         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
70339
70340 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
70341
70342         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
70343         Don't use 'exit'; just return from 'main'.
70344         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
70345
70346         * lib/fnmatch_.h: Readjust white space and comments to match
70347         glibc, to avoid spurious diffs.
70348
70349 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70350
70351         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
70352         2004-12-01 change by Jakub Jelinek, since this code won't compile
70353         if !LIBC.  Problem reported by Bob Proulx.
70354
70355 2007-01-23  Bruno Haible  <bruno@clisp.org>
70356
70357         * lib/striconveh.c: Include c-strcaseeq.h.
70358         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
70359         * modules/striconveh (Depends-on): Add c-strcaseeq.
70360
70361 2007-01-23  Bruno Haible  <bruno@clisp.org>
70362
70363         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
70364
70365         * modules/c-strcaseeq: New file.
70366         * lib/c-strcaseeq.h: New file.
70367
70368         * modules/streq: New file.
70369         * lib/streq.h: New file.
70370
70371 2007-01-23  Bruno Haible  <bruno@clisp.org>
70372
70373         * modules/striconveha-tests: New file.
70374         * tests/test-striconveha.c: New file.
70375
70376         * lib/striconveha.h: Include <stdbool.h>.
70377         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
70378         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
70379         (mem_iconveha_notranslit): Renamed from mem_iconveha.
70380         (mem_iconveha): New function.
70381         (str_iconveha_notranslit): Renamed from str_iconveha.
70382         (str_iconveha): New function.
70383         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
70384         c-strcase.
70385
70386 2007-01-23  Bruno Haible  <bruno@clisp.org>
70387
70388         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
70389         encodings without forgiving before trying any encoding with handler.
70390         (str_iconveha): Try all encodings without forgiving before trying any
70391         encoding with handler.
70392
70393 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70394
70395         Import the following changes from libc.
70396
70397         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
70398
70399         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
70400
70401         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
70402
70403         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
70404         normal_bracket label.
70405
70406         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
70407
70408         [BZ #361]
70409         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
70410         to normal_bracket after fetching the next character.
70411
70412 2007-01-22  Bruno Haible  <bruno@clisp.org>
70413
70414         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
70415         argument.
70416         * lib/striconveh.c (iconv_carefully_1): New function.
70417         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
70418         argument.
70419         (str_cd_iconveh): Update.
70420         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
70421         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
70422         * tests/test-striconveh.c (MAGIC): New macro.
70423         (new_offsets): New function.
70424         (main): Test call with and without offsets.
70425
70426 2007-01-22  Bruno Haible  <bruno@clisp.org>
70427
70428         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
70429         * modules/sys_select (Makefile.am): Likewise.
70430         * modules/sys_socket (Makefile.am): Likewise.
70431         * modules/sys_time (Makefile.am): Likewise.
70432
70433 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
70434
70435         * modules/gettimeofday (License): Change from GPL to LGPL, since
70436         gettimeofday is a library function.
70437
70438 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70439
70440         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
70441
70442 2007-01-21  Bruno Haible  <bruno@clisp.org>
70443
70444         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
70445
70446 2007-01-21  Bruno Haible  <bruno@clisp.org>
70447
70448         * modules/striconveha: New file.
70449         * lib/striconveha.h: New file.
70450         * lib/striconveha.c: New file.
70451         * MODULES.html.sh (Internationalization functions): Add striconveha.
70452         * lib/striconv.c (str_iconv): Optimize the case of an empty input
70453         string.
70454         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
70455
70456 2007-01-21  Bruno Haible  <bruno@clisp.org>
70457
70458         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
70459         * lib/striconveh.c (str_iconveh): Likewise.
70460
70461 2007-01-21  Bruno Haible  <bruno@clisp.org>
70462
70463         * lib/striconveh.h (mem_iconveh): New declaration.
70464         * lib/striconveh.c (mem_iconveh): New function.
70465         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
70466
70467 2007-01-21  Bruno Haible  <bruno@clisp.org>
70468
70469         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
70470
70471         * lib/striconveh.h (mem_cd_iconveh): Change specification.
70472         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
70473         original result buffer.
70474         (str_cd_iconveh): Update.
70475         * tests/test-striconveh.c (main): Update.
70476
70477         * lib/striconv.h (mem_cd_iconv): Change specification.
70478         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
70479         result buffer.
70480         (str_cd_iconv): Update.
70481         * tests/test-striconv.c (main): Update.
70482
70483 2007-01-21  Bruno Haible  <bruno@clisp.org>
70484
70485         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
70486
70487 2007-01-20  Jim Meyering  <jim@meyering.net>
70488
70489         * lib/userspec.c (parse_with_separator): If a user or group string
70490         starts with "+", skip the corresponding name-to-ID look-up, since
70491         such a look-up must fail: user and group names may not include "+".
70492
70493 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
70494
70495         * lib/poll.c: Include sys/time.h and time.h unconditionally,
70496         since we now assume the sys_time module.
70497         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
70498         check for sys/time.h; no longer needed.
70499         * modules/poll (Depends-on): Depend on sys_time.
70500
70501 2007-01-18  Bruno Haible  <bruno@clisp.org>
70502
70503         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
70504         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70505
70506         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
70507         gettimeofday.
70508
70509         * tests/test-gettimeofday.c: Include <time.h>.
70510         (dummy): Remove variable.
70511
70512         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
70513         gl_HEADER_SYS_TIME_H.
70514         (gl_HEADER_SYS_TIME_H): New macro.
70515
70516         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
70517         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70518         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
70519         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
70520         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70521         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
70522         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
70523         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70524         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
70525         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
70526         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70527
70528         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
70529         last change; it caused a compilation error when cross-compiling to
70530         Cygwin.
70531
70532 2007-01-18  Jim Meyering  <jim@meyering.net>
70533
70534         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
70535         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
70536         than the race-prone "test -d sys || mkdir sys".
70537         (configure.ac): Use AC_PROG_MKDIR_P.
70538         * modules/sys_select: Likewise.
70539         * modules/sys_socket: Likewise.
70540         * modules/sys_time: Likewise.
70541
70542 2007-01-18  Eric Blake  <ebb9@byu.net>
70543
70544         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
70545         replace gettimeofday.
70546         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
70547         name, to avoid infinite recursion.
70548
70549 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
70550
70551         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
70552         module sys_time.
70553         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
70554         assume timespec.h defines struct timeval.
70555         * lib/settime.c: Likewise.
70556         * lib/utimens.c: Likewise.
70557         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
70558         since we now assume the gettimeofday module.
70559         * lib/tempname.c (__gen_tempname): Likewise.
70560         * lib/gettimeofday.h: Remove.
70561         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
70562         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
70563         Include <time.h>, for 'time()'.
70564         (localtime_buffer_addr): Also use this workaround if
70565         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
70566         to simplify the uses.  All uses changed.
70567         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
70568         that #undef is inside {}, and 'const' follows type name consistently.
70569         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
70570         (gettimeofday): Do not use the maximum possible value for
70571         tv->tv_usec, since that might break usages other than ls.c.
70572         Instead, we'll leave ls.c alone.  This undoes today's patch
70573         by Bruno.  Add a compile-time warning for 1s-clock resolution;
70574         we've never observed the problem but might as well keep the
70575         canary.
70576         * lib/nanosleep.c: Include timespec.h first, for interface check.
70577         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
70578         now assume the sys_time module.
70579         * lib/tempname.c: Likewise.
70580         * lib/timespec.h: Likewise.
70581         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
70582         needed.
70583         * lib/strftime.c: Likewise.
70584         * lib/timespec.h: Likewise.
70585         * lib/posixtm.c: Include posixtm.h first, for interface check.
70586         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
70587         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
70588         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
70589         * lib/sys_time_.h: New file.
70590         * lib/timespec.h (struct timespec): Use long int, not long.
70591         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70592         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
70593         Remove obsolescent call to AC_HEADER_TIME.
70594         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
70595         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70596         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70597         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
70598         Likewise.
70599         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
70600         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
70601         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
70602         into the sys_time module.  Check for gettimeofday just once.
70603         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
70604         for gettimeofday signature to just check the signature.  Merely
70605         compile it, since linking doesn't test signature.  Improve test for
70606         whether gettimeofday.o is actually needed.
70607         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
70608         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
70609         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
70610         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70611         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
70612         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
70613         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
70614         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
70615         than worrying about sys/time.h.
70616         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70617         Don't bother worrying about TIME_WITH_SYS_TIME.
70618         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
70619         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
70620         * m4/sys_time_h.m4: New file.
70621         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
70622         Don't include sys/time.h.  Return from main rather than exiting.
70623         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
70624         all uses changed.
70625         * modules/gethrxtime (Depends-on): Add sys_time.
70626         * modules/gettime (Depends-on): Likewise.
70627         * modules/gettimeofday (Depends-on): Likewise.
70628         * modules/nanosleep (Depends-on): Likewise.
70629         * modules/settime (Depends-on): Likewise.
70630         * modules/tempname (Depends-on): Likewise.
70631         * modules/utimens (Depends-on): Likewise.
70632         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
70633         (Include): Change back to <sys/time.h>.
70634         (Maintainer): Add self.
70635         * modules/sys_time: New file.
70636         * modules/tempname (Depends-on): Add gettimeofday.
70637         * tests/test-gettimeofday.c: Include <sys/time.h>
70638         rather than gettimeofday.h.
70639
70640 2007-01-17  Bruno Haible  <bruno@clisp.org>
70641
70642         * gnulib-tool (func_get_license): Revert last patch. Instead, let
70643         the license default to GPL.
70644         (func_create_testdir): Don't complain if a module is LGPL and its
70645         tests module depends on GPLed modules.
70646
70647 2007-01-17  Bruno Haible  <bruno@clisp.org>
70648
70649         * lib/gettimeofday.c (gettimeofday): Add code for the case
70650         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
70651         maximum possible value for tv->tv_usec, rather than the minimum one.
70652
70653 2005-10-08  Martin Lambers  <marlam@marlam.de>
70654 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
70655 2007-01-16  Bruno Haible  <bruno@clisp.org>
70656
70657         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
70658         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
70659         gl_FUNC_GETTIMEOFDAY.
70660         (Include): Add gettimeofday.h.
70661         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
70662         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
70663         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
70664         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
70665         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
70666         * lib/gettimeofday.h: New file.
70667         * lib/gettimeofday.c: Include <sys/timeb.h>.
70668         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
70669         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70670         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
70671         fall back on time().
70672
70673         * tests/test-gettimeofday.c: New file.
70674         * modules/gettimeofday-tests: New file.
70675
70676 2007-01-16  Eric Blake  <ebb9@byu.net>
70677
70678         * modules/fnmatch (Depends-on): Depend on wchar.
70679         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
70680         * m4/fnmatch.m4: Likewise.
70681         * modules/mbchar (Makefile.am): Assume <wchar.h>.
70682         * m4/mbchar.m4: Likewise.
70683         * modules/mbswidth (Depends-on): Depend on wchar.
70684         * lib/mbswidth.c: Assume <wchar.h>.
70685         * m4/mbswidth.m4: Likewise.
70686         * modules/quotearg (Depends-on): Depend on wchar.
70687         * lib/quotearg.c: Assume <wchar.h>.
70688         * m4/quotearg.m4: Likewise.
70689         * modules/regex (Depends-on): Depend on wchar.
70690         * lib/regex_internal.h: Assume <wchar.h>.
70691         * m4/regex.m4: Likewise.
70692         * modules/stdint (Depends-on): Depend on wchar.
70693         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
70694         * m4/stdint.m4: Likewise.
70695         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
70696         * modules/strftime (Depends-on): Depend on wchar.
70697         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
70698         * modules/strtol (Depends-on): Depend on wchar.
70699         * lib/strtol.c: Assume <wchar.h>.
70700         * modules/wcwidth (Depends-on): Depend on wchar.
70701         * lib/wcwidth.h: Assume <wchar.h>.
70702         * m4/wcwidth.m4: Likewise.
70703
70704 2007-01-16  Bruno Haible  <bruno@clisp.org>
70705
70706         * modules/csharpexec-script: New, created from...
70707         * modules/csharpexec: ... this.
70708
70709 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
70710
70711         * modules/javaexec-script: New, created from...
70712         * modules/javaexec: ... this.
70713
70714 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70715
70716         * modules/poll (Dependencies): Add sys_select.
70717
70718 2007-01-15  Jim Meyering  <jim@meyering.net>
70719
70720         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
70721         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
70722         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
70723         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
70724
70725 2007-01-15  Bruno Haible  <bruno@clisp.org>
70726
70727         * modules/striconveh: New file.
70728         * lib/striconveh.h: New file.
70729         * lib/striconveh.c: New file.
70730         * MODULES.html.sh (Internationalization functions): Add striconveh.
70731
70732         * modules/striconveh-tests: New file.
70733         * tests/test-striconveh.c: New file.
70734
70735 2007-01-15  Bruno Haible  <bruno@clisp.org>
70736
70737         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
70738         not from GNU libiconv or GNU libc.
70739
70740 2007-01-15  Bruno Haible  <bruno@clisp.org>
70741
70742         * doc/gnulib-intro.texi (Copyright): Explain the different license
70743         terms for module descriptions, autoconf macros, tests, documentation.
70744
70745 2007-01-14  Bruno Haible  <bruno@clisp.org>
70746
70747         * modules/striconv-tests: New file.
70748         * tests/test-striconv.c: New file.
70749
70750 2007-01-14  Bruno Haible  <bruno@clisp.org>
70751
70752         * modules/iconv-tests: New file.
70753         * tests/test-iconv.c: New file.
70754
70755 2007-01-14  Bruno Haible  <bruno@clisp.org>
70756
70757         * gnulib-tool (func_get_license): For test modules, use the license of
70758         the main module.
70759
70760 2007-01-14  Bruno Haible  <bruno@clisp.org>
70761
70762         * modules/iconv (Include): Clarify that <iconv.h> can only be included
70763         if iconv is found to exist.
70764
70765 2007-01-14  Bruno Haible  <bruno@clisp.org>
70766
70767         * modules/c-ctype-tests: New file.
70768         * tests/test-c-ctype.c: New file.
70769
70770 2007-01-14  Bruno Haible  <bruno@clisp.org>
70771
70772         * modules/binary-io-tests: New file.
70773         * tests/test-binary-io.sh: New file.
70774         * tests/test-binary-io.c: New file.
70775
70776 2007-01-14  Bruno Haible  <bruno@clisp.org>
70777
70778         * modules/array-oset-tests: New file.
70779         * tests/test-array_oset.c: New file.
70780
70781 2007-01-14  Bruno Haible  <bruno@clisp.org>
70782
70783         * modules/array-list-tests: New file.
70784         * tests/test-array_list.c: New file.
70785
70786 2007-01-14  Bruno Haible  <bruno@clisp.org>
70787
70788         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
70789         and make.
70790         Reported by Simon Josefsson in
70791         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
70792
70793 2007-01-14  Bruno Haible  <bruno@clisp.org>
70794
70795         * modules/allocsa-tests: New file.
70796         * tests/test-allocsa.c: New file.
70797
70798 2007-01-14  Bruno Haible  <bruno@clisp.org>
70799
70800         * modules/fchdir (Depends-on): Add absolute-header.
70801         * modules/unistd (Depends-on): Likewise.
70802
70803 2006-12-30  Bruno Haible  <bruno@clisp.org>
70804
70805         * modules/fchdir: New file.
70806         * modules/unistd (Files): Add lib/unistd_.h.
70807         (Makefile.am): Generate unistd.h from unistd_.h.
70808         * lib/fchdir.c: New file.
70809         * lib/dirent_.h: New file.
70810         * lib/unistd_.h: New file.
70811         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
70812         * m4/fchdir.m4: New file.
70813         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
70814         (gl_HEADER_UNISTD): Invoke it.
70815         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
70816         function.
70817         * lib/backupfile.c (opendir, closedir): Undefine.
70818         * lib/chown.c (open, close): Undefine.
70819         * lib/clean-temp.c (open, close): Undefine.
70820         * lib/copy-file.c (open, close): Undefine.
70821         * lib/execute.c (open, close): Undefine.
70822         * lib/fsusage.c (open, close): Undefine.
70823         * lib/gc-gnulib.c (open, close): Undefine.
70824         * lib/getcwd.c (opendir, closedir): Undefine.
70825         * lib/glob.c (opendir, closedir): Undefine.
70826         * lib/javacomp.c (open, close): Undefine.
70827         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
70828         * lib/openat-proc.c (open, close): Undefine.
70829         * lib/pagealign_alloc.c (open, close): Undefine.
70830         * lib/pipe.c (open, close): Undefine.
70831         * lib/progreloc.c (open, close): Undefine.
70832         * lib/savedir.c (opendir, closedir): Undefine.
70833         * lib/utime.c (open, close): Undefine.
70834         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
70835
70836 2007-01-10  Bruno Haible  <bruno@clisp.org>
70837
70838         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
70839
70840 2007-01-12  Eric Blake  <ebb9@byu.net>
70841
70842         Provide a robust <wchar.h>.  Further simplifications are now
70843         possible in other modules, but not included here.
70844         * modules/wchar: New module.
70845         * m4/wchar.m4: New file.
70846         * lib/wchar_.h: Likewise.
70847         * modules/mbchar (Depends-on): Depend on wchar, as the first use
70848         of the new module.
70849         * MODULES.html.sh (Extended multibyte and wide character utilities):
70850         New section.
70851
70852 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
70853
70854         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
70855         to a reasonable default for memory allocation.
70856         (xreadlink): Don't allocate a huge buffer, to work around a buggy
70857         file system that reports garbage st_size values for symlinks.
70858         Problem reported by Liyang Hu.
70859
70860 2007-01-11  Simon Josefsson  <simon@josefsson.org>
70861
70862         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
70863         Emacs .#* auto-save files).
70864
70865 2007-01-11  Bruno Haible  <bruno@clisp.org>
70866
70867         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
70868         directory.
70869
70870 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70871
70872         Use @...@ consistently in lib/wctype_.h.
70873         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
70874         on it being set to 1 or 0.
70875         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
70876         go back to AC_SUBSTing it.
70877         * modules/wctype (Makefile.am): Undo previous change.
70878
70879 2007-01-10  Eric Blake  <ebb9@byu.net>
70880
70881         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
70882         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
70883         * modules/wctype (Makefile.am): Likewise.
70884         Reported by Chris McGuire.
70885
70886 2007-01-10  Jim Meyering  <jim@meyering.net>
70887
70888         fts.c: a small readability/maintainability improvement
70889         * lib/fts.c (fts_read): Make this code slightly more readable and
70890         maintainable by hoisting the "sp->fts_cur = p" assignments to
70891         immediately follow the statements that set P.  Derived from
70892         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
70893
70894 2007-01-10  Eric Blake  <ebb9@byu.net>
70895
70896         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
70897         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
70898         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70899         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
70900         Reported by Chris McGuire.
70901
70902 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70903
70904         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
70905         in sed script.
70906
70907 2007-01-09  Bruno Haible  <bruno@clisp.org>
70908
70909         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
70910         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
70911         variables.
70912         (func_module): Use them.
70913
70914 2007-01-09  Bruno Haible  <bruno@clisp.org>
70915
70916         * modules/unistr/base: New file.
70917         * lib/unistr.h: New file.
70918
70919         * modules/unistr/u8-to-u16: New file.
70920         * lib/unistr/u8-to-u16.c: New file.
70921
70922         * modules/unistr/u8-to-u32: New file.
70923         * lib/unistr/u8-to-u32.c: New file.
70924
70925         * modules/unistr/u16-to-u8: New file.
70926         * lib/unistr/u16-to-u8.c: New file.
70927
70928         * modules/unistr/u16-to-u32: New file.
70929         * lib/unistr/u16-to-u32.c: New file.
70930
70931         * modules/unistr/u32-to-u8: New file.
70932         * lib/unistr/u32-to-u8.c: New file.
70933
70934         * modules/unistr/u32-to-u16: New file.
70935         * lib/unistr/u32-to-u16.c: New file.
70936
70937         * modules/unistr/u8-check: New file.
70938         * modules/unistr/u16-check: New file.
70939         * modules/unistr/u32-check: New file.
70940         * lib/unistr/u8-check.c: New file.
70941         * lib/unistr/u16-check.c: New file.
70942         * lib/unistr/u32-check.c: New file.
70943
70944         * modules/unistr/u8-chr: New file.
70945         * modules/unistr/u16-chr: New file.
70946         * modules/unistr/u32-chr: New file.
70947         * lib/unistr/u8-chr.c: New file.
70948         * lib/unistr/u16-chr.c: New file.
70949         * lib/unistr/u32-chr.c: New file.
70950
70951         * modules/unistr/u8-cmp: New file.
70952         * modules/unistr/u16-cmp: New file.
70953         * modules/unistr/u32-cmp: New file.
70954         * lib/unistr/u8-cmp.c: New file.
70955         * lib/unistr/u16-cmp.c: New file.
70956         * lib/unistr/u32-cmp.c: New file.
70957
70958         * modules/unistr/u8-cpy: New file.
70959         * modules/unistr/u16-cpy: New file.
70960         * modules/unistr/u32-cpy: New file.
70961         * lib/unistr/u8-cpy.c: New file.
70962         * lib/unistr/u16-cpy.c: New file.
70963         * lib/unistr/u32-cpy.c: New file.
70964         * lib/unistr/u-cpy.h: New file.
70965
70966         * modules/unistr/u8-cpy-alloc: New file.
70967         * modules/unistr/u16-cpy-alloc: New file.
70968         * modules/unistr/u32-cpy-alloc: New file.
70969         * lib/unistr/u8-cpy-alloc.c: New file.
70970         * lib/unistr/u16-cpy-alloc.c: New file.
70971         * lib/unistr/u32-cpy-alloc.c: New file.
70972         * lib/unistr/u-cpy-alloc.h: New file.
70973
70974         * modules/unistr/u8-endswith: New file.
70975         * modules/unistr/u16-endswith: New file.
70976         * modules/unistr/u32-endswith: New file.
70977         * lib/unistr/u8-endswith.c: New file.
70978         * lib/unistr/u16-endswith.c: New file.
70979         * lib/unistr/u32-endswith.c: New file.
70980         * lib/unistr/u-endswith.h: New file.
70981
70982         * modules/unistr/u8-mblen: New file.
70983         * modules/unistr/u16-mblen: New file.
70984         * modules/unistr/u32-mblen: New file.
70985         * lib/unistr/u8-mblen.c: New file.
70986         * lib/unistr/u16-mblen.c: New file.
70987         * lib/unistr/u32-mblen.c: New file.
70988
70989         * modules/unistr/u8-mbtouc: New file.
70990         * modules/unistr/u16-mbtouc: New file.
70991         * modules/unistr/u32-mbtouc: New file.
70992         * lib/unistr/u8-mbtouc.c: New file.
70993         * lib/unistr/u16-mbtouc.c: New file.
70994         * lib/unistr/u32-mbtouc.c: New file.
70995
70996         * modules/unistr/u8-mbtouc-safe: New file.
70997         * modules/unistr/u16-mbtouc-safe: New file.
70998         * modules/unistr/u32-mbtouc-safe: New file.
70999         * lib/unistr/u8-mbtouc-safe.c: New file.
71000         * lib/unistr/u16-mbtouc-safe.c: New file.
71001         * lib/unistr/u32-mbtouc-safe.c: New file.
71002
71003         * modules/unistr/u8-move: New file.
71004         * modules/unistr/u16-move: New file.
71005         * modules/unistr/u32-move: New file.
71006         * lib/unistr/u8-move.c: New file.
71007         * lib/unistr/u16-move.c: New file.
71008         * lib/unistr/u32-move.c: New file.
71009         * lib/unistr/u-move.h: New file.
71010
71011         * modules/unistr/u8-next: New file.
71012         * modules/unistr/u16-next: New file.
71013         * modules/unistr/u32-next: New file.
71014         * lib/unistr/u8-next.c: New file.
71015         * lib/unistr/u16-next.c: New file.
71016         * lib/unistr/u32-next.c: New file.
71017
71018         * modules/unistr/u8-prev: New file.
71019         * modules/unistr/u16-prev: New file.
71020         * modules/unistr/u32-prev: New file.
71021         * lib/unistr/u8-prev.c: New file.
71022         * lib/unistr/u16-prev.c: New file.
71023         * lib/unistr/u32-prev.c: New file.
71024
71025         * modules/unistr/u8-set: New file.
71026         * modules/unistr/u16-set: New file.
71027         * modules/unistr/u32-set: New file.
71028         * lib/unistr/u8-set.c: New file.
71029         * lib/unistr/u16-set.c: New file.
71030         * lib/unistr/u32-set.c: New file.
71031         * lib/unistr/u-set.h: New file.
71032
71033         * modules/unistr/u8-startswith: New file.
71034         * modules/unistr/u16-startswith: New file.
71035         * modules/unistr/u32-startswith: New file.
71036         * lib/unistr/u8-startswith.c: New file.
71037         * lib/unistr/u16-startswith.c: New file.
71038         * lib/unistr/u32-startswith.c: New file.
71039         * lib/unistr/u-startswith.h: New file.
71040
71041         * modules/unistr/u8-stpcpy: New file.
71042         * modules/unistr/u16-stpcpy: New file.
71043         * modules/unistr/u32-stpcpy: New file.
71044         * lib/unistr/u8-stpcpy.c: New file.
71045         * lib/unistr/u16-stpcpy.c: New file.
71046         * lib/unistr/u32-stpcpy.c: New file.
71047         * lib/unistr/u-stpcpy.h: New file.
71048
71049         * modules/unistr/u8-stpncpy: New file.
71050         * modules/unistr/u16-stpncpy: New file.
71051         * modules/unistr/u32-stpncpy: New file.
71052         * lib/unistr/u8-stpncpy.c: New file.
71053         * lib/unistr/u16-stpncpy.c: New file.
71054         * lib/unistr/u32-stpncpy.c: New file.
71055         * lib/unistr/u-stpncpy.h: New file.
71056
71057         * modules/unistr/u8-strcat: New file.
71058         * modules/unistr/u16-strcat: New file.
71059         * modules/unistr/u32-strcat: New file.
71060         * lib/unistr/u8-strcat.c: New file.
71061         * lib/unistr/u16-strcat.c: New file.
71062         * lib/unistr/u32-strcat.c: New file.
71063         * lib/unistr/u-strcat.h: New file.
71064
71065         * modules/unistr/u8-strchr: New file.
71066         * modules/unistr/u16-strchr: New file.
71067         * modules/unistr/u32-strchr: New file.
71068         * lib/unistr/u8-strchr.c: New file.
71069         * lib/unistr/u16-strchr.c: New file.
71070         * lib/unistr/u32-strchr.c: New file.
71071
71072         * modules/unistr/u8-strcmp: New file.
71073         * modules/unistr/u16-strcmp: New file.
71074         * modules/unistr/u32-strcmp: New file.
71075         * lib/unistr/u8-strcmp.c: New file.
71076         * lib/unistr/u16-strcmp.c: New file.
71077         * lib/unistr/u32-strcmp.c: New file.
71078
71079         * modules/unistr/u8-strcpy: New file.
71080         * modules/unistr/u16-strcpy: New file.
71081         * modules/unistr/u32-strcpy: New file.
71082         * lib/unistr/u8-strcpy.c: New file.
71083         * lib/unistr/u16-strcpy.c: New file.
71084         * lib/unistr/u32-strcpy.c: New file.
71085         * lib/unistr/u-strcpy.h: New file.
71086
71087         * modules/unistr/u8-strcspn: New file.
71088         * modules/unistr/u16-strcspn: New file.
71089         * modules/unistr/u32-strcspn: New file.
71090         * lib/unistr/u8-strcspn.c: New file.
71091         * lib/unistr/u16-strcspn.c: New file.
71092         * lib/unistr/u32-strcspn.c: New file.
71093         * lib/unistr/u-strcspn.h: New file.
71094
71095         * modules/unistr/u8-strdup: New file.
71096         * modules/unistr/u16-strdup: New file.
71097         * modules/unistr/u32-strdup: New file.
71098         * lib/unistr/u8-strdup.c: New file.
71099         * lib/unistr/u16-strdup.c: New file.
71100         * lib/unistr/u32-strdup.c: New file.
71101         * lib/unistr/u-strdup.h: New file.
71102
71103         * modules/unistr/u8-strlen: New file.
71104         * modules/unistr/u16-strlen: New file.
71105         * modules/unistr/u32-strlen: New file.
71106         * lib/unistr/u8-strlen.c: New file.
71107         * lib/unistr/u16-strlen.c: New file.
71108         * lib/unistr/u32-strlen.c: New file.
71109         * lib/unistr/u-strlen.h: New file.
71110
71111         * modules/unistr/u8-strmblen: New file.
71112         * modules/unistr/u16-strmblen: New file.
71113         * modules/unistr/u32-strmblen: New file.
71114         * lib/unistr/u8-strmblen.c: New file.
71115         * lib/unistr/u16-strmblen.c: New file.
71116         * lib/unistr/u32-strmblen.c: New file.
71117
71118         * modules/unistr/u8-strmbtouc: New file.
71119         * modules/unistr/u16-strmbtouc: New file.
71120         * modules/unistr/u32-strmbtouc: New file.
71121         * lib/unistr/u8-strmbtouc.c: New file.
71122         * lib/unistr/u16-strmbtouc.c: New file.
71123         * lib/unistr/u32-strmbtouc.c: New file.
71124
71125         * modules/unistr/u8-strncat: New file.
71126         * modules/unistr/u16-strncat: New file.
71127         * modules/unistr/u32-strncat: New file.
71128         * lib/unistr/u8-strncat.c: New file.
71129         * lib/unistr/u16-strncat.c: New file.
71130         * lib/unistr/u32-strncat.c: New file.
71131         * lib/unistr/u-strncat.h: New file.
71132
71133         * modules/unistr/u8-strncmp: New file.
71134         * modules/unistr/u16-strncmp: New file.
71135         * modules/unistr/u32-strncmp: New file.
71136         * lib/unistr/u8-strncmp.c: New file.
71137         * lib/unistr/u16-strncmp.c: New file.
71138         * lib/unistr/u32-strncmp.c: New file.
71139
71140         * modules/unistr/u8-strncpy: New file.
71141         * modules/unistr/u16-strncpy: New file.
71142         * modules/unistr/u32-strncpy: New file.
71143         * lib/unistr/u8-strncpy.c: New file.
71144         * lib/unistr/u16-strncpy.c: New file.
71145         * lib/unistr/u32-strncpy.c: New file.
71146         * lib/unistr/u-strncpy.h: New file.
71147
71148         * modules/unistr/u8-strnlen: New file.
71149         * modules/unistr/u16-strnlen: New file.
71150         * modules/unistr/u32-strnlen: New file.
71151         * lib/unistr/u8-strnlen.c: New file.
71152         * lib/unistr/u16-strnlen.c: New file.
71153         * lib/unistr/u32-strnlen.c: New file.
71154         * lib/unistr/u-strnlen.h: New file.
71155
71156         * modules/unistr/u8-strpbrk: New file.
71157         * modules/unistr/u16-strpbrk: New file.
71158         * modules/unistr/u32-strpbrk: New file.
71159         * lib/unistr/u8-strpbrk.c: New file.
71160         * lib/unistr/u16-strpbrk.c: New file.
71161         * lib/unistr/u32-strpbrk.c: New file.
71162         * lib/unistr/u-strpbrk.h: New file.
71163
71164         * modules/unistr/u8-strrchr: New file.
71165         * modules/unistr/u16-strrchr: New file.
71166         * modules/unistr/u32-strrchr: New file.
71167         * lib/unistr/u8-strrchr.c: New file.
71168         * lib/unistr/u16-strrchr.c: New file.
71169         * lib/unistr/u32-strrchr.c: New file.
71170
71171         * modules/unistr/u8-strspn: New file.
71172         * modules/unistr/u16-strspn: New file.
71173         * modules/unistr/u32-strspn: New file.
71174         * lib/unistr/u8-strspn.c: New file.
71175         * lib/unistr/u16-strspn.c: New file.
71176         * lib/unistr/u32-strspn.c: New file.
71177         * lib/unistr/u-strspn.h: New file.
71178
71179         * modules/unistr/u8-strstr: New file.
71180         * modules/unistr/u16-strstr: New file.
71181         * modules/unistr/u32-strstr: New file.
71182         * lib/unistr/u8-strstr.c: New file.
71183         * lib/unistr/u16-strstr.c: New file.
71184         * lib/unistr/u32-strstr.c: New file.
71185         * lib/unistr/u-strstr.h: New file.
71186
71187         * modules/unistr/u8-strtok: New file.
71188         * modules/unistr/u16-strtok: New file.
71189         * modules/unistr/u32-strtok: New file.
71190         * lib/unistr/u8-strtok.c: New file.
71191         * lib/unistr/u16-strtok.c: New file.
71192         * lib/unistr/u32-strtok.c: New file.
71193         * lib/unistr/u-strtok.h: New file.
71194
71195         * modules/unistr/u8-uctomb: New file.
71196         * modules/unistr/u16-uctomb: New file.
71197         * modules/unistr/u32-uctomb: New file.
71198         * lib/unistr/u8-uctomb.c: New file.
71199         * lib/unistr/u16-uctomb.c: New file.
71200         * lib/unistr/u32-uctomb.c: New file.
71201
71202         * MODULES.html.sh (Unicode string functions): Add the new modules.
71203
71204 2007-01-08  Bruno Haible  <bruno@clisp.org>
71205
71206         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
71207         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
71208         subdirectories.
71209
71210 2007-01-08  Karl Berry  <karl@gnu.org>
71211
71212         * doc/error.texi: mention that main() fns must set program_name
71213         when progname is used.
71214
71215 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
71216
71217         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
71218         WCTYPE_H is empty, for the benefit of builds from non-distclean
71219         directories.  Problem reported by Eric Blake in
71220         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
71221
71222 2007-01-08  Bruno Haible  <bruno@clisp.org>
71223
71224         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
71225         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
71226         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
71227         PROVIDE_CANONICALIZE_FILENAME_MODE.
71228         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
71229
71230 2007-01-08  Bruno Haible  <bruno@clisp.org>
71231
71232         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
71233         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
71234         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
71235         * lib/fts.c: Likewise.
71236         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
71237
71238 2006-12-25  Bruno Haible  <bruno@clisp.org>
71239
71240         * modules/utf8-ucs4-safe: New file.
71241         * lib/utf8-ucs4-safe.h: New file.
71242         * lib/unistr/utf8-ucs4-safe.c: New file.
71243
71244         * modules/utf16-ucs4-safe: New file.
71245         * lib/utf16-ucs4-safe.h: New file.
71246         * lib/unistr/utf16-ucs4-safe.c: New file.
71247
71248         * MODULES.html.sh (Unicode string functions): Add the new modules.
71249
71250 2007-01-08  Bruno Haible  <bruno@clisp.org>
71251
71252         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
71253         (Depends-on): Add unitypes.
71254         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71255         (u8_mbtouc_aux): Move out to separate file.
71256         (u8_mbtouc): Use ucs4_t, uint8_t types.
71257         * lib/unistr/utf8-ucs4.c: New file.
71258
71259         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
71260         (Depends-on): Add unitypes.
71261         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71262         (u16_mbtouc_aux): Move out to separate file.
71263         (u16_mbtouc): Use ucs4_t, uint16_t types.
71264         * lib/unistr/utf16-ucs4.c: New file.
71265
71266         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
71267         (Depends-on): Add unitypes.
71268         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
71269         (u8_uctomb_aux): Move out to separate file.
71270         (u8_uctomb): Use ucs4_t, uint8_t types.
71271         * lib/unistr/ucs4-utf8.c: New file.
71272
71273         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
71274         (Depends-on): Add unitypes.
71275         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
71276         (u16_uctomb_aux): Move out to separate file.
71277         (u16_uctomb): Use ucs4_t, uint16_t types.
71278         * lib/unistr/ucs4-utf16.c: New file.
71279
71280 2006-12-25  Bruno Haible  <bruno@clisp.org>
71281
71282         * modules/unitypes: New file.
71283         * lib/unitypes.h: New file.
71284         * MODULES.html.sh (func_all_modules): New section "Unicode string
71285         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
71286         this section. Add unitypes.
71287
71288 2007-01-08  Bruno Haible  <bruno@clisp.org>
71289
71290         Avoid variable names that conflict with those from libtool.
71291         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
71292         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
71293         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
71294         library_names_spec to acl_library_names_spec, hardcode_* to
71295         acl_hardcode_*.
71296         Reported by Ralf Wildenhues.
71297
71298 2007-01-08  Bruno Haible  <bruno@clisp.org>
71299
71300         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
71301         definition.
71302         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
71303         definition.
71304         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
71305         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
71306         definition.
71307         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
71308         definition.
71309         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
71310         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
71311         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
71312         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
71313         definition.
71314         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
71315         definition.
71316         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
71317         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
71318         GC_USE_<algorithm>.
71319         * lib/gc-libgcrypt.c: Likewise.
71320         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
71321         * modules/gc-arctwo (configure.ac): Likewise.
71322         * modules/gc-des (configure.ac): Likewise.
71323         * modules/gc-hmac-md5 (configure.ac): Likewise.
71324         * modules/gc-hmac-sha1 (configure.ac): Likewise.
71325         * modules/gc-md2 (configure.ac): Likewise.
71326         * modules/gc-md4 (configure.ac): Likewise.
71327         * modules/gc-md5 (configure.ac): Likewise.
71328         * modules/gc-random (configure.ac): Likewise.
71329         * modules/gc-rijndael (configure.ac): Likewise.
71330         * modules/gc-sha1 (configure.ac): Likewise.
71331
71332 2007-01-08  Bruno Haible  <bruno@clisp.org>
71333
71334         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
71335         macro definition.
71336         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
71337         definition.
71338         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
71339         definition.
71340         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
71341         * modules/fcntl-safer (configure.ac): Likewise.
71342         * modules/fopen-safer (configure.ac): Likewise.
71343         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
71344         GNULIB_FWRITEERROR macro definition.
71345
71346 2007-01-08  Bruno Haible  <bruno@clisp.org>
71347
71348         * m4/gnulib-common.m4: New file.
71349         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
71350         (func_get_filelist): Add m4/gnulib-common.m4.
71351
71352 2007-01-08  Bruno Haible  <bruno@clisp.org>
71353
71354         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
71355         command.
71356
71357 2007-01-08  Jim Meyering  <jim@meyering.net>
71358
71359         Use a more robust test for a "can't happen" condition.
71360         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
71361         narrowed the st_size value.  Presuming the "can't happen" condition
71362         is true, that narrowing could conceivably convert an invalid st_size
71363         value into a valid one.  Instead, use a change based on Matthew
71364         Woehlke's original patch.
71365
71366         Slight readability improvement: use an assert-like macro
71367         in place of literal "abort ()" uses.
71368         * lib/fts.c (fts_assert): Define.
71369         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
71370         Use this macro instead of a bare 'abort'.
71371
71372 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
71373
71374         Don't worry about using IRIX 5.3's wctype.h broken definitions;
71375         simply work around them.
71376         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
71377         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
71378         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
71379         declaring.
71380         Don't bother to define as macros, since the standard doesn't require it.
71381         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
71382         longer worry about IRIX 5.3.
71383         (HAVE_WCTYPE_CTMP_BUG): Remove.
71384
71385 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71386
71387         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
71388         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
71389         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
71390         Problems reported by Georg Schwarz for IRIX 5.3.
71391
71392         * gnulib-tool (autoconf_minversion): Take the maximum version number
71393         found, not the minimum.  Problem reported by James Youngman.
71394
71395 2007-01-03  Karl Berry  <karl@gnu.org>
71396
71397         * doc/error.texi: new file, explaining interaction with progname.
71398         * doc/gnulib.texi: include it.  Update copyright.
71399
71400 2007-01-03  Simon Josefsson  <simon@josefsson.org>
71401
71402         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
71403         AC_CANONICAL_HOST, to improve autobuild outputs.
71404
71405 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
71406             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
71407
71408         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
71409         sockets, server sockets, and other file descriptors.  Count errors
71410         to compute the return value.  Reorder the code a bit to be easier
71411         to follow.  Don't set event bits that were not requested (except
71412         POLLERR and POLLHUP).
71413
71414 2007-01-01  Bruno Haible  <bruno@clisp.org>
71415
71416         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
71417
71418 2007-01-03  Jim Meyering  <jim@meyering.net>
71419
71420         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
71421
71422 2007-01-02  Bruno Haible  <bruno@clisp.org>
71423
71424         * modules/settime (Include): Require timespec.h.
71425         * modules/nanosleep (Include): Likewise.
71426
71427 2007-01-01  Bruno Haible  <bruno@clisp.org>
71428
71429         * gnulib-tool (func_emit_copyright_notice): Bump year.
71430         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
71431
71432 2007-01-01  Bruno Haible  <bruno@clisp.org>
71433
71434         Improve support for OpenBSD.
71435         * build-aux/config.rpath (libname_spec): Export.
71436         (library_names_spec): New variable. Export.
71437         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
71438         library_names_spec from the config.rpath output. Locate shared library
71439         through the name pattern in library_names_spec.
71440
71441 2007-01-01  Eric Blake  <ebb9@byu.net>
71442
71443         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
71444
71445 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
71446
71447         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
71448         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
71449         assume the C locale, and avoid an "eval" that could cause trouble.
71450         Problem with SORT reported by Bob Proulx.
71451
71452         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
71453         Define.  Trivial patch from Henning Nielsen Lund, originally
71454         sent to bug-grep@gnu.org today.
71455
71456 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
71457
71458         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
71459         struct stat.  Problem reported by Henning Nielsen Lund.
71460         * lib/acl.c: Include acl.h first, to check interface.  Don't
71461         bother to include sys/types.h and sys/stat.h again.
71462
71463 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71464
71465         Import the following change from libc; problem reported by
71466         Sven Verdoolaege.
71467
71468         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
71469
71470         [BZ #1373]
71471         * lib/argp.h: Remove __NTH for __argp_usage inline function.
71472
71473 2006-12-28  Jim Meyering  <jim@meyering.net>
71474
71475         * build-aux/announce-gen: Do not assume that the package
71476         builds any of tar.gz, tar.bz2, and .xdelta files.
71477         Suggestion from Simon Josefsson.
71478
71479 2006-12-28  Simon Josefsson  <simon@josefsson.org>
71480
71481         * modules/announce-gen: New file.
71482
71483 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
71484
71485         * lib/mbchar.h: Just include <wctype.h>; the wctype module
71486         handles its gotchas now.
71487         * lib/mbswidth.c: Likewise.
71488         * lib/wcwidth.h: Likewise.
71489         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
71490         and iswcntrl; the wctype module does this stuff now.
71491         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
71492         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
71493         * modules/mbchar (Depends-on): Add wctype.
71494         * modules/mbswidth (Depends-on): Likewise.
71495         * modules/wcwidth (Depends-on): Likewise.
71496
71497 2006-12-27  Eric Blake  <ebb9@byu.net>
71498
71499         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
71500         module uses more than what <wctype.h> is required to provide.
71501
71502 2006-12-26  Eric Blake  <ebb9@byu.net>
71503
71504         * gnulib-tool (sed_extract_prog): Avoid space-tab.
71505
71506 2006-12-26  Eric Blake  <ebb9@byu.net>
71507
71508         * modules/absolute-header: New module.
71509         * modules/fcntl (Depends-on): Depend on it.
71510         * modules/inttypes (Depends-on): Likewise.
71511         * modules/stdint (Depends-on): Likewise.
71512         * modules/sys_stat (Depends-on): Likewise.
71513         * modules/wctype (Depends-on): Likewise.
71514         * MODULES.html.sh (Support for building libraries and
71515         executables): Document it.
71516
71517 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
71518
71519         * gnulib-tool (SED): Remove, undoing previous change.
71520         The problem was that it broke coreutils on Solaris, because
71521         "sed --posix" leaked into a makefile.
71522         (sed): New alias, if 'alias' and GNU sed.
71523
71524 2006-12-24  Jim Meyering  <jim@meyering.net>
71525
71526         Work around an fchownat bug in glibc-2.4:
71527         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
71528         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
71529         in spite of the -P option.
71530         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
71531         New macros.
71532         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
71533         * modules/openat (Files): Add lib/fchownat.c.
71534         * lib/openat.c (fchownat): Don't define here.  Move to...
71535         * lib/fchownat.c: ...this new file.
71536
71537 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71538
71539         Fix bug reported by Bruno Haible in
71540         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
71541         where quotearg.c didn't compile on Mac OS X 10.2 because it
71542         lacks <wchar.h> and wint_t.
71543         * lib/wctype_.h (__wctype_wint_t): New type.
71544         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
71545         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
71546         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
71547         Arg is now of type __wctype_wint_t, not wint_t.
71548         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
71549         substitute HAVE_WINT_T.
71550         * modules/wctype (Files): Add m4/wint_t.m4.
71551         (wctype.h): Substitute HAVE_WINT_T.
71552
71553 2006-12-23  Bruno Haible  <bruno@clisp.org>
71554
71555         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
71556
71557 2006-12-23  Bruno Haible  <bruno@clisp.org>
71558
71559         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
71560         S_ISLNK.
71561         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
71562         mingw.
71563
71564 2006-12-22  Bruno Haible  <bruno@clisp.org>
71565
71566         * lib/copy-file.c: Include acl.h.
71567         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
71568         Close the file descriptors only after being done with copy_acl.
71569         * modules/copy-file (Depends-on): Add acl.
71570
71571 2006-12-22  Bruno Haible  <bruno@clisp.org>
71572
71573         * gnulib-tool (SED): New variable.
71574         Use $SED instead of sed everywhere.
71575
71576 2006-12-22  Bruno Haible  <bruno@clisp.org>
71577
71578         * modules/no-c++: New file.
71579         * m4/no-c++.m4: New file.
71580         * MODULES.html.sh (Support for building libraries and executables):
71581         Add no-c++.
71582
71583 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
71584
71585         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
71586         Include <limits.h>, and use its INT_MAX to rewrite the
71587         j loop so that it does not overflow 'int'.  Problem reported by
71588         Ralf Wildenhues in
71589         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
71590         Play it safe by shifting left by 1 rather than multiplying by 2,
71591         as GCC is less likely to optimize this away when the value
71592         is signed (when it assumes overflow leads to undefined behavior).
71593         Also, don't assume time_t uses two's complement.
71594
71595 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
71596
71597         * MODULES.html.sh: New module wctype.
71598         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
71599         * lib/fnmatch.c: Don't bother to include <wchar.h> before
71600         <wctype.h>, since the new wctype module should fix this.
71601         * lib/quotearg.c: Include <wctype.h> unconditionally, since
71602         the wctype module should arrange for it.
71603         * lib/regex_internal.h: Likewise.
71604         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
71605         since the wctype module should handle this now.
71606         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
71607         * modules/fnmatch (Depends-on): Add wctype.
71608         * modules/quotearg (Depends-on): Likewise.
71609         * modules/regex (Depends-on): Likewise.
71610
71611 2006-12-19  Bruno Haible  <bruno@clisp.org>
71612
71613         * lib/strdup.h [C++]: Wrap definitions in extern "C".
71614         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
71615
71616 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71617
71618         * modules/savewd (Depends-on): Fix dependency on fcntl.
71619
71620 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71621
71622         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
71623         conforms to C99, rather than relying on the user's environment
71624         setting of STDINT_H.
71625
71626 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71627         and Eric Blake  <ebb9@byu.net>
71628
71629         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
71630         This is more consistent with the other defines here.
71631         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
71632         Port to z/OS.  Problem reported by Paul Gilmartin.
71633         Change local vars to use gl_ prefix rather than ac_.
71634         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
71635         with other defines.
71636         * modules/double-slash-root: New module.
71637         * modules/dirname (Files): Remove m4/double-slash-root.m4.
71638         (Depends-on): Add double-slash-root.
71639         * MODULES.html.sh (File system functions): Mention new module.
71640
71641 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
71642
71643         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
71644         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
71645         This is for the benefit of gzip, which doesn't do i18n.
71646
71647 2006-12-12  Jim Meyering  <jim@meyering.net>
71648
71649         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
71650         Reported by Andreas Schwab <schwab@suse.de>.
71651
71652 2006-12-12  Bruno Haible  <bruno@clisp.org>
71653
71654         Merge these changes.
71655         2006-09-05  Bruno Haible  <bruno@clisp.org>
71656         * lib/iconvme.c (iconv_string): No need to save and restore errno when
71657         iconv_alloc succeeded.
71658         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
71659         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
71660         test for " && dest " at the end - dest is always != NULL there. Call
71661         iconv with 4xNULL arguments initially, to reset the state. Call iconv
71662         with 2xNULL arguments, also to flush the state storage. Handle the
71663         IRIX iconv behaviour. Realloc the final result, to throw away unused
71664         memory.
71665
71666 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
71667
71668         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
71669         and fchmodat unconditionally, since glibc 2.4 has them.
71670         Problem reported by Arkadiusz Miskiewicz.
71671
71672 2006-12-10  Bruno Haible  <bruno@clisp.org>
71673
71674         * gnulib-tool (func_import): Show the include files only for those
71675         modules that are copied and specified.
71676         Reported by Karl Berry.
71677
71678 2006-12-08  Jim Meyering  <jim@meyering.net>
71679
71680         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
71681         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
71682
71683         * build-aux/announce-gen: Add two new options, both optional:
71684         --bootstrap-tools=TOOL_LIST
71685               a comma-separated list of tools, e.g.,
71686               autoconf,automake,bison,gnulib
71687         --gnulib-snapshot-date=DATE
71688               if gnulib is in the bootstrap tool list,
71689               then report this as the snapshot date.
71690               If not specified, use the current date/time.
71691               If you specify a date here, be sure it's UTC.
71692
71693 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71694
71695         * tests/test-argp-2.sh: Fix test to match actual output.
71696         (func_compare): Fix sed script to be portable.
71697
71698 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
71699
71700         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
71701         workaround for this case.  It is not autoconfigured now; offhand
71702         it's hard to see how to autoconfigure it.
71703
71704 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
71705
71706         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
71707         a directory that is about to be chowned.  Such a directory's
71708         initial file permissions should permit the owner only and this
71709         should not be changed until after the chown, since the group and
71710         other bits would be incorrect if they granted permission before
71711         the chown.
71712
71713         Fix porting problem for iswctype reported by Georg Schwarz in:
71714         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
71715         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
71716         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
71717         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
71718         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
71719
71720 2006-12-03  Jim Meyering  <jim@meyering.net>
71721
71722         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
71723         p->fts_statp may not yet be defined.
71724         (fts_read): Instead, set it in the caller, once p->fts_statp is
71725         sure to be defined, and corresponds to a top-level directory.
71726         This bug made du -x fail.  Here's the coreutils test case:
71727         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
71728         Reported by Mike Frysinger.
71729
71730 2006-12-01  Jim Meyering  <jim@meyering.net>
71731
71732         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
71733         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
71734         Reported by Simon Josefsson.
71735
71736 2006-11-30  Jim Meyering  <jim@meyering.net>
71737
71738         * m4/warning.m4: Use the all-permissive copyright notice
71739         recommended by RMS (rather than LGPL).
71740         * m4/vararrays.m4: Likewise.
71741         * m4/flexmember.m4: Likewise.
71742
71743 2006-11-29  Bruno Haible  <bruno@clisp.org>
71744
71745         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71746         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
71747         using +=.
71748         Reported by Simon Josefsson <simon@josefsson.org>.
71749
71750 2006-11-28  James Youngman <jay@gnu.org>
71751
71752         * README: Advise users that they might find the bug-gnulib@gnu.org
71753         and autotools-announce@gnu.org mailing lists useful.
71754
71755 2006-11-28  Bruno Haible  <bruno@clisp.org>
71756
71757         * m4/ptrdiff_max.m4: Remove file.
71758
71759 2006-11-21  Bruno Haible  <bruno@clisp.org>
71760
71761         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
71762         _AC_COMPUTE_INT.
71763         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71764         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
71765         _AC_COMPUTE_INT.
71766         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71767         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
71768         _AC_COMPUTE_INT.
71769         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71770
71771 2006-11-28  Jim Meyering  <jim@meyering.net>
71772
71773         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
71774         warning from "gcc -Wshadow" about shadowing the builtin.
71775
71776 2006-11-27  Bruno Haible  <bruno@clisp.org>
71777
71778         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
71779         _AC_COMPUTE_INT.
71780         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71781
71782 2006-11-27  Bruno Haible  <bruno@clisp.org>
71783             Paul Eggert  <eggert@cs.ucla.edu>
71784
71785         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
71786
71787 2006-11-26  Bruno Haible  <bruno@clisp.org>
71788
71789         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71790         noinst_LTLIBRARIES.
71791
71792 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
71793             Bruno Haible  <bruno@clisp.org>
71794
71795         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
71796         if compiling with "gcc -ansi".
71797
71798 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
71799
71800         Fix some incompatibilities with gcc -ansi -pedantic.
71801         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
71802         if compiling pedantically with GCC, unless it's C99 or later.
71803         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
71804         it mishandles gcc -ansi -pedantic as well.
71805         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
71806         if gcc -pedantic.
71807         * lib/regexec.c (check_node_accept_bytes): Don't use auto
71808         initializers for struct if -pedantic, unless it's C99 or later.
71809
71810 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
71811
71812         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
71813         Don't close an fd more than once. Identical atimes indicate
71814         success, not failure.
71815
71816 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
71817
71818         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
71819
71820 2006-11-23  Jim Meyering  <jim@meyering.net>
71821
71822         * build-aux/announce-gen: New file.  From coreutils.
71823
71824 2006-11-22  Jim Meyering  <jim@meyering.net>
71825
71826         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
71827         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
71828         (fts_read): Use a temporary to narrow the overused st_size member
71829         before using it in a switch statement.  Reported by Matthew Woehlke.
71830
71831         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
71832         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
71833
71834 2006-11-20  Bruno Haible  <bruno@clisp.org>
71835
71836         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
71837         changequote instead of pairs of brackets.
71838         Reported by Andreas Schwab <schwab@suse.de>.
71839
71840 2006-11-21  Jim Meyering  <jim@meyering.net>
71841
71842         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
71843         so as to remain compatible with older compilers.
71844         Patch from Michael Deutschmann.
71845
71846 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71847
71848         * MODULES.html.sh (File system functions): Add openat.
71849
71850         * lib/openat.h (rpl_fstatat): New macro, if
71851         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
71852         (fstatat): Define to rpl_fstatat under the same conditions,
71853         unless COMPILING_FSTATAT.
71854         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
71855         seems to have the bug.
71856         * lib/fstatat.c: New file.
71857         * modules/openat (Files): Add it.
71858
71859 2006-11-20  Bruno Haible  <bruno@clisp.org>
71860
71861         * Makefile: New file.
71862
71863 2006-11-20  Jim Meyering  <jim@meyering.net>
71864
71865         The beginnings of syntax-related checks for gnulib.
71866         * lib/Makefile: New file.
71867         * lib/t-idcache: New script.  Ensure that the two halves of
71868         idcache.c stay in sync.
71869
71870         * lib/idcache.c: Adjust comments in user- and group- portions to
71871         be more accurate, and to be consistent with one another.
71872
71873 2006-11-20  Jim Meyering  <jim@meyering.net>
71874
71875         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
71876         continue using the flexible array member (thus, this module performs
71877         half as many malloc calls), with the addition that...
71878         (getgroup, getuser): Consistently record a non-match via an empty
71879         "name" string, and map an empty string match to a NULL return value.
71880         * modules/idcache (Depends-on): Re-add flexmember.
71881
71882         * lib/idcache.c (getuser): Remove all uses of the register keyword.
71883         (getuidbyname, getgroup, getgidbyname): Likewise.
71884
71885         Use cleaner syntax: NULL rather than 0.
71886         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
71887
71888 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71889
71890         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
71891         It mishandled the case where the group was missing.
71892         Problem reported by Greg Schafer.
71893         * modules/idcache: Likewise.
71894
71895 2006-11-18  Jim Meyering  <jim@meyering.net>
71896
71897         * check-module (%exempt_header): Add exception for some
71898         conditionally-included headers.
71899
71900         * modules/i-ring (Depends-on): Add verify.
71901         (License): Change to LGPL.
71902
71903 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71904
71905         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
71906         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
71907         and inttostr.h.  Use snprintf rather than uinttostr, so that
71908         LGPLed code doesn't depend on GPLed.
71909
71910 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71911
71912         * modules/inline (License): Change from GPL to LGPL.
71913
71914 2006-11-17  Jim Meyering  <jim@meyering.net>
71915
71916         * modules/d-type (License): Switch to LGPL.
71917
71918 2006-11-15  Bruno Haible  <bruno@clisp.org>
71919
71920         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
71921
71922 2006-11-15  Eric Blake  <ebb9@byu.net>
71923
71924         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
71925         the module dependency.
71926
71927 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71928             Bruno Haible  <bruno@clisp.org>
71929
71930         * gnulib-tool (func_create_testdir): Add license consistency check.
71931
71932 2006-11-15  Eric Blake  <ebb9@byu.net>
71933
71934         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
71935         random "(cached)" in configure output.
71936
71937 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71938
71939         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
71940         test for conforming inttypes.h is both announced and cached.
71941
71942         * MODULES.html.sh (seen_modules, seen_files): New variables.
71943         (func_module): Rewrite to use a few less gnulib-tool and sed
71944         invocations.  Avoid a couple of quadratic algorithms for ...
71945         (missed_modules, missed_files): ... these, with ...
71946         (func_append, func_tmpdir): ... these new functions, from
71947         gnulib-tool.  Analogously, install traps for cleanup.
71948
71949         * tests/test-gc.c (main): Remove unused variables.
71950         * tests/test-read-file.c: Include stdlib.h, for 'free'.
71951
71952 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
71953
71954         * modules/inttostr (License): Change to LGPL.
71955
71956 2006-11-14  Eric Blake  <ebb9@byu.net>
71957
71958         * modules/tempname (License): Change to LGPL.
71959
71960 2006-11-14  Eric Blake  <ebb9@byu.net>
71961
71962         * doc/functions.texi (Function Portability): *printf functions on
71963         Cygwin now understand all POSIX size specifiers.
71964
71965 2006-11-14  Bruno Haible  <bruno@clisp.org>
71966
71967         * modules/c-ctype (License): Change to LGPL.
71968
71969 2006-11-12  Bruno Haible  <bruno@clisp.org>
71970
71971         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
71972         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
71973         for GNOME libraries, for which the include files are installed in
71974         subdirectories of $prefix/include.
71975
71976 2006-11-12  Bruno Haible  <bruno@clisp.org>
71977
71978         * m4/lib-link.m4: Require at least autoconf-2.54.
71979         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
71980         name to underscores for the --with option.
71981
71982 2006-11-13  Bruno Haible  <bruno@clisp.org>
71983
71984         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
71985         the tests directory.
71986         Reported by Ralf Wildenhues.
71987
71988 2006-11-13  Bruno Haible  <bruno@clisp.org>
71989
71990         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
71991         (func_emit_initmacro_end): Undo the override here.
71992         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
71993         Works around the famous automake error in coreutils.
71994
71995 2006-11-13  Eric Blake  <ebb9@byu.net>
71996
71997         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
71998         element, not its node.
71999
72000 2006-11-12  Bruno Haible  <bruno@clisp.org>
72001
72002         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
72003         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
72004
72005 2006-11-12  Bruno Haible  <bruno@clisp.org>
72006
72007         * gnulib-tool: New option --local-symlink.
72008         (func_usage): Document it.
72009         (lsymbolic): New variable.
72010         (func_import, func_create_testdir): If --symlink was not specified,
72011         test whether --local-symlink was specified and the file comes from
72012         the local_gnulib_dir.
72013
72014 2006-11-12  Bruno Haible  <bruno@clisp.org>
72015
72016         * gnulib-tool (func_ln): New function.
72017         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
72018
72019 2006-11-12  Bruno Haible  <bruno@clisp.org>
72020
72021         Finish support for source files in subdirectories.
72022         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
72023         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
72024         AUTOMAKE_OPTIONS.
72025         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
72026
72027 2006-11-12  Bruno Haible  <bruno@clisp.org>
72028
72029         * gnulib-tool (func_get_automake_snippet): Synthesize also an
72030         EXTRA_lib_SOURCES augmentation.
72031         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
72032
72033 2006-11-12  Jim Meyering  <jim@meyering.net>
72034
72035         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
72036         file descriptors.  This also averts a failure on systems with
72037         native openat support when a traversed directory lacks "x" access.
72038         * lib/fts_.h: Include "i-ring.h"
72039         (struct FTS) [fts_fd_ring]: New member.
72040         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
72041         (FCHDIR): Add parentheses.
72042         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
72043         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
72044         When descending, rather than simply closing the previous
72045         fts_cwd_fd value, push that file descriptor onto the ring.
72046         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
72047         (fts_open): Initialize the new fd_ring member.
72048         (fts_close): Clear the ring.
72049         (fts_safe_changedir): When possible, use our new fd_ring to skip
72050         the diropen and fstat and dev/ino comparison that would normally
72051         accompany a virtual `chdir ("..")'.
72052
72053         * modules/fts (Depends-on): Add i-ring.
72054         * modules/i-ring: New module.
72055         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
72056         * m4/i-ring.m4: New file.
72057
72058 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72059
72060         * gnulib-tool (func_create_testdir): Fix replacement of
72061         `build-aux' in configure.ac.  Run autotools in gltests
72062         subdirectory.
72063         (func_create_testdir, func_create_megatestdir, test): There is
72064         no need for '--force' in most autotool invocations in a new
72065         tree.  Actually fail the whole test if any of the tools, or the
72066         configure or make stages fail.
72067
72068         Sync from Automake.
72069         * build-aux/gnupload: Revert last change.  Add pointer to upload
72070         instructions of the GNU Maintenance Instructions.
72071         Suggestion by Karl Berry.
72072
72073 2006-11-10  Jim Meyering  <jim@meyering.net>
72074
72075         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
72076
72077 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72078
72079         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
72080         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
72081         (bind_textdomain_codeset) [! ENABLE_NLS]:
72082         Evaluate all the arguments.  That way, callers get compatible behavior
72083         if the arguments have side effects.  Also, it avoids some GCC
72084         diagnostics in some cases; Joel E. Denny reported problems when Bison
72085         was configured with --enable-gcc-warnigs.
72086
72087 2006-11-10  Jim Meyering  <jim@meyering.net>
72088
72089         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
72090         relevant options in CFLAGS (like -O, -fno-inline) are taken into
72091         account.
72092
72093 2006-11-10  Jim Meyering  <jim@meyering.net>
72094
72095         * modules/inline: New file/module.
72096         * modules/xalloc (Files): Remove m4/inline.m4.
72097         (Depends-on): Add inline, instead.
72098         * modules/oset: Likewise.
72099         * modules/list: Likewise.
72100
72101 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72102
72103         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
72104         Problem reported by Matthew Woehlke.
72105
72106 2006-11-09  Bruno Haible  <bruno@clisp.org>
72107
72108         * lib/tempname.c (gen_tempname): Remove variant that invokes
72109         __gen_tempname.
72110         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
72111         __gen_tempname.
72112
72113 2006-11-08  Bruno Haible  <bruno@clisp.org>
72114
72115         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
72116         to 'yes' instead of 'cross-compiling'.
72117
72118 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
72119
72120         * lib/quotearg.h (quotearg_free): New decl.
72121         * lib/quotearg.c (quotearg_free): New function.
72122         (slot0, nslots, slotvec0, slotvec):
72123         Now file-scope so that quotearg_free can get at them.
72124
72125 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72126
72127         Sync from Automake.
72128         * build-aux/gnupload: Add missing 'gnu' to example URL.
72129         Report by Karl Berry.
72130
72131 2006-11-08  Bruno Haible  <bruno@clisp.org>
72132
72133         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
72134         Suggested by Paul Eggert.
72135
72136 2006-11-08  Jim Meyering  <jim@meyering.net>
72137
72138         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
72139         It's already included if !_LIBC.
72140         (fts_safe_changedir): Add a comment.
72141
72142 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
72143
72144         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
72145         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
72146         Matthew Woehlke.
72147
72148         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
72149         definitions up, to avoid colliding with change below.
72150         (static_inline) [HAVE_INLINE]: New macro.
72151         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
72152         Provide extern decls when !HAVE_INLINE.  Do not define unless
72153         static_inline is defined, either by us or by xmalloc.c.  Use
72154         static_inline rather than static inline.
72155         (XCALLOC): Optimize sizeof(T) = 1 case.
72156         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
72157
72158 2006-11-07  Bruno Haible  <bruno@clisp.org>
72159
72160         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
72161         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
72162         AC_C_INLINE.
72163         * modules/xalloc (Files): Add m4/inline.m4.
72164
72165 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72166
72167         * README: Fix typo.
72168         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
72169         (Miscellanous Notes): ...from this.
72170
72171 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
72172
72173         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
72174         Mention that offsetof should be used instead of sizeof.
72175         From Bruno Haible.
72176
72177 2006-11-07  Bruno Haible  <bruno@clisp.org>
72178
72179         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
72180
72181 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
72182
72183         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
72184         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
72185         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
72186         (gl_tree_add_before, gl_tree_add_after):
72187         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
72188         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
72189         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
72190         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
72191         (gl_linked_add_after, gl_linked_add_at): Likewise.
72192         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
72193         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
72194         (gl_tree_add_before, gl_tree_add_after): Likewise.
72195         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
72196         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
72197         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
72198
72199 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72200
72201         * lib/gl_oset.h: Use C comment style, not C++ comment style.
72202
72203 2006-11-06  Bruno Haible  <bruno@clisp.org>
72204
72205         * m4/inline.m4: New file.
72206         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
72207         * modules/list (Files): Add m4/inline.m4.
72208         * modules/oset (Files): Likewise.
72209
72210 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
72211
72212         * lib/idcache.c: Include <stddef.h>, for offsetof.
72213         (struct userid.name): Change from char * to a flexible array member.
72214         All uses changed.
72215         * modules/idcache (Depends-on): Add flexmember.
72216
72217         * MODULES.html.sh (Core language properties): New module flexmember.
72218         * modules/flexmember, m4/flexmember.m4: New files.
72219
72220         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
72221         inline functions that are identical with the old xnmalloc_inline,
72222         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
72223         that we can avoid some unnecessary integer multiplications and
72224         divisions in the common case where the element size is known at
72225         compile time.
72226         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
72227         needed.
72228         (xnboundedmalloc): Remove.
72229         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
72230         arguments, for consistency with rest of this header.
72231         (xcharalloc): Rewrite using XNMALLOC.
72232         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
72233         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
72234         versions have been moved to lib/xalloc.h and renamed to be the
72235         non-*_inline versions.
72236         (xmalloc, xrealloc): Implement without reference to the xnmalloc
72237         and xnrealloc functions, since those functions are now inline and
72238         now call us.
72239         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
72240         renaming described above.
72241         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
72242         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
72243         captures the dependency in AC_C_INLINE.
72244
72245         New module canonicalize-lgpl, proposed by Charles Wilson in
72246         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
72247         with a few small changes afterwards.
72248         * MODULES.html.sh (File system functions): New module
72249         canonicalize-lgpl.
72250         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
72251         and canonicalize_file_name.
72252         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
72253         * modules/canonicalize-lgpl: New files.
72254
72255 2006-11-05  Bruno Haible  <bruno@clisp.org>
72256
72257         * gnulib-tool (func_import, func_create_testdir): Create directories
72258         also for files in subdirectories of lib/.
72259
72260 2006-11-05  Bruno Haible  <bruno@clisp.org>
72261
72262         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
72263         ANSI C compliant.
72264
72265 2006-11-03  Bruno Haible  <bruno@clisp.org>
72266
72267         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
72268         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
72269         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
72270         (xnboundedmalloc): New inline function.
72271         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
72272         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
72273         xmalloc.
72274         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
72275         xmalloc.
72276         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
72277         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
72278         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
72279         xmalloc.
72280         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72281         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
72282         xmalloc.
72283         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
72284         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72285         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
72286         xmalloc.
72287         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72288         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
72289         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72290         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
72291         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
72292         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
72293         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
72294
72295 2006-11-03  Bruno Haible  <bruno@clisp.org>
72296
72297         * lib/c-ctype.h [C++]: Define functions without name mangling.
72298         * lib/fwriteerror.h [C++]: Likewise.
72299         * lib/gcd.h [C++]: Likewise.
72300         * lib/linebreak.h [C++]: Likewise.
72301
72302 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
72303
72304         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
72305         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
72306         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
72307         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
72308         Check for functions and headers just once.
72309         Check for declaration of canonicalize_file_name.
72310         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
72311
72312 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72313
72314         * gnulib-tool (func_import): Fix typo in actioncmd.
72315
72316 2006-11-02  Bruno Haible  <bruno@clisp.org>
72317
72318         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
72319         newline sequence in the Makefile.am snippet as a space, like "make"
72320         does.
72321         Reported by Roger Persson <perrog@gmail.com>.
72322
72323 2006-11-01  Bruno Haible  <bruno@clisp.org>
72324
72325         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
72326         already declared in <string.h>.
72327         * lib/strcase.h (strncasecmp): Don't declare it if yes.
72328
72329 2006-11-01  Bruno Haible  <bruno@clisp.org>
72330
72331         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
72332         * lib/strcase.h: Include <string.h>.
72333         (strcasecmp): Define to rpl_strcasecmp here.
72334
72335 2006-11-01  Bruno Haible  <bruno@clisp.org>
72336
72337         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
72338
72339 2006-11-01  Eric Blake  <ebb9@byu.net>
72340
72341         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
72342
72343         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
72344
72345 2006-10-29  Bruno Haible  <bruno@clisp.org>
72346
72347         Make it compile in C++ mode.
72348         * lib/full-write.c (full_rw): Add a cast.
72349
72350 2006-11-01  Bruno Haible  <bruno@clisp.org>
72351
72352         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
72353         be POSIX compliant.
72354         Reported by Roger Persson <perrog@gmail.com>.
72355
72356 2006-11-01  Eric Blake  <ebb9@byu.net>
72357
72358         * lib/getopt_.h: Fix comments.
72359
72360 2006-10-31  Eric Blake  <ebb9@byu.net>
72361
72362         * modules/tmpdir (Depends-on): Add sys_stat.
72363         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
72364         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
72365         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
72366         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
72367         tempname.
72368
72369 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
72370
72371         Avoid some C++ diagnostics reported by Bruno Haible.
72372         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
72373         xmalloc.
72374         (quotearg_alloc): Use xcharalloc rather than xmalloc.
72375         (struct slotvec): Move to top level.
72376         (quotearg_n_options): Rewrite to avoid xmalloc.
72377         * lib/xalloc.h (xcharalloc): New function.
72378         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
72379         [defined __cplusplus]: Add function template that provides result
72380         type propagation.  This part of the change is from Bruno Haible.
72381
72382 2006-10-29  Bruno Haible  <bruno@clisp.org>
72383
72384         Make it compile in C++ mode.
72385         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
72386         * lib/strnlen1.c (strnlen1): Cast memchr result.
72387         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
72388         * lib/clean-temp.c (string_equals, string_hash): Add casts.
72389         (create_temp_dir): Rename local variable 'template'.
72390         (compile_csharp_using_sscli): Add cast.
72391         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
72392         * lib/findprog.c (find_in_path): Likewise.
72393         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
72394         * lib/wait-process.c (register_slave_subprocess): Likewise.
72395
72396 2006-10-22  Bruno Haible  <bruno@clisp.org>
72397
72398         * modules/tsearch: New file.
72399         * lib/tsearch.h: New file.
72400         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
72401         * m4/tsearch.m4: New file.
72402         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
72403
72404 2006-10-29  Eric Blake  <ebb9@byu.net>
72405
72406         * lib/arcfour.c: Assume config.h.
72407         * lib/arctwo.c: Likewise.
72408         * lib/base64.c: Likewise.
72409         * lib/check-version.c: Likewise.
72410         * lib/crc.c: Likewise.
72411         * lib/des.c: Likewise.
72412         * lib/gc-gnulib.c: Likewise.
72413         * lib/gc-libgcrypt.c: Likewise.
72414         * lib/gc-pbkdf2-sha1.c: Likewise.
72415         * lib/getaddrinfo.c: Likewise.
72416         * lib/getdelim.c: Likewise.
72417         * lib/getline.c: Likewise.
72418         * lib/hmac-md5.c: Likewise.
72419         * lib/hmac-sha1.c: Likewise.
72420         * lib/iconvme.c: Likewise.
72421         * lib/md2.c: Likewise.
72422         * lib/md4.c: Likewise.
72423         * lib/memxor.c: Likewise.
72424         * lib/read-file.c: Likewise.
72425         * lib/readline.c: Likewise.
72426         * lib/rijndael-alg-fst.c: Likewise.
72427         * lib/rijndael-api-fst.c: Likewise.
72428         * lib/xgetdomainname.c: Likewise.
72429
72430 2006-10-28  Eric Blake  <ebb9@byu.net>
72431
72432         * lib/xstrndup.c: Assume config.h.
72433
72434 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
72435
72436         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
72437         stat-macros.h is now for our own macros, whereas stat_h is for
72438         macros in the <sys/stat.h> name space.
72439         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
72440         (STAT_MACROS_H): Remove.
72441         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
72442         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
72443         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
72444         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
72445         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
72446         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
72447         Move these macros to ...
72448         * lib/stat_.h: here.  Don't include stat-macros.h.
72449         * lib/canonicalize.c: Don't include stat-macros.h.
72450         * lib/chown.c: Likewise.
72451         * lib/euidaccess.c: Likewise.
72452         * lib/file-type.c: Likewise.
72453         * lib/filemode.c: Likewise.
72454         * lib/glob.c: Likewise.
72455         * lib/isapipe.c: Likewise.
72456         * lib/lchown.c: Likewise.
72457         * lib/lstat.c: Likewise.
72458         * lib/mkdir-p.c: Likewise.
72459         * lib/rmdir.c: Likewise.
72460         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
72461         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
72462         unless mkdir isn't declared, to speed up 'configure'.
72463         Always create sys/stat.h, since it's unlikely any real sys/stat.h
72464         would define all the S_* symbols.
72465         * modules/canonicalize (Depends-on):
72466         Depend on sys_stat, not stat-macros.
72467         * modules/chown: Likewise.
72468         * modules/euidaccess: Likewise.
72469         * modules/filemode: Likewise.
72470         * modules/file-type: Likewise.
72471         * modules/glob: Likewise.
72472         * modules/isapipe: Likewise.
72473         * modules/lchown: Likewise.
72474         * modules/lstat: Likewise.
72475         * modules/mkancesdirs: Likewise.
72476         * modules/rmdir: Likewise.
72477         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
72478         * modules/modechange: Likewise.
72479         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
72480         (configure.ac): Remove gl_STAT_MACROS.
72481         * modules/sys_stat (Depends-on): Remove stat-macros.
72482
72483 2006-10-27  Bruno Haible  <bruno@clisp.org>
72484
72485         * m4/signed.m4: Remove file.
72486         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
72487         invocation.
72488         * modules/vasnprintf (Files): Remove m4/signed.m4.
72489
72490 2006-10-27  Bruno Haible  <bruno@clisp.org>
72491
72492         Update to GNU gettext 0.16.
72493         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
72494         m4/inttypes-h.m4, m4/signed.m4.
72495         * m4/gettext.m4: Update to GNU gettext 0.16.
72496         * m4/intl.m4: New file, from GNU gettext.
72497         * m4/intldir.m4: New file, from GNU gettext.
72498         * config/srclist.txt: Update
72499
72500 2006-10-27  Eric Blake  <ebb9@byu.net>
72501
72502         * MODULES.html.sh: Document tempname.
72503         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
72504         dependencies.
72505         (Files): Move lib/tempname.c...
72506         * modules/tempname: ...to this new module.
72507         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
72508         (gl_PREREQ_TEMPNAME): Move...
72509         * m4/tempname.m4: ...to this new file.
72510         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
72511         * modules/sys_stat (Depends-on): Add stat-macros.
72512         * lib/stat_.h (includes): Pick up stat macros.
72513         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
72514         if stat macros are broken.
72515         * lib/tempname.c (includes): No need to include "stat-macros.h".
72516         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
72517         (direxists, __path_search) [!_LIBC]: Don't compile these in
72518         gnulib; the tmpdir module covers that.
72519         * lib/tempname.h: New file.
72520
72521 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
72522
72523         * COPYING: Explain how gnulib-tool converts licence headers.
72524         Almost all wording by Eric Blake.
72525
72526 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
72527
72528         * lib/mbchar.h (is_basic_table): Make read-only.
72529         * lib/mbchar.c (is_basic_table): Likewise.
72530         Reported by John Darrington.
72531
72532 2006-10-25  Bruno Haible  <bruno@clisp.org>
72533
72534         * lib/progname.h (set_program_name): Undefine before defining.
72535
72536 2006-10-25  Bruno Haible  <bruno@clisp.org>
72537
72538         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
72539         false for non-gcc C++ compilers.
72540         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
72541
72542 2006-10-24  Bruno Haible  <bruno@clisp.org>
72543
72544         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
72545         iconv implementations like Irix iconv.
72546
72547 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72548
72549         * modules/vararrays: New file.
72550         * m4/vararrays.m4: New file, taken from diffutils.
72551         * MODULES.html.sh: New module vararrays.
72552
72553 2006-10-24  Karl Berry  <karl@gnu.org>
72554
72555         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
72556         Don't call GNU Unix.
72557
72558 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72559
72560         * users.txt: Add Libtool.
72561
72562         Sync from Libtool:
72563
72564         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72565
72566         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
72567         to gnulib's policy of including config.h unconditionally.
72568
72569 2006-10-24  Bruno Haible  <bruno@clisp.org>
72570
72571         * modules/wcwidth (Files): Add m4/wint_t.m4.
72572         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
72573         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
72574
72575 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72576
72577         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
72578         to pacify GCC with some -W flags enabled.  Problem reported by
72579         Bruno Haible.
72580
72581 2006-10-24  Jim Meyering  <jim@meyering.net>
72582
72583         * MODULES.html.sh: Remove uinttostr.  It's not a module.
72584         Reported by Karl Berry.
72585
72586 2006-10-23  Bruno Haible  <bruno@clisp.org>
72587
72588         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
72589
72590 2006-10-24  Bruno Haible  <bruno@clisp.org>
72591
72592         * lib/gl_list.h: Use C comment style, not C++ comment style.
72593
72594 2006-10-23  Eric Blake  <ebb9@byu.net>
72595
72596         * lib/getaddrinfo.c (includes): Add missing include.
72597
72598 2006-10-23  Bruno Haible  <bruno@clisp.org>
72599             Paul Eggert  <eggert@cs.ucla.edu>
72600
72601         Ability to rename obstack_free.
72602         * lib/obstack.h (__obstack_free): New macro. Declare instead of
72603         obstack_free.
72604         (obstack_free): Invoke the __obstack_free macro.
72605         * lib/obstack.c (obstack_free): Use __obstack_free macro.
72606
72607 2006-10-23  Bruno Haible  <bruno@clisp.org>
72608             Paul Eggert  <eggert@cs.ucla.edu>
72609
72610         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
72611         __argc, __argv from the declaration. (They are defined as macros on
72612         mingw.)
72613
72614 2006-10-22  Bruno Haible  <bruno@clisp.org>
72615
72616         * doc/gnulib-intro.texi: New file.
72617         * doc/gnulib.texi: Include it.
72618
72619 2006-10-21  Bruno Haible  <bruno@clisp.org>
72620
72621         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
72622         "Introduction", "Miscellanous Notes", "Particular Modules".
72623
72624 2006-10-21  Bruno Haible  <bruno@clisp.org>
72625
72626         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72627         Change mostlyclean-local rule to avoid sh syntax error from bash
72628         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
72629
72630 2006-10-23  Jim Meyering  <jim@meyering.net>
72631
72632         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
72633         in place of snprintf.
72634
72635         * modules/inttostr (Files): Add lib/uinttostr.c.
72636         * lib/uinttostr.c (inttostr): New file/function.
72637         * lib/inttostr.h (uinttostr): Declare.
72638         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
72639         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72640         Add uinttostr.
72641         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
72642
72643 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72644
72645         * lib/canonicalize.c (ELOOP): Define if not already defined.
72646         Problem reported by Bruno Haible in
72647         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
72648
72649 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72650
72651         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
72652         Problem reported by Perry Smith and Ville Laurikari.
72653
72654         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
72655         uses.
72656
72657 2006-10-19  Bruno Haible  <bruno@clisp.org>
72658
72659         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
72660         for mingw.
72661
72662 2006-10-19  Bruno Haible  <bruno@clisp.org>
72663
72664         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
72665         Needed for mingw.
72666
72667 2006-10-19  Bruno Haible  <bruno@clisp.org>
72668
72669         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
72670
72671 2006-10-19  Bruno Haible  <bruno@clisp.org>
72672
72673         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
72674         it.
72675
72676 2006-10-19  Bruno Haible  <bruno@clisp.org>
72677
72678         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
72679         invocation.
72680
72681 2006-10-19  Bruno Haible  <bruno@clisp.org>
72682
72683         * gnulib-tool (func_create_testdir): Don't include ftruncate and
72684         mountlist by default.
72685
72686 2006-10-16  Bruno Haible  <bruno@clisp.org>
72687
72688         * lib/c-strstr.c: Include c-strstr.h.
72689
72690 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72691
72692         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
72693         in a slash.
72694
72695 2006-10-18  Bruno Haible  <bruno@clisp.org>
72696
72697         * lib/lock.h [C++]: Wrap definitions in extern "C".
72698
72699 2006-10-18  Bruno Haible  <bruno@clisp.org>
72700
72701         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
72702         gl_LIBOBJS list.
72703
72704 2006-10-18  Bruno Haible  <bruno@clisp.org>
72705
72706         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
72707
72708 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
72709
72710         * lib/xstrtol.h: Include gettext.h.
72711         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
72712         Problem reported by Eric Blake.
72713         * modules/xstrtol (Depends-on): Add gettext-h.
72714
72715 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
72716
72717         * lib/strftime.c (advance): New macro.
72718         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
72719         incomplete type, so you can't add 0 to it.  Problem and patch
72720         reported by Eelco Dolstra for dietlibc.
72721
72722 2006-10-18  Jim Meyering  <jim@meyering.net>
72723
72724         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
72725         type for a local, and rename it: s/up/user_proc/.
72726
72727 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
72728
72729         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
72730         READ_UTMP_USER_PROCESS.
72731         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
72732
72733 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
72734
72735         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
72736         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
72737
72738 2006-10-17  Eric Blake  <ebb9@byu.net>
72739
72740         * lib/sigprocmask.c (sigprocmask): Fix typo.
72741
72742         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
72743
72744         * modules/clean-temp (Makefile.am): Don't add to make output...
72745         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
72746         config.h.
72747
72748 2006-10-17  Bruno Haible  <bruno@clisp.org>
72749
72750         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
72751         differently if DEFAULT_TEXT_DOMAIN is set.
72752
72753 2006-10-16  Bruno Haible  <bruno@clisp.org>
72754
72755         * lib/clean-temp.c: Include fwriteerror.h.
72756
72757 2006-10-16  Bruno Haible  <bruno@clisp.org>
72758
72759         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
72760
72761 2006-10-16  Bruno Haible  <bruno@clisp.org>
72762
72763         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
72764         * lib/sigprocmask.h: Include <sys/types.h>.
72765         (sigset_t): Use the system's definition if present.
72766
72767 2006-10-17  Eric Blake  <ebb9@byu.net>
72768
72769         * lib/xvasprintf.c (includes): Assume config.h.
72770         * lib/xasprintf.c (includes): Likewise.
72771
72772 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
72773
72774         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
72775         at least as wide as intmax_t.
72776
72777 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
72778
72779         (Imported from Automake.)
72780         * build-aux/gnupload: Update to version 1.1 of directive file.
72781
72782 2006-10-16  Eric Blake  <ebb9@byu.net>
72783
72784         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
72785         match Automake 1.10a.
72786
72787 2006-10-14  Bruno Haible  <bruno@clisp.org>
72788
72789         * modules/sigprocmask: New file.
72790         * lib/sigprocmask.h: New file.
72791         * lib/sigprocmask.c: New file.
72792         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
72793         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
72794         request sigprocmask.o.
72795         (gl_PREREQ_SIGPROCMASK): New macro.
72796         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
72797         (Depends-on): Add sigprocmask.
72798         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
72799         gt_SIGNALBLOCKING. Test for 'raise' only once.
72800         * lib/fatal-signal.c: Include sigprocmask.h.
72801         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
72802         unblock_fatal_signals): Define always.
72803         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72804         sigprocmask.
72805
72806 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72807
72808         Sync from Automake.
72809         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
72810         which incorrectly sets the mode of an existing destination
72811         directory.  In some cases the unpatched install-sh could do the
72812         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
72813         system.  We hope this is rare in practice, but it's clearly worth
72814         fixing.  Problem reported by Alex Unleashed in
72815         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
72816         Also, don't bother to check for -m bugs unless we're using -m;
72817         suggested by Stepan Kasal.
72818
72819 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72820
72821         Sync from Automake.
72822         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
72823         `-c' flag, so they appear at the same position as in %FASTDEP%
72824         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
72825         which ignores unknown options only after the first non-option.
72826         Bug report against M4 by Nelson H. F. Beebe.
72827
72828 2006-10-13  Jim Meyering  <jim@meyering.net>
72829
72830         Fix a bug in yesterday's change.
72831         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
72832         p->fts_statp->st_dev would be used uninitialized.
72833         Ensures that we always call fts_stat on the very first entry.
72834         Miklos Szeredi reported that find -xdev stopped working.
72835
72836 2006-10-12  Bruno Haible  <bruno@clisp.org>
72837
72838         * gnulib-tool (func_get_automake_snippet): Append an automatically
72839         computed EXTRA_DIST augmentation.
72840         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
72841         * modules/alloca-opt (Makefile.am): Likewise.
72842         * modules/allocsa (Makefile.am): Likewise.
72843         * modules/arcfour (Makefile.am): Likewise.
72844         * modules/arctwo (Makefile.am): Likewise.
72845         * modules/argmatch (Makefile.am): Likewise.
72846         * modules/argz (Makefile.am): Likewise.
72847         * modules/atexit (Makefile.am): Likewise.
72848         * modules/backupfile (Makefile.am): Likewise.
72849         * modules/byteswap (Makefile.am): Likewise.
72850         * modules/c-strtod (Makefile.am): Likewise.
72851         * modules/c-strtold (Makefile.am): Likewise.
72852         * modules/calloc (Makefile.am): Likewise.
72853         * modules/canon-host (Makefile.am): Likewise.
72854         * modules/canonicalize (Makefile.am): Likewise.
72855         * modules/chdir-long (Makefile.am): Likewise.
72856         * modules/chdir-safer (Makefile.am): Likewise.
72857         * modules/check-version (Makefile.am): Likewise.
72858         * modules/chown (Makefile.am): Likewise.
72859         * modules/cloexec (Makefile.am): Likewise.
72860         * modules/close-stream (Makefile.am): Likewise.
72861         * modules/closeout (Makefile.am): Likewise.
72862         * modules/crc (Makefile.am): Likewise.
72863         * modules/csharpexec (Makefile.am): Likewise.
72864         * modules/cycle-check (Makefile.am): Likewise.
72865         * modules/des (Makefile.am): Likewise.
72866         * modules/dev-ino (Makefile.am): Likewise.
72867         * modules/dirfd (Makefile.am): Likewise.
72868         * modules/dirname (Makefile.am): Likewise.
72869         * modules/dup2 (Makefile.am): Likewise.
72870         * modules/eealloc (Makefile.am): Likewise.
72871         * modules/error (Makefile.am): Likewise.
72872         * modules/euidaccess (Makefile.am): Likewise.
72873         * modules/exclude (Makefile.am): Likewise.
72874         * modules/exitfail (Makefile.am): Likewise.
72875         * modules/fcntl-safer (Makefile.am): Likewise.
72876         * modules/fcntl (Makefile.am): Likewise.
72877         * modules/file-type (Makefile.am): Likewise.
72878         * modules/fileblocks (Makefile.am): Likewise.
72879         * modules/filemode (Makefile.am): Likewise.
72880         * modules/filenamecat (Makefile.am): Likewise.
72881         * modules/fnmatch (Makefile.am): Likewise.
72882         * modules/fopen-safer (Makefile.am): Likewise.
72883         * modules/fpending (Makefile.am): Likewise.
72884         * modules/fprintftime (Makefile.am): Likewise.
72885         * modules/free (Makefile.am): Likewise.
72886         * modules/fsusage (Makefile.am): Likewise.
72887         * modules/ftruncate (Makefile.am): Likewise.
72888         * modules/fts (Makefile.am): Likewise.
72889         * modules/gc-arcfour (Makefile.am): Likewise.
72890         * modules/gc-des (Makefile.am): Likewise.
72891         * modules/gc-hmac-md5 (Makefile.am): Likewise.
72892         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
72893         * modules/gc-md4 (Makefile.am): Likewise.
72894         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72895         * modules/gc-sha1 (Makefile.am): Likewise.
72896         * modules/gc (Makefile.am): Likewise.
72897         * modules/getaddrinfo (Makefile.am): Likewise.
72898         * modules/getcwd (Makefile.am): Likewise.
72899         * modules/getdelim (Makefile.am): Likewise.
72900         * modules/getdomainname (Makefile.am): Likewise.
72901         * modules/getgroups (Makefile.am): Likewise.
72902         * modules/gethostname (Makefile.am): Likewise.
72903         * modules/gethrxtime (Makefile.am): Likewise.
72904         * modules/getline (Makefile.am): Likewise.
72905         * modules/getloadavg (Makefile.am): Likewise.
72906         * modules/getlogin_r (Makefile.am): Likewise.
72907         * modules/getndelim2 (Makefile.am): Likewise.
72908         * modules/getopt (Makefile.am): Likewise.
72909         * modules/getpagesize (Makefile.am): Likewise.
72910         * modules/getpass-gnu (Makefile.am): Likewise.
72911         * modules/getpass (Makefile.am): Likewise.
72912         * modules/getsubopt (Makefile.am): Likewise.
72913         * modules/gettime (Makefile.am): Likewise.
72914         * modules/gettimeofday (Makefile.am): Likewise.
72915         * modules/getugroups (Makefile.am): Likewise.
72916         * modules/getusershell (Makefile.am): Likewise.
72917         * modules/glob (Makefile.am): Likewise.
72918         * modules/group-member (Makefile.am): Likewise.
72919         * modules/hard-locale (Makefile.am): Likewise.
72920         * modules/hash (Makefile.am): Likewise.
72921         * modules/hmac-md5 (Makefile.am): Likewise.
72922         * modules/hmac-sha1 (Makefile.am): Likewise.
72923         * modules/human (Makefile.am): Likewise.
72924         * modules/idcache (Makefile.am): Likewise.
72925         * modules/imaxabs (Makefile.am): Likewise.
72926         * modules/imaxdiv (Makefile.am): Likewise.
72927         * modules/inet_ntop (Makefile.am): Likewise.
72928         * modules/inet_pton (Makefile.am): Likewise.
72929         * modules/intprops (Makefile.am): Likewise.
72930         * modules/inttostr (Makefile.am): Likewise.
72931         * modules/inttypes (Makefile.am): Likewise.
72932         * modules/isapipe (Makefile.am): Likewise.
72933         * modules/javaversion (Makefile.am): Likewise.
72934         * modules/lchmod (Makefile.am): Likewise.
72935         * modules/lchown (Makefile.am): Likewise.
72936         * modules/localcharset (Makefile.am): Likewise.
72937         * modules/long-options (Makefile.am): Likewise.
72938         * modules/lstat (Makefile.am): Likewise.
72939         * modules/malloc (Makefile.am): Likewise.
72940         * modules/mathl (Makefile.am): Likewise.
72941         * modules/mbchar (Makefile.am): Likewise.
72942         * modules/md2 (Makefile.am): Likewise.
72943         * modules/md4 (Makefile.am): Likewise.
72944         * modules/md5 (Makefile.am): Likewise.
72945         * modules/memcasecmp (Makefile.am): Likewise.
72946         * modules/memchr (Makefile.am): Likewise.
72947         * modules/memcmp (Makefile.am): Likewise.
72948         * modules/memcoll (Makefile.am): Likewise.
72949         * modules/memcpy (Makefile.am): Likewise.
72950         * modules/memmem (Makefile.am): Likewise.
72951         * modules/memmove (Makefile.am): Likewise.
72952         * modules/mempcpy (Makefile.am): Likewise.
72953         * modules/memrchr (Makefile.am): Likewise.
72954         * modules/memset (Makefile.am): Likewise.
72955         * modules/memxor (Makefile.am): Likewise.
72956         * modules/mkancesdirs (Makefile.am): Likewise.
72957         * modules/mkdir-p (Makefile.am): Likewise.
72958         * modules/mkdir (Makefile.am): Likewise.
72959         * modules/mkdtemp (Makefile.am): Likewise.
72960         * modules/mkstemp (Makefile.am): Likewise.
72961         * modules/mktime (Makefile.am): Likewise.
72962         * modules/modechange (Makefile.am): Likewise.
72963         * modules/mountlist (Makefile.am): Likewise.
72964         * modules/nanosleep (Makefile.am): Likewise.
72965         * modules/obstack (Makefile.am): Likewise.
72966         * modules/openat (Makefile.am): Likewise.
72967         * modules/pagealign_alloc (Makefile.am): Likewise.
72968         * modules/pathmax (Makefile.am): Likewise.
72969         * modules/physmem (Makefile.am): Likewise.
72970         * modules/poll (Makefile.am): Likewise.
72971         * modules/posixtm (Makefile.am): Likewise.
72972         * modules/posixver (Makefile.am): Likewise.
72973         * modules/putenv (Makefile.am): Likewise.
72974         * modules/quote (Makefile.am): Likewise.
72975         * modules/quotearg (Makefile.am): Likewise.
72976         * modules/raise (Makefile.am): Likewise.
72977         * modules/read-file (Makefile.am): Likewise.
72978         * modules/readline (Makefile.am): Likewise.
72979         * modules/readlink (Makefile.am): Likewise.
72980         * modules/readtokens (Makefile.am): Likewise.
72981         * modules/readutmp (Makefile.am): Likewise.
72982         * modules/realloc (Makefile.am): Likewise.
72983         * modules/regex (Makefile.am): Likewise.
72984         * modules/rename-dest-slash (Makefile.am): Likewise.
72985         * modules/rename (Makefile.am): Likewise.
72986         * modules/rijndael (Makefile.am): Likewise.
72987         * modules/rmdir (Makefile.am): Likewise.
72988         * modules/rpmatch (Makefile.am): Likewise.
72989         * modules/safe-read (Makefile.am): Likewise.
72990         * modules/safe-write (Makefile.am): Likewise.
72991         * modules/same-inode (Makefile.am): Likewise.
72992         * modules/same (Makefile.am): Likewise.
72993         * modules/save-cwd (Makefile.am): Likewise.
72994         * modules/savedir (Makefile.am): Likewise.
72995         * modules/setenv (Makefile.am): Likewise.
72996         * modules/settime (Makefile.am): Likewise.
72997         * modules/sha1 (Makefile.am): Likewise.
72998         * modules/sig2str (Makefile.am): Likewise.
72999         * modules/snprintf (Makefile.am): Likewise.
73000         * modules/stat-macros (Makefile.am): Likewise.
73001         * modules/stat-time (Makefile.am): Likewise.
73002         * modules/stdbool (Makefile.am): Likewise.
73003         * modules/stdint (Makefile.am): Likewise.
73004         * modules/stdlib-safer (Makefile.am): Likewise.
73005         * modules/stpcpy (Makefile.am): Likewise.
73006         * modules/stpncpy (Makefile.am): Likewise.
73007         * modules/strcase (Makefile.am): Likewise.
73008         * modules/strcasestr (Makefile.am): Likewise.
73009         * modules/strchrnul (Makefile.am): Likewise.
73010         * modules/strcspn (Makefile.am): Likewise.
73011         * modules/strdup (Makefile.am): Likewise.
73012         * modules/strerror (Makefile.am): Likewise.
73013         * modules/strftime (Makefile.am): Likewise.
73014         * modules/strndup (Makefile.am): Likewise.
73015         * modules/strnlen (Makefile.am): Likewise.
73016         * modules/strpbrk (Makefile.am): Likewise.
73017         * modules/strsep (Makefile.am): Likewise.
73018         * modules/strstr (Makefile.am): Likewise.
73019         * modules/strtod (Makefile.am): Likewise.
73020         * modules/strtoimax (Makefile.am): Likewise.
73021         * modules/strtok_r (Makefile.am): Likewise.
73022         * modules/strtol (Makefile.am): Likewise.
73023         * modules/strtoll (Makefile.am): Likewise.
73024         * modules/strtoul (Makefile.am): Likewise.
73025         * modules/strtoull (Makefile.am): Likewise.
73026         * modules/strtoumax (Makefile.am): Likewise.
73027         * modules/strverscmp (Makefile.am): Likewise.
73028         * modules/sys_socket (Makefile.am): Likewise.
73029         * modules/sys_stat (Makefile.am): Likewise.
73030         * modules/sysexits (Makefile.am): Likewise.
73031         * modules/time_r (Makefile.am): Likewise.
73032         * modules/timegm (Makefile.am): Likewise.
73033         * modules/timespec (Makefile.am): Likewise.
73034         * modules/tmpfile-safer (Makefile.am): Likewise.
73035         * modules/trim (Makefile.am): Likewise.
73036         * modules/unistd-safer (Makefile.am): Likewise.
73037         * modules/unlinkdir (Makefile.am): Likewise.
73038         * modules/unlocked-io (Makefile.am): Likewise.
73039         * modules/userspec (Makefile.am): Likewise.
73040         * modules/utime (Makefile.am): Likewise.
73041         * modules/utimecmp (Makefile.am): Likewise.
73042         * modules/utimens (Makefile.am): Likewise.
73043         * modules/vasnprintf (Makefile.am): Likewise.
73044         * modules/vasprintf (Makefile.am): Likewise.
73045         * modules/vsnprintf (Makefile.am): Likewise.
73046         * modules/xalloc (Makefile.am): Likewise.
73047         * modules/xgetcwd (Makefile.am): Likewise.
73048         * modules/xnanosleep (Makefile.am): Likewise.
73049         * modules/xreadlink (Makefile.am): Likewise.
73050         * modules/xstrtod (Makefile.am): Likewise.
73051         * modules/xstrtol (Makefile.am): Likewise.
73052         * modules/xstrtold (Makefile.am): Likewise.
73053         * modules/yesno (Makefile.am): Likewise.
73054         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
73055
73056 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
73057
73058         * modules/error (Makefile.am): Distribute files through
73059         EXTRA_DIST, not lib_SOURCES.
73060
73061 2006-10-12  Eric Blake  <ebb9@byu.net>
73062
73063         * modules/error (Makefile.am): Distribute files in /lib.
73064         * modules/obstack (Makefile.am): Likewise.
73065
73066 2006-10-12  Bruno Haible  <bruno@clisp.org>
73067
73068         * modules/acl (Makefile.am): Distribute all files in lib/ through
73069         EXTRA_DIST.
73070         * modules/arcfour (Makefile.am): Likewise.
73071         * modules/arctwo (Makefile.am): Likewise.
73072         * modules/argmatch (Makefile.am): Likewise.
73073         * modules/argz (Makefile.am): Likewise.
73074         * modules/atexit (Makefile.am): Likewise.
73075         * modules/backupfile (Makefile.am): Likewise.
73076         * modules/c-strtod (Makefile.am): Likewise.
73077         * modules/c-strtold (Makefile.am): Likewise.
73078         * modules/calloc (Makefile.am): Likewise.
73079         * modules/canon-host (Makefile.am): Likewise.
73080         * modules/canonicalize (Makefile.am): Likewise.
73081         * modules/chdir-long (Makefile.am): Likewise.
73082         * modules/chdir-safer (Makefile.am): Likewise.
73083         * modules/check-version (Makefile.am): Likewise.
73084         * modules/chown (Makefile.am): Likewise.
73085         * modules/cloexec (Makefile.am): Likewise.
73086         * modules/close-stream (Makefile.am): Likewise.
73087         * modules/closeout (Makefile.am): Likewise.
73088         * modules/crc (Makefile.am): Likewise.
73089         * modules/cycle-check (Makefile.am): Likewise.
73090         * modules/des (Makefile.am): Likewise.
73091         * modules/dirfd (Makefile.am): Likewise.
73092         * modules/dirname (Makefile.am): Likewise.
73093         * modules/dup2 (Makefile.am): Likewise.
73094         * modules/euidaccess (Makefile.am): Likewise.
73095         * modules/exclude (Makefile.am): Likewise.
73096         * modules/exitfail (Makefile.am): Likewise.
73097         * modules/fcntl-safer (Makefile.am): Likewise.
73098         * modules/file-type (Makefile.am): Likewise.
73099         * modules/fileblocks (Makefile.am): Likewise.
73100         * modules/filemode (Makefile.am): Likewise.
73101         * modules/filenamecat (Makefile.am): Likewise.
73102         * modules/fnmatch (Makefile.am): Likewise.
73103         * modules/fopen-safer (Makefile.am): Likewise.
73104         * modules/fpending (Makefile.am): Likewise.
73105         * modules/fprintftime (Makefile.am): Likewise.
73106         * modules/free (Makefile.am): Likewise.
73107         * modules/fsusage (Makefile.am): Likewise.
73108         * modules/ftruncate (Makefile.am): Likewise.
73109         * modules/fts (Makefile.am): Likewise.
73110         * modules/gc (Makefile.am): Likewise.
73111         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
73112         * modules/getaddrinfo (Makefile.am): Likewise.
73113         * modules/getcwd (Makefile.am): Likewise.
73114         * modules/getdelim (Makefile.am): Likewise.
73115         * modules/getdomainname (Makefile.am): Likewise.
73116         * modules/getgroups (Makefile.am): Likewise.
73117         * modules/gethostname (Makefile.am): Likewise.
73118         * modules/gethrxtime (Makefile.am): Likewise.
73119         * modules/getline (Makefile.am): Likewise.
73120         * modules/getloadavg (Makefile.am): Likewise.
73121         * modules/getlogin_r (Makefile.am): Likewise.
73122         * modules/getopt (Makefile.am): Likewise.
73123         * modules/getpass (Makefile.am): Likewise.
73124         * modules/getpass-gnu (Makefile.am): Likewise.
73125         * modules/getsubopt (Makefile.am): Likewise.
73126         * modules/gettime (Makefile.am): Likewise.
73127         * modules/gettimeofday (Makefile.am): Likewise.
73128         * modules/getugroups (Makefile.am): Likewise.
73129         * modules/getusershell (Makefile.am): Likewise.
73130         * modules/glob (Makefile.am): Likewise.
73131         * modules/group-member (Makefile.am): Likewise.
73132         * modules/hard-locale (Makefile.am): Likewise.
73133         * modules/hash (Makefile.am): Likewise.
73134         * modules/hmac-md5 (Makefile.am): Likewise.
73135         * modules/hmac-sha1 (Makefile.am): Likewise.
73136         * modules/human (Makefile.am): Likewise.
73137         * modules/idcache (Makefile.am): Likewise.
73138         * modules/imaxabs (Makefile.am): Likewise.
73139         * modules/imaxdiv (Makefile.am): Likewise.
73140         * modules/inet_ntop (Makefile.am): Likewise.
73141         * modules/inet_pton (Makefile.am): Likewise.
73142         * modules/inttostr (Makefile.am): Likewise.
73143         * modules/isapipe (Makefile.am): Likewise.
73144         * modules/lchown (Makefile.am): Likewise.
73145         * modules/long-options (Makefile.am): Likewise.
73146         * modules/lstat (Makefile.am): Likewise.
73147         * modules/malloc (Makefile.am): Likewise.
73148         * modules/mathl (Makefile.am): Likewise.
73149         * modules/mbchar (Makefile.am): Likewise.
73150         * modules/md2 (Makefile.am): Likewise.
73151         * modules/md4 (Makefile.am): Likewise.
73152         * modules/md5 (Makefile.am): Likewise.
73153         * modules/memcasecmp (Makefile.am): Likewise.
73154         * modules/memchr (Makefile.am): Likewise.
73155         * modules/memcmp (Makefile.am): Likewise.
73156         * modules/memcoll (Makefile.am): Likewise.
73157         * modules/memcpy (Makefile.am): Likewise.
73158         * modules/memmem (Makefile.am): Likewise.
73159         * modules/memmove (Makefile.am): Likewise.
73160         * modules/mempcpy (Makefile.am): Likewise.
73161         * modules/memrchr (Makefile.am): Likewise.
73162         * modules/memset (Makefile.am): Likewise.
73163         * modules/memxor (Makefile.am): Likewise.
73164         * modules/mkancesdirs (Makefile.am): Likewise.
73165         * modules/mkdir (Makefile.am): Likewise.
73166         * modules/mkdir-p (Makefile.am): Likewise.
73167         * modules/mkdtemp (Makefile.am): Likewise.
73168         * modules/mkstemp (Makefile.am): Likewise.
73169         * modules/mktime (Makefile.am): Likewise.
73170         * modules/modechange (Makefile.am): Likewise.
73171         * modules/mountlist (Makefile.am): Likewise.
73172         * modules/nanosleep (Makefile.am): Likewise.
73173         * modules/openat (Makefile.am): Likewise.
73174         * modules/pagealign_alloc (Makefile.am): Likewise.
73175         * modules/physmem (Makefile.am): Likewise.
73176         * modules/poll (Makefile.am): Likewise.
73177         * modules/posixtm (Makefile.am): Likewise.
73178         * modules/posixver (Makefile.am): Likewise.
73179         * modules/putenv (Makefile.am): Likewise.
73180         * modules/quote (Makefile.am): Likewise.
73181         * modules/quotearg (Makefile.am): Likewise.
73182         * modules/raise (Makefile.am): Likewise.
73183         * modules/read-file (Makefile.am): Likewise.
73184         * modules/readline (Makefile.am): Likewise.
73185         * modules/readlink (Makefile.am): Likewise.
73186         * modules/readtokens (Makefile.am): Likewise.
73187         * modules/readutmp (Makefile.am): Likewise.
73188         * modules/realloc (Makefile.am): Likewise.
73189         * modules/regex (Makefile.am): Likewise.
73190         * modules/rename (Makefile.am): Likewise.
73191         * modules/rename-dest-slash (Makefile.am): Likewise.
73192         * modules/rijndael (Makefile.am): Likewise.
73193         * modules/rmdir (Makefile.am): Likewise.
73194         * modules/rpmatch (Makefile.am): Likewise.
73195         * modules/safe-read (Makefile.am): Likewise.
73196         * modules/safe-write (Makefile.am): Likewise.
73197         * modules/same (Makefile.am): Likewise.
73198         * modules/save-cwd (Makefile.am): Likewise.
73199         * modules/savedir (Makefile.am): Likewise.
73200         * modules/setenv (Makefile.am): Likewise.
73201         * modules/settime (Makefile.am): Likewise.
73202         * modules/sha1 (Makefile.am): Likewise.
73203         * modules/sig2str (Makefile.am): Likewise.
73204         * modules/snprintf (Makefile.am): Likewise.
73205         * modules/stdlib-safer (Makefile.am): Likewise.
73206         * modules/stpcpy (Makefile.am): Likewise.
73207         * modules/stpncpy (Makefile.am): Likewise.
73208         * modules/strcase (Makefile.am): Likewise.
73209         * modules/strcasestr (Makefile.am): Likewise.
73210         * modules/strchrnul (Makefile.am): Likewise.
73211         * modules/strcspn (Makefile.am): Likewise.
73212         * modules/strdup (Makefile.am): Likewise.
73213         * modules/strerror (Makefile.am): Likewise.
73214         * modules/strftime (Makefile.am): Likewise.
73215         * modules/strndup (Makefile.am): Likewise.
73216         * modules/strnlen (Makefile.am): Likewise.
73217         * modules/strpbrk (Makefile.am): Likewise.
73218         * modules/strsep (Makefile.am): Likewise.
73219         * modules/strstr (Makefile.am): Likewise.
73220         * modules/strtod (Makefile.am): Likewise.
73221         * modules/strtoimax (Makefile.am): Likewise.
73222         * modules/strtok_r (Makefile.am): Likewise.
73223         * modules/strtol (Makefile.am): Likewise.
73224         * modules/strtoll (Makefile.am): Likewise.
73225         * modules/strtoul (Makefile.am): Likewise.
73226         * modules/strtoull (Makefile.am): Likewise.
73227         * modules/strtoumax (Makefile.am): Likewise.
73228         * modules/strverscmp (Makefile.am): Likewise.
73229         * modules/time_r (Makefile.am): Likewise.
73230         * modules/timegm (Makefile.am): Likewise.
73231         * modules/tmpfile-safer (Makefile.am): Likewise.
73232         * modules/unistd-safer (Makefile.am): Likewise.
73233         * modules/unlinkdir (Makefile.am): Likewise.
73234         * modules/userspec (Makefile.am): Likewise.
73235         * modules/utime (Makefile.am): Likewise.
73236         * modules/utimecmp (Makefile.am): Likewise.
73237         * modules/utimens (Makefile.am): Likewise.
73238         * modules/vasnprintf (Makefile.am): Likewise.
73239         * modules/vasprintf (Makefile.am): Likewise.
73240         * modules/vsnprintf (Makefile.am): Likewise.
73241         * modules/xalloc (Makefile.am): Likewise.
73242         * modules/xgetcwd (Makefile.am): Likewise.
73243         * modules/xnanosleep (Makefile.am): Likewise.
73244         * modules/xreadlink (Makefile.am): Likewise.
73245         * modules/xstrtod (Makefile.am): Likewise.
73246         * modules/xstrtol (Makefile.am): Likewise.
73247         * modules/xstrtold (Makefile.am): Likewise.
73248         * modules/yesno (Makefile.am): Likewise.
73249
73250 2006-10-12  Jim Meyering  <jim@meyering.net>
73251
73252         * m4/getloadavg.m4: Revert the change below.
73253
73254         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
73255         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
73256         fail with a symlink, which is what coreutils' ./bootstrap now
73257         creates by default.
73258
73259 2006-10-12  Bruno Haible  <bruno@clisp.org>
73260
73261         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
73262         mingw.
73263         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
73264         MSVC and mingw explicitly.
73265
73266 2006-10-11  Simon Josefsson  <jas@extundo.com>
73267             Bruno Haible  <bruno@clisp.org>
73268
73269         Add support for multiple gnulib-tool invocations in the scope of a
73270         single configure.ac file.
73271         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
73272         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
73273         with the same contents as the _LIBADD variable.
73274         (func_emit_initmacro_start, func_emit_initmacro_end,
73275         func_emit_initmacro_done): New functions.
73276         (func_import, func_create_testdir): Invoke them. Allow the identifiers
73277         gl_LIBOBJS and gl_LTLIBOBJS.
73278
73279 2006-10-11  Bruno Haible  <bruno@clisp.org>
73280
73281         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
73282         (func_create_testdir): Don't create po/Makefile.am, don't invoke
73283         autoreconf. Instead, invoke autopoint explicitly but move back the
73284         *.m4 files from gnulib.
73285
73286 2006-10-11  Bruno Haible  <bruno@clisp.org>
73287
73288         * gnulib-tool (func_usage): Make module names after --create-testdir
73289         optional.
73290         (func_create_testdir): If no module was specified, use nearly all
73291         modules.
73292
73293 2006-10-12  Jim Meyering  <jim@meyering.net>
73294
73295         Big performance improvement for fts-based tools that use FTS_NOSTAT.
73296         Avoid spurious inode-mismatch problems on non-POSIX file systems.
73297         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
73298         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
73299         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
73300         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
73301         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
73302         (fts_set_stat_required): New function.
73303         (fts_open): Defer the calls to fts_stat, if possible or requested.
73304         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
73305         into fts_stat itself.
73306         (fts_read): Perform any required (deferred) fts_stat call.
73307         (fts_build): Likewise, for the directory we're about to open and read.
73308         In the readdir loop, carefully decide whether each entry will require
73309         an eventual call to fts_stat, using dirent.d_type info if available.
73310         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
73311         a command line argument into this function.  Update all callers.
73312         Map a return value of FTS_DOT to FTS_D for a command line argument.
73313         * modules/fts (Depends-on): Add d-type.  Alphabetize.
73314         Thanks to Miklos Szeredi for his tenacity and for the initial
73315         bug report about "find" failing on a FUSE-based file system.
73316
73317         * lib/fts.c (fts_open): Use consistent indentation.
73318
73319 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
73320
73321         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
73322         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
73323         reported by Jim Meyering.  All uses of cache variables renamed
73324         to match Autoconf's.
73325         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
73326         the other one.
73327
73328         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
73329         Fix misspelling in diagnostic.
73330
73331 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73332
73333         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
73334         defined.  Problem reported by Matthew Woehlke.
73335
73336         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
73337         Add support for Tandem NonStop R series.
73338         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
73339         Use new macro.
73340
73341         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
73342         (has_trailing_slash): Omit size arg; all callers changed.
73343         Omit 'inline', since it doesn't help performance and we'd
73344         need to configure it.
73345         Don't count //, ///, etc. as having a trailing slash.
73346         As a side effect, this removes a C99ism reported by Matthew Woehlke.
73347         (rpl_rename_dest_slash): On failure, use rename's errno rather
73348         than (in some cases) an incorrect or junk errno.
73349         Simplify code by removing need to compute length; this does
73350         cause it to make two passes instead of one over the file name,
73351         but it's worth it.
73352
73353         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
73354         change, since Autoconf's version may no longer be appropriate now
73355         that we are using CVS Autoconf's version.  Add support for Tandem.
73356
73357 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73358             Bruno Haible  <bruno@clisp.org>
73359
73360         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
73361         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
73362         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
73363         gl_AC_TYPE_LONG_LONG.
73364
73365         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
73366         instead of HAVE_LONG_LONG.
73367         * lib/printf-args.c (printf_fetchargs): Likewise.
73368         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
73369         * lib/vasnprintf.c (VASNPRINTF): Likewise.
73370         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
73371         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
73372         gl_AC_TYPE_LONG_LONG.
73373
73374 2006-10-11  Bruno Haible  <bruno@clisp.org>
73375
73376         * m4/longlong.m4: Add comments.
73377         * m4/ulonglong.m4: Likewise.
73378
73379 2006-10-10  Bruno Haible  <bruno@clisp.org>
73380
73381         Make it possible to #define stpcpy, strdup to aliases.
73382         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
73383         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
73384
73385 2006-10-10  Bruno Haible  <bruno@clisp.org>
73386
73387         Make it possible to #define gcd to an alias.
73388         * lib/gcd.c: Include config.h.
73389
73390 2006-10-10  Bruno Haible  <bruno@clisp.org>
73391
73392         Make it possible to #define c_isascii to an alias.
73393         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
73394         defined. Undefine the macros before defining them, to avoid gcc
73395         warnings.
73396         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
73397         define NO_C_CTYPE_MACROS early.
73398
73399 2006-10-10  Bruno Haible  <bruno@clisp.org>
73400
73401         Make it possible to #define set_program_name to an alias.
73402         * lib/progname.c: Don't undefine set_program_name; instead, undefine
73403         ENABLE_RELOCATABLE early.
73404
73405 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73406
73407         Port to Tandem NSK OSS, which has 64-bit signed int but at most
73408         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
73409         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
73410         More generally, don't assume that 64-bit signed int is available
73411         if unsigned int is, and vice versa.
73412         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
73413         unsigned symbols, not on their signed counterparts.
73414         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
73415         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
73416         (UINT64_C, UINTMAX_C):
73417         Likewise.
73418         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
73419         unsigned counterparts.
73420         (Have_long_long, Unsigned): New macros.
73421         (Int): Renamed from INT.
73422         (strtoimax): Use the new macros.
73423         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
73424         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
73425         * modules/inttypes (inttypes.h): Substitute
73426         HAVE_UNSIGNED_LONG_LONG_INT.
73427         * modules/stdint (stdint.h): Likewise.
73428         (Files): Add m4/ulonglong.m4.
73429
73430 2006-10-10  Bruno Haible  <bruno@clisp.org>
73431
73432         Fix a gcc -Wshadow warning.
73433         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
73434         to 'bucket'.
73435         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
73436         gl_linked_indexof_from_to): Likewise.
73437         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
73438         Likewise.
73439         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
73440         Likewise.
73441         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
73442         Reported by Eric Blake.
73443
73444 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
73445
73446         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
73447         for NetBSD.  Problem reported by Bruno Haible.
73448
73449 2006-10-09  Jim Meyering  <jim@meyering.net>
73450
73451         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
73452         Patch from Bruno Haible.
73453
73454 2006-10-09  Jim Meyering  <jim@meyering.net>
73455
73456         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
73457         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
73458         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
73459
73460 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
73461
73462         Don't include <config.h> twice; this doesn't work in some cases,
73463         e.g., when config.h has "#define intmax_t long long int" and
73464         we include <config.h>, <inttypes.h>, <config.h> in that order.
73465         Problem reported by Matthew Woehlke in:
73466         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
73467         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
73468         * lib/fts-cycle.c: Don't include config.h.
73469         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
73470         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
73471         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
73472         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
73473         inttypes.h.
73474         * lib/xstrtoumax.c: Likewise.
73475         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
73476         __strtol and the like, so that this module is more like its siblings.
73477         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
73478         Remove; no longer needed now that we assume gnulib inttypes.h.
73479
73480 2006-10-08  Bruno Haible  <bruno@clisp.org>
73481
73482         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
73483         option.
73484
73485 2006-10-07  Jim Meyering  <jim@meyering.net>
73486
73487         * modules/inttypes (inttypes.h): Revert what seems to have been
73488         an inadvertent part of today's change: use "|", not "/" in the
73489         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
73490
73491 2006-10-07  Bruno Haible  <bruno@clisp.org>
73492
73493         * modules/sublist: New file.
73494
73495 2006-10-07  Bruno Haible  <bruno@clisp.org>
73496
73497         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
73498         * modules/argz (argz.h): Likewise.
73499         * modules/arpa_inet (arpa/inet.h): Likewise.
73500         * modules/byteswap (byteswap.h): Likewise.
73501         * modules/configmake (configmake.h): Likewise.
73502         * modules/fcntl (fcntl.h): Likewise.
73503         * modules/fnmatch (fnmatch.h): Likewise.
73504         * modules/getopt (getopt.h): Likewise.
73505         * modules/glob (glob.h): Likewise.
73506         * modules/inttypes (inttypes.h): Likewise.
73507         * modules/netinet_in (netinet/in.h): Likewise.
73508         * modules/poll (poll.h): Likewise.
73509         * modules/stdbool (stdbool.h): Likewise.
73510         * modules/stdint (stdint.h): Likewise.
73511         * modules/sys_select (sys/select.h): Likewise.
73512         * modules/sys_socket (sys/socket.h): Likewise.
73513         * modules/sys_stat (sys/stat.h): Likewise.
73514         * modules/sysexits (sysexits.h): Likewise.
73515         * modules/unistd (unistd.h): Likewise.
73516         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73517         Add a "DO NOT EDIT" comment to the generated file.
73518         (func_import): Likewise for gnulib-comp.m4.
73519
73520 2006-10-07  Bruno Haible  <bruno@clisp.org>
73521
73522         * lib/gl_sublist.h: New file.
73523         * lib/gl_sublist.c: New file.
73524
73525 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73526
73527         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
73528         name (relative to the original working directory) and the file
73529         name component (relative to the temporary working directory).  All
73530         callers changed.
73531         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
73532         * lib/mkdir-p.c (make_dir_parents): Likewise.
73533         * lib/mkdir-p.h (make_dir_parents): Likewise.
73534
73535 2006-10-06  Eric Blake  <ebb9@byu.net>
73536
73537         Define several macros for use by the clean-temp module.
73538         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
73539         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
73540         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
73541
73542         * lib/clean-temp.h (close_stream_temp): New declaration.
73543         * lib/clean-temp.c (includes): Pull in headers according to what
73544         other modules are in use.
73545         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
73546
73547 2006-10-06  Bruno Haible  <bruno@clisp.org>
73548
73549         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
73550         instead of fopen, fwriteerror.
73551
73552 2006-10-06  Bruno Haible  <bruno@clisp.org>
73553
73554         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
73555         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
73556         int.
73557         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
73558         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
73559         Return an error indicator.
73560         Suggested by Eric Blake.
73561
73562 2006-10-06  Bruno Haible  <bruno@clisp.org>
73563
73564         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
73565         Reported by Eric Blake.
73566
73567 2006-10-06  Bruno Haible  <bruno@clisp.org>
73568
73569         * modules/closeout (Description): Mention stderr too.
73570
73571 2006-10-06  Bruno Haible  <bruno@clisp.org>
73572         and Paul Eggert  <eggert@cs.ucla.edu>
73573
73574         * lib/closeout.c (close_stdout): Also close stderr.
73575         * lib/closeout.h: Update comment.
73576
73577 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
73578
73579         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
73580         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
73581         * lib/dirchownmod.c: Include lchown.h.
73582         * lib/lchown.c: Don't include files that lchown.h now includes.
73583         Don't declare chown, since lchown.h now does that.
73584         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
73585         (lchown): Define to rpl_chown if lchown is declared but
73586         does not exist.  Declare using a prototype if lchown is not
73587         declared.  Add a copyright notice.
73588         * lib/mkstemp.h: Include <unistd.h>.
73589         * lib/openat.c: Include lchown.h.
73590
73591         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
73592         we now test for that separately.
73593         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
73594         rather than O_NOFOLLOW, when testing whether it's possible to
73595         avoid a race condition reliably.
73596         * lib/savewd.c (savewd_chdir): Likewise.
73597
73598         Remove macros that are no longer needed now that stdint.h is
73599         reliable.
73600         * lib/fsusage.c (UINTMAX_MAX): Remove.
73601         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
73602         * lib/utimecmp.c (SIZE_MAX): Remove.
73603
73604         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
73605
73606         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
73607         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
73608         O_NOATIME works.
73609
73610 2006-10-05  Bruno Haible  <bruno@clisp.org>
73611
73612         * lib/gl_list.h (gl_sortedlist_search_from_to,
73613         gl_sortedlist_indexof_from_to): New declarations.
73614         (gl_list_implementation): New fields sortedlist_search_from_to,
73615         sortedlist_indexof_from_to.
73616         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
73617         inline functions.
73618         * lib/gl_list.c (gl_sortedlist_search_from_to,
73619         gl_sortedlist_indexof_from_to): New functions.
73620         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
73621         function.
73622         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
73623         (gl_array_sortedlist_search_from_to): New function.
73624         (gl_array_list_implementation): Update.
73625         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
73626         function.
73627         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
73628         (gl_carray_sortedlist_search_from_to): New function.
73629         (gl_carray_list_implementation): Update.
73630         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
73631         gl_linked_sortedlist_indexof_from_to): New functions.
73632         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73633         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73634         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
73635         gl_tree_sortedlist_indexof_from_to): New functions.
73636         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73637         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73638         Update.
73639         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73640         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
73641         Update.
73642
73643 2006-10-05  Bruno Haible  <bruno@clisp.org>
73644
73645         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
73646         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
73647         (struct gl_list_implementation): Add fields search_from_to,
73648         indexof_from_to. Remove fields search, indexof.
73649         (gl_list_search): Use the search_from_to method.
73650         (gl_list_search_from, gl_list_search_from_to): New functions.
73651         (gl_list_indexof): Use the indexof_from_to method.
73652         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73653         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
73654         (gl_list_search_from, gl_list_search_from_to): New functions.
73655         (gl_list_indexof): Use the indexof_from_to method.
73656         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73657         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
73658         gl_array_indexof. Add start_index, end_index arguments.
73659         (gl_array_search_from_to): Renamed from gl_array_search. Add
73660         start_index, end_index arguments.
73661         (gl_array_remove, gl_array_list_implementation): Update.
73662         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
73663         gl_carray_indexof. Add start_index, end_index arguments.
73664         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
73665         start_index, end_index arguments.
73666         (gl_carray_remove, gl_carray_list_implementation): Update.
73667         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
73668         gl_linked_search. Add start_index, end_index arguments.
73669         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
73670         start_index, end_index arguments.
73671         (gl_linked_remove): Update.
73672         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73673         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73674         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
73675         field to 'size_t'.
73676         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
73677         gl_tree_search. Add start_index, end_index arguments.
73678         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73679         start_index, end_index arguments.
73680         (gl_tree_remove): Update.
73681         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73682         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73683         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
73684         function.
73685         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
73686         gl_tree_search. Add start_index, end_index arguments.
73687         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73688         start_index, end_index arguments.
73689         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73690         Update.
73691         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
73692
73693 2006-10-05  Bruno Haible  <bruno@clisp.org>
73694
73695         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
73696
73697         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
73698         fwriteerror_temp): New declarations.
73699         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
73700         (descriptors): New variable.
73701         (cleanup): First, close the descriptors.
73702         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
73703         fclose_temp, fwriteerror_temp): New functions.
73704
73705 2006-10-04  Jim Meyering  <jim@meyering.net>
73706
73707         * lib/fts.c (fts_open): Tiny comment change.
73708
73709 2006-10-04  Bruno Haible  <bruno@clisp.org>
73710
73711         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
73712         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
73713         gl_LOCK_BODY.
73714         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
73715         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
73716         gl_LOCK_EARLY_BODY.
73717         (gl_LOCK): Require gl_LOCK_BODY.
73718
73719 2006-10-04  Bruno Haible  <bruno@clisp.org>
73720
73721         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
73722         (gl_oset_search_atleast): New declaration.
73723         (struct gl_oset_implementation): Add field 'search_atleast'.
73724         (gl_oset_search_atleast): New inline function.
73725         * lib/gl_oset.c (gl_oset_search_atleast): New function.
73726         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
73727         (gl_array_oset_implementation): Update.
73728         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
73729         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
73730         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
73731
73732 2006-10-04  Bruno Haible  <bruno@clisp.org>
73733
73734         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
73735
73736 2006-10-03  Bruno Haible  <bruno@clisp.org>
73737
73738         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
73739         from gl_avltreehash_list_implementation.
73740
73741 2006-10-03  Bruno Haible  <bruno@clisp.org>
73742
73743         * lib/gl_oset.c (gl_oset_add): Fix return type.
73744
73745 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
73746
73747         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
73748
73749 2006-10-02  Eric Blake  <ebb9@byu.net>
73750
73751         * modules/strnlen (Depends-on): Add extensions.
73752
73753 2006-10-02  Eric Blake  <ebb9@byu.net>
73754
73755         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
73756         definition in 2.60+.
73757
73758 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
73759
73760         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
73761         checks.
73762
73763 2006-10-02  Bruno Haible  <bruno@clisp.org>
73764
73765         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
73766         to the AUTOMAKE_OPTIONS.
73767         Reported by Jim Meyering.
73768
73769 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
73770
73771         Work around bug in Solaris 10 /proc file system:
73772         /proc/self/fd/NNN/.. isn't the parent directory of
73773         the directory whose file descriptor is NNN.  This needs to
73774         be worked around at run time, not compile time, since a
73775         program might be built on Solaris 8, where things work, and
73776         run on Solaris 10.
73777         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
73778         to use the following interface instead:
73779         (OPENAT_BUFFER_SIZE): New macro.
73780         (openat_proc_name): New function.
73781         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
73782         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
73783         Likewise.
73784         * lib/openat-proc.c: New file.
73785         * modules/openat (Files): Add lib/openat-proc.c.
73786         (Depends-on): Add same-inode, stdbool.
73787         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
73788
73789 2006-09-29  Bruno Haible  <bruno@clisp.org>
73790
73791         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
73792         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
73793         argument. Set stdout_closed before testing for ferror, not after.
73794         (fwriteerror, fwriteerror_no_ebadf): New functions.
73795
73796 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73797
73798         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
73799
73800 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
73801
73802         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
73803         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
73804
73805 2006-09-28  Jim Meyering  <jim@meyering.net>
73806
73807         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
73808         Include <unistd.h>.
73809
73810 2006-09-28  Bruno Haible  <bruno@clisp.org>
73811
73812         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
73813         * modules/linkedhash-list (Depends-on): Likewise.
73814         * modules/rbtreehash-list (Depends-on): Likewise.
73815
73816 2006-09-28  Bruno Haible  <bruno@clisp.org>
73817
73818         * lib/strndup.h: Simplify the redefinition of strndup.
73819         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
73820         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
73821
73822 2006-09-28  Bruno Haible  <bruno@clisp.org>
73823
73824         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
73825         * lib/gl_linkedhash_list.c: Likewise.
73826         * lib/gl_rbtreehash_list.c: Likewise.
73827
73828 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
73829
73830         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
73831         getaddrinfo.
73832
73833         * lib/__fpending.h: Don't include <stdio_ext.h> unless
73834         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
73835         it causes <stdio_ext.h> to cause a compile-time error.
73836         Problem reported by Nelson H. F. Beebe.
73837         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
73838         of HAVE_DECL___PENDING.
73839
73840         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
73841         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
73842         declaration.
73843
73844 2006-09-27  Jim Meyering  <jim@meyering.net>
73845
73846         This file could end up with a definition for a function
73847         named __strndup, rather than rpl_strndup on a system with
73848         incomplete weak_alias support.
73849         * lib/strndup.c (strndup): Rename from __strndup.
73850         Remove #defines that used to map __strndup to strndup.
73851         Don't use K&R prototypes.
73852         Remove LIBC-related code, since this file is not sync'd with glibc.
73853         * lib/strndup.h: Revamp, accordingly.
73854         * m4/strndup.m4: Modernize.
73855
73856 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
73857
73858         * modules/savewd (Depends-on): Add 'raise'.
73859         * lib/savewd.c: Include <signal.h>, for 'raise'.
73860
73861 2006-09-26  Jim Meyering  <jim@meyering.net>
73862
73863         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
73864         when we detect Darwin 8.7.0's acl_get_file bug.
73865         Rearrange to perform the new (below) run-test while $LIBS
73866         contains any acl-related library.  Set USE_ACL at the end.
73867         (gl_ACL_GET_FILE): New function.
73868
73869 2006-09-26  Eric Blake  <ebb9@byu.net>
73870
73871         * lib/verror.c: Include <config.h> unconditionally.
73872
73873 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
73874
73875         * modules/clock-time (Maintainer): Add self.
73876         * modules/getlogin_r (Depends-on): Add extensions.
73877
73878 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73879
73880         * modules/clock-time: New module.
73881         * modules/nanosleep (Depends-on): Add clock-time.
73882         * modules/gethrxtime (Depends-on): Likewise.
73883         * modules/gettime (Depends-on): Likewise.
73884         * modules/settime (Depends-on): Likewise.
73885
73886         * modules/fts-lgpl: Depend on openat.
73887         * modules/mkancesdirs: Depend on savewd.
73888         * modules/mkdir-p: Likewise.
73889
73890 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73891
73892         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
73893
73894         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
73895         `gl_have_arbitrary_file_name_length_limit' to
73896         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
73897         actually works between configure runs.
73898
73899 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73900             Bruno Haible  <bruno@clisp.org>
73901
73902         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
73903
73904 2006-09-25  Jim Meyering  <jim@meyering.net>
73905
73906         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
73907         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
73908
73909 2006-09-25  Eric Blake  <ebb9@byu.net>
73910
73911         * gnulib-tool (func_import, func_create_testdir): Fix typos in
73912         exec's in 2006-09-18 patch when shuffling fds.
73913
73914 2006-09-25  Bruno Haible  <bruno@clisp.org>
73915
73916         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
73917         Reported by Jim Meyering.
73918
73919 2006-09-24  Jim Meyering  <jim@meyering.net>
73920
73921         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
73922         compare a pointer against a literal "0".  That caused failures with
73923         at least HP-UX's hpcc.
73924
73925 2006-09-22  Simon Josefsson  <jas@extundo.com>
73926
73927         * modules/gc-sha1:
73928         * modules/gc-md4:
73929         * modules/gc-hmac-sha1:
73930         * modules/gc-hmac-md5:
73931         * modules/gc-des:
73932         * modules/gc-arcfour: Distribute more files.
73933
73934 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73935
73936         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
73937         (gl_linked_iterator_from_to): Initialize struct completely.
73938         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
73939         (gl_tree_iterator_from_to): Likewise
73940         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
73941         * lib/gl_array_list.c [lint] (gl_array_iterator)
73942         (gl_array_iterator_from_to): Likewise.
73943         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
73944         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
73945         (gl_carray_iterator_from_to): Likewise.
73946
73947         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
73948         * lib/md4.c (md4_process_block): Remove unused variable.
73949         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
73950         parentheses for clarity.
73951
73952 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73953
73954         * modules/bison-i18n (Depends-on): Add gettext.
73955
73956 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73957
73958         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
73959         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
73960         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
73961         also add missing comma that caused broken test.
73962         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
73963         stdlib.h, for `abort'.
73964         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
73965         variables.
73966         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
73967         include unistd.h if present, for `rmdir'.
73968         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
73969         variables.
73970         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
73971         in the process include standard headers for prototypes.
73972         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
73973         gets declared on GNU/Linux.
73974         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
73975         unistd.h, for `rmdir'.
73976         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
73977
73978         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
73979         always true.
73980         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
73981
73982         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
73983
73984 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73985
73986         * gnulib-tool (func_version): Create output all at once.  This
73987         may help avoid triggering unnecessary SIGPIPEs, and at any
73988         rate it doesn't hurt.
73989
73990 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73991             Bruno Haible  <bruno@clisp.org>
73992
73993         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
73994         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73995         * m4/signed.m4 (bh_C_SIGNED): Likewise.
73996
73997         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
73998         (gl_FUNC_VASPRINTF): Invoke it.
73999
74000 2006-09-22  Bruno Haible  <bruno@clisp.org>
74001
74002         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
74003         getloadavg.c as first argument.
74004
74005 2006-09-22  Bruno Haible  <bruno@clisp.org>
74006
74007         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
74008         at the beginning of the gl_INIT macro.
74009         * modules/getloadavg (configure.ac): Pass $gl_source_base to
74010         gl_GETLOADAVG.
74011
74012 2006-09-22  Bruno Haible  <bruno@clisp.org>
74013
74014         * gnulib-tool (func_create_megatestdir): Don't include the config-h
74015         module.
74016         Suggested by Ralf Wildenhues.
74017
74018 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
74019
74020         Import this patch from libc:
74021
74022         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
74023
74024         * lib/regex_internal.c (re_string_reconstruct): Handle
74025         offset < pstr->valid_raw_len && pstr->offsets_needed case.
74026         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
74027         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
74028         re_string_context_at.
74029
74030         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
74031         now requires it.
74032         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
74033         gl_REGEX now does it for us.
74034         (gl_REGEX): Add test taken from
74035         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
74036
74037         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
74038         Check that large offsets work.  Modernize Autoconf usages.
74039         Prefer "yes" to mean a good thing rather than a bad.
74040         Don't put "#define mkstemp" in config.h, as this might interfere
74041         with standard system headers that "#define mkstemp mkstemp64".
74042
74043         * modules/mkstemp (Depends-on): Add extensions, so that
74044         mkstemp is visible on some platforms.
74045         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
74046         (Include): Change to "mkstemp.h" from <stdlib.h>.
74047         (Files): Add mkstemp.h.
74048
74049         * lib/mkstemp.h: New file, since some standard headers
74050         #define mkstemp.
74051         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
74052         Include "mkstemp.h".
74053         Make the _LIBC code resemble glibc original more,
74054         e.g., use K&R style.
74055         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
74056         (mkstemp): Remove, since mkstemp.h does this for us.
74057         * lib/stdlib--.h: Include mkstemp.h.
74058
74059         Import this patch from libc:
74060
74061         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
74062
74063         * lib/tempname.c (__gen_tempname): Change attempts_min
74064         into a macro.  Use preprocessor to decide how to initialize
74065         attempts [Coverity CID 67].
74066
74067 2006-09-20  Bruno Haible  <bruno@clisp.org>
74068
74069         * lib/mkdtemp.c: Import from libc.
74070         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
74071                 * sysdeps/posix/tempname.c (__gen_tempname): Change
74072                 attempts_min into a macro.  Use preprocessor to decide how to
74073                 initialize attempts [Coverity CID 67].
74074         2001-11-27  Paul Eggert  <eggert@twinsun.com>
74075                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
74076                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
74077
74078 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74079
74080         * gnulib-tool (func_exit): New function, to allow to pass the
74081         exit status portably through the trap.  Use everywhere.
74082         (--help, --version): Signal a write error.
74083         (trap): catch SIGPIPE, for write errors.
74084         Exit at the end of the trap, with the correct exit status.
74085
74086 2006-09-19  Karl Berry  <karl@gnu.org>
74087
74088         * doc/gnulib.texi: note about the license texinfo files.
74089
74090 2006-09-19  Eric Blake  <ebb9@byu.net>
74091
74092         * gnulib-tool: Avoid space-tab.
74093
74094 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
74095
74096         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
74097         that prevented coreutils 6.1 from building.  Problem reported
74098         by Petter Reinholdtsen.
74099
74100 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
74101
74102         * gnulib-tool (avoidlist): Fix typo that broke options like
74103         --avoid=lock that are used by coreutils bootstrap.
74104
74105 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
74106
74107         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
74108         more systematically.
74109
74110 2006-09-18  Jim Meyering  <jim@meyering.net>
74111
74112         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
74113
74114 2006-09-18  Bruno Haible  <bruno@clisp.org>
74115
74116         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
74117
74118 2006-09-18  Bruno Haible  <bruno@clisp.org>
74119
74120         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
74121         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
74122         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
74123         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
74124         * m4/gettext.m4: Require autoconf >= 2.52.
74125         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
74126         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
74127         of gl_cv_header_inttypes_h.
74128
74129 2006-09-18  Bruno Haible  <bruno@clisp.org>
74130
74131         * lib/javaversion.c: Include configmake.h.
74132
74133 2006-09-18  Bruno Haible  <bruno@clisp.org>
74134
74135         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
74136         avoid that the while loops be executed in a subshell.
74137
74138 2006-09-18  Bruno Haible  <bruno@clisp.org>
74139
74140         * MODULES.html.sh (func_module): Break long lines.
74141         Suggested by Bruce Korb <bkorb@gnu.org>.
74142
74143 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74144
74145         Speed up by a factor of 1.12.
74146         * gnulib-tool (nl): New variable.
74147         (func_import): Rewrite include directive extraction to only read each
74148         directive once.
74149
74150 2006-09-17  Bruno Haible  <bruno@clisp.org>
74151
74152         * modules/javaversion (Makefile.am): Remove DEFS setting.
74153         (Depends-on): Add configmake, for PKGDATADIR definition.
74154
74155 2006-09-17  Bruno Haible  <bruno@clisp.org>
74156
74157         * gnulib-tool (func_create_testdir): Rewrite all files at once.
74158
74159 2006-09-17  Bruno Haible  <bruno@clisp.org>
74160
74161         * gnulib-tool (func_append): New function, stolen from libtool.m4.
74162         (func_modules_transitive_closure, func_modules_add_dummy,
74163         func_modules_to_filelist, func_import, func_create_testdir,
74164         func_create_megatestdir, ...): Use it wherever possible.
74165         Suggested by Ralf Wildenhues.
74166
74167 2006-09-16  Karl Berry  <karl@gnu.org>
74168
74169         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
74170         to avoid sectioning errors.
74171         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
74172         [ifinfo]: blank line after @center-ed titles.
74173         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
74174         Spell FSF address consistently with others.
74175         (These changes approved by rms.)
74176
74177 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74178
74179         Speed up by a factor of 1.61.
74180         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
74181         already checked module names again.
74182
74183 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74184
74185         Speed up by a factor of 1.13.
74186         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
74187         for new_files, and the input to func_add_or_update.
74188
74189 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74190
74191         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
74192         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
74193
74194 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74195
74196         * modules/mkancesdirs (Depends-on): Add fcntl.
74197         * modules/savewd: New file.
74198         * MODULES.html.sh (File system functions): Add savewd.
74199
74200         * modules/configmake (Makefile.am): Add support for the
74201         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
74202
74203 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74204
74205         * m4/savewd.m4: New file.
74206
74207 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74208
74209         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
74210         (dirchownmod): New arg FD.  All callers changed.
74211         Use FD rather than opening the directory ourself, as opening is
74212         now the caller's responsibility.
74213         * lib/dirchownmod.h: Likewise.
74214         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
74215         hosts that require <sys/types.h> before <sys/stat.h>.  Include
74216         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
74217         (test_dir): Remove.
74218         (mkancesdirs): Return length of prefix of FILE that has already
74219         been made, or -2 if there is a child doing the work.  Redo
74220         algorithm so that it is O(N) rather than O(N**2).  Optimize away
74221         ".", and treat ".." specially since it might stray back into
74222         already-created areas.  Use a subprocess if necessary.  New arg
74223         WD; all users changed.  MAKE_DIR function should now return 1
74224         if it creates a directory that is not readable.  Return -2 if
74225         a child process is spun off.
74226         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
74227         Adjust signature to match code.
74228         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
74229         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
74230         all users changed.
74231         * lib/savewd.c, lib/savewd.h: New files.
74232
74233 2006-09-15  Jim Meyering  <jim@meyering.net>
74234
74235         * modules/rename-dest-slash: New module.
74236         * MODULES.html.sh (posix_compat): Add it here.
74237
74238         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
74239
74240 2006-09-15  Jim Meyering  <jim@meyering.net>
74241
74242         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
74243         file.
74244
74245         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
74246
74247 2006-09-15  Jim Meyering  <jim@meyering.net>
74248
74249         * lib/rename-dest-slash.c (has_trailing_slash): Use
74250         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
74251         (rpl_rename_dest_slash): Perform the cheaper trailing slash
74252         test before testing whether SRC is a directory.
74253         Suggestions from Bruno Haible.
74254
74255         Avoid a warning about an unused variable.
74256         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
74257         into the #ifdef block where it's used.
74258
74259         * lib/rename-dest-slash.c: New file.
74260
74261 2006-09-14  Bruno Haible  <bruno@clisp.org>
74262
74263         * lib/allocsa.c: Include <config.h> unconditionally.
74264         * lib/asnprintf.c: Likewise.
74265         * lib/asprintf.c: Likewise.
74266         * lib/c-strcasecmp.c: Likewise.
74267         * lib/c-strcasestr.c: Likewise.
74268         * lib/c-strncasecmp.c: Likewise.
74269         * lib/c-strstr.c: Likewise.
74270         * lib/classpath.c: Likewise.
74271         * lib/clean-temp.c: Likewise.
74272         * lib/concatpath.c: Likewise.
74273         * lib/copy-file.c: Likewise.
74274         * lib/csharpcomp.c: Likewise.
74275         * lib/csharpexec.c: Likewise.
74276         * lib/execute.c: Likewise.
74277         * lib/fatal-signal.c: Likewise.
74278         * lib/findprog.c: Likewise.
74279         * lib/fwriteerror.c: Likewise.
74280         * lib/gl_array_list.c: Likewise.
74281         * lib/gl_array_oset.c: Likewise.
74282         * lib/gl_avltree_list.c: Likewise.
74283         * lib/gl_avltree_oset.c: Likewise.
74284         * lib/gl_avltreehash_list.c: Likewise.
74285         * lib/gl_carray_list.c: Likewise.
74286         * lib/gl_linked_list.c: Likewise.
74287         * lib/gl_linkedhash_list.c: Likewise.
74288         * lib/gl_list.c: Likewise.
74289         * lib/gl_oset.c: Likewise.
74290         * lib/gl_rbtree_list.c: Likewise.
74291         * lib/gl_rbtree_oset.c: Likewise.
74292         * lib/gl_rbtreehash_list.c: Likewise.
74293         * lib/imaxabs.c: Likewise.
74294         * lib/imaxdiv.c: Likewise.
74295         * lib/javacomp.c: Likewise.
74296         * lib/javaexec.c: Likewise.
74297         * lib/javaversion.c: Likewise.
74298         * lib/linebreak.c: Likewise.
74299         * lib/localcharset.c: Likewise.
74300         * lib/lock.c: Likewise.
74301         * lib/mbchar.c: Likewise.
74302         * lib/mbswidth.c: Likewise.
74303         * lib/mkdtemp.c: Likewise.
74304         * lib/pipe.c: Likewise.
74305         * lib/printf-args.c: Likewise.
74306         * lib/printf-parse.c: Likewise.
74307         * lib/progname.c: Likewise.
74308         * lib/progreloc.c: Likewise.
74309         * lib/readlink.c: Likewise.
74310         * lib/sh-quote.c: Likewise.
74311         * lib/stpcpy.c: Likewise.
74312         * lib/stpncpy.c: Likewise.
74313         * lib/strcasecmp.c: Likewise.
74314         * lib/strcasestr.c: Likewise.
74315         * lib/strcspn.c: Likewise.
74316         * lib/striconv.c: Likewise.
74317         * lib/strncasecmp.c: Likewise.
74318         * lib/strnlen1.c: Likewise.
74319         * lib/strstr.c: Likewise.
74320         * lib/strtok_r.c: Likewise.
74321         * lib/tls.c: Likewise.
74322         * lib/tmpdir.c: Likewise.
74323         * lib/unicodeio.c: Likewise.
74324         * lib/unsetenv.c: Likewise.
74325         * lib/vasnprintf.c: Likewise.
74326         * lib/vasprintf.c: Likewise.
74327         * lib/wait-process.c: Likewise.
74328         * lib/xallocsa.c: Likewise.
74329         * lib/xsetenv.c: Likewise.
74330         * lib/xstriconv.c: Likewise.
74331
74332 2006-09-13  Simon Josefsson  <jas@extundo.com>
74333
74334         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
74335         that internally, suggested by Ralf Wildenhues
74336         <Ralf.Wildenhues@gmx.de>.
74337
74338 2006-09-13  Simon Josefsson  <jas@extundo.com>
74339
74340         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
74341         @LIBOBJS@.
74342         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74343
74344 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
74345
74346         * lib/_fpending.c: Include <config.h> unconditionally, since we no
74347         longer worry about uses that don't define HAVE_CONFIG_H.
74348         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
74349         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
74350         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
74351         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
74352         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
74353         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
74354         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
74355         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
74356         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
74357         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
74358         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
74359         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
74360         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
74361         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
74362         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
74363         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
74364         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
74365         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
74366         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
74367         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
74368         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
74369         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
74370         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
74371         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
74372         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
74373         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
74374         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
74375         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
74376         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
74377         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
74378         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
74379         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
74380         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
74381         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
74382         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
74383         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
74384         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
74385         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
74386         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
74387         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
74388         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
74389         Likewise.
74390
74391 2006-09-13  Eric Blake  <ebb9@byu.net>
74392
74393         * lib/getopt.c: Fix typo in last commit.
74394
74395 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
74396
74397         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
74398         dgettext.
74399
74400 2006-09-12  Jim Meyering  <jim@meyering.net>
74401
74402         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
74403         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
74404         Reported by Nelson H. F. Beebe.
74405
74406 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74407
74408         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
74409         program_invocation_name and program_invocation_short_name are
74410         initialized.
74411         * lib/argp-namefrob.h: Move declarations of program_invocation_name
74412         and program_invocation_short_name to argp.h, so they are visible
74413         to user programs.
74414         * lib/argp.h: Likewise
74415
74416 2006-09-10  Bruno Haible  <bruno@clisp.org>
74417
74418         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74419         m4/inttypes_h.m4, m4/uintmax_t.m4.
74420
74421 2006-09-10  Bruno Haible  <bruno@clisp.org>
74422
74423         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
74424         gl_AC_TYPE_UINTMAX_T.
74425
74426 2006-09-10  Bruno Haible  <bruno@clisp.org>
74427
74428         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
74429
74430 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74431
74432         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
74433         convention.  Text proposed by Bruno Haible.
74434         (struct argp_option): Document the use of N_() wrappers.
74435
74436         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
74437         '\v', and translate the two parts separately, instead of feeding
74438         the whole string to gettext.  This allows to exclude
74439         '\v' from the strings visible to the translator by writing doc
74440         strings as N_("..") "\v" N_("..").
74441
74442 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
74443
74444         * config/srclist.txt: Undo latest change; the bug was fixed.
74445
74446 2006-09-09  Bruno Haible  <bruno@clisp.org>
74447
74448         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
74449         assignments if building a library without libtool.
74450         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
74451         in func_emit_lib_Makefile_am.
74452         (func_import): When building a static library libfoo.a, arrange to
74453         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
74454         (func_create_testdir): Likewise.
74455         * modules/gc (configure.ac, Makefile.am): If building statically,
74456         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
74457         * modules/iconvme (configure.ac, Makefile.am): Likewise.
74458         * modules/striconv (configure.ac, Makefile.am): Likewise.
74459         Based on a suggestion by Ralf Wildenhues.
74460
74461 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74462
74463         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
74464         Check for unistd.h too, since Autoconf doesn't assume POSIX.
74465         Also:
74466
74467         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74468         Add year_2050_test to catch glibc bug 2821
74469         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74470
74471         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74472         Prefer #ifdef to #if.
74473
74474         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
74475         Return from 'main' instead of calling 'exit'.
74476
74477 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74478
74479         * lib/mktime.c (guess_time_tm): Fix bug where mktime
74480         returned the maximum time_t value rather than (time_t) -1.
74481         Problem originally reported by William Bardwell
74482         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74483
74484         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74485         Moved to here ...
74486         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74487         ... from here.
74488
74489 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74490
74491         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
74492         2821 is fixed.
74493
74494 2006-09-08  Jim Meyering  <jim@meyering.net>
74495
74496         Don't make generated files read-only.  That would bother too many
74497         people.  However, do retain the ability to work when targets are
74498         read-only: remove the destination and temporary files before writing
74499         them (when generated via sed or echo), or by using the -f option for
74500         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
74501         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74502         * modules/byteswap, modules/configmake, modules/fcntl:
74503         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74504         * modules/localcharset, modules/netinet_in, modules/poll:
74505         * modules/stdbool, modules/stdint, modules/sys_select:
74506         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74507
74508 2006-09-08  Jim Meyering  <jim@meyering.net>
74509
74510         Avoid new build failure on FreeBSD 6.0.
74511         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
74512         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
74513         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
74514
74515 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74516
74517         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
74518
74519 2006-09-07  Jim Meyering  <jim@meyering.net>
74520
74521         Fix global typo in last change: use chmod u-w, not chmod u-x.
74522         Spotted by Paul Eggert and Bruce Korb.
74523         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74524         * modules/byteswap, modules/configmake, modules/fcntl:
74525         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74526         * modules/localcharset, modules/netinet_in, modules/poll:
74527         * modules/stdbool, modules/stdint, modules/sys_select:
74528         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74529
74530 2006-09-06  Jim Meyering  <jim@meyering.net>
74531
74532         Make generated files be read-only.
74533         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
74534         Ensure that each generated file is now read-only.
74535         * modules/argz: Likewise.
74536         * modules/arpa_inet: Likewise.
74537         * modules/byteswap: Likewise.
74538         * modules/configmake: Likewise.
74539         * modules/fcntl: Likewise.
74540         * modules/fnmatch: Likewise.
74541         * modules/getopt: Likewise.
74542         * modules/glob: Likewise.
74543         * modules/inttypes: Likewise.
74544         * modules/netinet_in: Likewise.
74545         * modules/poll: Likewise.
74546         * modules/stdbool: Likewise.
74547         * modules/stdint: Likewise.
74548         * modules/sys_select: Likewise.
74549         * modules/sys_socket: Likewise.
74550         * modules/sys_stat: Likewise.
74551         * modules/sysexits: Likewise.
74552         * modules/localcharset: Same as above, but continue using temporary
74553         file named "t-$@" (why different?) rather than the "$@-t" used
74554         everywhere else.
74555
74556         * modules/sysexits (Makefile.am): Replace literal occurrences
74557         of "sysexit.h" more readable, and more consistent, "$@".
74558
74559 2006-09-06  Bruno Haible  <bruno@clisp.org>
74560
74561         * modules/striconv: New file.
74562         * modules/xstriconv: New file.
74563         * MODULES.html.sh (Internationalization functions): Add striconv,
74564         xstriconv.
74565
74566 2006-09-06  Bruno Haible  <bruno@clisp.org>
74567
74568         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
74569         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
74570         not using libtool correctly.
74571
74572 2006-09-06  Bruno Haible  <bruno@clisp.org>
74573
74574         * lib/striconv.h: New file.
74575         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
74576         iconvstring.c.
74577         * lib/xstriconv.h: New file.
74578         * lib/xstriconv.c: New file.
74579
74580 2006-09-06  Bruno Haible  <bruno@clisp.org>
74581
74582         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74583         lib_..._LDFLAGS.
74584
74585 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74586
74587         * lib/argz_.h: Sync from Libtool.
74588
74589         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
74590                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74591
74592         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
74593
74594 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74595
74596         * modules/trim: New file.
74597
74598 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74599
74600         * lib/trim.h: New file.
74601         * lib/trim.c: New file.
74602
74603 2006-09-05  Bruno Haible  <bruno@clisp.org>
74604
74605         * MODULES.html.sh (String handling): Add trim.
74606
74607 2006-09-04  Karl Berry  <karl@gnu.org>
74608
74609         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
74610         until next release.
74611
74612 2006-09-03  Bruno Haible  <bruno@clisp.org>
74613
74614         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
74615         correctly.
74616
74617 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74618
74619         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
74620         not gl_GETLOADAVG.  Omit unneeded semicolons.
74621         Problems reported by Ralf Wildenhues in
74622         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74623         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
74624         at the end, which is the usual gnulib style.
74625
74626         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
74627         of doing all the work ourselves.
74628         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
74629         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
74630
74631 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74632
74633         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
74634         Problem reported by Ralf Wildenhues in
74635         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74636
74637         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
74638         HAVE_STRUCT_STATFS_F_FSTYPENAME.
74639
74640 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74641
74642         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
74643         yesterday's patch by changing test -n to test -z.
74644
74645 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74646
74647         * modules/getloadavg (Files): Add m4/getloadavg.m4.
74648         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
74649         the former is now obsolescent.
74650
74651         * modules/chdir-long (Depends-on): Add fcntl.
74652
74653 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74654
74655         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
74656         obsolescent, and programs should use gnulib instead.
74657         * m4/getloadavg.m4: New file, with contents taken from Autoconf
74658         but with prefixes changed.
74659
74660 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74661
74662         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
74663         or stdbool.h, because they might not exist while configuring.
74664
74665         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
74666         Don't include unistd.h or limits.h; not needed, since chdir-long.h
74667         does that for us.
74668         (O_DIRECTORY): Remove.
74669
74670 2006-08-31  Eric Blake  <ebb9@byu.net>
74671
74672         * gnulib-tool: Don't let emacs change spaces to TAB.
74673
74674 2006-08-31  Bruno Haible  <bruno@clisp.org>
74675
74676         * gnulib-tool: When calling func_import more than once, do it in a
74677         subshell.
74678         Reported by Eric Blake <ebb9@byu.net>.
74679
74680 2006-08-31  Bruno Haible  <bruno@clisp.org>
74681
74682         * gnulib-tool (nl): Remove variable.
74683         (sed_transform_lib_file): Use more robust test for config-h module.
74684         (func_import): Fix typo in 2006-08-25 patch.
74685
74686 2006-08-31  Bruno Haible  <bruno@clisp.org>
74687
74688         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
74689         specified, augment Makefile.am variables instead of assigning them.
74690
74691 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74692
74693         Work around a bug in both the Linux and SunOS 64-bit kernels:
74694         nanosleep mishandles sleeps for longer than 2**31 seconds.
74695         Problem reported by Frank v Waveren in
74696         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74697         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
74698         Check for nanosleep bug.
74699         (LIB_NANOSLEEP): Append clock_gettime library if needed.
74700
74701 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74702
74703         Work around a bug in both the Linux and SunOS 64-bit kernels:
74704         nanosleep mishandles sleeps for longer than 2**31 seconds.
74705         Problem reported by Frank v Waveren in
74706         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74707         * lib/nanosleep.c (BILLION): New constant.
74708         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
74709         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
74710         implementation.
74711
74712 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74713
74714         * modules/nanosleep (Depends-on): Add gettime.
74715
74716 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74717         and Simon Josefsson  <jas@extundo.com>
74718         and Oskar Liljeblad  <oskar@osk.mine.nu>
74719
74720         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
74721         * gnulib-tool (func_import): New license type 'unmodifiable license
74722         text'.
74723         * modules/fdl: Use it.  Longer description.
74724         * module/gpl, module/lgpl: New files.
74725
74726 2006-08-30  Jim Meyering  <jim@meyering.net>
74727
74728         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
74729         shadowing the parameter.
74730
74731 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74732
74733         Sync from Libtool:
74734
74735         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74736
74737         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
74738         sharing with gnulib.  Report by Eric Blake.
74739
74740 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74741
74742         * modules/isapipe: New file.
74743         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
74744
74745 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74746
74747         * modules/configmake (Makefile.am): Add a comment, and omit
74748         the CONFIGMAKE_ prefix from generated macro names.  Suggested
74749         by Bruno Haible.
74750
74751 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74752
74753         * m4/isapipe.m4: New file.
74754
74755 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74756
74757         * lib/isapipe.c, lib/isapipe.h: New files.
74758
74759 2006-08-29  Jim Meyering  <jim@meyering.net>
74760
74761         * modules/configmake (Makefile.am): Make configmake.h depend on
74762         Makefile.  Otherwise, a stale configmake.h could hang around.
74763
74764 2006-08-29  Eric Blake  <ebb9@byu.net>
74765
74766         * lib/error.c (error_at_line, print_errno_message): Match libc, after
74767         resolution of upstream bug 3044.
74768
74769 2006-08-29  Bruno Haible  <bruno@clisp.org>
74770
74771         * modules/localcharset (Depends-on): Add configmake.
74772         (Makefile.am): Remove setting of LIBDIR through DEFS.
74773
74774 2006-08-29  Bruno Haible  <bruno@clisp.org>
74775
74776         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
74777         defined.
74778
74779 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74780
74781         * modules/fcntl: New file.
74782         * modules/chdir-safer (Depends-on): Add fcntl.
74783         * modules/fts: Likewise.
74784         * modules/mkdir-p: Likewise.
74785
74786         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
74787         This undoes the most recent change, since we're now addressing the
74788         problem in a different way.
74789
74790         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
74791         into output, since the output might be called Makefile.am even
74792         if $makefile_name is something different.
74793         (func_import): Use $makefile_am rather than
74794         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
74795         empty.
74796
74797         * modules/inttypes (Files): Add m4/inttypes-h.m4.
74798
74799 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74800
74801         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
74802         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
74803         recent change to stdint.m4, since we're now addressing the problem in a
74804         different way.
74805
74806 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74807
74808         * m4/fcntl_h.m4: New file.
74809
74810 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74811
74812         * lib/fcntl_.h: New file.
74813         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
74814         the fcntl module.
74815         * lib/dirchownmod.c: Likewise.
74816         * lib/fts.c: Likewise.
74817
74818         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
74819         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
74820         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
74821         just before including <inttypes.h>, to avoid circular inclusion.
74822
74823 2006-08-28  Jim Meyering  <jim@meyering.net>
74824
74825         * doc/visibility.texi: Actually read and correct the grammar of the
74826         sentence affected by yesterday's change.
74827
74828 2006-08-28  Eric Blake  <ebb9@byu.net>
74829
74830         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
74831         needs wrapper.
74832
74833 2006-08-28  Eric Blake  <ebb9@byu.net>
74834
74835         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
74836
74837 2006-08-28  Eric Blake  <ebb9@byu.net>
74838
74839         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
74840
74841 2006-08-28  Bruno Haible  <bruno@clisp.org>
74842
74843         * modules/c-strstr: New file, from GNU gettext.
74844         * MODULES.html.sh (String handling): Add c-strstr.
74845
74846 2006-08-28  Bruno Haible  <bruno@clisp.org>
74847
74848         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
74849         macros.
74850         Reported by Eric Blake.
74851
74852 2006-08-28  Bruno Haible  <bruno@clisp.org>
74853
74854         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
74855         (VASNPRINTF): Return a string of length > INT_MAX without failing.
74856         * lib/vasprintf.c: Include errno.h, limits.h.
74857         (EOVERFLOW): New fallback definition.
74858         (vasprintf): Test here whether the string length is > INT_MAX.
74859         * lib/vsnprintf.c: Include errno.h, limits.h.
74860         (EOVERFLOW): New fallback definition.
74861         (vsnprintf): Fix bug when generated string was too long for the buffer.
74862         Test here whether the string length is > INT_MAX.
74863
74864 2006-08-28  Bruno Haible  <bruno@clisp.org>
74865
74866         * lib/inttypes_.h (SCNX*): Remove definitions.
74867         Reported by Eric Blake.
74868
74869 2006-08-28  Bruno Haible  <bruno@clisp.org>
74870
74871         * lib/c-strstr.h: New file, from GNU gettext.
74872         * lib/c-strstr.c: New file, from GNU gettext.
74873
74874 2006-08-28  Bruno Haible  <bruno@clisp.org>
74875
74876         * gnulib-tool: Reorder some statements.
74877
74878 2006-08-28  Bruno Haible  <bruno@clisp.org>
74879
74880         * gnulib-tool: New option --makefile-name.
74881         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
74882         $makefile_name.
74883         (func_import): Write $makefile_name to the cache file, and read it from
74884         there unless explicitly specified. Use $makefile_name as file name
74885         instead of Makefile.am. Adjust the recommendations accordingly.
74886
74887 2006-08-28  Bruno Haible  <bruno@clisp.org>
74888
74889         * gnulib-tool (func_verify_module): Check against misapplying patch.
74890
74891 2006-08-28  Bruno Haible  <bruno@clisp.org>
74892
74893         * gnulib-tool (func_relativize, func_relconcat): New functions.
74894         Give an error if --local-dir is given with --update.
74895         Remove trailing slashes from $local_gnulib_dir.
74896         (func_import): Store the relativized $local_gnulib_dir in
74897         gnulib-cache.m4, and read it from there if not specified explicitly.
74898
74899 2006-08-28  Bruno Haible  <bruno@clisp.org>
74900
74901         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
74902         is the current directory. Respect also $local_gnulib_dir.
74903
74904 2006-08-28  Bruno Haible  <bruno@clisp.org>
74905             Simon Josefsson  <jas@extundo.com>
74906
74907         BeOS portability.
74908         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
74909
74910 2006-08-27  Jim Meyering  <jim@meyering.net>
74911
74912         * doc/visibility.texi: Remove duplicate word: "pointer".
74913
74914 2006-08-26  Bruno Haible  <bruno@clisp.org>
74915
74916         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
74917         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
74918         (Makefile.am): Create inttypes.h from inttypes_.h.
74919         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
74920
74921         * modules/imaxabs: New file.
74922
74923         * modules/imaxdiv: New file.
74924
74925 2006-08-26  Bruno Haible  <bruno@clisp.org>
74926
74927         * m4/inttypes.m4: New file.
74928         * m4/_inttypes_h.m4: Remove file.
74929         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
74930         PRI_MACROS_BROKEN.
74931         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
74932
74933         * m4/imaxabs.m4: New file.
74934
74935         * m4/imaxdiv.m4: New file.
74936
74937 2006-08-26  Bruno Haible  <bruno@clisp.org>
74938
74939         * lib/inttypes_.h: New file.
74940         * lib/inttypes.h: Remove file.
74941         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
74942
74943         * lib/imaxabs.c: New file.
74944
74945         * lib/imaxdiv.c: New file.
74946
74947 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74948
74949         New config-h module, so that "make" output needn't be cluttered
74950         by -DHAVE_CONFIG_H.
74951         * MODULES.html.sh (Support for building libraries and executables):
74952         Add config-h.
74953         * modules/config-h: New file.
74954         * gnulib-tool (nl, sed_transform_lib_file): New vars.
74955         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
74956         the config-h module is used.
74957
74958         New configmake module, so that "make" output needn't be cluttered
74959         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
74960         * MODULES.html.sh (Support for building libraries and executables):
74961         Add configmake.
74962         * modules/configmake: New file.
74963
74964 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74965
74966         * m4/config-h.m4: New file.
74967
74968 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74969
74970         * config/srclist.txt: Add elisp-comp.
74971
74972 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74973
74974         * MODULES.html.sh (Support for building libraries and executables):
74975         Add elisp-comp.
74976         * build-aux/elisp-comp: New file.
74977         * modules/elisp-comp: New file.
74978
74979 2006-08-24  Bruno Haible  <bruno@clisp.org>
74980
74981         * gnulib-tool (func_create_testdir): Use non-default values of
74982         sourcebase and m4base.
74983
74984 2006-08-24  Bruno Haible  <bruno@clisp.org>
74985
74986         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
74987         HTML structure.
74988
74989 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74990
74991         * modules/openat (Depends-on): Add lchown.
74992
74993 2006-08-23  Bruno Haible  <bruno@clisp.org>
74994
74995         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
74996         of gl_LOCK_EARLY instead of gl_LOCK.
74997
74998 2006-08-23  Bruno Haible  <bruno@clisp.org>
74999
75000         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
75001         on OSF/1 to no.
75002         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
75003
75004 2006-08-23  Bruno Haible  <bruno@clisp.org>
75005
75006         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
75007         as unusable.
75008
75009         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
75010         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
75011         (gl_LOCK): New macro.
75012
75013 2006-08-22  Simon Josefsson  <jas@extundo.com>
75014
75015         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
75016         to md5 module.
75017
75018 2006-08-22  Simon Josefsson  <jas@extundo.com>
75019
75020         * MODULES.html.sh: Add "Support for maintaining and release
75021         projects".
75022
75023         * build-aux/gnupload: New file, from coreutils.
75024
75025 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75026
75027         Avoid the need for AC_LIBSOURCES in m4 macros.
75028         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
75029         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
75030         * modules/check-version (EXTRA_DIST): Add check-version.h.
75031         * modules/crc (EXTRA_DIST): Add crc.h.
75032         * modules/des (EXTRA_DIST): Add des.h.
75033         * modules/gc (EXTRA_DIST): Add gc.h.
75034         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
75035         * modules/getline (EXTRA_DIST): Add getline.h.
75036         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
75037         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
75038         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
75039         * modules/md2 (EXTRA_DIST): Add md2.h.
75040         * modules/md4 (EXTRA_DIST): Add md4.h.
75041         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
75042         * modules/read-file (EXTRA_DIST): Add read-file.h.
75043         * modules/readline (EXTRA_DIST): Add readline.h.
75044         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
75045         rijndael-api-fst.h.
75046
75047 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75048
75049         * m4/rijndael.m4 (gl_ARCFOUR):
75050         * m4/arctwo.m4 (gl_ARCTWO):
75051         * m4/check-version.m4 (gl_CHECK_VERSION):
75052         * m4/crc.m4 (gl_CRC):
75053         * m4/des.m4 (gl_DES):
75054         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
75055         * m4/gc.m4 (gl_GC):
75056         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
75057         * m4/getline.m4 (gl_FUNC_GETLINE):
75058         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
75059         * m4/hmac-md5.m4 (gl_HMAC_MD5):
75060         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
75061         * m4/md2.m4 (gl_MD2):
75062         * m4/md4.m4 (gl_MD4):
75063         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
75064         * m4/read-file.m4 (gl_FUNC_READ_FILE):
75065         * m4/readline.m4 (gl_FUNC_READLINE):
75066         * m4/rijndael.m4 (gl_RIJNDAEL):
75067         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
75068         to get the necessary .h files and whatnot.
75069
75070 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75071
75072         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
75073         gnulib rather than the other way around.
75074         * config/srclistvars.sh (COREUTILS): Remove.
75075
75076 2006-08-22  Jim Meyering  <jim@meyering.net>
75077
75078         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
75079
75080         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
75081
75082 2006-08-22  Eric Blake  <ebb9@byu.net>
75083
75084         * modules/regexprops-generic: New file.
75085         * MODULES.html.sh (Support for building documentation): List it.
75086
75087 2006-08-22  Eric Blake  <ebb9@byu.net>
75088
75089         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
75090         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
75091         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
75092         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
75093
75094 2006-08-22  Bruno Haible  <bruno@clisp.org>
75095
75096         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
75097         and lib_LTLIBRARIES like the other lib_* variables.
75098
75099 2006-08-22  Bruno Haible  <bruno@clisp.org>
75100
75101         * build-aux/x-to-1.in: New file, from GNU gettext.
75102
75103 2006-08-22  Bruno Haible  <bruno@clisp.org>
75104
75105         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
75106         <utmpx.h> exists.
75107
75108 2006-08-22  Bruno Haible  <bruno@clisp.org>
75109
75110         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
75111         <utmpx.h> exists.
75112
75113 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75114
75115         BeOS portability.
75116         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
75117         exist.
75118         Problem reported by Bruno Haible.
75119
75120 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75121
75122         Avoid the need for AC_LIBSOURCES in m4 macros.
75123         * modules/acl (EXTRA_DIST): Add acl.h.
75124         * modules/argmatch (Files): Add m4/argmatch.m4.
75125         (configure.ac): Add gl_ARGMATCH.
75126         (EXTRA_DIST): Renamed from lib_SOURCES, for
75127         consistency with the other modules.  Remove argmatch.c.
75128         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
75129         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
75130         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
75131         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
75132         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
75133         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
75134         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
75135         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
75136         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
75137         * modules/closeout (EXTRA_DIST): Add closeout.h.
75138         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
75139         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
75140         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
75141         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
75142         dirname.h; remove basename.c and stripslash.c.
75143         * modules/exclude (EXTRA_DIST): Add exclude.h.
75144         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
75145         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
75146         * modules/file-type (EXTRA_DIST): Add file-type.h.
75147         * modules/filemode (EXTRA_DIST): Add filemode.h.
75148         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
75149         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
75150         * modules/fpending (EXTRA_DIST): Add __fpending.h.
75151         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
75152         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
75153         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
75154         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
75155         * modules/getdate (EXTRA_DIST): Add getdate.c.
75156         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
75157         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
75158         * modules/getpass (EXTRA_DIST): Add getpass.h.
75159         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
75160         * modules/group-member (EXTRA_DIST): Add group-member.h.
75161         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
75162         * modules/hash (EXTRA_DIST): Add hash.h.
75163         * modules/human (EXTRA_DIST): Add human.h.
75164         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
75165         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
75166         * modules/lchown (EXTRA_DIST): Add lchown.h.
75167         * modules/long-options (EXTRA_DIST): Add long-options.h.
75168         * modules/lstat (EXTRA_DIST): Add lstat.h.
75169         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
75170         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
75171         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
75172         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
75173         * modules/memxor (EXTRA_DIST): Add memxor.h.
75174         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
75175         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
75176         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
75177         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
75178         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
75179         * modules/physmem (EXTRA_DIST): Add physmem.h.
75180         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
75181         * modules/posixver (EXTRA_DIST): Add posixver.h.
75182         * modules/quote (EXTRA_DIST): Add quote.h.
75183         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
75184         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
75185         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
75186         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
75187         regex_internal.h regexec.c.
75188         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
75189         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
75190         * modules/same (EXTRA_DIST): Add same.h.
75191         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
75192         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
75193         * modules/savedir (EXTRA_DIST): Add savedir.h.
75194         * modules/sha1 (EXTRA_DIST): Add sha1.h.
75195         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
75196         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
75197         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
75198         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
75199         * modules/strdup (EXTRA_DIST): Add strdup.h.
75200         * modules/strftime (EXTRA_DIST): Add strftime.h.
75201         * modules/strndup (EXTRA_DIST): Add strndup.h.
75202         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
75203         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
75204         * modules/time_r (EXTRA_DIST): Add time_r.h.
75205         * modules/timespec (EXTRA_DIST): Add timespec.h.
75206         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
75207         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
75208         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
75209         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
75210         * modules/userspec (EXTRA_DIST): Add userspec.h.
75211         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
75212         * modules/utimens (EXTRA_DIST): Add utimens.h.
75213         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
75214         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
75215         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
75216         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
75217         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
75218         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
75219         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
75220         * modules/yesno (EXTRA_DIST): Add yesno.h.
75221
75222 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75223
75224         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
75225
75226         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
75227         * m4/dev-ino.m4, same-inode.m4: Remove.
75228
75229         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
75230         * m4/acl.m4 (AC_FUNC_ACL):
75231         * m4/backupfile.m4 (gl_BACKUPFILE):
75232         * m4/c-strtod.m4 (gl_C99_STRTOLD):
75233         * m4/canon-host.m4 (gl_CANON_HOST):
75234         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
75235         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
75236         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
75237         * m4/cloexec.m4 (gl_CLOEXEC):
75238         * m4/close-stream.m4 (gl_CLOSE_STREAM):
75239         * m4/closeout.m4 (gl_CLOSEOUT):
75240         * m4/dirfd.m4 (gl_FUNC_DIRFD):
75241         * m4/dirname.m4 (gl_DIRNAME):
75242         * m4/exclude.m4 (gl_EXCLUDE):
75243         * m4/exitfail.m4 (gl_EXITFAIL):
75244         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
75245         * m4/file-type.m4 (gl_FILE_TYPE):
75246         * m4/filemode.m4 (gl_FILEMODE):
75247         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
75248         * m4/fpending.m4 (gl_FUNC_FPENDING):
75249         * m4/fprintftime.m4 (gl_FPRINTFTIME):
75250         * m4/fts.m4 (gl_FUNC_FTS):
75251         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
75252         * m4/getdate.m4 (gl_GETDATE):
75253         * m4/gethrxtime.m4 (gl_GETHRXTIME):
75254         * m4/getpagesize.m4 (gl_GETPAGESIZE):
75255         * m4/getpass.m4 (gl_FUNC_GETPASS):
75256         * m4/gettime.m4 (gl_GETTIME):
75257         * m4/getugroups.m4 (gl_GETUGROUPS):
75258         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
75259         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
75260         * m4/hard-locale.m4 (gl_HARD_LOCALE):
75261         * m4/hash.m4 (gl_HASH):
75262         * m4/idcache.m4 (gl_IDCACHE):
75263         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
75264         * m4/lchown.m4 (gl_FUNC_LCHOWN):
75265         * m4/long-options.m4 (gl_LONG_OPTIONS):
75266         * m4/lstat.m4 (gl_FUNC_LSTAT):
75267         * m4/md5.m4 (gl_MD5):
75268         * m4/memcasecmp.m4 (gl_MEMCASECMP):
75269         * m4/memcoll.m4 (gl_MEMCOLL):
75270         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
75271         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
75272         * m4/memxor.m4 (gl_MEMXOR):
75273         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
75274         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
75275         * m4/modechange.m4 (gl_MODECHANGE):
75276         * m4/mountlist.m4 (gl_MOUNTLIST):
75277         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
75278         * m4/openat.m4 (gl_FUNC_OPENAT):
75279         * m4/pathmax.m4 (gl_PATHMAX):
75280         * m4/physmem.m4 (gl_PHYSMEM):
75281         * m4/posixtm.m4 (gl_POSIXTM):
75282         * m4/posixver.m4 (gl_POSIXVER):
75283         * m4/quote.m4 (gl_QUOTE):
75284         * m4/quotearg.m4 (gl_QUOTEARG):
75285         * m4/readtokens.m4 (gl_READTOKENS):
75286         * m4/readutmp.m4 (gl_READUTMP):
75287         * m4/regex.m4 (gl_REGEX):
75288         * m4/safe-read.m4 (gl_SAFE_READ):
75289         * m4/safe-write.m4 (gl_SAFE_WRITE):
75290         * m4/same.m4 (gl_SAME):
75291         * m4/save-cwd.m4 (gl_SAVE_CWD):
75292         * m4/savedir.m4 (gl_SAVEDIR):
75293         * m4/settime.m4 (gl_SETTIME):
75294         * m4/sha1.m4 (gl_SHA1):
75295         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
75296         * m4/stat-macros.m4 (gl_STAT_MACROS):
75297         * m4/stat-time.m4 (gl_STAT_TIME):
75298         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
75299         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
75300         * m4/strdup.m4 (gl_FUNC_STRDUP):
75301         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
75302         * m4/strndup.m4 (gl_FUNC_STRNDUP):
75303         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
75304         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
75305         * m4/time_r.m4 (gl_TIME_R):
75306         * m4/timespec.m4 (gl_TIMESPEC):
75307         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
75308         * m4/unlinkdir.m4 (gl_UNLINKDIR):
75309         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
75310         * m4/userspec.m4 (gl_USERSPEC):
75311         * m4/utimecmp.m4 (gl_UTIMECMP):
75312         * m4/utimens.m4 (gl_UTIMENS):
75313         * m4/xalloc.m4 (gl_XALLOC):
75314         * m4/xgetcwd.m4 (gl_XGETCWD):
75315         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
75316         * m4/xreadlink.m4 (gl_XREADLINK):
75317         * m4/xstrtod.m4 (gl_XSTRTOD):
75318         * m4/yesno.m4 (gl_YESNO):
75319         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
75320         to get the necessary .h files and whatnot.
75321
75322 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
75323             Bruno Haible  <bruno@clisp.org>
75324
75325         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
75326         /bin/sh understanding of '!' conditional negation.
75327
75328 2006-08-21  Jim Meyering  <jim@meyering.net>
75329
75330         * modules/openat (Depends-on): Really alphabetize.
75331
75332         * modules/acl (Depends-on): Add error and quote.
75333
75334         * check-module (find_included_lib_files): Add at-func.c to the
75335         ok-to-include-more-than-once white list.
75336
75337         * modules/openat (Depends-on): Add lstat.  Alphabetize.
75338
75339 2006-08-21  Bruno Haible  <bruno@clisp.org>
75340
75341         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75342         Emit a pkgdata_DATA variable only if some snippets add contents to it.
75343         Reported by Martin Lambers <marlam@marlam.de>.
75344
75345 2006-08-21  Bruno Haible  <bruno@clisp.org>
75346
75347         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
75348         specify an installation location, don't emit a noinst_LIBRARIES or
75349         noinst_LTLIBRARIES assignment.
75350
75351 2006-08-21  Bruno Haible  <bruno@clisp.org>
75352
75353         BeOS portability.
75354         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
75355         BeOS has mbrtowc() but no <wctype.h>.
75356
75357 2006-08-21  Bruno Haible  <bruno@clisp.org>
75358
75359         BeOS portability.
75360         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
75361         exist.
75362
75363 2006-08-21  Bruno Haible  <bruno@clisp.org>
75364
75365         BeOS portability.
75366         * lib/mbchar.h: Include <wctype.h> only if it exists.
75367
75368 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75369
75370         Remove files that are no longer needed by their respective modules.
75371         * m4/obstack.m4: Remove.
75372         * m4/strerror_r.m4: Remove.
75373         * m4/uint32_t.m4: Remove.
75374         * m4/uintptr_t.m4: Remove.
75375         * m4/ullong_max.m4: Remove.
75376         * m4/xstrtoimax.m4: Remove.
75377         * m4/xstrtoumax.m4: Remove.
75378
75379         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
75380         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
75381         dependencies now capture this.
75382
75383         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
75384         Do not use AC_LIBSOURCES, since gnulib modules now do this.
75385         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
75386         * m4/human.m4 (gl_HUMAN): Likewise.
75387         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
75388         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
75389
75390         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
75391
75392         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
75393         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
75394         stdint.
75395         * m4/human.m4 (gl_HUMAN): Likewise.
75396         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
75397         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
75398         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75399         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75400         * m4/xstrtol (gl_XSTRTOL): Likewise.
75401
75402         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
75403         AC_TYPE_LONG_LONG_INT.
75404         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75405         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
75406         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
75407         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75408
75409         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
75410         on stdbool.
75411
75412         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
75413         (gl_PREREQ_XSTRTOUL): Remove.
75414
75415         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
75416
75417         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
75418         mode.
75419
75420 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75421
75422         Add and change modules to make it easier for coreutils to use
75423         gnulib-tool.
75424         * modules/backupfile (Files): Remove m4/d-ino.m4.
75425         (Depends-on): Add d-ino.
75426         * modules/cycle-check (Depends-on): Add stdint.
75427         (lib_SOURCES): Add cycle-check.h.
75428         * modules/d-ino: New module.
75429         * modules/d-type: New module.
75430         * modules/error (Files): Remove m4/strerror_r.m4.
75431         * modules/filemode (Files): Add m4/st_dm_mode.m4.
75432         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
75433         m4/inttypes_h.m4, m4/uintmax_t.m4.
75434         (Depends-on): Add stdint.
75435         (lib_SOURCES): Add fsusage.h.
75436         * modules/getcwd (Files): Remove d-ino.m4.
75437         (Depends-on): Add d-ino.
75438         * modules/getndelim2 (Depends-on): Add stdint.
75439         * modules/glob (Files): Remove m4/d-type.m4.
75440         (Depends-on): Add d-type.
75441         * modules/host-os: New module.
75442         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
75443         m4/inttypes_h.m4, m4/uintmax_t.m4.
75444         * Depends-on: Add stdint.
75445         (lib_SOURCES): Add human.h.
75446         * modules/inttostr (Files): Remove m4/intmax_t.m4,
75447         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
75448         m4/uintmax_t.m4, m4/ulonglong.m4.
75449         (Depends-on): Add stdint.
75450         (EXTRA_DIST): Add inttostr.h.
75451         * modules/lchmod: New module.
75452         * modules/link-follow: New module.
75453         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
75454         (Depends-on): Add lchmod.
75455         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
75456         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
75457         (Depends-on): Add stdint.
75458         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
75459         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
75460         (Depends-on): Add stdint.
75461         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
75462         * modules/perl: New module.
75463         * modules/regex (Depends-on): Add stdint.
75464         * modules/rmdir-errno: New module.
75465         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75466         m4/intmax_t.m4.
75467         (Depends-on): Add stdint.
75468         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75469         m4/uintmax_t.m4.
75470         (Depends-on): Add stdint.
75471         * modules/unlink-busy: New module.
75472         * modules/utimecmp (Depends-on): Add stdint.
75473         * modules/uptime: New module.
75474         * modules/winsz-ioctl: New module.
75475         * modules/winsz-termios: New module.
75476         * modules/xnanosleep (Depends-on): Add nanosleep.
75477         * modules/ullong_max: Remove.
75478         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
75479         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
75480         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
75481         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
75482         (Depends-on): Add inttypes.
75483         (lib_SOURCES): Add xstrtol.h.
75484         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
75485         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
75486         * MODULES.html.sh: Move 'assert' into the assert section.
75487         Move 'dummy' into the linking section.
75488         Remove ullong_max.
75489         Add section for compatibility checks for POSIX:2001 functions,
75490         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
75491         winsz-ioctl, and winsz-termios into it.
75492         Add lchmod.
75493         Add top-level Misc section and put host-os, perl, and uptime
75494         into it.
75495
75496 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75497
75498         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
75499         now assume the stdint module.  Do not include inttypes.h.
75500         * lib/fsusage.h: Likewise.
75501         * lib/getndelim2.c: Likewise.
75502         * lib/human.h: Likewise.
75503         * lib/inttostr.h: Likewise.
75504         * lib/obstack.c: Likewise.
75505         * lib/regex_internal.h: Likewise.
75506         * lib/tempname.c: Likewise.
75507         * lib/utimecmp.c: Likewise.
75508         * lib/xstrtol.h: Likewise.
75509
75510         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
75511
75512         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
75513         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
75514         * lib/xtime.h: Likewise.
75515
75516 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75517
75518         * modules/openat (Files): Add lib/fchmodat.c.
75519         Fixes problem reported by Jay Youngman.
75520
75521 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75522
75523         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
75524         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
75525
75526 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
75527             Bruno Haible  <bruno@clisp.org>
75528
75529         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
75530         and is a script that invokes bison. Tighten the code. Add comments.
75531
75532 2006-08-18  Jim Meyering  <jim@meyering.net>
75533
75534         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
75535         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
75536         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
75537         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
75538
75539 2006-08-18  Bruno Haible  <bruno@clisp.org>
75540
75541         * modules/bison-i18n: New file.
75542         * MODULES.html.sh (Internationalization functions): Add it.
75543
75544 2006-08-18  Bruno Haible  <bruno@clisp.org>
75545
75546         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
75547         sys/statvfs.h. When getmntinfo was found, check its declaration and
75548         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
75549
75550 2006-08-18  Bruno Haible  <bruno@clisp.org>
75551
75552         * m4/bison-i18n.m4: New file, from bison.
75553
75554 2006-08-18  Bruno Haible  <bruno@clisp.org>
75555
75556         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
75557         (ME_DUMMY): Treat "kernfs" as a dummy.
75558         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
75559
75560 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75561
75562         Update from coreutils.
75563
75564         2006-08-15  Jim Meyering  <jim@meyering.net>
75565
75566         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
75567
75568         2006-01-17  Jim Meyering  <jim@meyering.net>
75569
75570         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
75571
75572         2006-01-11  Jim Meyering  <jim@meyering.net>
75573
75574         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
75575         Check for the lchmod function.
75576
75577 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75578
75579         Update from coreutils.
75580
75581         * lib/__fpending.h: Add copyright notice.
75582         * lib/fprintftime.h: Likewise.
75583         * lib/savedir.c: Use (C) in copyright notice.
75584         * lib/savedir.h: Likewise.
75585
75586         2006-08-15  Jim Meyering  <jim@meyering.net>
75587
75588         * lib/at-func.c: New file, with the logic of all emulated at-functions.
75589         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
75590         in support of the EXPECTED_ERRNO macro.
75591         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
75592         definitions.  Instead, define the appropriate symbols and include
75593         "at-func.c".
75594         * lib/mkdirat.c (mkdirat): Likewise.
75595         * lib/fchmodat.c (fchmodat): Likewise.
75596         (ENOSYS): Remove definition.
75597         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
75598         it.  Don't include "unistd--.h" -- it wasn't ever used.
75599
75600         2006-01-17  Jim Meyering  <jim@meyering.net>
75601
75602         Rewrite fts.c not to change the current working directory,
75603         by using openat, fstatat, fdopendir, etc..
75604
75605         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
75606         (HAVE_OPENAT_SUPPORT): Define.
75607         [_LIBC] (fchdir): Don't undef or define; no longer used.
75608         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
75609         Now, this `function' always succeeds, and consumes its file descriptor
75610         parameter -- so callers must not close such FDs.  Update callers.
75611         (diropen_fd, opendirat, cwd_advance_fd): New functions.
75612         (diropen): Add parameter, SP.  Adjust all callers.
75613         Implement using diropen_fd, rather than open.
75614         (fts_open): Initialize new member, fts_cwd_fd.
75615         Remove fts_rft-setting code.
75616         (fts_close): Close fts_cwd_fd, if necessary.
75617         (__opendir2): Define in terms of opendir or opendirat,
75618         depending on whether the FST_NOCHDIR flag is set.
75619         (fts_build): Since fts_safe_changedir consumes its FD, and since
75620         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
75621         and close the dup'd file descriptor upon failure.
75622         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
75623         (fts_safe_changedir): Tweak semantics to reflect that this function
75624         now calls cwd_advance_fd and hence consumes its FD argument.
75625         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
75626         [struct FTS] (fts_rft): Remove now-unused member.
75627         [struct FTS] (fts_cycle.state): Improve comment.
75628
75629         * lib/openat.c (openat_needs_fchdir): New function.
75630         * lib/openat.h (openat_needs_fchdir): Declare it.
75631
75632 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75633
75634         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
75635         Problem and fix reported by Pádraig Brady in
75636         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
75637
75638 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75639
75640         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
75641
75642 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75643
75644         * lib/memcoll.c (memcoll): Optimize for the common case where the
75645         arguments are bytewise equal.
75646
75647 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75648
75649         * doc/regexprops-generic.texi: Add a copyright notice.
75650
75651 2006-08-15  Bruno Haible  <bruno@clisp.org>
75652
75653         * modules/tmpdir (License): Change to LGPL.
75654
75655 2006-08-15  Bruno Haible  <bruno@clisp.org>
75656
75657         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
75658         module.
75659
75660 2006-08-14  Simon Josefsson  <jas@extundo.com>
75661
75662         * config/srclist.txt: Add gnupload.
75663
75664 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75665
75666         Change copyright notice from LGPL 2 to GPL 2, since that's the
75667         standard form used in the gnulib repository.
75668         * tests/test-lock.c: Likewise.
75669         * tests/test-stdint.c: Likewise.
75670         * tests/test-tls.c: Likewise.
75671
75672         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
75673         prelude-manager.  User shorter URLs for GNU projects, without '?'.
75674         Add copyright notice.
75675
75676         * check-module: Add copyright notice.  Output a copyright
75677         notice if "--version" is specified.
75678         * modules/COPYING: New file.
75679         * tests/test-getaddrinfo.c: Add copyright notice.
75680         * tests/test-verify.c: Likewise.
75681
75682 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75683
75684         Change copyright notice from LGPL 2 to GPL 2, since that's the
75685         standard form used in the gnulib repository.
75686         * lib/lock.c: LGPL -> GPL.
75687         * lib/lock.h: Likewise.
75688         * lib/strnlen1.c: Likewise.
75689         * lib/strnlen1.h: Likewise.
75690         * lib/tls.c: Likewise.
75691         * lib/tls.h: Likewise.
75692         * lib/tmpdir.c: Likewise.
75693
75694         * lib/TODO: Remove; this belongs only in coreutils.
75695
75696 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75697
75698         Add copyright notices to long-enough files that lack them, since
75699         otherwise the files aren't clearly free.  Use the same notice that
75700         getdate.texi already uses.
75701         * doc/alloca-opt.texi: Add copyright notice.
75702         * doc/alloca.texi: Likewise.
75703         * doc/ctime.texi: Likewise.
75704         * doc/functions.texi: Likewise.
75705         * doc/gcd.texi: Likewise.
75706         * doc/gnulib-tool.texi: Likewise.
75707         * doc/inet_ntoa.texi: Likewise.
75708         * doc/visibility.texi: Likewise.
75709
75710         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
75711         * doc/quote.texi: Add copyright notice.
75712
75713         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
75714         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
75715         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
75716         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
75717         is now obsolete, and give a pointer to the Sun list.
75718         Add copyright notice.
75719
75720 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75721
75722         * config/srclistvars.sh: Add copyright notice.
75723
75724 2006-08-14  Eric Blake  <ebb9@byu.net>
75725
75726         Import the following change from libc:
75727
75728         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
75729
75730         Upstream bug 2997.
75731         * lib/misc/error.c: Add space between program name and message if file
75732         name is missing.
75733
75734 2006-08-12  Karl Berry  <karl@gnu.org>
75735
75736         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
75737         remove, these originate in gnulib now.
75738
75739 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75740
75741         * doc/Makefile (standards.info standards.html standards.dvi):
75742         Also depend on make-stds.texi.
75743
75744 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75745
75746         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
75747         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
75748
75749         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
75750         in wchar_t.  Problem reported by Eric Blake.
75751
75752         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
75753         LEN is smaller than SIZE.  Suggested by Bruno Haible.
75754         Also, help the compiler to keep LEN in a register.
75755
75756 2006-08-11  Eric Blake  <ebb9@byu.net>
75757
75758         * users.txt: Sort.  Add tar.
75759
75760 2006-08-11  Bruno Haible  <bruno@clisp.org>
75761
75762         * users.txt: New file.
75763
75764 2006-08-11  Bruno Haible  <bruno@clisp.org>
75765
75766         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
75767         before <wchar.h>. Needed for OSF/1 and BSD/OS.
75768
75769 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75770
75771         * modules/snprintf (Depends-on): Remove minmax.
75772         (Maintainer): Add self and Bruno.
75773
75774 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75775
75776         * lib/.cppi-disable: Add snprintf.h, socket_.h.
75777         * lib/snprintf.c: Include <errno.h> and <limits.h>.
75778         (EOVERFLOW): Define if the system does not.
75779         Do not include "minmax.h"; it wasn't used.
75780         (snprintf): Don't assume size_t promotes to an unsigned type.
75781         Fix bug when generated string was too long for the buffer: the
75782         buffer's contents are supposed to be the initial prefix of the
75783         output.  Don't assume vasnprintf returns EOVERFLOW if the size
75784         exceeds INT_MAX; do the check ourselves.
75785
75786         Import the following changes from libc:
75787
75788         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
75789
75790         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
75791         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
75792         set wc to the byte which couldn't be converted.
75793         (re_string_reconstruct): Don't clear valid_raw_len before calling
75794         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
75795         tip_context using re_string_context_at.
75796
75797         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
75798
75799         * lib/posix/regex.h: g++ still cannot handled [restrict].
75800
75801         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
75802
75803         * lib/posix/regex.h: Remove special handling for VMS.
75804
75805 2006-08-10  Jim Meyering  <jim@meyering.net>
75806
75807         * modules/same-inode: New module.
75808         * modules/dev-ino: New module.
75809         * modules/cycle-check: Depend on these modules, rather than simply
75810         including their .h files.
75811         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
75812         required via m4/cycle-check.m4.
75813         * modules/same: Depend on new same-inode module, rather than
75814         including same-inode.h.
75815         * modules/chdir-safer: New file.
75816
75817         * modules/chown (Depends-on): Add stat-macros.
75818
75819 2006-08-10  Jim Meyering  <jim@meyering.net>
75820
75821         * m4/cycle-check.m4: New file.
75822         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
75823         * m4/dev-ino.m4, m4/same-inode.m4: New files.
75824
75825 2006-08-10  Eric Blake  <ebb9@byu.net>
75826
75827         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
75828         in from original proposal.
75829
75830 2006-08-10  Eric Blake  <ebb9@byu.net>
75831         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75832
75833         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
75834         namespace.
75835
75836 2006-08-10  Bruno Haible  <bruno@clisp.org>
75837
75838         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
75839         as well.
75840
75841 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75842
75843         Sync from coreutils.
75844
75845         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
75846
75847         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
75848         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
75849
75850 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75851
75852         * modules/restrict: Remove; no longer needed now that we assume
75853         Autoconf 2.59 or later.
75854         * MODULES.html.sh: Remove 'restrict'.
75855         * modules/argp (Depends-on): Remove 'restrict'.
75856         * modules/base64 (Depends-on): Likewise.
75857         * modules/gc (Depends-on): Likewise.
75858         * modules/getaddrinfo (Depends-on): Likewise.
75859         * modules/glob (Depends-on): Likewise.
75860         * modules/inet_ntop (Depends-on): Likewise.
75861         * modules/inet_pton (Depends-on): Likewise.
75862         * modules/memxor (Depends-on): Likewise.
75863         * modules/regex (Depends-on): Likewise.
75864         * modules/strtok_r (Depends-on): Likewise.
75865         * modules/time_r (Depends-on): Likewise.
75866
75867 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75868
75869         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
75870         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
75871         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75872         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
75873         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
75874         * m4/memxor.m4 (gl_MEMXOR): Likewise.
75875         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
75876         gl_C_RESTRICT replaced by AC_C_RESTRICT.
75877
75878         Merge from coreutils.
75879         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
75880         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
75881         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
75882         * m4/time_r.m4 (gl_TIME_R): Likewise.
75883
75884 2006-08-09  Karl Berry  <karl@gnu.org>
75885
75886         * config/srclist.txt: no more gettext-tools, per Bruno.
75887
75888 2006-08-08  Eric Blake  <ebb9@byu.net>
75889
75890         * modules/verror: New module.
75891         * MODULES.html.sh: Document it.
75892
75893 2006-08-08  Eric Blake  <ebb9@byu.net>
75894
75895         * lib/verror.h, lib/verror.c: New files.
75896
75897 2006-08-08  Eric Blake  <ebb9@byu.net>
75898
75899         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
75900         verror_at_line output complies with GNU Coding Standards even when
75901         file is NULL.
75902
75903 2006-08-07  Bruno Haible  <bruno@clisp.org>
75904
75905         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
75906         versions of AIX.
75907         Reported by Ralf Wildenhues.
75908
75909 2006-08-07  Bruno Haible  <bruno@clisp.org>
75910
75911         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
75912         in an AC_DEFUN. Needed so that the autoconf snippets can use
75913         AC_REQUIRE.
75914
75915 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75916
75917         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75918         Initialize pkgdata_DATA.
75919         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
75920         overriding it.
75921
75922 2006-08-06  Eric Blake  <ebb9@byu.net>
75923
75924         * lib/error.h: Fold in some upstream changes from glibc.
75925         * lib/error.c: Likewise.
75926
75927 2006-08-04  Bruno Haible  <bruno@clisp.org>
75928
75929         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75930         Make the mostlyclean-local rule depend on mostlyclean-generic.
75931         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
75932
75933 2006-07-31  Bruno Haible  <bruno@clisp.org>
75934
75935         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
75936         <stdlib.h>, <string.h>.
75937
75938 2006-07-30  Bruno Haible  <bruno@clisp.org>
75939
75940         * modules/readlink (License): Change to LGPL.
75941
75942 2006-07-30  Bruno Haible  <bruno@clisp.org>
75943
75944         * modules/javaversion (Makefile.am): Distribute javaversion.java and
75945         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
75946         set PKGDATADIR to point to it.
75947
75948 2006-07-30  Bruno Haible  <bruno@clisp.org>
75949
75950         * modules/csharpexec (configure.ac): Comment out macro invocation.
75951         * modules/javaexec (configure.ac): Likewise.
75952         * modules/javacomp-script (configure.ac): Likewise.
75953
75954         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
75955
75956 2006-07-30  Bruno Haible  <bruno@clisp.org>
75957
75958         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
75959         linked-list.
75960
75961 2006-07-30  Bruno Haible  <bruno@clisp.org>
75962
75963         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
75964
75965 2006-07-30  Bruno Haible  <bruno@clisp.org>
75966
75967         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75968         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
75969         get removed.
75970
75971 2006-07-29  Bruno Haible  <bruno@clisp.org>
75972
75973         Make it possible for gnulib-tool to work with locally modified or
75974         augmented gnulib repositories.
75975         * gnulib-tool (func_usage): Document --local-dir option.
75976         (local_gnulib_dir): New variable.
75977         Handle --local-dir option.
75978         (func_lookup_file): New function.
75979         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
75980         (func_get_description, func_get_filelist, func_get_description,
75981         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
75982         func_get_automake_snippet, func_get_include_directive,
75983         func_get_license, func_get_maintainer): Use func_lookup_file.
75984         (func_import, func_create_testdir): Use func_lookup_file.
75985
75986 2006-07-29  Bruno Haible  <bruno@clisp.org>
75987
75988         * modules/setenv (Depends-on): Add unistd.
75989
75990 2006-07-29  Bruno Haible  <bruno@clisp.org>
75991
75992         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
75993
75994 2006-07-29  Bruno Haible  <bruno@clisp.org>
75995
75996         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
75997
75998 2006-07-29  Bruno Haible  <bruno@clisp.org>
75999
76000         * gnulib-tool (import, update): If there is no Makefile.am, look at
76001         aclocal.m4, instead of bailing out.
76002
76003 2006-07-29  Bruno Haible  <bruno@clisp.org>
76004
76005         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
76006         Categorize the options by when they are useful.
76007
76008 2006-07-29  Bruno Haible  <bruno@clisp.org>
76009
76010         * gnulib-tool (func_usage): Document option --no-libtool.
76011         Handle option --no-libtool.
76012         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
76013         for changed semantics of $libtool variable.
76014         (func_import): Likewise. If libtool is not used, show this through
76015         an option --no-libtool.
76016         (func_create_testdir): Update.
76017
76018 2006-07-29  Bruno Haible  <bruno@clisp.org>
76019
76020         * gnulib-tool (func_import): Extend error message about missing
76021         --doc-base.
76022
76023 2006-07-29  Bruno Haible  <bruno@clisp.org>
76024
76025         * gnulib-tool (func_import): Don't create the $docbase directory if
76026         there is no file to store there.
76027
76028 2006-07-29  Bruno Haible  <bruno@clisp.org>
76029
76030         * gnulib-tool (autoconf_minversion): If a --dir option is given and
76031         relevant, look for configure.ac there, not in the current directory.
76032         Also use a simple search for AC_PREREQ, not "autoconf --trace".
76033
76034 2006-07-29  Bruno Haible  <bruno@clisp.org>
76035
76036         * gnulib-tool (SORT): New variable.
76037         (func_usage): Undocument --assume-autoconf option.
76038         Remove --assume-autoconf option handling.
76039         (autoconf_minversion): Determine from the contents of configure.ac.
76040         (func_import): Remove autoconf_minversion handling.
76041         Suggested by Eric Blake.
76042
76043 2006-07-29  Bruno Haible  <bruno@clisp.org>
76044
76045         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
76046
76047 2006-07-29  Bruno Haible  <bruno@clisp.org>
76048
76049         * config/srclist.txt (*setenv.[ch]): Remove rules.
76050
76051 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76052
76053         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
76054
76055 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76056
76057         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
76058         arpa/inet.h.
76059
76060 2006-07-28  Simon Josefsson  <jas@extundo.com>
76061
76062         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
76063         * modules/inet_pton (Depends-on): Likewise.
76064
76065 2006-07-28  Simon Josefsson  <jas@extundo.com>
76066
76067         * m4/netinet_in_h.m4: New file.
76068
76069 2006-07-28  Simon Josefsson  <jas@extundo.com>
76070
76071         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
76072         #include's.
76073
76074 2006-07-28  Simon Josefsson  <jas@extundo.com>
76075
76076         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
76077         #include's.
76078
76079 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
76080
76081         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
76082         setgid on directories only if they set these bits.
76083         * lib/modechange.h: Remove obsolete comment about masks.
76084
76085 2006-07-28  Eric Blake  <ebb9@byu.net>
76086
76087         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
76088         macro expansion.
76089
76090 2006-07-28  Bruno Haible  <bruno@clisp.org>
76091
76092         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
76093
76094 2006-07-28  Bruno Haible  <bruno@clisp.org>
76095
76096         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
76097
76098 2006-07-28  Bruno Haible  <bruno@clisp.org>
76099
76100         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
76101         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
76102         Define fallbacks.
76103         Avoids link error on FreeBSD 4.x.
76104         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76105
76106         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
76107         encoding.
76108         * lib/mbswidth.c (iswcntrl): Likewise.
76109
76110 2006-07-27  Bruno Haible  <bruno@clisp.org>
76111
76112         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
76113         test.
76114
76115 2006-07-27  Bruno Haible  <bruno@clisp.org>
76116
76117         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
76118         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
76119         defined.
76120
76121 2006-07-26  Eric Blake  <ebb9@byu.net>
76122
76123         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
76124
76125 2006-07-26  Eric Blake  <ebb9@byu.net>
76126
76127         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
76128         like mingw that lack mkstemp.
76129         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
76130         avoid compilation warning on mingw.
76131
76132 2006-07-26  Bruno Haible  <bruno@clisp.org>
76133
76134         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
76135         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
76136         INT_FAST*_MIN, INTPTR_MIN.
76137
76138 2006-07-25  Bruno Haible  <bruno@clisp.org>
76139
76140         * modules/version-etc (Depends-on): Add stdarg.
76141
76142 2006-07-25  Bruno Haible  <bruno@clisp.org>
76143
76144         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
76145         complex commands.
76146
76147 2006-07-25  Bruno Haible  <bruno@clisp.org>
76148
76149         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
76150         defined in <stdarg.h> or config.h.
76151
76152 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
76153
76154         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
76155         (gl_STDIO_SAFER): Remove.
76156
76157 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
76158
76159         * MODULES.html.sh (File stream based Input/Output):
76160         Add fopen-safer, tmpfile-safer; remove stdio-safer.
76161         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
76162         * modules/fopen-safer, modules/tmpfile-safer: New files.
76163         * modules/stdio-safer: Remove.
76164
76165 2006-07-24  Bruno Haible  <bruno@clisp.org>
76166
76167         * modules/tmpdir: New file.
76168         * MODULES.html.sh (File system functions): Add it.
76169
76170 2006-07-24  Bruno Haible  <bruno@clisp.org>
76171
76172         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
76173         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
76174
76175 2006-07-24  Bruno Haible  <bruno@clisp.org>
76176
76177         * modules/clean-temp: New file.
76178
76179 2006-07-24  Bruno Haible  <bruno@clisp.org>
76180
76181         * m4/tmpdir.m4: New file, from GNU gettext.
76182
76183 2006-07-24  Bruno Haible  <bruno@clisp.org>
76184
76185         * lib/tmpdir.h: New file, from GNU gettext.
76186         * lib/tmpdir.c: New file, from GNU gettext.
76187
76188 2006-07-24  Bruno Haible  <bruno@clisp.org>
76189
76190         * lib/clean-temp.h: New file, from GNU gettext.
76191         * lib/clean-temp.c: New file, from GNU gettext.
76192
76193 2006-07-23  Eric Blake  <ebb9@byu.net>
76194
76195         * modules/stdio-safer (Files): Add tmpfile-safer.c.
76196         (Depends-on): Add binary-io.
76197
76198 2006-07-23  Eric Blake  <ebb9@byu.net>
76199
76200         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
76201
76202 2006-07-23  Eric Blake  <ebb9@byu.net>
76203
76204         * lib/tmpfile-safer.c: New file.
76205         * lib/stdio-safer.h (fopen_safer): Add prototype.
76206         * lib/stdio--.h (tmpfile): Make safer.
76207
76208 2006-07-23  Bruno Haible  <bruno@clisp.org>
76209
76210         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
76211         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
76212         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
76213         gl_linked_remove_at): Use it.
76214
76215 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76216         and Simon Josefsson <jas@extundo.com>
76217
76218         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
76219
76220         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
76221
76222 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76223
76224         * modules/close-stream: New file.
76225         * modules/closeout (Description): Make it clear that it exits
76226         with a diagnostic on error.
76227         (Depends-on): Add close-stream.  Remove fpending, stdbool.
76228         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
76229
76230 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76231
76232         * m4/close-stream.m4: New file.
76233
76234 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76235
76236         * lib/close-stream.c, lib/close-stream.h: New files.
76237
76238 2006-07-22  Bruno Haible  <bruno@clisp.org>
76239
76240         Merge from GNU gettext 0.15.
76241
76242         2006-05-01  Bruno Haible  <bruno@clisp.org>
76243
76244                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
76245
76246         2006-07-22  Bruno Haible  <bruno@clisp.org>
76247
76248                 * modules/javaversion: New file.
76249                 * MODULES.html.sh (Java): Add javaversion.
76250
76251         2006-03-12  Bruno Haible  <bruno@clisp.org>
76252
76253                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
76254
76255         2005-12-04  Bruno Haible  <bruno@clisp.org>
76256
76257                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
76258                 (untested).
76259
76260         2006-06-21  Bruno Haible  <bruno@clisp.org>
76261
76262                 Avoid warnings from recent versions of mcs.
76263                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
76264                 -o, -L, -r any more. Use options documented since mcs-1.0
76265                 instead. Similarly for -g.
76266
76267         2005-12-04  Bruno Haible  <bruno@clisp.org>
76268
76269                 * build-aux/csharpcomp.sh.in: Suffix for resources is
76270                 .resources, not .resource.
76271
76272         2005-07-09  Bruno Haible  <bruno@clisp.org>
76273
76274                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
76275                 add a .dll suffix.
76276                 Reported by Mark Junker <mjscod@gmx.de>.
76277
76278         2006-07-22  Bruno Haible  <bruno@clisp.org>
76279
76280                 * modules/gettext: Upgrade to gettext-0.15.
76281                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
76282                 m4/visibility.m4.
76283                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
76284
76285 2006-07-22  Bruno Haible  <bruno@clisp.org>
76286
76287         Merge from GNU gettext 0.15.
76288
76289         2006-03-25  Bruno Haible  <bruno@clisp.org>
76290
76291                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
76292
76293         2006-07-21  Bruno Haible  <bruno@clisp.org>
76294
76295                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
76296                 "1.1".
76297
76298         2006-05-09  Bruno Haible  <bruno@clisp.org>
76299
76300                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
76301                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
76302                 for the conftestver execution.
76303
76304         2006-05-01  Bruno Haible  <bruno@clisp.org>
76305
76306                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
76307                 optional target-version argument. Verify that the compiler
76308                 groks source of the specified source-version, or add -source
76309                 option as necessary. Verify that the compiler produces
76310                 bytecode in the specified target-version, or add -target and
76311                 -source options as necessary. Make the result of the test
76312                 available as variable CONF_JAVAC. Also log error output in
76313                 config.log.
76314
76315         2006-03-11  Bruno Haible  <bruno@clisp.org>
76316
76317                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
76318
76319         2006-05-09  Bruno Haible  <bruno@clisp.org>
76320
76321                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
76322                 CLASSPATH_SEPARATOR to a semicolon.
76323
76324         2006-03-12  Bruno Haible  <bruno@clisp.org>
76325
76326                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
76327                 available as variable CONF_JAVA, for subsequent autoconf
76328                 tests. Also log error output in config.log.
76329
76330         2006-07-19  Bruno Haible  <bruno@clisp.org>
76331
76332                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
76333                 that getline works on glibc2 systems. Needed to avoid trouble
76334                 in relocatable.c.
76335                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
76336
76337         2005-12-04  Bruno Haible  <bruno@clisp.org>
76338
76339                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
76340                 launcher (untested).
76341
76342         2005-12-04  Bruno Haible  <bruno@clisp.org>
76343
76344                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
76345
76346         2006-07-22  Bruno Haible  <bruno@clisp.org>
76347
76348                 * gettext.m4: Update from GNU gettext-0.15.
76349                 * nls.m4: Likewise.
76350                 * po.m4: Likewise.
76351                 * inttypes-pri.m4: Likewise.
76352                 * inttypes-h.m4: Renamed from inttypes.m4.
76353                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
76354
76355 2006-07-22  Bruno Haible  <bruno@clisp.org>
76356
76357         Merge from GNU gettext 0.15.
76358
76359         2005-07-05  Bruno Haible  <bruno@clisp.org>
76360
76361                 * printf-args.c (printf_fetchargs): Work around broken
76362                 definition of wint_t on mingw.
76363
76364         2005-02-12  Bruno Haible  <bruno@clisp.org>
76365
76366                 * xallocsa.h: Add extern "C" for C++.
76367
76368         2006-05-17  Bruno Haible  <bruno@clisp.org>
76369
76370                 Cygwin portability.
76371                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
76372
76373         2006-04-30  Bruno Haible  <bruno@clisp.org>
76374
76375                 * progreloc.c: Include <mach-o/dyld.h> if available.
76376                 (find_executable): Use _NSGetExecutablePath when possible.
76377
76378         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76379
76380                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
76381                 function.
76382
76383         2005-12-29  Bruno Haible  <bruno@clisp.org>
76384
76385                 * progreloc.c (set_program_name_and_installdir): Fix
76386                 compilation error.
76387
76388         2005-12-04  Bruno Haible  <bruno@clisp.org>
76389
76390                 Cygwin portability.
76391                 * progreloc.c: Include <windows.h> also on Cygwin.
76392                 (find_executable): Add support for Cygwin.
76393                 (set_program_name_and_installdir): Handle also platforms with
76394                 nonempty EXEEXT.
76395
76396         2006-07-11  Bruno Haible  <bruno@clisp.org>
76397
76398                 * javacomp.c: Fix a comment.
76399                 Reported by Jim Meyering.
76400
76401         2006-04-30  Bruno Haible  <bruno@clisp.org>
76402
76403                 * javacomp.h (compile_java_class): Add source_version,
76404                 target_version arguments.
76405                 * javacomp.c: Rewritten to choose only a compiler that
76406                 respects the specified source_version and target_version.
76407
76408         2006-06-27  Bruno Haible  <bruno@clisp.org>
76409
76410                 Assume correct S_ISDIR macro.
76411                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
76412
76413         2006-07-22  Bruno Haible  <bruno@clisp.org>
76414
76415                 * javaversion.h: New file, from GNU gettext.
76416                 * javaversion.c: New file, from GNU gettext.
76417                 * javaversion.java: New file, from GNU gettext.
76418                 * javaversion.class: New file, from GNU gettext.
76419
76420         2006-05-17  Bruno Haible  <bruno@clisp.org>
76421
76422                 Cygwin portability.
76423                 * javaexec.c (execute_java_class): Test for jview program
76424                 also on Cygwin.
76425
76426         2006-04-09  Bruno Haible  <bruno@clisp.org>
76427
76428                 * fatal-signal.c: Don't include string.h.
76429                 (at_fatal_signal): Use a copying loop instead of memcpy.
76430
76431         2005-12-04  Bruno Haible  <bruno@clisp.org>
76432
76433                 * csharpexec.c: Add support for 'clix' launcher (untested).
76434                 (execute_csharp_using_sscli): New function.
76435                 (execute_csharp_program): Call it.
76436
76437         2006-06-21  Bruno Haible  <bruno@clisp.org>
76438
76439                 Avoid warnings from recent versions of mcs.
76440                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
76441                 -o, -L, -r any more. Use options documented since mcs-1.0
76442                 instead. Similarly for -g.
76443
76444         2005-07-09  Bruno Haible  <bruno@clisp.org>
76445
76446                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
76447                 add a .dll suffix.
76448                 Reported by Mark Junker <mjscod@gmx.de>.
76449
76450         2006-06-17  Bruno Haible  <bruno@clisp.org>
76451
76452                 * config.charset: Update for NetBSD 3.0.
76453
76454         2006-05-17  Bruno Haible  <bruno@clisp.org>
76455
76456                 Cygwin portability.
76457                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
76458
76459         2006-05-16  Bruno Haible  <bruno@clisp.org>
76460
76461                 * localcharset.c [CYGWIN]: Include <windows.h>.
76462                 (get_charset_aliases): For Cygwin, return the same CPxxx
76463                 aliases list as under WIN32.
76464                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
76465                 the environment variables. Fall back to GetACP().
76466
76467         2006-04-05  Bruno Haible  <bruno@clisp.org>
76468
76469                 * config.charset: Update Juan Manuel Guerrero's address.
76470
76471         2005-02-12  Bruno Haible  <bruno@clisp.org>
76472
76473                 * allocsa.h: Add extern "C" for C++.
76474
76475         2005-02-10  Bruno Haible  <bruno@clisp.org>
76476
76477                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
76478                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
76479
76480         2006-07-22  Bruno Haible  <bruno@clisp.org>
76481
76482                 * gettext.h: Update to GNU gettext-0.15.
76483
76484 2006-07-22  Bruno Haible  <bruno@clisp.org>
76485
76486         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
76487         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
76488         lib-prefix.m4, longdouble.m4, ssize_t.m4.
76489
76490 2006-07-21  Eric Blake  <ebb9@byu.net>
76491
76492         * modules/stdlib-safer: New file.
76493         * MODULES.html.sh (File stream based Input/Output): Add
76494         stdlib-safer.
76495
76496 2006-07-21  Eric Blake  <ebb9@byu.net>
76497
76498         * lib/stdlib-safer.h: New file from coreutils, required by
76499         stdlib--.h.
76500
76501 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
76502
76503         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
76504
76505 2006-07-20  Bruno Haible  <bruno@clisp.org>
76506
76507         * gnulib-tool: Recognize new option --assume-autoconf.
76508         (autoconf_minversion): New variable.
76509         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
76510
76511 2006-07-20  Bruno Haible  <bruno@clisp.org>
76512
76513         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
76514
76515 2006-07-19  Derek R. Price  <derek@ximbiot.com>
76516
76517         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
76518         Reindent and repaginate.
76519
76520 2006-07-19  Derek Price  <derek@ximbiot.com>
76521
76522         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
76523         Correct grammar.
76524
76525 2006-07-17  Bruno Haible  <bruno@clisp.org>
76526
76527         * modules/list: New file.
76528         * modules/array-list: New file.
76529         * modules/carray-list, modules/carray-list-tests: New files.
76530         * modules/linked-list, modules/linked-list-tests: New files.
76531         * modules/avltree-list, modules/avltree-list-tests: New files.
76532         * modules/rbtree-list, modules/rbtree-list-tests: New files.
76533         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
76534         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
76535         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
76536         * modules/oset: New file.
76537         * modules/array-oset: New file.
76538         * modules/avltree-oset, modules/avltree-oset-tests: New files.
76539         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
76540         * tests/test-carray_list.c: New file.
76541         * tests/test-linked_list.c: New file.
76542         * tests/test-avltree_list.c: New file.
76543         * tests/test-rbtree_list.c: New file.
76544         * tests/test-linkedhash_list.c: New file.
76545         * tests/test-avltreehash_list.c: New file.
76546         * tests/test-rbtreehash_list.c: New file.
76547         * tests/test-avltree_oset.c: New file.
76548         * tests/test-rbtree_oset.c: New file.
76549         * MODULES.html.sh (Container data structures): New section.
76550
76551 2006-07-17  Bruno Haible  <bruno@clisp.org>
76552
76553         * m4/gl_list.m4: New file.
76554
76555 2006-07-17  Bruno Haible  <bruno@clisp.org>
76556
76557         * lib/gl_list.h: New file.
76558         * lib/gl_list.c: New file.
76559         * lib/gl_array_list.h: New file.
76560         * lib/gl_array_list.c: New file.
76561         * lib/gl_carray_list.h: New file.
76562         * lib/gl_carray_list.c: New file.
76563         * lib/gl_linked_list.h: New file.
76564         * lib/gl_linked_list.c: New file.
76565         * lib/gl_anylinked_list1.h: New file.
76566         * lib/gl_anylinked_list2.h: New file.
76567         * lib/gl_avltree_list.h: New file.
76568         * lib/gl_avltree_list.c: New file.
76569         * lib/gl_anyavltree_list1.h: New file.
76570         * lib/gl_anyavltree_list2.h: New file.
76571         * lib/gl_rbtree_list.h: New file.
76572         * lib/gl_rbtree_list.c: New file.
76573         * lib/gl_anyrbtree_list1.h: New file.
76574         * lib/gl_anyrbtree_list2.h: New file.
76575         * lib/gl_anytree_list1.h: New file.
76576         * lib/gl_anytree_list2.h: New file.
76577         * lib/gl_linkedhash_list.h: New file.
76578         * lib/gl_linkedhash_list.c: New file.
76579         * lib/gl_anyhash_list1.h: New file.
76580         * lib/gl_anyhash_list2.h: New file.
76581         * lib/gl_avltreehash_list.h: New file.
76582         * lib/gl_avltreehash_list.c: New file.
76583         * lib/gl_rbtreehash_list.h: New file.
76584         * lib/gl_rbtreehash_list.c: New file.
76585         * lib/gl_anytreehash_list1.h: New file.
76586         * lib/gl_anytreehash_list2.h: New file.
76587
76588         * lib/gl_oset.h: New file.
76589         * lib/gl_oset.c: New file.
76590         * lib/gl_array_oset.h: New file.
76591         * lib/gl_array_oset.c: New file.
76592         * lib/gl_avltree_oset.h: New file.
76593         * lib/gl_avltree_oset.c: New file.
76594         * lib/gl_rbtree_oset.h: New file.
76595         * lib/gl_rbtree_oset.c: New file.
76596         * lib/gl_anytree_oset.h: New file.
76597
76598 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76599
76600         * m4/mkancesdirs.m4: New file.
76601         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
76602         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
76603         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
76604         it.
76605
76606 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76607
76608         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
76609         * lib/mkancesdirs.h: New files.
76610         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
76611         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
76612         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
76613         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
76614         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
76615         callers changed.  Revamp internals significantly, by not
76616         attempting to create directories that are temporarily more
76617         permissive than the final results.  Do not attempt to use
76618         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
76619         This removes some race conditions, fixes some bugs, and simplifies
76620         things.  Use new dirchownmod function to do owner and mode changes.
76621         * lib/mkdir-p.h: Likewise.
76622         * lib/modechange.c (octal_to_mode): New function.
76623         (struct mode_change): New member mentioned.
76624         (make_node_op_equals): New arg mentioned.  All callers changed.
76625         (mode_compile): Keep track of which mode bits the user has explicitly
76626         mentioned.
76627         (mode_adjust): New arg DIR, so that we implement the X op correctly.
76628         New arg PMODE_BITS, to keep track of which mode bits the user
76629         mentioned; it treats S_ISUID and S_ISGID speciall.
76630         All callers changed.
76631         * lib/modechange.h: Likewise.
76632
76633 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76634
76635         * MODULES.html.sh: Add mkancestors.
76636         * modules/mkancesdirs: New module.
76637         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
76638         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
76639         The chdir-safer and afs files are now orphans; I'll remove them
76640         unless someone speaks up.
76641         Add lib/dirchownmod.c, lib/dirchownmod.h.
76642         (Depends-on): Remove alloca, chown, save-cwd, dirname.
76643         Add lchown, mkancesdirs.
76644         (Maintainer): Add self.
76645
76646 2006-07-15  Karl Berry  <karl@gnu.org>
76647
76648         * gnulib-tool: help message wording/arrangement.
76649
76650 2006-07-14  Simon Josefsson  <jas@extundo.com>
76651
76652         * doc/gnulib.texi (Libtool and Windows): New section.
76653
76654 2006-07-12  Simon Josefsson  <jas@extundo.com>
76655
76656         * modules/gendocs (License): Fix license, approved by Karl.
76657
76658 2006-07-12  Eric Blake  <ebb9@byu.net>
76659
76660         * MODULES.html.sh: Add gendocs.
76661
76662 2006-07-11  Eric Blake  <ebb9@byu.net>
76663
76664         * modules/fdl: New module, to install doc/fdl.texi.
76665         * MODULES.html.sh: Add new section for documentation modules.
76666         * gnulib-tool: Avoid space-tab.
76667         (--doc-base): New option, to manage files from doc.
76668
76669 2006-07-11  Eric Blake  <ebb9@byu.net>
76670
76671         * m4/absolute-header.m4: Fix comments to match recent change.
76672
76673 2006-07-11  Eric Blake  <ebb9@byu.net>
76674
76675         * gnulib-tool: List --doc-base before --tests-base.
76676
76677 2006-07-11  Derek R. Price  <derek@ximbiot.com>
76678
76679         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
76680
76681 2006-07-11  Bruno Haible  <bruno@clisp.org>
76682
76683         * README: Mention where to put documentation.
76684
76685 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76686
76687         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
76688
76689 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76690
76691         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
76692         to stdint.m4.
76693
76694 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76695
76696         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
76697         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
76698         "no/such/file/stdint.h" when there is no such file, so that
76699         the resulting C code can be parsed by dodgy compilers.
76700         Problems reported by Bob Proulx.
76701
76702 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76703
76704         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
76705         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76706         macros into the GNU _D_EXACT_NAMLEN.
76707         * lib/savedir.c:  Likewise.
76708         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
76709
76710 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76711         and Paul Eggert  <eggert@cs.ucla.edu>
76712
76713         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
76714         * m4/savedir.m4:
76715         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76716         macros into the GNU _D_EXACT_NAMLEN.
76717
76718 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76719
76720         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
76721         around the absolute name, to work around a problem with the HP-UX
76722         11.23 native C compiler, reported by Bob Proulx.
76723
76724 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76725
76726         * doc/maintain.texi, make-stds.texi: Sync from
76727         <http://savannah.gnu.org/projects/gnustandards>.
76728
76729 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76730
76731         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
76732
76733 2006-07-09  Jim Meyering  <jim@meyering.net>
76734
76735         * m4/glob.m4: Remove a doubled word in a comment.
76736
76737 2006-07-09  Jim Meyering  <jim@meyering.net>
76738
76739         * lib/argp-pv.c: Remove a doubled word in a comment.
76740         * lib/check-version.c (check_version): Likewise.
76741         * lib/javacomp.c (compile_java_class): Likewise.
76742
76743 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76744
76745         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
76746         for the benefit of people using Autoconf 2.60.  If you want to
76747         support older Autoconf versions you can copy m4/onceonly_2_57.m4
76748         (or m4/onceonly.m4, if pre-2.57) manually.
76749
76750 2006-07-08  Jim Meyering  <jim@meyering.net>
76751
76752         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
76753         comment.
76754         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
76755         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
76756         comment.
76757
76758 2006-07-08  Jim Meyering  <jim@meyering.net>
76759
76760         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
76761
76762 2006-07-07  Simon Josefsson  <jas@extundo.com>
76763
76764         * tests/test-crc.c: Change expected crc value, the test vector
76765         were probably computed using the old broken crc.c?
76766
76767 2006-07-06  Simon Josefsson  <jas@extundo.com>
76768
76769         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
76770         now the canonical place for the M4 file).
76771
76772         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
76773         from the sys_socket dependency now.
76774
76775         * modules/inet_pton (Files): Ditto.
76776
76777         * modules/inet_ntop (Files): Ditto.
76778
76779 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76780
76781         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
76782         not gl_PREREQ_GETUSERSHELL.
76783
76784 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76785
76786         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
76787         with only one argument, for Autoconf 2.60.
76788         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
76789         expand to nothing, so add a shell command to avoid syntax error.
76790         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
76791
76792 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76793
76794         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
76795
76796 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76797
76798         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
76799         no longer needed.  Check for isblank decl.
76800         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
76801         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
76802         of existence.
76803
76804 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76805
76806         * lib/getloadavg.c: Use __VMS, not VMS.
76807         * lib/getopt.c: Likewise.
76808         * lib/getpagesize.h: Likewise.
76809         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
76810         and probably does not work.
76811
76812 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76813
76814         * lib/.cppi-disable: Add wcwidth.
76815         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
76816         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
76817         (ISGRAPH): Remove.  All uses changed to isgraph.
76818         (FOLD) [!defined _LIBC]: Remove special case.
76819         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
76820         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
76821         HAVE_ISBLANK.
76822         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
76823         case.
76824
76825 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76826
76827         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
76828         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
76829         brackets.  Other minor changes to suppress some compiler
76830         warnings.
76831
76832 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76833         and Paul Eggert  <eggert@cs.ucla.edu>
76834
76835         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
76836         of invoking obsolescent AC_HEADER_DIRENT macro.
76837         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
76838         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
76839         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
76840         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
76841         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
76842         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76843         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
76844         * m4/readdir.m4: Remove; no longer needed.
76845
76846 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76847         and Paul Eggert  <eggert@cs.ucla.edu>
76848
76849         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
76850         Don't worry about this obsolete case any more.
76851         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
76852         directories.
76853         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
76854         worry about this obsolete case any more.
76855         * lib/fts.c: Likewise.
76856         * lib/getcwd.c: Likewise.
76857         * lib/glob.h: Likewise.
76858         * lib/savedir.c: Likewise.
76859
76860 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76861
76862         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
76863         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
76864         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
76865         needed.
76866         All uses removed.
76867         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76868         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76869         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
76870         needed.
76871         * m4/getdate.m4 (gl_GETDATE): Likewise.
76872         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76873         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76874         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76875         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76876         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76877         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76878         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
76879         needed.
76880
76881 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76882
76883         * lib/memcasecmp.c: Include <limits.h>.
76884         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
76885         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
76886         Don't assume isdigit succeeds only on '0' through '9'.
76887
76888 2006-07-05  Eric Blake  <ebb9@byu.net>
76889
76890         * modules/getaddrinfo (Depends-on): Add snprintf.
76891
76892 2006-07-05  Eric Blake  <ebb9@byu.net>
76893
76894         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
76895         to avoid 'header present but could not be compiled' on cygwin.
76896
76897 2006-07-05  Eric Blake  <ebb9@byu.net>
76898
76899         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
76900         missing from netdb.h.
76901         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
76902
76903 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76904
76905         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
76906         no longer needed.
76907         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
76908         * m4/getdate.m4 (gl_GETDATE): Likewise.
76909         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76910         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76911         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76912         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76913         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76914
76915 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76916
76917         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
76918         All uses of is_space replaced by isspace.
76919         * lib/exit.h: Don't talk about STDC_HEADERS.
76920         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
76921         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
76922         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
76923         replaced by isprint etc.
76924         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
76925         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76926         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
76927         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
76928         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
76929         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76930
76931 2006-07-05  Bruno Haible  <bruno@clisp.org>
76932
76933         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
76934         the function exists, before testing against AIX.
76935         Reported by Martin Lambers <marlam@marlam.de>.
76936
76937 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76938
76939         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
76940         From Mark D. Baushke.
76941
76942 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76943
76944         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
76945         to the absolute name, not just one, to bypass Sun C 5.8's
76946         "warning: #include of /usr/include/... may be non-portable".
76947
76948 2006-07-04  Eric Blake  <ebb9@byu.net>
76949
76950         * modules/dirname-tests: New test module.
76951         * tests/test-dirname.c: New file, replacing dirname.c
76952         TEST_DIRNAME section that was recently deleted.
76953
76954 2006-07-04  Bruno Haible  <bruno@clisp.org>
76955
76956         Assume ANSI C header files and <ctype.h> functions.
76957         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
76958         (mbsnwidth): Use isprint, iscntrl instead.
76959
76960 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76961
76962         Merge from coreutils.
76963         * MODULES.html.sh: Add xstrtold.
76964         * modules/xstrtold: New file.
76965         * modules/cycle-check (Files): Add lib/same-inode.h.
76966         * modules/dirname (Files): Add m4/double-slash-root.m4.
76967         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
76968         * modules/mkdir-p (Files): Add lib/same-inode.h.
76969         * modules/same (Files): Add lib/same-inode.h.
76970
76971 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76972
76973         * m4/absolute-header.m4: Renamed from full-header-path.m4.
76974         This is to keep the terminology clean; POSIX talks about
76975         "absolute pathnames", not "full pathnames", but the GNU
76976         Coding Standards say to use "path" for something else;
76977         so use "absolute" to keep both sides happy.
76978         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
76979         Set gl_absolute_header, not gl_full_header_path.
76980         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
76981         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
76982         All uses changed.
76983
76984         Merge from coreutils.
76985
76986         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76987
76988         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
76989         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
76990         want to require the building of c-strtod.o.
76991         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
76992         needs -lm directly.
76993         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
76994
76995         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76996
76997         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
76998         --as-needed option if available.  Problem reported by Albert Chin in
76999         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
77000         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
77001         cc merely issues a bunch of annoying warnings for --as-needed
77002         (this problem was reported by Bob Proulx).  Also, try linking with
77003         -lm to detect a bug in binutils 2.16 (this problem was reported
77004         by Ralf Wildenhues).
77005
77006         2006-06-18  Jim Meyering  <jim@meyering.net>
77007
77008         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
77009         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
77010         macro.
77011         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
77012         also check for glibc-2.4's abort-inducing bug.
77013
77014         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
77015         Low-probability clean-up should be to use rmdir to get rid of
77016         the just-created directory, not unlink.
77017
77018         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
77019         configure fail, and request a bug report to inform us about it.
77020         Add a comment that, barring reports to the contrary, in 2007 we'll
77021         assume ftruncate is universally available.
77022
77023         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
77024
77025         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
77026
77027         2006-03-12  Jim Meyering  <jim@meyering.net>
77028
77029         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
77030         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
77031         * m4/same.m4 (gl_SAME): Likewise.
77032         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
77033
77034         2006-03-11  Eric Blake  <ebb9@byu.net>
77035
77036         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
77037         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
77038         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
77039         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
77040
77041 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77042
77043         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
77044         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
77045         reported by Mark D. Baushke, one in
77046         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
77047
77048         Merge from coreutils.
77049
77050         * lib/.cppi-disable: Add stdint_.h.
77051         * lib/.cvsignore: Add stdint.h.
77052
77053         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
77054
77055         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
77056         both double and long double versions.
77057         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
77058         * lib/xstrtold.c: New file.
77059         * lib/xstrtod.h (xstrtold): New decl.
77060
77061         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
77062
77063         * lib/filemode.c (setst): Remove.
77064         (strmode): Rewrite to avoid setst.  This makes the code shorter,
77065         (arguably) clearer, and the generated code is a bit smaller on my
77066         Debian GNU/Linux stable x86 host.
77067
77068         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
77069
77070         * lib/filemode.c: Include "filemode.h" first, to test the interface.
77071         Assume that filemode.h includes sys/types.h and sys/stat.h.
77072         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
77073         (ftypelet): Reorder to put common cases first, for efficiency.
77074         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
77075         to do 'M'.
77076         (strmode): Renamed from mode_string, and now stores 12 bytes instead
77077         of 10, for compatibility with FreeBSD.  All callers changed.
77078         (filemodestring): Now stores 12 bytes instead of 10, and sets file
77079         types that can't be deduced solely from st_mode.  First arg is now a
77080         const pointer.
77081         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
77082         (strmode): Renamed from mode_string.
77083         (filemodestring): New decl.
77084         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
77085         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
77086         needed.
77087         (S_ISPORT, S_ISWHT): New macros, if not already defined.
77088
77089         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77090
77091         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
77092         fsusage.h now does that.  Include fsusage.h first, to test interface.
77093         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
77094         at most one method (the old code could have generated decls that
77095         didn't conform to C89, not that this was ever exercised).
77096         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
77097
77098         2006-03-19  Jim Meyering  <jim@meyering.net>
77099
77100         Work even in a chroot where d_ino values for entries in "/"
77101         don't match the stat.st_ino values for the same names.
77102         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
77103         number, iterate through all entries again, using lstat instead.
77104         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
77105         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
77106
77107         * lib/getcwd.c (__getcwd): Clarify a comment.
77108         Use memcpy in place of a call to strcpy.
77109
77110         2006-03-12  Jim Meyering  <jim@meyering.net>
77111
77112         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
77113         matches that of the current directory (which we're about to chdir ".."
77114         out of), then save the dev-ino of the parent, instead.
77115
77116         * lib/same-inode.h (SAME_INODE): New file/macro.
77117         * lib/chdir-safer.c (SAME_INODE): Remove definition.
77118         Include "same-inode.h", instead.
77119         * lib/same.c: Likewise.
77120         * lib/cycle-check.h: Include "same-inode.h".
77121         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
77122         * lib/cycle-check.c (SAME_INODE): Remove definition.
77123         * lib/root-dev-ino.h: Include "same-inode.h".
77124
77125         2006-03-11  Eric Blake  <ebb9@byu.net>
77126
77127         * lib/same.c (same_name): s/base_name/last_component/
77128         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
77129         * lib/filenamecat.c (file_name_concat): Likewise.
77130
77131         2006-03-11  Eric Blake  <ebb9@byu.net>,
77132                     Paul Eggert  <eggert@cs.ucla.edu>
77133
77134         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
77135         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
77136         drive prefix.
77137         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
77138         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
77139         (last_component): New method.
77140         * lib/dirname.c (dir_len): Determine when drive letters need a
77141         subsequent slash.  Preserve // when it is special.
77142         (dir_name): Don't append dot when drive letter is absolute.
77143         [TEST_DIRNAME]: Move into a full-blown gnulib test.
77144         * lib/basename.c (base_name): New semantics - malloc the result.
77145         Preserve // when it is special.  Preserve relative files that look
77146         like drive letters.
77147         (base_len): Preserve // when it is special.
77148         (last_component): New method, similar to old base_name semantics.
77149         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
77150         base_name.  Strip redundant slashes from ///.
77151
77152 2006-07-03  Jim Meyering  <jim@meyering.net>
77153
77154         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
77155         macro is used before the first cycle_check call.
77156
77157 2006-07-03  Eric Blake  <ebb9@byu.net>
77158
77159         * modules/dirname (Depends-on): Add xstrndup.
77160
77161 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
77162
77163         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
77164         test cases, so that config.log is a bit easier to follow.
77165
77166 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
77167
77168         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
77169         both are 64 bits, since this seems to be the tradition, and this
77170         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
77171         we ever run into a host that prefers long long to long in this
77172         case, we'll need another configure-time test.  Problem reported by
77173         Jim Meyering.
77174
77175 2006-07-02  Eric Blake  <ebb9@byu.net>
77176
77177         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
77178
77179 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77180
77181         * modules/inttypes (Depends-on): No longer depends on stdint.
77182         * modules/stdint (Description): Say more about assumptions.
77183         Say that the fast types might differ.  Say macros are used.
77184         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
77185         (Makefile.am): Revise list of substituted symbols to match
77186         new stdint.m4.
77187         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
77188         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
77189         * tests/test-stdint.c (verify_same_types)
77190         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
77191         the code conforms to C99/C89.
77192         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
77193         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
77194
77195 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77196
77197         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
77198         but fix a bug, by requiring at least 64 bits.
77199         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
77200         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
77201         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
77202         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
77203
77204         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
77205         changes.  Make 2.59 a prerequisite.  Check and substitute for
77206         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
77207         inttypes.h.  Do not use special include files; just use the
77208         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
77209         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
77210         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
77211         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
77212         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
77213         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
77214         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
77215         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
77216         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
77217         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
77218         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
77219         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
77220         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
77221         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
77222         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
77223         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
77224         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
77225         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
77226         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
77227         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
77228         WINT_MAX.  Check for C99 conformance more strictly, by detecting
77229         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
77230         not check for things that C99 does not require, e.g., int8_t.  If
77231         a test isn't needed unless <stdint.h> isn't working, and is
77232         unlikely to be needed for any other reason, then don't do it
77233         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
77234         size_t, since we assume C89 freestanding at least.  Do not check
77235         for sig_atomic_t, wchar_t, or wint_t, since the code now does
77236         the right thing even if the types are not defined.  Instead use:
77237         (gl_STDINT_TYPE_PROPERTIES): New macro.
77238         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
77239         testing whether <sys/types.h> clashes, as Autoconf does this for
77240         us now.  All uses removed.
77241         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
77242         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
77243         (gl_CHECK_TYPE_SAME):
77244         Remove; no longer needed.
77245         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
77246         exists, since we'll return 0 anyway in that case.
77247         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
77248
77249 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77250
77251         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
77252         possible collision with system files.
77253         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
77254         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
77255         WCHAR_MIN and WCHAR_MAX in this case.
77256         (<stddef.h>): Do not include; no longer needed.
77257         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
77258         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
77259         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
77260         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
77261         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
77262         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
77263         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
77264         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
77265         !defined(__c99))]: Include in this case too, since it's harmless
77266         now.
77267         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
77268         dangerous to do so.
77269         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
77270         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
77271         (_STDINT_MIN, _STDINT_MAX): New macros.
77272         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
77273         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
77274         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
77275         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
77276         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
77277         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
77278         macros, not typedefs; this simplifies things quite a bit.
77279         Use long int for all types narrower than int64_t.
77280         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
77281         Define in terms of long long int or int64_t or long int,
77282         not int64_t or int32_t.  This saves some compile-time testing.
77283         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
77284         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
77285         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
77286         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
77287         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
77288         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
77289         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
77290         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
77291         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
77292         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
77293         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77294         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77295         undef any previous version and define our own version, for
77296         simplicity and consistency with the new macros for types.
77297         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77298         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77299         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
77300         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
77301         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
77302         @WINT_T_SUFFIX@ to keep things simple here.
77303         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
77304         Simplify by assuming typical 8/16/32/64 host, since we're
77305         already doing that elsewhere anyway.
77306         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
77307         and assume long long int is 64 bits if available.  This
77308         speeds up 'configure'.
77309
77310 2006-07-01  Eric Blake  <ebb9@byu.net>
77311
77312         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
77313         Reported by Andreas Buening.
77314
77315 2006-07-01  Eric Blake  <ebb9@byu.net>
77316
77317         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
77318
77319 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
77320
77321         * lib/getaddrinfo.c: fixed typo
77322
77323 2006-06-29  Jim Meyering  <jim@meyering.net>
77324
77325         * modules/strftime (Maintainer): Add my name, since with the
77326         FPRINTFTIME changes strftime.c has forked from glibc.
77327
77328 2006-06-29  Eric Blake  <ebb9@byu.net>
77329
77330         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
77331
77332 2006-06-29  Eric Blake  <ebb9@byu.net>
77333
77334         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
77335
77336 2006-06-29  Eric Blake  <ebb9@byu.net>
77337
77338         * lib/stat_.h: New file.
77339
77340 2006-06-29  Eric Blake  <ebb9@byu.net>
77341
77342         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
77343         unused static function.
77344
77345 2006-06-29  Eric Blake  <ebb9@byu.net>
77346
77347         * doc/functions.texi (Function Portability): Document missing lstat
77348         on mingw.
77349
77350 2006-06-29  Eric Blake  <ebb9@byu.net>
77351
77352         * MODULES.html.sh: Add sys_stat.
77353         * modules/sys_stat: New module.
77354         * modules/mkstemp (Depends-on): Add sys_stat.
77355
77356 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77357
77358         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
77359
77360 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77361
77362         * m4/c-bs-a.m4: Removed.
77363
77364 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77365
77366         * lib/strftime.c: Assume strftime() exists.
77367
77368 2006-06-29  Derek Price  <derek@ximbiot.com>
77369
77370         * modules/c-bs-a: Removed - \a is C89.
77371         * MODULES.html.sh: Remove c-bs-a.
77372
77373 2006-06-29  Bruno Haible  <bruno@clisp.org>
77374
77375         * modules/wcwidth (License): Change to LGPL.
77376
77377 2006-06-28  Simon Josefsson  <jas@extundo.com>
77378
77379         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
77380         on _WIN32.
77381
77382         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
77383         getnameinfo.
77384
77385 2006-06-28  Simon Josefsson  <jas@extundo.com>
77386
77387         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
77388
77389 2006-06-28  Simon Josefsson  <jas@extundo.com>
77390
77391         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
77392         functions there.  It will succeed on Windows XP, but on Windows
77393         2000 and (presumably) earlier, it will fail, and use the internal
77394         re-implementation.
77395         (use_win32_p): New function.
77396         (getaddrinfo): Use strtoul on servname, to support numeric ports.
77397         Support AI_NUMERICSERV to disable getservbyname.
77398         (getnameinfo): New function, only supports
77399         NI_NUMERICHOST|NI_NUMERICSERV for now.
77400
77401         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
77402         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
77403         getnameinfo.
77404
77405 2006-06-28  Eric Blake  <ebb9@byu.net>
77406
77407         * modules/wcwidth: New file.
77408         * modules/mbchar (Depends-on): Add wcwidth.
77409         * modules/mbswidth (Depends-on): Add wcwidth.
77410         * MODULES.html.sh: Add wcwidth.
77411
77412 2006-06-28  Eric Blake  <ebb9@byu.net>
77413
77414         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
77415         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
77416
77417 2006-06-28  Eric Blake  <ebb9@byu.net>
77418
77419         * lib/xvasprintf.h: Fix comments.
77420
77421 2006-06-28  Eric Blake  <ebb9@byu.net>
77422
77423         * lib/mbchar.h (wcwidth): Include wcwidth.h.
77424         * lib/mbswidth.c (wcwidth): Move from here...
77425         * lib/wcwidth.h: ...to this new file.
77426
77427 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77428
77429         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
77430
77431         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
77432         it's obsolete.
77433         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
77434
77435 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77436
77437         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
77438         Autoconf 2.60 says this stuff was obsolete.
77439
77440 2006-06-28  Bruno Haible  <bruno@clisp.org>
77441
77442         * modules/wcwidth (Files): Add m4/wchar_t.m4.
77443
77444 2006-06-28  Bruno Haible  <bruno@clisp.org>
77445
77446         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
77447         gt_TYPE_WCHAR_T.
77448
77449 2006-06-28  Bruno Haible  <bruno@clisp.org>
77450
77451         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
77452         declaration for wcwidth.
77453         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
77454
77455 2006-06-28  Bruno Haible  <bruno@clisp.org>
77456
77457         * lib/mkdtemp.c [MINGW]: Include <io.h>.
77458         (mkdir): Define using _mkdir.
77459
77460 2006-06-28  Bruno Haible  <bruno@clisp.org>
77461
77462         * lib/getaddrinfo.h: Fix POSIX URL.
77463         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
77464         _WIN32.
77465         (use_win32_p): Make static.
77466         (getaddrinfo): Reject service name if it is empty or does not consist
77467         solely of decimal digits, or if its value is > 65535.
77468         (getnameinfo): Remove useless casts.
77469
77470 2006-06-27  Simon Josefsson  <jas@extundo.com>
77471
77472         * modules/sys_select: New file, suggested by Bruno Haible, Paul
77473         Eggert and Martin Lambers.
77474
77475 2006-06-27  Simon Josefsson  <jas@extundo.com>
77476
77477         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
77478         Eggert and Martin Lambers.
77479
77480 2006-06-27  Bruno Haible  <bruno@clisp.org>
77481
77482         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
77483         result to 0, not to empty.
77484         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
77485
77486 2006-06-27  Bruno Haible  <bruno@clisp.org>
77487
77488         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
77489
77490 2006-06-26  Simon Josefsson  <jas@extundo.com>
77491
77492         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
77493         present.
77494
77495 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
77496
77497         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
77498         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
77499         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
77500
77501 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
77502
77503         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
77504
77505 2006-06-26  Bruno Haible  <bruno@clisp.org>
77506
77507         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
77508
77509 2006-06-26  Bruno Haible  <bruno@clisp.org>
77510
77511         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
77512
77513 2006-06-26  Bruno Haible  <bruno@clisp.org>
77514
77515         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
77516         SGI C compiler in pre-C99 mode.
77517         Suggested by Mark D. Baushke and Larry Jones.
77518
77519 2006-06-26  Bruno Haible  <bruno@clisp.org>
77520
77521         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
77522         WCHAR_MAX.
77523         Reported by Mark D. Baushke and Larry Jones.
77524
77525 2006-06-26  Bruno Haible  <bruno@clisp.org>
77526
77527         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
77528         in pre-C99 mode.
77529         Suggested by Mark D. Baushke and Larry Jones.
77530
77531 2006-06-23  Simon Josefsson  <jas@extundo.com>
77532             Bruno Haible  <bruno@clisp.org>
77533
77534         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
77535         Emit mostlyclean-local rule.
77536         (func_emit_tests_Makefile_am): Likewise.
77537         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
77538
77539 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
77540
77541         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
77542
77543 2006-06-23  Bruno Haible  <bruno@clisp.org>
77544
77545         * tests/test-stdint.c: Update to match ISO C 99 Technical
77546         Corrigendum 1.
77547
77548 2006-06-23  Bruno Haible  <bruno@clisp.org>
77549
77550         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
77551
77552 2006-06-23  Bruno Haible  <bruno@clisp.org>
77553
77554         * lib/stdint_.h: Treat IRIX like OpenBSD.
77555
77556 2006-06-23  Bruno Haible  <bruno@clisp.org>
77557
77558         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
77559         ISO C 99 Technical Corrigendum 1.
77560
77561 2006-06-22  Simon Josefsson  <jas@extundo.com>
77562
77563         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
77564         MinGW.
77565
77566 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77567
77568         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
77569         needed.  Some compiler complained about some of them.  Problem reported
77570         by Larry Jones in
77571         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
77572
77573 2006-06-21  Simon Josefsson  <jas@extundo.com>
77574
77575         * tests/test-getaddrinfo.c: New file.
77576
77577         * modules/getaddrinfo-tests: New file.
77578
77579         * MODULES.html.sh: Add inet_pton.
77580
77581         * modules/inet_pton: New file.
77582
77583 2006-06-21  Simon Josefsson  <jas@extundo.com>
77584
77585         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
77586         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
77587         of using the (limited) gnulib implementation on Windows XP.
77588
77589         * m4/inet_pton.m4: New file.
77590
77591 2006-06-21  Simon Josefsson  <jas@extundo.com>
77592
77593         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
77594         variable.
77595
77596         * lib/socket_.h: Don't define WINVER.
77597
77598         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
77599         slightly modified to work in gnulib.
77600
77601 2006-06-21  Simon Josefsson  <jas@extundo.com>
77602
77603         * doc/gnulib.texi (Windows sockets): Add.
77604
77605 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
77606
77607         * lib/read-file.c (fread_file): Start with buffer allocation of
77608         0 bytes rather than 1 byte; this simplifies the code.
77609         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
77610         code to free buffer and save/restore errno.
77611         (internal_read_file): Remove unused local.
77612
77613 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
77614
77615         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
77616         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
77617         Problem reported by Denis Excoffier in
77618         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
77619
77620 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77621
77622         * modules/sys_socket, modules/socklen: Include sys/types since
77623         FreeBSD 4.x's sys/socket.h needs it.
77624
77625 2006-06-19  Simon Josefsson  <jas@extundo.com>
77626
77627         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
77628
77629 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
77630
77631         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
77632
77633 2006-06-19  Bruno Haible  <bruno@clisp.org>
77634
77635         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
77636         and FULL_PATH_INTTYPES_H in angle brackets.
77637         Reported by Mark D. Baushke <mdb@gnu.org>.
77638
77639 2006-06-17  Eric Blake  <ebb9@byu.net>
77640
77641         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
77642         errno.
77643
77644 2006-06-17  Bruno Haible  <bruno@clisp.org>
77645
77646         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
77647         <sys/inttypes.h>.
77648
77649 2006-06-17  Bruno Haible  <bruno@clisp.org>
77650
77651         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
77652         whether errno is declared. Assume <errno.h> declares errno.
77653
77654 2006-06-17  Bruno Haible  <bruno@clisp.org>
77655
77656         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
77657
77658 2006-06-17  Bruno Haible  <bruno@clisp.org>
77659
77660         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
77661         problem on Solaris 2.5.1.
77662
77663 2006-06-16  Eric Blake  <ebb9@byu.net>
77664
77665         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
77666         * lib/unicodeio.c [!defined errno]: Likewise.
77667         * lib/strtol.c [!defined errno]: Likewise.
77668         * lib/strtod.c [!defined errno]: Likewise.
77669
77670 2006-06-15  Eric Blake  <ebb9@byu.net>
77671
77672         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
77673
77674 2006-06-15  Eric Blake  <ebb9@byu.net>
77675
77676         * config/srclist.txt (ssize_t.m4): Lose sync.
77677
77678 2006-06-15  Bruno Haible  <bruno@clisp.org>
77679
77680         * modules/stdint (Files): Include m4/full-header-path.m4,
77681         m4/size_max.m4, m4/wchar_t.m4.
77682         (Makefile.am): Many more substitutions.
77683         * modules/stdint-tests: New file.
77684         * tests/test-stdint.c: New file.
77685
77686 2006-06-15  Bruno Haible  <bruno@clisp.org>
77687
77688         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
77689         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
77690         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
77691         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
77692         gl_CHECK_TYPE_SAME): New macros.
77693
77694 2006-06-15  Bruno Haible  <bruno@clisp.org>
77695
77696         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
77697
77698 2006-06-15  Bruno Haible  <bruno@clisp.org>
77699
77700         * lib/stdint_.h: Rewritten to be fully auto-configured.
77701         Fixes bug on HP-UX/IA64.
77702
77703 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
77704
77705         * lib/getdate.y (__attribute__): Don't define if already defined.
77706         Problem reported by Larry Jones.
77707         * lib/utimens.c (__attribute__): Likewise.
77708
77709 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
77710
77711         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
77712         reported by Andreas Schwab.
77713
77714 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77715             Bruno Haible  <bruno@clisp.org>
77716
77717         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
77718         check for the declaration of strnlen and a run test that exposes the
77719         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
77720         rpl_strndup.
77721
77722 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77723             Bruno Haible  <bruno@clisp.org>
77724
77725         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
77726
77727 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77728
77729         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
77730         compile test, for Tru64 4.0D.
77731
77732 2006-05-28  Karl Berry  <karl@gnu.org>
77733
77734         * config/srclist.txt (printf-args.c): lose sync.
77735
77736 2006-05-26  Martin Lambers  <marlam@marlam.de>
77737
77738         * lib/getpass.c: Updates the test for the native W32 API, and adds
77739         missing includes, thus fixing compilation warnings.
77740
77741 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77742
77743         * lib/exclude.c (exclude_fnmatch): New function.
77744         (excluded_file_name): Call exclude_fnmatch.
77745         * lib/exclude.h (excluded_file_name): New prototype
77746
77747 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
77748
77749         * lib/tempname.c (small_open, large_open): New macros.
77750         (__open, __open64) [!_LIBC]: Remove.
77751         (__gen_tempname): Use small_open and large_open instead of __open
77752         and __open64.  This fixes a portability bug on HP-UX 11.11i
77753         reported by Simon Wing-Tang in
77754         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
77755
77756 2006-05-24  Bruno Haible  <bruno@clisp.org>
77757
77758         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
77759         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
77760         Reported by Thorsten Maerz <torte@netztorte.de> via
77761         Aaron Stone <aaron@serendipity.cx>.
77762
77763 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77764
77765         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
77766         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
77767         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
77768         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
77769         not really conditional on the cache.
77770         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
77771
77772 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77773
77774         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
77775         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
77776         (my_usleep): Don't mishandle maximum value.
77777
77778 2006-05-19  Jim Meyering  <jim@meyering.net>
77779
77780         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
77781
77782 2006-05-17  Bruno Haible  <bruno@clisp.org>
77783
77784         Cygwin portability.
77785         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
77786
77787 2006-05-17  Bruno Haible  <bruno@clisp.org>
77788
77789         * lib/stdint_.h: Fix recognition of Cygwin.
77790
77791 2006-05-15  Bruno Haible  <bruno@clisp.org>
77792
77793         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
77794         on libtool patch by Ralf Wildenhues.
77795
77796 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77797
77798         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
77799         test for C99 conformance; (bool) 0.5 is an integer constant
77800         expression, but (bool) -0.5 is not.  Problem reported by Fedor
77801         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
77802
77803 2006-05-11  Simon Josefsson  <jas@extundo.com>
77804
77805         * m4/xvasprintf.m4: Fix obvious typo.
77806
77807 2006-05-11  Jim Meyering  <jim@meyering.net>
77808
77809         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
77810         James Lemley.
77811
77812 2006-05-10  Simon Josefsson  <jas@extundo.com>
77813
77814         * lib/md4.c: Typo fix, update copyright years.
77815         (K1, K2): Don't use L because it turn computations into 64-bit on
77816         64-bit platforms.
77817
77818 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
77819
77820         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
77821         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
77822         unwanted sign propagation, e.g., on hosts with 64-bit int.
77823         There still are some problems with reeelly weird theoretical hosts
77824         (e.g., 33-bit int) but it's not worth worrying about now.
77825         * lib/sha1.c (rol): Likewise.
77826         (K1, K2, K3, K4): Remove unnecessary L suffix.
77827
77828 2006-05-10  Bruno Haible  <bruno@clisp.org>
77829
77830         * lib/des.c: Cast to avoid warnings.
77831
77832 2006-05-09  Bruno Haible  <bruno@clisp.org>
77833
77834         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
77835         (Depends-on): Depend also on xsize, stdarg.
77836         (configure.ac): Add gl_XVASPRINTF.
77837
77838 2006-05-09  Bruno Haible  <bruno@clisp.org>
77839
77840         * m4/xvasprintf.m4: New file.
77841
77842 2006-05-09  Bruno Haible  <bruno@clisp.org>
77843
77844         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
77845         (EOVERFLOW): Define fallback value.
77846         (xstrcat): New function.
77847         (xvasprintf): Recognize the special case of a string concatenation.
77848
77849 2006-05-08  Eric Blake  <ebb9@byu.net>
77850
77851         * gnulib-tool (func_version): Base copyright year on CVS date.
77852         (func_emit_copyright_notice): New function.
77853         (func_emit_lib_Makefile_am): Use it.
77854         (func_emit_tests_Makefile_am): Likewise.
77855         (func_import): Likewise.
77856
77857 2006-05-08  Bruno Haible  <bruno@clisp.org>
77858
77859         * modules/stdarg: New file.
77860         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
77861
77862 2006-05-08  Bruno Haible  <bruno@clisp.org>
77863
77864         * m4/stdarg.m4: New file, from GNU gettext.
77865
77866 2006-05-08  Bruno Haible  <bruno@clisp.org>
77867
77868         * config/srclist.txt (build-aux/config.rpath): different from latest
77869         release.
77870
77871 2006-05-08  Bruno Haible  <bruno@clisp.org>
77872
77873         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
77874
77875 2006-05-05  Jim Meyering  <jim@meyering.net>
77876
77877         * m4/warning.m4: New file, derived from bison's file by the same name.
77878
77879 2006-05-03  Bruno Haible  <bruno@clisp.org>
77880
77881         * lib/stdint_.h: Shorter URL.
77882         * lib/inttypes.h: Likewise.
77883
77884 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77885
77886         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
77887
77888 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77889
77890         * lib/verify.h: Document the internals better.  Most of this change
77891         was written by Bruno Haible.
77892
77893 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77894
77895         * doc/verify.texi: New file, partly based on a proposal by
77896         Bruno Haible.
77897
77898 2006-05-02  Bruno Haible  <bruno@clisp.org>
77899
77900         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
77901         test from here...
77902         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
77903
77904 2006-04-29  Bruno Haible  <bruno@clisp.org>
77905
77906         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
77907         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
77908
77909 2006-04-29  Bruno Haible  <bruno@clisp.org>
77910
77911         * gnulib-tool: Make --update option actually work.
77912
77913 2006-04-29  Bruno Haible  <bruno@clisp.org>
77914
77915         * doc/gcd.texi: New file.
77916         * doc/gnulib.texi: Include it.
77917
77918 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
77919
77920         * lib/getdate.y (get_date): When adding relative date, start with the
77921         initial time, not with the result of the first mktime call.
77922
77923 2006-04-25  Bruno Haible  <bruno@clisp.org>
77924
77925         * gnulib-tool (func_import): Output the include directives in three
77926         blocks, sorted separately.
77927         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77928
77929 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77930
77931         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
77932         to define main with arguments, for C++.  Reported by Eric Blake.
77933         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
77934         Prefer 'int main ()' to 'int main (void)', for C++.
77935         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
77936         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
77937         for 'main', for C99 and C++.
77938
77939 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77940
77941         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
77942         Don't assume that exit status -1 is valid.
77943         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77944         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
77945         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
77946         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
77947         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
77948         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
77949         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
77950         functions can be used without declaring them, or that you can
77951         exit with status -1.
77952         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
77953
77954 2006-04-24  Karl Berry  <karl@gnu.org>
77955
77956         * config/srclist.txt (longdouble.m4): sync lost.
77957
77958 2006-04-24  Eric Blake  <ebb9@byu.net>
77959
77960         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
77961
77962 2006-04-24  Bruno Haible  <bruno@clisp.org>
77963
77964         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
77965         poll() implementation in AIX.
77966         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77967
77968 2006-04-24  Bruno Haible  <bruno@clisp.org>
77969
77970         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
77971         assigned exactly once.
77972
77973 2006-04-23  Claudio Fontana  <claudio@gnu.org>
77974             Bruno Haible  <bruno@clisp.org>
77975
77976         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
77977         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
77978         for AM_CPPFLAGS.
77979
77980 2006-04-23  Bruno Haible  <bruno@clisp.org>
77981
77982         * modules/copy-file: Depend on unistd.
77983         * modules/execute: Likewise.
77984         * modules/fatal-signal: Likewise.
77985         * modules/findprog: Likewise.
77986         * modules/mkdtemp : Likewise.
77987         * modules/pipe: Likewise.
77988         * modules/wait-process: Likewise.
77989
77990 2006-04-23  Bruno Haible  <bruno@clisp.org>
77991
77992         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
77993         condition was already detected.
77994         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77995
77996 2006-04-23  Bruno Haible  <bruno@clisp.org>
77997
77998         * lib/copy-file.c: Include <unistd.h> unconditionally.
77999         * lib/execute.c: Likewise.
78000         * lib/fatal-signal.c: Likewise.
78001         * lib/findprog.c: Likewise.
78002         * lib/mkdtemp.c: Likewise.
78003         * lib/pipe.h: Likewise.
78004         * lib/pipe.c: Likewise.
78005         * lib/wait-process.h: Likewise.
78006
78007 2006-04-23  Bruno Haible  <bruno@clisp.org>
78008
78009         * gnulib-tool (func_usage): Fix --import description. Document
78010         --update.
78011         (func_import): Create temporary file in a temporary directory, if
78012         --dry-run is specified. Silence errors from 'grep' when there are no
78013         m4 files in $m4dir.
78014         (func_create_testdir): Silence errors from 'grep' when there are no
78015         m4 files in $m4dir.
78016         Reported by Karl Berry <karl@freefriends.org>.
78017
78018 2006-04-20  Bruno Haible  <bruno@clisp.org>
78019
78020         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
78021         one argument, so that the code will be portable to Autoconf 2.60.
78022         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
78023         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
78024         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
78025
78026 2006-04-19  Derek Price  <derek@ximbiot.com>
78027             Eric Blake  <ebb9@byu.net>
78028
78029         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
78030         rather than "/full/path.h".  Update comment to match.  Shorten &
78031         generalize m4_translit call via AS_TR_CPP.
78032
78033 2006-04-19  Derek Price  <derek@ximbiot.com>
78034             Eric Blake  <ebb9@byu.net>
78035
78036         * lib/inttypes.h: Correct grammar in comment.
78037
78038 2006-04-18  Derek Price  <derek@ximbiot.com>
78039             Paul Eggert  <eggert@cs.ucla.edu>
78040
78041         * modules/inttypes: New file.
78042         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
78043
78044 2006-04-18  Derek Price  <derek@ximbiot.com>
78045             Paul Eggert  <eggert@cs.ucla.edu>
78046
78047         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
78048         New files.
78049
78050 2006-04-18  Derek Price  <derek@ximbiot.com>
78051             Paul Eggert  <eggert@cs.ucla.edu>
78052
78053         * lib/inttypes.h: New file.
78054         * lib/strtoimax.c: Assume <inttypes.h>.
78055
78056 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
78057
78058         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
78059         isn't mounted.  Problem reported by Kir Kolyshkin.
78060
78061 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
78062
78063         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
78064         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
78065         Derek R. Price.
78066         * lib/regex.h (RE_DUP_MAX): Update comment to match current
78067         implementation.
78068
78069 2006-04-12  Eric Blake  <ebb9@byu.net>
78070
78071         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
78072         is now done automatically by the corresponding Autoconf macro.
78073
78074 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
78075
78076         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
78077         time_r.h.
78078
78079 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78080
78081         Merge regex changes from libc, removing some of our
78082         POSIX-conformance changes that were rejected and redoing them in a
78083         less-intrusive way.
78084
78085         * lib/regcomp.c (re_compile_internal, init_dfa):
78086         Length arg is now size_t, not Idx.  All uses changed.
78087         (peek_token): Forward decl now says internal_function.
78088         (__re_error_msgid, __re_error_msgid_idx):
78089         Now static rather than extern with attribute_hidden.
78090         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
78091         For some reason libc prefers K&R style defns for external functions.
78092         (regerror) [!defined _LIBC]: Likewise.
78093         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
78094         (seek_collating_symbol_entry, lookup_collation_sequence_value):
78095         (build_range_exp, build_collating_symbol):
78096         Use K&R-style defn.
78097         (re_compile_fastmap): Use '\0' to memset, not 0.
78098         (utf8_sb_map): Make the calculations more obvious.
78099         (init_dfa, parse_bracket_exp, build_charclass_op):
78100         Call calloc and cast result, as glibc does.
78101         (init_word_char, fetch_token, peek_token, peek_token_bracket):
78102         (build_range_exp, build_collating_symbol):
78103         Now internal functions.
78104
78105         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
78106
78107         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
78108         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
78109         Don't depend on VMS; depend on __VMS instead, for POSIX
78110         namespace cleanness.
78111         (regoff_t): Define to ssize_t, not long int.
78112
78113         Remove the REG_ macros named below.  Instead, make the old names
78114         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
78115         __USE_GNU_REGEX.
78116         (REG_BACKSLASH_ESCAPE_IN_LISTS):
78117         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
78118         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
78119         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
78120         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
78121         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
78122         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
78123         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
78124         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
78125         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
78126         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
78127         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
78128         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
78129         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
78130         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
78131         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
78132         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
78133         (REG_NREGS):
78134         Remove.  All uses replaced by the old RE_* names.
78135         (RE_BACKSLASH_ESCAPE_IN_LISTS):
78136         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
78137         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
78138         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
78139         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
78140         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
78141         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
78142         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
78143         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
78144         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
78145         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
78146         Don't bother having these macros be independent of each others'
78147         values, since they no longer exist in the POSIX name space.
78148
78149         Rename the following member names back to their old names,
78150         unless !__USE_GNU_REGEX.  All uses changed back.
78151         (buffer): Renamed from re_buffer.
78152         (allocated): Renamed from re_allocated.
78153         (used): Renamed from re_used.
78154         (syntax): Renamed from re_syntax.
78155         (fastmap): Renamed from re_fastmap.
78156         (translate): Renamed from re_translate.
78157         (can_be_null): Renamed from re_can_be_null.
78158         (regs_allocated): Renamed from re_regs_allocated.
78159         (fastmap_accurate): Renamed from re_fastmap_accurate.
78160         (no_sub): Renamed from re_no_sub.
78161         (not_bol): Renamed from re_not_bol.
78162         (not_eol): Renamed from re_not_eol.
78163         (newline_anchor): Renamed from re_newline_anchor.
78164         (num_regs): Renamed from rm_num_regs.
78165         (start): Renamed from rm_start.
78166         (end): Renamed from rm_end.
78167
78168         (free_state): Move up a bit.
78169
78170         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
78171         #define to be empty.
78172         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
78173         when that is what is intended.
78174         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
78175         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
78176         (MAX): New macro.
78177         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
78178         All uses changed back to re_malloc, etc.  It's now the caller's
78179         responsibility to check for overflow; all callers changed.
78180         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
78181         (re_x2nrealloc): Remove.
78182         (free_state): Remove decl.
78183
78184         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
78185         (re_set_registers, re_exec):
78186         Use K&R-style defn.
78187
78188         2006-01-31  Roland McGrath  <roland@redhat.com>
78189
78190         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
78191         Reported by Mike Frysinger <vapier@gentoo.org>.
78192
78193         2006-01-15  Andreas Jaeger  <aj@suse.de>
78194
78195         [BZ #1950]
78196         * lib/regex_internal.c (re_string_reconstruct): Adjust for
78197         build_wcs_upper_buffer change.
78198         (build_wcs_upper_buffer): Change return type.
78199
78200         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
78201
78202         * lib/regex_internal.h: Include <stdint.h> if available.
78203
78204         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
78205
78206         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
78207
78208         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
78209
78210         * lib/regcomp.c: Adjust for changed secondary hash function.
78211
78212         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
78213
78214         * lib/regex.h: Pretty printing.
78215         Clean up namespace a bit.
78216
78217         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
78218
78219         * lib/regexec.c (update_cur_sifted_state, check_arrival,
78220         check_arrival_add_next_nodes): Avoid using uninitialized variable.
78221
78222         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
78223                     Ulrich Drepper  <drepper@redhat.com>
78224
78225         [BZ #1302]
78226         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
78227         changed.
78228         (bitset_word_t): Renamed from bitset_word.  All uses changed.
78229
78230         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
78231
78232         [BZ #281]
78233         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
78234         * lib/regcomp.c: Remove unnecessary uses of
78235         unsigned RE_TRANSLATE_TYPE.
78236         * lib/regex_internal.h: Likewise.
78237         * lib/regex_internal.c: Likewise.
78238         * lib/regexec.c: Likewise.
78239         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
78240
78241         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
78242
78243         * lib/regexec.c (find_recover_state): Remove unnecessary
78244         initialization.
78245         (transit_state_bkref): Make DFA a const pointer.
78246         (get_subexp): Likewise.
78247         (check_arrival): Likewise.
78248         (update_cur_sifted_state): Likewise.
78249         (re_search_internal): Likewise.
78250         (prune_impossible_nodes): Likewise.
78251         (acquire_init_state_context): Likewise.
78252         (proceed_next_node): Likewise.
78253         (set_regs): Likewise.
78254         (free_fail_stack_return): Likewise.
78255         (check_arrival_expand_ecl): Mark DFA parameter as const.
78256         (check_arrival_expand_ecl_sub): Likewise.
78257         (check_subexp_limits): Likewise.
78258         (sub_epsilon_src_nodes):  Likewise.
78259         (add_epsilon_src_nodes):  Likewise.
78260         (merge_state_array): Likewise.
78261         (update_regs): Likewise.
78262         (build_trtable): Likewise.
78263         (sift_states_backward): Mark MCTX parameter as const.
78264         (build_sifted_states): Likewise.
78265         (update_cur_sifted_state): Likewise.
78266         (sift_states_mkref): Likewise.
78267         (check_arrival_expand_ecl): Mark eclosure as const.
78268         (check_dst_limits_calc_pos_1): Likewise.
78269         * lib/regex_internal.h (re_match_context_t): Make dfa a const
78270         pointer.
78271
78272         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
78273
78274         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
78275         (transit_state_sb): Likewise.
78276         (transit_state_mb): Likewise.
78277         (sift_states_iter_mb): Likewise.
78278         (check_arrival_add_next_nodes): Likewise.
78279         (check_node_accept_bytes): Change first parameter to pointer-to-const.
78280         [_LIBC] (re_search_2_stub): Use mempcpy.
78281
78282         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
78283         mbrtowc for very simple UTF-8 case.
78284
78285         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
78286         a pointer-to-const.
78287         (re_acquire_state_context): Likewise.
78288         * lib/regex_internal.h: Adjust prototypes.
78289
78290         * lib/regex.c: Prevent using C++ compilers.
78291
78292         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
78293         (re_acquire_state_context): Likewise.
78294
78295 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78296
78297         * modules/regex (Depends-on): Add ssize_t.
78298
78299 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78300
78301         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
78302         translation table.
78303
78304 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78305
78306         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
78307
78308 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
78309             Bruno Haible  <bruno@clisp.org>
78310
78311         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
78312         <sys/types.h> and <inttypes.h>.
78313
78314 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78315
78316         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
78317         `__error_t_defined', so argp.h will not typedef the former.
78318
78319 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
78320
78321         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
78322         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
78323         glibc names.  Even if glibc is changed to conform to POSIX, the
78324         traditional names will be available anyway, since regex depends on
78325         the extensions module.  Also, fix a longstanding typo in the
78326         implementation of Spencer ERE test #75 from grep 2.3.  Problems
78327         reported by Emanuele Giaquinta.  Also, change sense of cached
78328         variable, so that the message makes sense.
78329
78330 2006-03-24  Simon Josefsson  <jas@extundo.com>
78331
78332         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
78333         including some doc fixes.
78334         (base64_encode_alloc): Fix +1 bug on allocation failures.
78335
78336 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78337
78338         * lib/base64.c (base64_encode): Do not read past end of array with
78339         unsanitized input on systems with CHAR_BIT > 8.
78340
78341 2006-03-24  Eric Blake  <ebb9@byu.net>
78342
78343         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
78344
78345 2006-03-22  Karl Berry  <karl@gnu.org>
78346
78347         * config/srclist.txt (*setenv.[ch]): get from coreutils.
78348         * config/srclistvars.sh (COREUTILS): new var.
78349
78350 2006-03-17  Jim Meyering  <jim@meyering.net>
78351
78352         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
78353         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
78354
78355 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78356
78357         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
78358         no longer needs it.  Instead, check that regoff_t is as least
78359         as wide as ptrdiff_t.
78360
78361         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
78362         so that our regex.h stays compatible with the installed regex.
78363         This is helpful for installers who configure --without-included-regex.
78364         Problem reported by Emanuele Giaquinta.
78365
78366 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78367
78368         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
78369         Typedef to long int, not to off_, as POSIX will likely change
78370         in that direction.
78371
78372 2006-03-15  Eric Blake  <ebb9@byu.net>
78373
78374         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
78375
78376 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78377
78378         * lib/argp-help.c (validate_uparams): Fix typo
78379         * lib/argp-parse.c (argp_default_options): Consistently begin help
78380         messages with a lowercase letter.
78381
78382 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
78383
78384         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
78385         overrun buffers and shouldn't be used (much as gets shouldn't be
78386         used).
78387         * lib/time_r.c (asctime_r, ctime_r): Likewise.
78388
78389 2006-03-08  Simon Josefsson  <jas@extundo.com>
78390
78391         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
78392         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78393
78394 2006-03-08  Simon Josefsson  <jas@extundo.com>
78395
78396         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
78397         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78398
78399 2006-03-08  Simon Josefsson  <jas@extundo.com>
78400
78401         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
78402         signal that configure disabled the device.
78403
78404 2006-03-08  Simon Josefsson  <jas@extundo.com>
78405
78406         * build-aux/maint.mk: Fix refresh-po, to handle no translated
78407         languages.
78408
78409 2006-03-07  Simon Josefsson  <jas@extundo.com>
78410
78411         * modules/getopt (Depends-on): Add unistd.
78412
78413         * modules/unistd: New file.
78414
78415 2006-03-07  Simon Josefsson  <jas@extundo.com>
78416
78417         * modules/gc-random: New file.
78418
78419 2006-03-07  Simon Josefsson  <jas@extundo.com>
78420
78421         * m4/unistd_h.m4: New file.
78422
78423 2006-03-07  Simon Josefsson  <jas@extundo.com>
78424
78425         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
78426         test to be side-effect free by storing the result in the cache
78427         variable gl_cv_lib_readline, and moving the assignment of
78428         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
78429         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78430
78431 2006-03-07  Simon Josefsson  <jas@extundo.com>
78432
78433         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
78434         error on missing devices (the functions will return an error).
78435
78436         * m4/gc.m4: Move random stuff to gc-random.m4
78437
78438 2006-03-07  Simon Josefsson  <jas@extundo.com>
78439
78440         * lib/unistd_.h: New file.
78441
78442 2006-03-07  Simon Josefsson  <jas@extundo.com>
78443
78444         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
78445
78446 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78447
78448         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
78449         Problem reported by Juan Manuel Guerrero.
78450
78451 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78452
78453         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
78454         the unistd module.
78455         * lib/getlogin_r.c: Likewise.
78456         * lib/getlogin_r.h: Likewise.
78457         * lib/glob.c: Likewise.
78458         * lib/pagealign_alloc.c: Likewise.
78459         * lib/unistd_.h: Remove; no longer needed.
78460
78461 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78462
78463         * MODULES.html.sh (Support for systems lacking POSIX:2001):
78464         Add unistd.
78465         * modules/c-stack (Depends-on): Add unistd.
78466         * modules/getlogin_r: Likewise.
78467         * modules/glob: Likewise.
78468         * modules/pagealign_alloc: Likewise.
78469         * modules/unistd (Files): Remove lib/unistd_.h.
78470         (EXTRA_DIST): Remove.
78471         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
78472         need unistd_.h.
78473         (MOSTLYCLEANFILES): Remove unistd.h-t.
78474
78475 2006-03-03  Simon Josefsson  <jas@extundo.com>
78476
78477         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
78478
78479 2006-03-03  Simon Josefsson  <jas@extundo.com>
78480
78481         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
78482         libidn and bison.
78483
78484 2006-03-03  Simon Josefsson  <jas@extundo.com>
78485
78486         * build-aux/maint.mk: Add indent target.
78487
78488 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
78489
78490         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
78491         our replacement poll.h in any case, to avoid a differing
78492         declaration from a system header.  Seen on AIX.
78493
78494 2006-03-01  Simon Josefsson  <jas@extundo.com>
78495
78496         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
78497         <kasal@ucw.cz>.
78498
78499 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78500
78501         * modules/gettime (Depends-on): Add extensions module.
78502         * modules/nanosleep (Depends-on): Likewise.
78503         * modules/settime (Depends-on): Likewise.
78504
78505 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78506
78507         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
78508         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
78509         pedantically.
78510         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78511         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
78512
78513         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
78514         not "==".  Reported by Ralf Wildenhues.
78515
78516 2006-03-01  Karl Berry  <karl@gnu.org>
78517
78518         * doc/Copyright/request-*: new files, synced from gnuorg.
78519
78520 2006-03-01  Karl Berry  <karl@gnu.org>
78521
78522         * config/srclist.txt (Copyright/*): new entries.
78523
78524 2006-02-28  Simon Josefsson  <jas@extundo.com>
78525
78526         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
78527
78528 2006-02-27  Simon Josefsson  <jas@extundo.com>
78529
78530         * lib/base64.h: Indent #define's.  From Jim Meyering
78531         <jim@meyering.net>.
78532
78533 2006-02-27  Jim Meyering  <jim@meyering.net>
78534
78535         Revert the change of 2006-02-24, so these files can continue
78536         to be sync'd from gettext.
78537         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
78538         of `config.h'.
78539
78540 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78541
78542         * modules/intprops: New file.
78543         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
78544         Add intprops.
78545         * modules/getloadavg (Files): Remove lib/intprops.h.
78546         (Depends-on): Add intprops.
78547         * modules/human: Likewise.
78548         * modules/inttostr: Likewise.
78549         * modules/openat: Likewise.
78550         * modules/sig2str: Likewise.
78551         * modules/userspec: Likewise.
78552         * modules/utimecmp: Likewise.
78553         * modules/xnanosleep: Likewise.
78554         * modules/xstrtol: Likewise.
78555
78556 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
78557
78558         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
78559         * modules/lock-tests (TESTS): Use $(EXEEXT).
78560         * modules/tls-tests: Likewise.
78561         * modules/argp-tests: Likewise.
78562         (check_PROGRAMS): New var, replacing...
78563         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
78564
78565 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78566
78567         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
78568         `config.h'.
78569
78570 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
78571
78572         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
78573
78574 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78575
78576         Sync from coreutils.
78577         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
78578         gl_CHDIR_SAFER.
78579
78580 2006-02-22  Jim Meyering  <jim@meyering.net>
78581
78582         Sync from coreutils.
78583         * m4/chdir-safer.m4: New file.
78584
78585 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
78586
78587         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
78588         AT_FDCWD exceeds INT_MAX.
78589         * lib/openat.h (AT_FDCWD): Likewise.
78590
78591 2006-02-17  Eric Blake  <address@hidden>
78592
78593         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
78594
78595 2006-02-16  Simon Josefsson  <jas@extundo.com>
78596
78597         * modules/getaddrinfo (Depends-on): Add sys_socket.
78598
78599 2006-02-15  Simon Josefsson  <jas@extundo.com>
78600
78601         * build-aux/maint.mk: Add dsyntax-check rule.
78602
78603 2006-02-15  Eric Blake  <ebb9@byu.net>
78604
78605         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
78606         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
78607         'present but cannot compile' warnings on cygwin.
78608         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
78609         use ws2tcpip.h if sys/socket.h works.
78610         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
78611         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
78612
78613 2006-02-14  Simon Josefsson  <jas@extundo.com>
78614
78615         * modules/maintainer-makefile (Files): Rename.
78616
78617         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
78618         and (the local) Makefile.cfg to maint-cfg.mk.
78619
78620         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
78621         to the latter.
78622
78623         * modules/maintainer-makefile: New module.
78624
78625         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
78626         severaly stripped to make it possible to build it up from scratch
78627         with reliable tests.
78628
78629         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
78630         fixes to permit overriding the default actions when configure and
78631         makefile are not available.
78632
78633 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
78634
78635         Sync from coreutils.
78636         * modules/lstat (Depends-on): Don't depend on xalloc.
78637         (License): Change from GPL to LGPL, since this is now simply a
78638         replacement for a libc function.
78639
78640 2006-02-14  Jim Meyering  <jim@meyering.net>
78641
78642         Sync from coreutils.
78643
78644         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
78645         failure on deficient systems, and simplify gnulib lgpl dependencies.
78646         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
78647         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
78648
78649         * lib/xalloc-die.c: Remove unused definition of N_.
78650
78651 2006-02-14  Jim Meyering  <jim@meyering.net>
78652
78653         Sync from coreutils.
78654         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
78655         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
78656         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
78657         double-quote uses of that variable, to accommodate the rare case in
78658         which getmntent is available in none of the libraries checked.  This
78659         happens at least on FreeBSD 5.0.
78660
78661 2006-02-13  Simon Josefsson  <jas@extundo.com>
78662
78663         * gnulib-tool (Usage): Fix --import, from
78664         karl@freefriends.org (Karl Berry).
78665
78666 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78667
78668         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
78669
78670 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
78671
78672         * lib/argp-namefrob.h: Restore changes accidentally lost during the
78673         "autoupdate" on 2005-12-12.
78674
78675 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78676
78677         * modules/closeout (Depends-on): Remove atexit.
78678
78679 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78680
78681         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
78682         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
78683
78684 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
78685
78686         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
78687         __EXTENSIONS__ if this causes compilation to fail.  Problem
78688         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
78689         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
78690
78691 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
78692
78693         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
78694         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
78695         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
78696         All uses changed.
78697
78698 2006-01-26  Simon Josefsson  <jas@extundo.com>
78699
78700         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
78701         prototype is visible on mingw32.
78702
78703         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
78704         for mingw32.
78705
78706         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
78707         mingw32).
78708
78709 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
78710
78711         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
78712         attempt to open for write; this always fails, at least on POSIX
78713         hosts.  This reinstates the 2006-01-09 change, which was
78714         inadvertently removed.
78715
78716 2006-01-26  Bruno Haible  <bruno@clisp.org>
78717
78718         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
78719         Reported by Paul Eggert.
78720
78721 2006-01-26  Bruno Haible  <bruno@clisp.org>
78722             Paul Eggert  <eggert@cs.ucla.edu>
78723
78724         * lib/stdbool_.h (_Bool)
78725         [(! (defined __cplusplus || defined __BEOS__)
78726           && !defined __GNUC__
78727           && !(defined __HP_cc || defined __xlc__
78728                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
78729                || defined __sgi))]:
78730         #define to signed char in these cases too; this simplifies
78731         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
78732         etc., separately) and makes it more conservative.
78733
78734 2006-01-25  Simon Josefsson  <jas@extundo.com>
78735
78736         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
78737         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
78738         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
78739
78740 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78741
78742         * lib/argp-namefrob.h: Bugfix. Remove stray #
78743
78744 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
78745
78746         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
78747         so that we test the test.
78748         Check for yet another HP-UX cc bug involving *bool |= bool.
78749
78750 2006-01-25  Karl Berry  <karl@gnu.org>
78751
78752         * config/srclist.txt (vasnprintf.c): sync lost.
78753
78754 2006-01-25  Jim Meyering  <jim@meyering.net>
78755
78756         Sync from the stable (b5) branch of coreutils:
78757
78758         * lib/fts.c (fts_children): Don't let close() clobber errno from
78759         failed fchdir().
78760
78761         * lib/fts.c (fts_stat): When following a symlink-to-directory,
78762         don't necessarily interpret stat-fails+lstat-succeeds as indicating
78763         a dangling symlink.  That can also happen at least for ELOOP.
78764         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
78765         FYI, this bug predates the inclusion of fts.c in coreutils.
78766
78767         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
78768         in their own block, so pre-c99 compilers don't object.
78769
78770         Avoid the double-free (first in fts_read, second in fts_close) that
78771         would occur when an `active' directory is made inaccessible (e.g.,
78772         via chmod a-x) during a traversal.
78773         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78774         before returning.  Reproduce this failure by
78775         mkdir -p a/b; cd a; chmod a-x . b
78776         Reported by Stavros Passas.
78777
78778 2006-01-25  Jim Meyering  <jim@meyering.net>
78779
78780         * lib/fileblocks.c: Remove more useless parentheses.
78781         * lib/readutmp.h: Likewise.
78782
78783 2006-01-25  Bruno Haible  <bruno@clisp.org>
78784
78785         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
78786         warnings.
78787         Reported by Paul Eggert.
78788
78789 2006-01-25  Bruno Haible  <bruno@clisp.org>
78790
78791         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
78792         rid of a trap command. For Solaris sh.
78793         Reported by Mark D. Baushke <mdb@gnu.org>.
78794
78795 2006-01-24  Simon Josefsson  <jas@extundo.com>
78796
78797         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
78798         Bruno.
78799
78800 2006-01-24  Karl Berry  <karl@gnu.org>
78801
78802         * config/srclist.txt (argp-namefrob.h): sync lost.
78803
78804 2006-01-24  Jim Meyering  <jim@meyering.net>
78805
78806         * modules/openat (Files): Add lib/intprops.h.
78807         From Mark D. Baushke.
78808
78809 2006-01-24  Jim Meyering  <jim@meyering.net>
78810
78811         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
78812         Reported by Mark D. Baushke.
78813
78814 2006-01-24  Jim Meyering  <jim@meyering.net>
78815
78816         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
78817
78818 2006-01-24  Bruno Haible  <bruno@clisp.org>
78819
78820         * modules/strnlen (Maintainer): Change from glibc to all.
78821
78822 2006-01-24  Bruno Haible  <bruno@clisp.org>
78823
78824         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
78825         Patch by Paul Eggert.
78826
78827 2006-01-24  Bruno Haible  <bruno@clisp.org>
78828
78829         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
78830         already has it.
78831         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
78832         2005-11-26.
78833
78834         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
78835         'signed char' to avoid problems with the built-in _Bool type.
78836         Reported by Paul Eggert on 2005-11-26.
78837
78838 2006-01-24  Bruno Haible  <bruno@clisp.org>
78839
78840         * gnulib-tool (func_import): Avoid constructing complicated sed
78841         expressions inside backquote.
78842         Report and solution by Mark D. Baushke <mdb@gnu.org>.
78843
78844 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
78845
78846         These changes imported from libc.
78847         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
78848         test and two separate function calls.
78849         * lib/strndup.c (__strndup): Add libc_hidden_def.
78850
78851 2006-01-23  Simon Josefsson  <jas@extundo.com>
78852
78853         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
78854         Remove the test_*_SOURCES variable: automake infers it by default.
78855         * modules/tls-tests: Likewise.
78856
78857 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78858
78859         Work around porting bugs reported by Dieter in
78860         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
78861         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
78862         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
78863         Include "getopt.h" first, to check interface.
78864         (getenv): Declare only if defined HAVE_DECL_GETENV &&
78865         !HAVE_DECL_GETENV.
78866         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
78867         (__strndup): Revert to K&R-style function dfns, the glibc style.
78868         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
78869         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
78870         Include strnlen.h first, to get prototype properly.
78871         (strnlen): Renamed from __strnlen.
78872         Remove weak alias.
78873
78874 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78875
78876         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
78877
78878 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78879
78880         * config/srclist.txt: Adjust to reflect glibc reorganization.
78881         This affects only comments.
78882
78883 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78884
78885          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
78886          Reported by Bruce Korb <bkorb@gnu.org>.
78887
78888 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
78889
78890         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
78891         to pacify gcc -Wswitch-default.
78892
78893 2006-01-22  Bruno Haible  <bruno@clisp.org>
78894
78895         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
78896         temporary buffer for sprintf, take into account the precision also
78897         for 'd', 'i', 'u', 'o', 'x', 'X'.
78898
78899 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78900
78901         * modules/argp-tests: New module
78902         * tests/test-argp.c: New file
78903         * tests/test-argp-2.sh: New file
78904
78905 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78906
78907         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
78908         (__argp_base_name): Removed
78909         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
78910         typo.
78911         (__argp_base_name): Provide macro definition or extern declaration
78912         depending on the configuration
78913
78914 2006-01-20  Simon Josefsson  <jas@extundo.com>
78915
78916         * modules/inet_ntop (Depends-on): Depend on sys_socket.
78917
78918 2006-01-20  Simon Josefsson  <jas@extundo.com>
78919
78920         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
78921
78922 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78923
78924         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
78925         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
78926         Suggested by Bruno Haible.
78927
78928 2006-01-20  Karl Berry  <karl@gnu.org>
78929
78930         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
78931         until changes propagate, I guess.
78932
78933 2006-01-19  Simon Josefsson  <jas@extundo.com>
78934
78935         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
78936
78937 2006-01-19  Simon Josefsson  <jas@extundo.com>
78938
78939         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
78940
78941 2006-01-19  Simon Josefsson  <jas@extundo.com>
78942
78943         * gnulib-tool: Set check_PROGRAMS.
78944
78945         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78946         modules/des-tests, modules/gc-arcfour-tests,
78947         modules/gc-arctwo-tests, modules/gc-des-tests,
78948         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78949         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78950         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78951         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78952         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78953         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
78954         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
78955         test_*_SOURCES.
78956
78957 2006-01-18  Simon Josefsson  <jas@extundo.com>
78958
78959         * modules/socklen (Depends-on): Depend on sys_socket.
78960
78961 2006-01-18  Simon Josefsson  <jas@extundo.com>
78962
78963         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78964         modules/des-tests, modules/gc-arcfour-tests,
78965         modules/gc-arctwo-tests, modules/gc-des-tests,
78966         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78967         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78968         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78969         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78970         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78971         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
78972         $(EXEEXT) to automake TESTS variable, for mingw32.
78973
78974 2006-01-17  Simon Josefsson  <jas@extundo.com>
78975
78976         * modules/socklen (Include): Need sys/socket.h.
78977
78978 2006-01-17  Bruno Haible  <bruno@clisp.org>
78979
78980         * modules/ssize_t (Include): Add <sys/types.h>.
78981
78982 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
78983
78984         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
78985         it's not portable and it doesn't work with cross-compiles.
78986         Problem reported by Bruno Haible.  Fix missing-$ typo in
78987         'test "gl_cv_ignore_unused_libraries" ...' that prevented
78988         -zignore from being used with Sun's C compiler.
78989
78990 2006-01-12  Simon Josefsson  <jas@extundo.com>
78991
78992         * lib/base64.c: Fix warning, reported by Bruno Haible
78993         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
78994
78995 2006-01-12  Bruno Haible  <bruno@clisp.org>
78996
78997         * modules/ldd: New file.
78998         * build-aux/ldd.sh.in: New file.
78999         * MODULES.html.sh (Support for building libraries and executables): Add
79000         ldd.
79001
79002 2006-01-12  Bruno Haible  <bruno@clisp.org>
79003
79004         * m4/ldd.m4: New file.
79005
79006 2006-01-12  Bruno Haible  <bruno@clisp.org>
79007
79008         * gnulib-tool (func_import, func_create_testdir): Don't go into an
79009         endless loop while replacing $auxdir with build-aux.
79010
79011 2006-01-11  Simon Josefsson  <jas@extundo.com>
79012
79013         * lib/stdint_.h (SIZE_MAX): Add missing (.
79014
79015 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
79016
79017         Sync from coreutils.
79018         * lib/md5.c: Fix commentary typos.
79019         (alignof, UNALIGNED_P): No need for a GCC-specific version.
79020         * lib/md5.h (__attribute__): Remove; unused.
79021         * lib/sha1.c: Fix commentary to match md5 better.
79022         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
79023         so that we don't need to worry about alignment.  All uses changed.
79024         This merges the 2005-10-28 md5 change into sha1.
79025
79026 2006-01-11  Jim Meyering  <jim@meyering.net>
79027
79028         Sync from coreutils.
79029         * lib/md5.c (OP): Fix spacing.
79030
79031 2006-01-11  Bruno Haible  <bruno@clisp.org>
79032
79033         Ensure automatic ordering between gl_LOCK and gl_ARGP.
79034         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
79035         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
79036
79037 2006-01-11  Bruno Haible  <bruno@clisp.org>
79038
79039         Ensure automatic ordering between gl_LOCK and gl_ARGP.
79040         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
79041         the "early" section as well.
79042
79043 2006-01-11  Bruno Haible  <bruno@clisp.org>
79044
79045         Avoid "ar: no archive members specified" error on MacOS X.
79046         * gnulib-tool (func_modules_add_dummy): New function.
79047         (func_import, func_create_testdir): Invoke it.
79048
79049 2006-01-11  Bruno Haible  <bruno@clisp.org>
79050
79051         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
79052         with $auxdir in AC_CONFIG_FILES statements.
79053
79054 2006-01-11  Bruno Haible  <bruno@clisp.org>
79055
79056         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79057         Initialize also noinst_HEADERS to empty.
79058
79059 2006-01-11  Bruno Haible  <bruno@clisp.org>
79060
79061         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
79062         variables.
79063         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
79064         autoreconf.
79065
79066 2006-01-11  Bruno Haible  <bruno@clisp.org>
79067
79068         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
79069         overridable by the user.
79070         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79071
79072 2006-01-10  Simon Josefsson  <jas@extundo.com>
79073
79074         * modules/sys_socket: New file.
79075
79076 2006-01-10  Simon Josefsson  <jas@extundo.com>
79077
79078         * m4/sys_socket_h.m4: New file.
79079
79080 2006-01-10  Simon Josefsson  <jas@extundo.com>
79081
79082         * lib/socket_.h: New file.
79083
79084 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79085
79086         * modules/readutmp (Maintainer): Add myself.
79087
79088 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79089
79090         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
79091         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
79092         People who are still concerned with buggy memcmp implementations
79093         can invoke gl_FUNC_MEMCMP themselves.
79094
79095 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79096
79097         * lib/regex_internal.h (BITSET_WORD_BITS):
79098         Work around a bug in 64-bit PGC (before version 6.1-2), where the
79099         preprocessor mishandles large unsigned values as if they were signed.
79100         Problem reported by Claudio Fontana in
79101         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
79102
79103 2006-01-10  Jim Meyering  <jim@meyering.net>
79104
79105         Avoid the double-free (first in fts_read, second in fts_close) that
79106         would occur when an `active' directory is made inaccessible (e.g.,
79107         via chmod a-x) during a traversal.
79108         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
79109         before returning.  Reproduce this failure by
79110         mkdir -p a/b; cd a; chmod a-x . b
79111         Reported by Stavros Passas.
79112
79113         Sync from coreutils.
79114         * lib/sha1.c: Tweak grammar in a comment.
79115
79116 2006-01-10  Jim Meyering  <jim@meyering.net>
79117
79118         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
79119         Patch by Joerg Sonnenberger.
79120
79121 2006-01-10  Bruno Haible  <bruno@clisp.org>
79122
79123         * modules/readutmp: Depend on module free.
79124         * modules/strtok_r: Depend on module restrict.
79125
79126 2006-01-10  Bruno Haible  <bruno@clisp.org>
79127
79128         * modules/gettext (configure.ac): Add an invocation of
79129         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
79130
79131 2006-01-10  Bruno Haible  <bruno@clisp.org>
79132
79133         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
79134         Reported by Werner Lemberg <wl@gnu.org>.
79135
79136 2006-01-10  Bruno Haible  <bruno@clisp.org>
79137
79138         * lib/localcharset.c: Update from GNU gettext.
79139
79140 2006-01-10  Bruno Haible  <bruno@clisp.org>
79141
79142         * lib/argp.h (__const): Remove macro. Use const instead.
79143         * lib/argp-fmtstream.h (__const): Likewise.
79144         * lib/glob_.h (__const): Remove macro.
79145         * lib/glob-libc.h: Use const instead of __const.
79146
79147 2006-01-10  Bruno Haible  <bruno@clisp.org>
79148
79149         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
79150         variable.
79151         Needed to avoid an automake error regarding the 'gettext' module.
79152
79153 2006-01-09  Simon Josefsson  <jas@extundo.com>
79154
79155         * modules/inet_ntop (Depends-on): Add restrict.
79156
79157 2006-01-09  Simon Josefsson  <jas@extundo.com>
79158
79159         * modules/gc-rijndael-tests (License): Put under LGPL.
79160
79161         * modules/gc-des-tests (License): Likewise.
79162
79163         * modules/gc-arcfour-tests (License): Likewise.
79164
79165         * modules/gc-arctwo-tests (License): Likewise.
79166
79167         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
79168
79169         * modules/gc-hmac-sha1-tests (Files): Likewise.
79170
79171         * modules/gc-hmac-md5-tests (License): Likewise.
79172
79173         * modules/gc-sha1-tests (License): Likewise.
79174
79175         * modules/gc-md5-tests (License): Likewise.
79176
79177         * modules/gc-md4-tests (License): Likewise.
79178
79179         * modules/gc-md2-tests (License): Likewise.
79180
79181         * modules/gc-tests (License): Likewise.
79182
79183         * modules/des-tests (License): Likewise.
79184
79185         * modules/md4-tests (License): Likewise.
79186
79187         * modules/md2-tests (License): Likewise.
79188
79189 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79190
79191         Sync from coreutils:
79192
79193         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
79194         * modules/lib-ignore: New file.
79195         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
79196         chdir-safer.m4, lchmod.m4.
79197         * modules/openat: Add mkdirat.c, openat-priv.h.
79198
79199 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79200
79201         Sync from coreutils.
79202         * m4/lib-ignore.m4: New file.
79203         * m4/lchmod.m4: New file.
79204
79205 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79206
79207         Sync from coreutils.
79208         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
79209         for write access: POSIX says that must fail.
79210         * lib/fts.c (diropen): Likewise.
79211         * lib/save-cwd.c (save_cwd): Likewise.
79212         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
79213         well, for minor improvements on hosts that lack O_DIRECTORY.
79214         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
79215         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
79216         Fall back on chown if open failed with EACCES.
79217
79218         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
79219         Report an error at compile-time if only a 1-second nominal clock
79220         resolution is found.
79221
79222         * lib/lchmod.h: New file.
79223         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
79224         (make_dir_parents): Use lchown rather than chown, and
79225         lchmod rather than chmod.
79226
79227         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
79228         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
79229         "proc" reported by n0dalus.
79230
79231         * lib/mountlist.c: Include <limits.h>.
79232         (dev_from_mount_options)
79233         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
79234         New function.  It no longer assumes "dev=" has the System V meaning
79235         on Linux (since it doesn't).  It also parses "dev=" more carefully.
79236         (read_file_system_list)
79237         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
79238         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
79239         dev= in that case.
79240
79241         * lib/posixtm.h (PDS_PRE_2000): New macro.
79242         * lib/posixtm.c (year): Arg is now syntax_bits rather than
79243         allow_century.  All usages changed.  Reject dates outside the range
79244         1969-1999 if PDS_PRE_2000 is used.
79245
79246 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79247
79248         Sync from coreutils.
79249         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
79250         (Time of day items): Mention the possibility of leap seconds.
79251         Problem reported by Dr. David Alan Gilbert.
79252
79253 2006-01-09  Jim Meyering  <jim@meyering.net>
79254
79255         Sync from coreutils.
79256
79257         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
79258
79259         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
79260
79261         * lib/modechange.c (mode_compile): Reject an invalid mode string
79262         that starts with an octal digit.  From Andreas Gruenbacher.
79263
79264         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
79265         and dup to open_safer and dup_safer, respectively.
79266         (openat_permissive): Fix typo in comment.
79267
79268         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
79269         "gettext.h"; either no longer needed or are guaranteed by openat.h.
79270         (_): Remove; no longer needed.
79271         (openat): Renamed from rpl_openat; no need for rpl_openat
79272         since openat.h renames openat for us.
79273         Replace most of the body with a call to openat_permissive,
79274         to avoid duplicate code.
79275         Port to (probably hypothetical) environments were mode_t is
79276         wider than int.
79277         (openat_permissive): Require mode arg, so that we can check
79278         types better.  Put it just after flags.  Change cwd failure
79279         indicator from pointer-to-bool to pointer-to-errno-value.
79280         All callers changed.
79281         Invoke openat_save_fail and/or openat_restore_fail if
79282         cwd_errno is null, so that openat can call us.
79283         (openat_permissive, fdopendir, fstatat, unlinkat):
79284         Simplify errno handling to avoid some duplicate code,
79285         as it's OK to set errno on success.
79286         * lib/openat.h: Revamp code so that function macros depend on
79287         __OPENAT_PREFIX only, not also on AT_FDCWD.
79288         (openat_ro): Remove.  Caller changed to use openat_permissive.
79289         (openat_permissive): Now a macro, if not a function.
79290         (openat_restore_fail, openat_save_fail): Now always functions,
79291         since mkdirat needs them even if __OPENAT_PREFIX is defined.
79292
79293         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
79294         and openat.c.
79295         * lib/mkdirat.c: Include openat-priv.h.
79296         Remove definitions of macros defined therein.
79297         * lib/openat.c: Likewise.
79298
79299         * lib/mkdirat.c (mkdirat): New file and function.
79300         * lib/openat.h (mkdirat): Declare.
79301
79302         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
79303
79304         * lib/openat.h (openat_permissive): Declare.
79305         (openat_ro): Define.
79306
79307         * lib/openat.c (EXPECTED_ERRNO): New macro.
79308         (openat_permissive): New function -- used in remove.c rewrite.
79309         (all functions): Set errno just before returning, only if there
79310         was an actual failure.
79311         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
79312
79313         Emulate openat-family functions using Linux's procfs, if possible.
79314         Idea and some code based on Ulrich Drepper's glibc changes.
79315
79316         * lib/openat.c: (BUILD_PROC_NAME): New macro.
79317         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
79318         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
79319         before falling back on save_cwd and restore_cwd.
79320         (fdopendir, fstatat, unlinkat): Likewise.
79321
79322         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
79323         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
79324
79325         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
79326         as second argument to va_arg.  Otherwise, some versions of gcc
79327         warn that `if this code is reached, the program will abort'.
79328
79329 2006-01-09  Jim Meyering  <jim@meyering.net>
79330
79331         Sync from coreutils.
79332         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
79333         Require openat-priv.h.
79334
79335 2006-01-09  Bruno Haible  <bruno@clisp.org>
79336
79337         * modules/strnlen (Include): Use strnlen.h.
79338
79339 2006-01-09  Bruno Haible  <bruno@clisp.org>
79340
79341         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
79342
79343 2006-01-09  Bruno Haible  <bruno@clisp.org>
79344
79345         * lib/sysexit_.h (EX_OK): New macro.
79346         Suggested by Martin Lambers <marlam@marlam.de>.
79347
79348 2006-01-09  Bruno Haible  <bruno@clisp.org>
79349
79350         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
79351         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
79352
79353 2006-01-09  Bruno Haible  <bruno@clisp.org>
79354
79355         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
79356         numbers.
79357
79358 2006-01-09  Bruno Haible  <bruno@clisp.org>
79359
79360         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
79361         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
79362         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
79363         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
79364
79365 2006-01-09  Bruno Haible  <bruno@clisp.org>
79366
79367         * build-aux/javacomp.sh.in: New file, moved from lib/.
79368         * modules/javacomp-script (Files): Update.
79369         (configure.ac): Add AC_CONFIG_FILES invocation.
79370         (EXTRA_DIST): Remove variable.
79371
79372         * build-aux/javaexec.sh.in: New file, moved from lib/.
79373         * modules/javaexec (Files): Update.
79374         (configure.ac): Add AC_CONFIG_FILES invocation.
79375         (EXTRA_DIST): Remove javaexec.sh.in.
79376
79377         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
79378         * modules/csharpcomp-script (Files): Update.
79379         (configure.ac): Add AC_CONFIG_FILES invocation.
79380         (EXTRA_DIST): Remove variable.
79381
79382         * build-aux/csharpexec.sh.in: New file, moved from lib/.
79383         * modules/csharpexec (Files): Update.
79384         (configure.ac): Add AC_CONFIG_FILES invocation.
79385         (EXTRA_DIST): Remove csharpexec.sh.in.
79386
79387 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79388
79389         Sync from coreutils.
79390
79391         Add POSIX ACL support
79392         * lib/acl.h (copy_acl, set_acl): Add declarations.
79393         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
79394         systems other than Linux.
79395         (chmod_or_fchmod): New function: use fchmod when possible,
79396         and chmod otherwise.
79397         (file_has_acl): Add a POSIX ACL implementation, with a
79398         Linux-specific subcase.
79399         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
79400         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
79401         acls are unsupported.
79402         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
79403         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
79404         are unsupported.
79405
79406 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79407
79408         Sync from coreutils.
79409         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
79410
79411 2006-01-07  Bruno Haible  <bruno@clisp.org>
79412
79413         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
79414         gl_EARLY.
79415
79416 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79417
79418         * lib/strftime.c (tzname): Don't declare if it is already #defined.
79419         Problem reported for Mingw by Mark Junker.
79420
79421 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79422
79423         * README: Gnulib normally doesn't generate a tarball.
79424
79425 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
79426
79427         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
79428         long int, not int, for nanosecond counts, so that people who are
79429         used to POSIX struct timespec won't be surprised.  Reported by Jim
79430         Meyering.
79431
79432 2005-12-28  Bruno Haible  <bruno@clisp.org>
79433
79434         * build-aux/config.rpath: Update from GNU gettext.
79435
79436 2005-12-16  Jim Meyering  <jim@meyering.net>
79437
79438         * modules/fprintftime: New module.
79439         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
79440
79441 2005-12-16  Jim Meyering  <jim@meyering.net>
79442
79443         * m4/fprintftime.m4: New file.
79444
79445 2005-12-16  Jim Meyering  <jim@meyering.net>
79446
79447         * lib/fprintftime.c, lib/fprintftime.h: New files.
79448
79449 2005-12-15  Simon Josefsson  <jas@extundo.com>
79450
79451         * modules/socklen (configure.ac): Fix M4 macro name, to align with
79452         new m4/socklen.m4.
79453
79454 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79455
79456         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
79457         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
79458
79459 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79460
79461         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
79462         * lib/argp-help.c (fill_in_uparams): Check if the constructed
79463         struct uparams is valid. Fall back to the default values if it is
79464         not.
79465
79466 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79467
79468         * modules/argp (Files): Add argp-pin.c
79469         (Depends-on): dirname
79470         (lib_SOURCES): Add argp-pin.c
79471
79472 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79473
79474         * m4/argp.m4:  Check if program_invocation_name and
79475         program_invocation_short_name are declared and define appropriate
79476         macros if they are not.
79477
79478 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79479
79480         * lib/argp-help.c (__argp_base_name): New function
79481         (__argp_short_program_name): Rewrite using __argp_base_name
79482         * lib/argp-namefrob.h: Define program_invocation_name and
79483         program_invocation_short_name if requested
79484         (__argp_base_name): Add prototype
79485         * lib/argp-parse.c (argp_def): Use gettext wrappers
79486         (argp_default_parser): Use __argp_base_name
79487         * lib/argp-pin.c: New file. Defines program_invocation_name and
79488         program_invocation_short_name on systems that lack them.
79489
79490 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79491
79492         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
79493         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79494         porting problem reported by Georg Schwarz in
79495         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79496
79497 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79498
79499         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
79500         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79501         porting problem reported by Georg Schwarz in
79502         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79503
79504 2005-12-05  Bruno Haible  <bruno@clisp.org>
79505
79506         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
79507         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
79508         Reported by Mark Junker <mjscod@gmx.de>.
79509
79510 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
79511
79512         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
79513         Use implementation from Albert Chin, with some
79514         comments/corrections by Stepan Kasal and myself.
79515
79516 2005-12-02  Bruno Haible  <bruno@clisp.org>
79517
79518         * gnulib-tool (func_import): Accept GPLed build tool modules when
79519         --lgpl is given.
79520         * modules/csharpcomp-script: New file.
79521         * modules/csharpcomp: Depend on it.
79522         * modules/javacomp-script: New file.
79523         * modules/javacomp: Depend on it.
79524         Suggested by Simon Josefsson.
79525
79526 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
79527
79528         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
79529         statement, to work around an HP-UX 10.20 compiler bug reported by
79530         Peter O'Gorman.
79531
79532 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79533
79534         * modules/savedir (Depends-on): Add openat.
79535
79536 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79537
79538         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
79539         (uintmax_t) [defined uintmax_t]: Do not declare.
79540         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
79541         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
79542         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
79543         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
79544         sake of portability to weird hosts that C allows (though we don't
79545         know of any practical examples).
79546
79547         * lib/savedir.h (fdsavedir): New decl.
79548         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
79549         contains most of the former guts of savedir.
79550         (savedir): Use savedirstream.
79551         Include "openat.h".
79552
79553 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79554
79555         * modules/obstack (Files): Add m4/ulonglong.m4.
79556         Problem reported by Davide Angelocola.
79557
79558 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
79559
79560         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
79561         coreutils no longer futzes with rounding modes.
79562
79563 2005-11-14  Jim Meyering  <jim@meyering.net>
79564
79565         * lib/mkstemp-safer.c: Include <config.h>, required for possible
79566         replacement of mkstemp.
79567
79568 2005-11-10  Simon Josefsson  <jas@extundo.com>
79569
79570         * lib/readline.c: Remove EOL.
79571
79572 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79573
79574         * modules/gethrxtime (Depends-on): Add gettime.
79575
79576 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79577
79578         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
79579         or gettimeofday; no longer needed.
79580
79581 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79582
79583         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
79584         time business.
79585         (gethrxtime) [! (HAVE_NANOUPTIME
79586         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
79587         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
79588         our own approximation.
79589
79590 2005-11-08  Eric Blake  <ebb9@byu.net>
79591
79592         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79593
79594 2005-11-08  Eric Blake  <ebb9@byu.net>
79595
79596         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79597
79598 2005-11-04  Bruno Haible  <bruno@clisp.org>
79599
79600         * gnulib-tool: Implement --update mode.
79601
79602 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79603
79604         Fix porting problem reported by Theodoros V. Kalamatianos.
79605         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
79606         Don't assume that futimes failing means we must fail.
79607
79608 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79609
79610         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
79611         variables to suggest the intended function of the PATH_MAX check.
79612
79613 2005-10-30  Kean Johnston  <jkj@sco.com>
79614
79615         Trivial changes to support SCO systems.
79616         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
79617         as PATH_MAX.
79618         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
79619         where __ptr is null when no I/O is pending.
79620
79621 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79622
79623         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
79624         leave errno alone.  Problem reported by Dmitry V. Levin.
79625
79626 2005-10-28  Simon Josefsson  <jas@extundo.com>
79627
79628         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
79629         Test more.
79630
79631         * tests/test-gc-md2.c, tests/test-md2.c: New files.
79632
79633         * modules/md2, modules/md2-tests: New files.
79634
79635 2005-10-28  Simon Josefsson  <jas@extundo.com>
79636
79637         * m4/inet_ntop.m4: More tests.
79638
79639         * m4/gc-md2.m4, md2.m4: New file.
79640
79641 2005-10-28  Simon Josefsson  <jas@extundo.com>
79642
79643         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
79644         "restrict" keywords, as per POSIX.  Protect the function
79645         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
79646         Don't use K&R prototypes.  Check the sprintf return values.
79647         Re-define EAFNOSUPPORT if not present.  Indent.
79648
79649         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
79650         suggested by Bruno Haible <bruno@clisp.org>.
79651
79652         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
79653
79654         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
79655
79656         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
79657         libgcrypt).
79658
79659         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
79660
79661         * lib/md2.h, lib/md2.c: New files.
79662
79663 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
79664
79665         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
79666         errno alone.  Problem reported by Frederic Jolliton.
79667
79668 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
79669
79670         * modules/verify (License): Change from GPL to LGPL.  This is a
79671         tiny module and there are apparently near-equivalents that are
79672         under the BSD license.
79673
79674 2005-10-24  Simon Josefsson  <jas@extundo.com>
79675
79676         * modules/sha1: Relicense to LGPL.
79677
79678 2005-10-24  Simon Josefsson  <jas@extundo.com>
79679
79680         * lib/md4.h: Shrink buffer size, now that we changed the type.
79681
79682 2005-10-23  Simon Josefsson  <jas@extundo.com>
79683
79684         * gnulib-tool (func_import): Fix --tests-base.
79685
79686 2005-10-22  Simon Josefsson  <jas@extundo.com>
79687
79688         * modules/arcfour (Depends-on): Need stdint.
79689
79690 2005-10-22  Simon Josefsson  <jas@extundo.com>
79691
79692         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
79693         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
79694
79695 2005-10-22  Simon Josefsson  <jas@extundo.com>
79696
79697         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
79698         suggested by Bruno Haible <bruno@clisp.org>.
79699
79700 2005-10-22  Simon Josefsson  <jas@extundo.com>
79701
79702         * lib/crc.h: Include stddef.h, for size_t.
79703
79704 2005-10-22  Simon Josefsson  <jas@extundo.com>
79705
79706         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
79707         arcfour_context struct (simplify test vector testing in GNU
79708         Shishi).
79709
79710 2005-10-21  Simon Josefsson  <jas@extundo.com>
79711
79712         * modules/des, modules/des-tests: New files.
79713
79714         * modules/gc-des, modules/gc-des-tests: New files.
79715
79716         * tests/test-des.c, tests/test-gc-des.c: New file.
79717
79718 2005-10-21  Simon Josefsson  <jas@extundo.com>
79719
79720         * modules/arctwo, modules/arctwo-tests: New files.
79721
79722         * tests/test-arctwo.c: New file.
79723
79724         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
79725
79726         * tests/test-gc-arctwo.c: New file.
79727
79728 2005-10-21  Simon Josefsson  <jas@extundo.com>
79729
79730         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
79731         Bruno Haible <bruno@clisp.org>.
79732
79733         * m4/gc-des.m4: New file.
79734
79735 2005-10-21  Simon Josefsson  <jas@extundo.com>
79736
79737         * m4/arctwo.m4: New file.
79738
79739         * m4/gc-arctwo.m4: New file.
79740
79741 2005-10-21  Simon Josefsson  <jas@extundo.com>
79742
79743         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
79744         block.
79745
79746 2005-10-21  Simon Josefsson  <jas@extundo.com>
79747
79748         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
79749         <bruno@clisp.org>.
79750
79751         * lib/hmac-sha1.c (hmac_sha1): Likewise.
79752
79753         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
79754         Bruno Haible <bruno@clisp.org>.
79755
79756         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
79757         <bruno@clisp.org>.
79758
79759 2005-10-21  Simon Josefsson  <jas@extundo.com>
79760
79761         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
79762
79763 2005-10-21  Simon Josefsson  <jas@extundo.com>
79764
79765         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
79766
79767 2005-10-21  Simon Josefsson  <jas@extundo.com>
79768
79769         * lib/des.h, lib/des.c: New files.
79770
79771         * lib/gc-gnulib.c: Support DES.c
79772
79773 2005-10-21  Simon Josefsson  <jas@extundo.com>
79774
79775         * lib/arctwo.h, lib/arctwo.c: New files.
79776
79777         * lib/gc-gnulib.c: Support ARCTWO.
79778
79779 2005-10-21  Simon Josefsson  <jas@extundo.com>
79780
79781         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
79782         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79783
79784 2005-10-21  Simon Josefsson  <jas@extundo.com>
79785
79786         * gnulib-tool (func_import, func_create_testdir): Define automake
79787         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
79788         Makefile.am snippet),
79789         suggested by Bruno Haible <bruno@clisp.org>.
79790
79791         * modules/gc (Makefile.am): Use it.
79792
79793 2005-10-21  Bruno Haible  <bruno@clisp.org>
79794
79795         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
79796         patch.
79797
79798 2005-10-19  Simon Josefsson  <jas@extundo.com>
79799
79800         * tests/test-gc-rijndael.c: New file.
79801
79802         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
79803
79804 2005-10-19  Simon Josefsson  <jas@extundo.com>
79805
79806         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
79807         interface too.
79808
79809 2005-10-19  Simon Josefsson  <jas@extundo.com>
79810
79811         * tests/test-gc-arcfour.c: New file.
79812
79813         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
79814
79815 2005-10-19  Simon Josefsson  <jas@extundo.com>
79816
79817         * modules/gc-md4, modules/gc-md4-tests: New file.
79818
79819         * tests/test-gc-md4.c: New file.
79820
79821 2005-10-19  Simon Josefsson  <jas@extundo.com>
79822
79823         * m4/gc-md4.m4: New file.
79824
79825 2005-10-19  Simon Josefsson  <jas@extundo.com>
79826
79827         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
79828         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
79829         <kasal@ucw.cz>.
79830
79831 2005-10-19  Simon Josefsson  <jas@extundo.com>
79832
79833         * m4/gc-arcfour.m4: New file.
79834
79835         * m4/gc-rijndael.m4: New file.
79836
79837 2005-10-19  Simon Josefsson  <jas@extundo.com>
79838
79839         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
79840
79841 2005-10-19  Simon Josefsson  <jas@extundo.com>
79842
79843         * lib/gc-gnulib.c: Support ARCFOUR.
79844
79845 2005-10-19  Simon Josefsson  <jas@extundo.com>
79846
79847         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
79848         support.
79849
79850         * lib/gc.h: Add ECB enum type.
79851
79852         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
79853
79854 2005-10-18  Simon Josefsson  <jas@extundo.com>
79855
79856         * tests/test-md5.c: New file.
79857
79858         * modules/md5-tests: New file.
79859
79860 2005-10-18  Simon Josefsson  <jas@extundo.com>
79861
79862         * tests/test-md4.c: New file.
79863
79864         * modules/md4, modules/md4-tests: New files.
79865
79866 2005-10-18  Simon Josefsson  <jas@extundo.com>
79867
79868         * m4/md4.m4: New file.
79869
79870 2005-10-18  Simon Josefsson  <jas@extundo.com>
79871
79872         * lib/md4.h, lib/md4.c: New files, based on md5.?.
79873
79874 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
79875
79876         * gnulib-tool (func_create_testdir): Omit the second check whether
79877         BUILT_SOURCES in nonempty.
79878
79879 2005-10-17  Simon Josefsson  <jas@extundo.com>
79880
79881         * tests/test-rijndael.c: New file.
79882
79883 2005-10-17  Simon Josefsson  <jas@extundo.com>
79884
79885         * modules/sha1: Depend on stdint instead of md5.
79886
79887         * modules/md5: Depend on stdint, remove uint32_t.
79888
79889 2005-10-17  Simon Josefsson  <jas@extundo.com>
79890
79891         * modules/gc-sha1-tests: New file.
79892
79893         * tests/test-gc-sha1.c: New file.
79894
79895 2005-10-17  Simon Josefsson  <jas@extundo.com>
79896
79897         * m4/md5.m4: Remove call to uint32_t.m4.
79898
79899 2005-10-17  Simon Josefsson  <jas@extundo.com>
79900
79901         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
79902
79903         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
79904         md5.h.
79905
79906         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
79907
79908         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
79909
79910 2005-10-17  Simon Josefsson  <jas@extundo.com>
79911
79912         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
79913
79914 2005-10-17  Simon Josefsson  <jas@extundo.com>
79915
79916         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
79917
79918 2005-10-17  Simon Josefsson  <jas@extundo.com>
79919
79920         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
79921
79922         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
79923
79924 2005-10-17  Bruno Haible  <bruno@clisp.org>
79925
79926         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
79927         that it can also be used in a test.
79928
79929 2005-10-16  Bruno Haible  <bruno@clisp.org>
79930
79931         * gnulib-tool (func_emit_tests_Makefile_am): Also define
79932         TESTS_ENVIRONMENT, so that individual tests can augment it.
79933
79934         * gnulib-tool (func_create_testdir): Use an intermediate target for
79935         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
79936         macros, like $(ALLOCA_H), which cannot be passed through the command
79937         line.
79938
79939 2005-10-15  Simon Josefsson  <jas@extundo.com>
79940
79941         * modules/rijndael-tests: New file.
79942
79943         * modules/rijndael: New file.
79944
79945 2005-10-15  Simon Josefsson  <jas@extundo.com>
79946
79947         * m4/rijndael.m4: New file.
79948
79949 2005-10-15  Simon Josefsson  <jas@extundo.com>
79950
79951         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
79952
79953         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
79954
79955 2005-10-14  Simon Josefsson  <jas@extundo.com>
79956
79957         * tests/test-arcfour.c: New file.
79958
79959         * modules/arcfour, modules/arcfour-tests: New files.
79960
79961 2005-10-14  Simon Josefsson  <jas@extundo.com>
79962
79963         * m4/arcfour.m4: New file.
79964
79965 2005-10-14  Simon Josefsson  <jas@extundo.com>
79966
79967         * lib/arcfour.h, lib/arcfour.c: New files.
79968
79969 2005-10-14  Roland McGrath  <roland@redhat.com>
79970
79971         Import from libc.  [BZ #1331]
79972         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
79973         macro argument.
79974         Reported by Matej Vela <vela@debian.org>.
79975
79976 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79977
79978         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
79979         include <wchar.h>; no longer needed.
79980
79981 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79982
79983         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
79984
79985 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
79986         and  Ulrich Drepper  <drepper@redhat.com>
79987
79988         Import from libc.
79989         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
79990         instead of inline stream orientation test and two separate
79991         function calls.  Pay no attention to USE_IN_LIBIO.
79992
79993 2005-10-13  Simon Josefsson  <jas@extundo.com>
79994
79995         * modules/gc-hmac-md5-tests: New file.
79996
79997         * tests/test-gc-hmac-sha1.c: New file.
79998
79999         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
80000
80001         * modules/gc-hmac-md5-tests: New file.
80002
80003         * tests/test-gc-md5.c: New file.
80004
80005         * modules/gc-md5-tests: New file.
80006
80007 2005-10-13  Simon Josefsson  <jas@extundo.com>
80008
80009         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
80010         Move memory allocation outside of loop.
80011
80012 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
80013
80014         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
80015         intermediate directory is in a read-only file system.  Problem
80016         reported by Eric Blake.
80017
80018 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
80019
80020         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
80021
80022 2005-10-12  Simon Josefsson  <jas@extundo.com>
80023
80024         * tests/test-hmac-sha1.c: New file.
80025
80026         * modules/hmac-sha1-tests: New file.
80027
80028         * modules/hmac-sha1: New file.
80029
80030 2005-10-12  Simon Josefsson  <jas@extundo.com>
80031
80032         * modules/gc-sha1: New file.
80033
80034 2005-10-12  Simon Josefsson  <jas@extundo.com>
80035
80036         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
80037
80038         * tests/test-gc-pbkdf2-sha1.c: New file.
80039
80040 2005-10-12  Simon Josefsson  <jas@extundo.com>
80041
80042         * modules/gc-md5, modules/gc-hmac-md5: New files.
80043
80044         * modules/gc (Files): Remove md5, memxor and hmac files.
80045
80046 2005-10-12  Simon Josefsson  <jas@extundo.com>
80047
80048         * m4/gc-pbkdf2-sha1.m4: New file.
80049
80050         * m4/gc-hmac-sha1.m4: New file.
80051
80052         * m4/gc-sha1: New file.
80053
80054         * m4/hmac-sha1.m4: New file.
80055
80056 2005-10-12  Simon Josefsson  <jas@extundo.com>
80057
80058         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
80059
80060         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
80061
80062 2005-10-12  Simon Josefsson  <jas@extundo.com>
80063
80064         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
80065         suggested by Bruno Haible <bruno@clisp.org>.
80066
80067 2005-10-12  Simon Josefsson  <jas@extundo.com>
80068
80069         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
80070
80071 2005-10-12  Simon Josefsson  <jas@extundo.com>
80072
80073         * lib/gc-pbkdf2-sha1.c: New file.
80074
80075         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
80076
80077 2005-10-12  Simon Josefsson  <jas@extundo.com>
80078
80079         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
80080
80081         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
80082
80083 2005-10-12  Simon Josefsson  <jas@extundo.com>
80084
80085         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
80086         GC_USE_HMAC_MD5, respectively.
80087
80088         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
80089         (gc_md5): Fix typo.
80090
80091         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
80092
80093         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
80094
80095         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
80096
80097 2005-10-12  Bruno Haible  <bruno@clisp.org>
80098
80099         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
80100         Reported by Stepan Kasal <kasal@ucw.cz>.
80101
80102 2005-10-11  Simon Josefsson  <jas@extundo.com>
80103
80104         * tests/test-crc.c: New file.
80105
80106         * modules/crc, modules/crc-tests: New files.
80107
80108 2005-10-11  Simon Josefsson  <jas@extundo.com>
80109
80110         * m4/crc.m4: New file.
80111
80112 2005-10-11  Simon Josefsson  <jas@extundo.com>
80113
80114         * lib/gc.h: Add gc_hash and gc_hash_buffer.
80115
80116         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
80117
80118         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
80119
80120 2005-10-11  Simon Josefsson  <jas@extundo.com>
80121
80122         * lib/crc.h, lib/crc.c: New files.
80123
80124         * lib/gc.h (gc_hash_buffer): Add doc.
80125
80126 2005-10-11  Bruno Haible  <bruno@clisp.org>
80127
80128         * modules/c-strcasestr: New file.
80129         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
80130
80131 2005-10-11  Bruno Haible  <bruno@clisp.org>
80132
80133         * modules/c-strcase: New file.
80134         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
80135
80136 2005-10-11  Bruno Haible  <bruno@clisp.org>
80137
80138         * lib/strcasecmp.c: Include limits.h.
80139         (strcasecmp): Avoid integer overflow on exotic platforms.
80140         * lib/strncasecmp.c: Include limits.h.
80141         (strncasecmp): Avoid integer overflow on exotic platforms.
80142         Reported by Paul Eggert.
80143
80144 2005-10-11  Bruno Haible  <bruno@clisp.org>
80145
80146         * lib/c-strcasestr.h: New file, from GNU gettext.
80147         * lib/c-strcasestr.c: New file, from GNU gettext.
80148
80149 2005-10-11  Bruno Haible  <bruno@clisp.org>
80150
80151         * lib/c-strcase.h: New file, from GNU gettext.
80152         * lib/c-strcasecmp.c: New file, from GNU gettext.
80153         * lib/c-strncasecmp.c: New file, from GNU gettext.
80154
80155 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
80156
80157         * modules/mempcpy (License): GPL -> LGPL.
80158         * modules/strchrnul (License): Likewise.
80159         * modules/sysexits (License): Likewise.
80160
80161 2005-10-08  Simon Josefsson  <jas@extundo.com>
80162
80163         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
80164
80165 2005-10-07  Simon Josefsson  <jas@extundo.com>
80166
80167         * m4/memxor.m4: Remove gl_C_RESTRICT call.
80168
80169 2005-10-06  Simon Josefsson  <jas@extundo.com>
80170
80171         * tests/test-hmac-md5.c: New file.
80172
80173         * modules/hmac-md5-tests: New file.
80174
80175         * modules/hmac-md5: New file.
80176
80177 2005-10-06  Simon Josefsson  <jas@extundo.com>
80178
80179         * m4/hmac-md5.m4: New file.
80180
80181         * m4/memxor.m4: Require gl_C_RESTRICT.
80182
80183 2005-10-06  Simon Josefsson  <jas@extundo.com>
80184
80185         * lib/memxor.c (memxor): Avoid casts and warnings.
80186
80187 2005-10-06  Simon Josefsson  <jas@extundo.com>
80188
80189         * lib/hmac-md5.c: New file.
80190
80191         * lib/hmac.h: New file.
80192
80193 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
80194
80195         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
80196         promotes to int, not unsigned int, to catch the AIX 5.3
80197         compiler bug.
80198
80199 2005-10-05  Simon Josefsson  <jas@extundo.com>
80200
80201         * modules/memxor: New file.
80202
80203         * modules/iconv (Files): Move config.rpath to havelib, it is used
80204         there.
80205
80206         * modules/havelib (Files): Add config.rpath.
80207
80208 2005-10-05  Simon Josefsson  <jas@extundo.com>
80209
80210         * m4/memxor.m4: New file.
80211
80212 2005-10-05  Simon Josefsson  <jas@extundo.com>
80213
80214         * lib/memxor.c (memxor): Fix compiler error.
80215
80216         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
80217         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
80218
80219         * lib/memxor.h, lib/memxor.c: New files.
80220
80221         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
80222         we assume all systems have it, suggested by Jim Meyering
80223         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
80224         any systems lack sys/socket.h; mingw32 is known to lack it, but we
80225         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
80226         same reasons.
80227
80228 2005-10-05  Simon Josefsson  <jas@extundo.com>
80229
80230         * config/srclist.txt: Add glibc bug 1423 for md5.h.
80231
80232 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
80233
80234         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
80235         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
80236         needed, since the source code now assumes these .h files.
80237
80238 2005-10-05  Derek Price  <derek@ximbiot.com>
80239
80240         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
80241
80242 2005-10-05  Bruno Haible  <bruno@clisp.org>
80243
80244         * modules/stdint (License): Change to LGPL.
80245
80246 2005-10-04  Simon Josefsson  <jas@extundo.com>
80247
80248         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
80249         D. Baushke" <mdb@gnu.org>.
80250
80251 2005-10-04  Bruno Haible  <bruno@clisp.org>
80252
80253         * lib/verify.h (verify_true): Provide alternative definition for C++.
80254
80255 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
80256
80257         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
80258         (SSIZE_MAX): New macro, if not already defined.
80259         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
80260         than 2 GiB.
80261
80262 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80263
80264         Sync from coreutils.
80265         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
80266         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
80267         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
80268         ULLONG_MAX doesn't work with 2.7.2.1.
80269
80270 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80271
80272         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
80273         From Ben Pfaff.
80274
80275         * modules/exclude (Depends-on): Depend on verify.
80276         * modules/strtoimax (Depends-on): Likewise.
80277         * modules/utimecmp (Depends-on): Likewise.
80278
80279 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80280
80281         * lib/exclude.c: Include verify.h.
80282         (verify): Remove.  All callers changed to use verify.h's version.
80283         * lib/strtoimax.c: Likewise.
80284         * lib/utimecmp.c: Likewis.e
80285
80286         Sync from coreutils.
80287         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
80288         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
80289         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
80290         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
80291         bother returning ENOSYS if settimeofday or stime fails; just let
80292         them return whatever errno they want to return.
80293         * lib/utimens.c: Include unistd.h, for dup2.
80294         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
80295         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
80296
80297 2005-10-02  Jim Meyering  <jim@meyering.net>
80298
80299         Sync from coreutils.
80300         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
80301         from glibc-2.2.5 that fails for read-only files.
80302
80303 2005-10-02  Jim Meyering  <jim@meyering.net>
80304
80305         Sync from coreutils.
80306         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
80307         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
80308         `#if HAVE_CONFIG_H'.
80309         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
80310         Remove AT_FDCWD test.
80311         Do not consume the fd unless successful.
80312         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
80313         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
80314         block, so that we don't even try to compile it if settimeofday is
80315         available.  This works around a compilation failure on OSF1 V5.1,
80316         due to stime requiring a `long int*' while tv_sec is `int'.
80317
80318 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
80319
80320         Sync from coreutils.
80321         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
80322         against `yes', rather than just testing for nonempty.
80323
80324 2005-10-01  Simon Josefsson  <jas@extundo.com>
80325
80326         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
80327         and Darwin.
80328
80329         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
80330         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
80331         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
80332         freeaddrinfo and gai_strerror are declared by the POSIX headers.
80333         Check if struct addrinfo is declared.
80334
80335 2005-10-01  Simon Josefsson  <jas@extundo.com>
80336
80337         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
80338         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
80339         AI_* and EAI_* definitions.  Protect function declarations.
80340
80341 2005-10-01  Jim Meyering  <jim@meyering.net>
80342
80343         Sync from coreutils.
80344
80345         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
80346         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
80347         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
80348         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80349         in the inet and nsl libraries.  Required on Solaris 5.7.
80350
80351 2005-10-01  Jim Meyering  <jim@meyering.net>
80352
80353         Sync from coreutils.
80354         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80355         in the inet and nsl libraries.  Required on Solaris 5.7.
80356
80357 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
80358
80359         * lib/getdelim.c (getdelim): Remove unused variables.
80360
80361 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
80362
80363         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
80364         so that the code works even with ancient cpp.  Portability problem
80365         with GCC 2.7.2.1 reported by Thomas M.Ott.
80366
80367 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
80368
80369         * modules/regex (Depends-on): Add strcase.
80370
80371         * modules/gethostname (Licence): Change from GPL to LGPL, since
80372         gethostname.c is a trivial implementation of a standard library
80373         function.
80374         * modules/poll (License): Change from GPL to LGPL, since it's
80375         derived from LGPL code.
80376
80377 2005-09-27  Jim Meyering  <jim@meyering.net>
80378
80379         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
80380         HAVE_CONFIG_H.
80381
80382         * lib/intprops.h (signed_type_or_expr__): Define.
80383         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
80384         for unsigned types.
80385
80386 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
80387
80388         * lib/verify.h (verify_expr): Remove, replacing with:
80389         (verify_true): New macro that returns true instead of void.
80390         (verify_type__): Remove.
80391         (verify): Use verify_true rather than verify_type__.
80392
80393 2005-09-26  Bruno Haible  <bruno@clisp.org>
80394
80395         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
80396         is necessary.
80397         (lib_SOURCES): Remove mbchar.c.
80398         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
80399         (Files): Add m4/mbrtowc.m4.
80400         * modules/mbiter: Likewise.
80401         * modules/mbuiter: Likewise.
80402
80403 2005-09-26  Bruno Haible  <bruno@clisp.org>
80404
80405         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
80406         compile mbchar.c if they are not both present.
80407         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
80408         * m4/mbiter.m4 (gl_MBITER): Likewise.
80409         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
80410         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
80411         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
80412
80413 2005-09-25  Jim Meyering  <jim@meyering.net>
80414
80415         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
80416         also uses socklen_t.
80417
80418 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
80419
80420         * lib/utimens.c (ENOSYS): Define if not already defined.
80421         (futimens): Support having a null PATH if the file descriptor
80422         is nonnegative.
80423
80424         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
80425         Remove.
80426         (__attribute): Define to empty unless GCC 3.1 or later.
80427         This works around a core dump on OpenBSD 3.4, which has GCC
80428         2.95.3, which dumps core when given __attribute__(()).  It also
80429         simplifies other tests, since we really don't want to bother with
80430         worrying about which ancient version of GCC supported what.
80431         Original problem reported by Yoann Vandoorselaere, with part of
80432         the fix suggested by Derek Price.
80433
80434 2005-09-24  Jim Meyering  <jim@meyering.net>
80435
80436         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
80437         so we can once again use a positive bitfield width of 1 -- now we
80438         don't have to explain why we were using a bitfield width of 2.
80439
80440 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80441
80442         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
80443         and similarly for the other external symbols.  Problem reported
80444         by James Gallager.
80445
80446         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
80447         bug reported by Jim Meyering.
80448
80449         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
80450         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
80451         not needed, since socklen is a prerequisite module.
80452
80453 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80454
80455         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
80456         Problem reported by Eric Blake.
80457         (getaddrinfo): Initialize se so that it's not garbage.
80458         Redo internal storage allocation so that it doesn't make unportable
80459         assumptions about alignment.
80460         Fix a memory leak.
80461
80462         * lib/utimens.c (futimens): Use futimesat if available.
80463         Prefer it to futimes since it doesn't have the futimes bug.
80464
80465         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
80466         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
80467         Instead, declare a function that returns a pointer to an array,
80468         and use verify_type__ to declare the size of the array.
80469         Problem and germ of a solution reported by Bruno Haible.
80470         (verify_type__): Use 2, not 1, for bitfield size, to avoid
80471         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
80472
80473 2005-09-23  Jim Meyering  <jim@meyering.net>
80474
80475         Sync from coreutils.
80476         Correct build failure (socklen_t not defined) on at least
80477         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
80478         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
80479
80480 2005-09-23  Jim Meyering  <jim@meyering.net>
80481
80482         * modules/getaddrinfo (Depends-on): Add socklen.
80483
80484 2005-09-23  Bruno Haible  <bruno@clisp.org>
80485
80486         * tests/test-verify.c: New file.
80487
80488 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80489
80490         Sync from coreutils.
80491
80492         * modules/argmatch (Depends-on): Add verify.
80493         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
80494         unistd-safer.
80495         * modules/save-cwd (Depends-on): Likewise.
80496
80497         * modules/openat (Files): Add lib/openat-die.c.
80498         (Depends-on): Remove error, exitfail.
80499         Add dirname.
80500
80501         * modules/verify: New file.
80502         * MODULES.html.sh (Diagnostics <assert.h>): New section,
80503         with "verify" module.
80504
80505 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80506
80507         Sync from coreutils.
80508
80509         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
80510         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
80511         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
80512         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
80513         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
80514         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
80515         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
80516         Don't bother checking for string.h, stdlib.h, unistd.h.
80517         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
80518         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
80519         module's job.
80520         * m4/jm-macros.m4 (gl_MACROS): Likewise.
80521         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
80522
80523         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
80524         (gl_GETDATE): Use it.
80525
80526         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
80527
80528 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80529
80530         Sync from coreutils.
80531
80532         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
80533         stat-time.h.
80534         * lib/argmatch.h: Include verify.h
80535         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
80536         (ARGMATCH_ASSERT): Remove; unused.
80537         * lib/canonicalize.c: Assume STDC_HEADERS.
80538         * lib/exclude.c: Include "strcase.h".
80539         * lib/regex_internal.h [!defined _LIBC]: Likewise.
80540         * lib/getusershell.c: Include stdio--.h rather than stdio.h
80541         and stdio-safer.h.
80542         (getusershell): Call fopen, not fopen_safer.
80543         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
80544         Do not include unistd-safer.h.
80545         (save_cwd): Don't call fd_safer; no longer needed
80546         now that we include fcntl--.h.
80547
80548         * lib/getdate.y (relative_time): New type.
80549         (RELATIVE_TIME_0): New constant.
80550         (parser_control): Use relative_time instead of doing it ourselves.
80551         (%union): Add new relative_time rel member.
80552         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
80553         Now typeless.
80554         (relunit, relunit_snumber): Now of type rel.
80555         (zone, rel, relunit, get_date): Adjust to above changes.
80556
80557         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
80558         Do not include unistd-safer.h.
80559         (getloadavg): Don't call fd_safer; no longer needed
80560         now that we include fcntl--.h.
80561
80562         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
80563         (make_dir_parents): Treat ENOSYS like EEXIST.
80564
80565         Improve quality of diagnostics on restore_cwd failure.
80566         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
80567         (make_dir_parents): Last arg is now int * (for errno), not bool *.
80568         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
80569         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
80570         each time through the loop.  Do not diagnose restore_cwd failure;
80571         that is the caller's job (and perhaps the caller does not care).
80572
80573         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
80574         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
80575         If the file already exists but is not a directory, don't bother
80576         to try to make its parents.
80577         Close potential file descriptor leak if we can't chdir("/") (!).
80578         Don't always return true if chdir($PWD) fails; return true only
80579         if the requested action was done successfully (except for the
80580         chdir($PWD)).
80581         Don't log final directory unless we actually made it.
80582         Refactor to avoid duplicate code to fix up permissions.
80583         Don't attempt to fix up parent permissions if chdir($PWD) fails.
80584
80585         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
80586         to make it a bit faster and (I hope) clearer.
80587         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
80588         Fix bug in formats like %2N.
80589
80590         * lib/verify.h: New file.
80591
80592 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80593
80594         Sync from coreutils.
80595         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
80596
80597 2005-09-22  Jim Meyering  <jim@meyering.net>
80598
80599         Sync from coreutils.
80600
80601         * m4/lstat.m4 (gl_FUNC_LSTAT):
80602         Use AC_LIBSOURCES to require lstat.c and lstat.h.
80603         Remove obsolete comment.
80604         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
80605         * m4/xstrtod.m4: Likewise.
80606
80607         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
80608
80609 2005-09-22  Jim Meyering  <jim@meyering.net>
80610
80611         Sync from coreutils.
80612
80613         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
80614
80615         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
80616         the .tm_year member, since otherwise gcc-4.0 would now warn about
80617         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
80618
80619         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
80620         order to avoid an unsuppressible warning from gcc on 64-bit systems.
80621
80622         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
80623         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
80624         when run in a time zone for which daylight savings time is in effect
80625         for the starting date.
80626
80627         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
80628         stop us from restricting permissions of just-created absolute-named
80629         directories.
80630         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
80631         to restore initial working directory.
80632         * lib/mkdir-p.c (make_dir_parents): New parameter:
80633         different_working_dir, to tell caller if/when we change the working
80634         directory and are unable to return to the initial one.
80635         * lib/mkdir-p.h (make_dir_parents): Update prototype.
80636         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
80637         `return false'.  This fixes a bug introduced on 2004-07-30.
80638
80639         * lib/openat.c (fdopendir): Be sure to close the supplied
80640         file descriptor before returning.  This makes our replacement
80641         implementation a little closer to Solaris's, where fdopendir
80642         ties the file descriptor to the returned DIR* pointer.
80643         * lib/openat.c (unlinkat): New function.
80644         * lib/openat.h (unlinkat): Add prototype.
80645         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
80646         (openat_restore_fail): Rename from openat_restore_die.
80647         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
80648
80649         Provide an alternative to exiting immediately upon save_cwd or
80650         restore_cwd failure.  Now, an application can arrange e.g.,
80651         to perform a longjump in that case.
80652         * lib/openat.c: Include dirname.h.
80653         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
80654         (rpl_openat, fdopendir, fstatat): Call openat_save_die
80655         and openat_restore_die rather than calling error directly.
80656         Don't include "error.h" or "exitfail.h"; they're no longer needed.
80657
80658         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
80659         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
80660         define.
80661
80662         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
80663         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
80664                             int utc, int nanoseconds);
80665         Background:
80666         date should not have to allocate a megabyte of virtual memory to
80667         handle a format argument like +%1048575T.  When implemented with
80668         strftime, it must allocate such a buffer, use strftime to fill it
80669         in, print it, then free it.
80670         With fprintftime, it simply prints everything and exits.
80671         With no need for memory allocation, that's one fewer way to fail.
80672         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
80673         optional field width, not before, so we accept %9:z, not %:9z.
80674         (my_strftime): Be sure to use L_('x') for literals.
80675
80676         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
80677         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
80678         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
80679         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
80680         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
80681         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
80682         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
80683         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
80684         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
80685         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
80686         * lib/xgethostname.c, lib/xreadlink.c:
80687         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
80688
80689         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
80690         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
80691         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
80692         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
80693         and don't include <sys/file.h>).
80694
80695 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
80696
80697         Sync from coreutils.
80698
80699         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
80700         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
80701         [!LDAV_DONE]: Avoid unused variable warning.
80702
80703 2005-09-21  Bruno Haible  <bruno@clisp.org>
80704
80705         * lib/unicodeio.h (unicode_to_mb): New declaration.
80706
80707 2005-09-20  Derek Price  <derek@ximbiot.com>
80708
80709         * lib/getaddrinfo.c: Don't include <netdb.h> included from
80710         getaddrinfo.h.
80711
80712 2005-09-20  Bruno Haible  <bruno@clisp.org>
80713
80714         * gnulib-tool: Remove trailing slashes from the values specified for
80715         --source-base, --m4-base, --tests-base, --aux-dir.
80716         Suggested by Simon Josefsson <jas@extundo.com>.
80717
80718 2005-09-20  Bruno Haible  <bruno@clisp.org>
80719
80720         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
80721         func_modules_to_filelist, func_import, func_create_testdir): Make all
80722         sorting results locale-independent, so that gnulib-cache.m4 doesn't
80723         change when gnulib-tool is invoked in a different locale.
80724
80725 2005-09-19  Simon Josefsson  <jas@extundo.com>
80726
80727         * m4/socklen.m4: Fix typo.
80728
80729 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80730
80731         Use a consistent style for including <config.h>.
80732         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
80733         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
80734         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
80735         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
80736         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
80737         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
80738         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
80739         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
80740         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
80741         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
80742         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
80743         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
80744         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
80745         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
80746         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
80747         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
80748         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
80749         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
80750         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
80751         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
80752         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
80753         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
80754         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
80755         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
80756         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
80757         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
80758         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
80759         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
80760         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
80761         lib/xstrtoumax.c, lib/yesno.c:
80762         Standardize inclusion of config.h.
80763         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
80764         lib/inttostr.h:  Removed inclusion of config.h from header files.
80765         * lib/inttostr.c:  Adjusted in-tree users.
80766         * lib/timespec.h: Remove superfluous warning to include config.h.
80767         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
80768         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
80769         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
80770         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
80771         config.h with HAVE_CONFIG_H.
80772
80773 2005-09-19  Jim Meyering  <jim@meyering.net>
80774
80775         * modules/pathmax (License): Change to LGPL.
80776
80777 2005-09-19  Derek Price  <derek@ximbiot.com>
80778
80779         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
80780
80781 2005-09-19  Bruno Haible  <bruno@clisp.org>
80782
80783         * gnulib-tool (import): Provide default for --tests-base.
80784
80785 2005-09-19  Bruno Haible  <bruno@clisp.org>
80786
80787         * doc/quote.texi: New file, extracted from gnulib.texi.
80788         * doc/ctime.texi: New file, extracted from gnulib.texi.
80789         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
80790         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
80791         * doc/gnulib.texi: Include them.
80792
80793 2005-09-18  Bruno Haible  <bruno@clisp.org>
80794
80795         Portability fix.
80796         * gnulib-tool (func_readlink): New function.
80797         (func_ln_if_changed): Use it.
80798
80799 2005-09-18  Bruno Haible  <bruno@clisp.org>
80800
80801         * gnulib-tool: Support --with-tests also with --import.
80802         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
80803         (func_import): Use variables $testsbase and $inctests. Emit a
80804         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
80805         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
80806         SUBDIRS += $testsdir.
80807         (func_create_testdir): Update.
80808
80809 2005-09-18  Bruno Haible  <bruno@clisp.org>
80810
80811         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
80812         instead of $dry_run.
80813         (func_cp_if_changed, func_mv_if_changed): Remove functions.
80814         (func_ln_if_changed): Don't handle dry-run here.
80815         (func_import): In dry-run mode, detect more precisely which actions
80816         would be performed, and don't use "...ing" verbs.
80817
80818 2005-09-18  Bruno Haible  <bruno@clisp.org>
80819
80820         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
80821         (func_import): Use join on two temporary files instead of three nested
80822         loops, in order to determine which files are new or old.
80823
80824 2005-09-18  Bruno Haible  <bruno@clisp.org>
80825
80826         * gnulib-tool (func_import): Comment out code that spits out the
80827         new files with --dry-run.
80828
80829 2005-09-18  Bruno Haible  <bruno@clisp.org>
80830
80831         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
80832
80833 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80834
80835         * lib/stat-time.h: New file.
80836         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
80837         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
80838         in a different way.
80839         (timespec_cmp): New function.
80840         * lib/utimecmp.c: Include stat-time.h.
80841         (SYSCALL_RESOLUTION): Depend on whether various struct stat
80842         members exist, not on the obsolescent ST_MTIM_NSEC.
80843         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
80844
80845 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80846
80847         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
80848
80849 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80850
80851         * MODULES.html.sh (File system functions): Add stat-time.
80852         * modules/stat-time: New file.
80853         * modules/timespec (Files): Remove m4/st_mtim.m4; this
80854         is now done in a different way, by the stat-time module.
80855         * modules/utimecmp (Depends-on): Add stat-time.
80856
80857 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
80858
80859         * m4/st_mtim.m4: Remove.  Superseded by...
80860         * m4/stat-time.m4: New file.
80861         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
80862         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
80863
80864 2005-09-15  Derek Price  <derek@ximbiot.com>
80865
80866         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
80867
80868 2005-09-15  Derek Price  <derek@ximbiot.com>
80869
80870         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
80871         * lib/regex_internal.c: Ditto, using this...
80872         (__GNUC_PREREQ): ...new macro.
80873         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
80874         using...
80875         (__GNUC_PREREQ): ...this new macro.
80876
80877         * lib/strstr.h: Include string.h. Define strstr as a macro here.
80878
80879 2005-09-15  Derek Price  <derek@ximbiot.com>
80880             Paul Eggert  <eggert@cs.ucla.edu>
80881
80882         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
80883         changes, consolidating in...
80884         * lib/regex_internal.h: ...this file.
80885
80886 2005-09-13  Jim Meyering  <jim@meyering.net>
80887
80888         * lib/canon-host.c: Filter through gnu indent and reword comments
80889         slightly.
80890         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
80891
80892 2005-09-13  Derek Price  <derek@ximbiot.com>
80893
80894         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
80895         failure.
80896         Reported by Jim Meyering  <jim@meyering.net>.
80897
80898 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80899
80900         * lib/base64.c: Typo.
80901         (base64_encode): Put b64str in initialized data section.
80902
80903 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
80904
80905         Merge glibc and coreutils changes into gnulib, plus a few
80906         extra fixes.
80907         * lib/md5.c: Use #error rather than a string.
80908         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
80909         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
80910         (__attribute__): Define to empty for non recent-GCC.
80911         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
80912         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
80913         Renamed from their non-__ counterparts, with new macros replacing
80914         them if not _LIBC.  Add __THROW attribute.
80915         (rol): Remove.
80916         (struct md5_ctx): Align buffer if using GCC.
80917         * lib/sha1.h (struct sha1_ctx): Likewise.
80918         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
80919         The old name was backwards.
80920         (NOTSWAP): Remove; not used.
80921         (rol): New macro, moved here from md5.h.
80922         (sha1_process_block): Remove a FIXME that doesn't make sense.
80923
80924 2005-09-12  Derek Price  <derek@ximbiot.com>
80925
80926         Return usable errors from canon-host.
80927         * lib/canon-host.h: New file.
80928         * lib/canon-host.c (canon_host): Wrap...
80929         (canon_host_r): ...this new function, which now relies exclusively on
80930         getaddrinfo.
80931         (ch_strerror): New function.
80932         (last_cherror): New global.
80933         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
80934         interface.
80935         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
80936         void *.
80937         (freeaddrinfo): Free ai->ai_canonname when set.
80938
80939 2005-09-12  Derek Price  <derek@ximbiot.com>
80940
80941         Make canon-host require getaddrinfo.
80942         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
80943         AC_LIBSOURCE canon-host.h.  Call...
80944         (gl_PREREQ_CANON_HOST): ...this new function, which requires
80945         gl_GETADDRINFO.
80946         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
80947
80948 2005-09-12  Derek Price  <derek@ximbiot.com>
80949
80950         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
80951         LGPL.
80952         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
80953
80954 2005-09-12  Derek Price  <derek@ximbiot.com>
80955
80956         * lib/gai_strerror.c: Include config.h when available.  Include
80957         getaddrinfo.h before other headers to test interface.
80958         Reported by Larry Jones <lawrence.jones@ugs.com>.
80959
80960 2005-09-12  Derek Price  <derek@ximbiot.com>
80961             Paul Eggert  <eggert@cs.ucla.edu>
80962
80963         * modules/glob (Files): Add glob-libc.h.
80964
80965 2005-09-12  Derek Price  <derek@ximbiot.com>
80966             Paul Eggert  <eggert@cs.ucla.edu>
80967
80968         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
80969         glob_.h, glob-libc.h.
80970         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
80971
80972 2005-09-12  Derek Price  <derek@ximbiot.com>
80973             Paul Eggert  <eggert@cs.ucla.edu>
80974
80975         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
80976         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
80977         protecting things that should be done only in gnulib contexts.
80978         * lib/glob_.h: New file, containing only the glob things needed for
80979         gnulib.
80980         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
80981         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
80982         (glob, globfree, glob_pattern_p): Now defined simply in terms of
80983         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
80984         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
80985         and to respect the namespace rules better.
80986
80987 2005-09-08  Simon Josefsson  <jas@extundo.com>
80988
80989         * modules/socklen: New file.
80990
80991 2005-09-08  Simon Josefsson  <jas@extundo.com>
80992
80993         * m4/socklen.m4: New file.
80994
80995 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80996
80997         * modules/utimens (Files): Add m4/utimbuf.m4, since
80998         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
80999         Reported by Sergey Poznyakoff.
81000
81001 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81002
81003         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
81004         definitions, since that's the preferred style in glibc.
81005         Fix a minor spacing issue, and update copyright notice to match
81006         glibc's.
81007
81008 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81009
81010         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
81011
81012 2005-09-06  Simon Josefsson  <jas@extundo.com>
81013
81014         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
81015         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
81016
81017 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81018
81019         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
81020         warning.
81021
81022 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81023
81024         * config/srclist.txt: Add glibc bug 1302.
81025
81026 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
81027
81028         Change bitset word type from unsigned int to unsigned long int,
81029         as this has better performance on typical 64-bit hosts.
81030         Port bitset code to hosts with unusual word sizes.
81031         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
81032         (build_collating_symbol):
81033         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
81034         argument is a bitset.  This is merely a style issue, but it makes
81035         it clearer that an entire array is expected.
81036         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
81037         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
81038         Port to the case where bitset_word is not the same as unsigned int.
81039         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
81040         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
81041         Likewise.
81042         * lib/regexec.c (check_dst_limits_calc_pos_1,
81043         check_subexp_matching_top):
81044         (build_trtable, group_nodes_into_DFAstates):
81045         Likewise.
81046         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
81047         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
81048         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
81049         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
81050         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
81051         * lib/regcomp.c (optimize_subexps, lower_subexp):
81052         Work even if bitset_word has holes in its bitwise representation.
81053         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
81054         * lib/regexec.c (check_dst_limits_calc_pos_1,
81055         check_subexp_matching_top):
81056         Likewise.
81057         * lib/regex_internal.c (re_string_reconstruct):
81058         Don't assume UCHAR_MAX == 255.
81059         * lib/regex_internal.h (bitset_set_all): Likewise.
81060         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
81061         All uses changed.
81062         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
81063         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
81064         All uses changed.
81065         (BITSET_WORD_MAX): New macro.
81066         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
81067         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
81068         (bitset_empty, bitset_copy):
81069         Prefer sizeof (bitset) to multiplying it out ourselves.
81070         (bitset_not_merge): Remove; unused.
81071         (bitset_contain): Return bool, not unsigned int with one bit on.
81072         All callers changed.
81073         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
81074         alignment than re_node_set; do this by defining a new internal
81075         type struct dests_alloc and using it to allocate memory.
81076
81077 2005-09-05  Bruno Haible  <bruno@clisp.org>
81078
81079         * gnulib-tool (func_import): Fix comparison in handling of symbolic
81080         links.
81081
81082 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
81083
81084         * modules/size_max (Makefile.am): Add size_max.h
81085
81086 2005-09-04  Derek Price  <derek@ximbiot.com>
81087
81088         * gnulib-tool (func_import): Fix reversed $symbolic logic.
81089
81090 2005-09-03  Simon Josefsson  <jas@extundo.com>
81091
81092         * gnulib-tool: Fix typo.
81093
81094 2005-09-03  Simon Josefsson  <jas@extundo.com>
81095
81096         * config/srclist.txt: Add glibc bug 1293.
81097
81098 2005-09-03  Derek Price  <derek@ximbiot.com>
81099
81100         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
81101         From Larry Jones <lawrence.jones@ugs.com>.
81102
81103 2005-09-02  Simon Josefsson  <jas@extundo.com>
81104
81105         * modules/socklen: New file.
81106
81107 2005-09-02  Simon Josefsson  <jas@extundo.com>
81108
81109         * modules/havelib: New module.
81110
81111         * modules/gettext, modules/iconv, modules/lock, modules/readline:
81112         Use havelib.
81113
81114 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
81115
81116         Check for arithmetic overflow when calculating sizes, to prevent
81117         some buffer-overflow issues.  These patches are conservative, in the
81118         sense that when I couldn't determine whether an overflow was possible,
81119         I inserted a run-time check.
81120         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
81121         macros.
81122         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
81123         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
81124         (re_xnrealloc, re_x2nrealloc): New inline functions.
81125         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
81126         parse_bracket_exp):
81127         (build_equiv_class, build_charclass): Check for arithmetic overflow
81128         in size expression calculations.
81129         * lib/regex_internal.c (re_string_realloc_buffers):
81130         (build_wcs_upper_buffer, re_node_set_add_intersect):
81131         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
81132         (re_dfa_add_node, register_state): Likewise.
81133         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
81134         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
81135         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
81136         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
81137
81138 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
81139
81140         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
81141         m4/ulonglong.m4.  Problem reported by Martin Lambers.
81142
81143 2005-09-02  Bruno Haible  <bruno@clisp.org>
81144
81145         Support for lib vs. lib64 distinction on biarch platforms.
81146         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
81147         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
81148         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
81149
81150 2005-09-02  Bruno Haible  <bruno@clisp.org>
81151
81152         * gnulib-tool (import): In the other first-use case, provide defaults
81153         as well.
81154
81155 2005-09-02  Bruno Haible  <bruno@clisp.org>
81156
81157         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
81158         patches not yet found in the latest gettext release.
81159
81160 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
81161
81162         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
81163         to avoid a collision with bits/local_lim.h in glibc.
81164         All uses changed.  Problem reported by Dmitry V. Levin in
81165         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
81166
81167         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
81168         bugs in int versus size_t comparisons.
81169         (re_string_context_at): Fix bug where the code assumed that
81170         Idx is signed.
81171
81172         Use bool where appropriate.
81173         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
81174         All callers changed.
81175         (calc_eclosure_iter): Likewise, for ROOT arg.
81176         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
81177         (build_charclass_op): Likewise, for NON_MATCH arg.
81178         * lib/regex_internal.c (re_string_allocate, re_string_construct):
81179         (re_string_construct_common): Likewise, for ICASE arg.
81180         * lib/regexec.c (re_search_2_stub, re_search_stub):
81181         Likewise, for RET_LEN arg.
81182         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
81183         (set_regs): Likewise, for FL_BACKTRACK arg.
81184         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
81185         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
81186         (calc_eclosure_iter, parse_bracket_exp):
81187         Use bool for internal variables that are booleans.
81188         * lib/regexec.c (re_search_internal, check_matching,
81189         proceed_next_node):
81190         (set_regs, build_sifted_states, sift_states_bkref):
81191         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
81192         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81193         (find_collation_sequence_value):
81194         Likewise.
81195         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
81196         (re_node_set_compare):
81197         Return bool, not int. All callers changed.
81198         * lib/regexec.c (check_halt_node_context, check_dst_limits):
81199         (build_trtable, check_node_accept): Likewise.
81200         * lib/regex_internal.h: Include stdbool.h.
81201
81202         Fix bugs uncovered when converting to bool.
81203         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
81204         failure instead of charging ahead blindly.
81205         * lib/regex_internal.c (register_state): Likewise.
81206         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
81207         for freeing internal storage.
81208         (group_nodes_into_DFA_states): Use unsigned int, not int, for
81209         bitset pieces used as boolean, to avoid undefined behavior
81210         on hosts that do int overflow checking.
81211
81212 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
81213
81214         * config/srclist.txt: Add glibc bugs 1285-1287.
81215
81216 2005-09-01  Jim Meyering  <jim@meyering.net>
81217
81218         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
81219         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
81220         Require gl_STAT_MACROS, too.
81221
81222 2005-09-01  Bruno Haible  <bruno@clisp.org>
81223
81224         * gnulib-tool (import): In the first-use case, provide defaults.
81225
81226 2005-09-01  Bruno Haible  <bruno@clisp.org>
81227
81228         * gnulib-tool (func_import): Remove the .tmp files.
81229
81230 2005-09-01  Bruno Haible  <bruno@clisp.org>
81231
81232         * gnulib-tool (func_import): Fix handling of symbolic links.
81233
81234 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81235
81236         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
81237         old glibc regex code mishandles strings longer than 2**31 bytes.
81238         This patch fixes this when the regex code is used in gnulib
81239         (i.e., outside glibc).
81240
81241         This patch should not affect the use of the regex code inside
81242         glibc.  No doubt this problem also needs to be handled for glibc
81243         as well, but the result will be an incompatible change to the
81244         glibc ABI, and the old ABI will have to be supported too.  That
81245         can be the the subject for another patch.
81246
81247         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
81248         governing whether the rest of this patch is active.  By default,
81249         the macro is disabled and the patch has no effect.
81250         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
81251         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
81252         (struct re_pattern_buffer, re_search, re_search_2, re_match):
81253         (re_match_2, re_set_registers): Use the new types.
81254         * lib/regex_internal.h (Idx, re_hashval_t): New types.
81255         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
81256         New macros.
81257         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
81258         (re_string_context_at, bin_tree_t, re_dfastate_t):
81259         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
81260         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
81261         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
81262         (re_string_char_size_at, re_string_wchar_at):
81263         (re_string_elem_size_at):
81264         Use the new types and macros to port to 64-bit hosts.
81265         Use unsigned types for internal values, so that the code
81266         mostly works even for arrays larger than SSIZE_MAX.
81267         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
81268         (search_duplicated_node, calc_eclosure_iter, fetch_number):
81269         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
81270         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
81271         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
81272         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
81273         (calc_inveclosure, parse_dup_op, build_range_exp):
81274         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
81275         (fetch_number, create_token_tree, mark_opt_subexp):
81276         Likewise.
81277         * lib/regex_internal.c (re_string_construct_common,
81278         create_ci_newstate):
81279         (create_cd_newstate, re_string_allocate, re_string_construct):
81280         (re_string_realloc_buffers, build_wcs_upper_buffer):
81281         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81282         (re_string_reconstruct, re_string_peek_byte_case):
81283         (re_string_fetch_byte_case, re_string_context_at):
81284         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81285         (re_node_set_init_copy, re_node_set_add_intersect):
81286         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81287         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81288         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81289         (re_acquire_state, re_acquire_state_context, register_state):
81290         Likewise.
81291         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
81292         search_cur_bkref_entry):
81293         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
81294         (re_search_internal, re_search_2_stub, re_search_stub)
81295         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
81296         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
81297         (update_cur_sifted_state, check_dst_limits):
81298         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81299         (check_subexp_limits, sift_states_bkref, merge_state_array):
81300         (check_subexp_matching_top, get_subexp, get_subexp_sub):
81301         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
81302         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81303         (expand_bkref_cache, check_node_accept_bytes):
81304         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
81305         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
81306         (acquire_init_state_context, check_halt_node_context):
81307         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
81308         (sift_states_backward, clean_state_log_if_needed):
81309         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
81310         (find_recover_state, transit_state_sb, transit_state_mb):
81311         (transit_state_bkref, build_trtable, match_ctx_clean):
81312         Likewise.
81313         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
81314         to work around an assumption that REG_MISSING is negative.
81315
81316         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
81317         (seek_collating_symbol_entry) [defined _LIBC]:
81318         (lookup_collation_sequence_value) [defined _LIBC]:
81319         (build_range_exp, build_collating_symbol) [defined _LIBC]:
81320         Use prototypes rather than old-style function definitions.
81321         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
81322         (transit_state_sb) [0]:
81323         (find_collation_sequence_value) [defined _LIBC]: Likewise.
81324
81325         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
81326         rm_eo.
81327
81328         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
81329         (optimize_subexps, lower_subexp):
81330         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
81331         since the signed shift might overflow.  Use 1u<<31 instead.
81332         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
81333         Likewise.
81334         * lib/regexec.c (check_dst_limits_calc_pos_1,
81335         check_subexp_matching_top): Likewise.
81336
81337         * lib/regcomp.c (optimize_subexps, lower_subexp):
81338         Use CHAR_BIT rather than 8, for clarity.
81339         * lib/regexec.c (check_dst_limits_calc_pos_1):
81340         (check_subexp_matching_top): Likewise.
81341         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
81342         have to worry about portability issues when shifting it left.
81343         Remove no-longer-needed test for table_size > 0.
81344         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
81345         in a word, as the resulting behavior is undefined.
81346         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
81347         in one case, a <= should have been an <, and in another case the
81348         whole test was missing.
81349         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
81350         the standard name CHAR_BIT.
81351         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
81352         this is not true on one's complement and signed-magnitude hosts.
81353
81354         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
81355         next_last_offset.
81356         (struct re_dfa_t): Remove unused member states_alloc.
81357         * lib/regcomp.c (init_dfa): Don't initialize unused members.
81358
81359 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81360
81361         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
81362         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
81363         and large-file glibc and in 32-bit large-file Solaris.
81364
81365 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81366
81367         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
81368         lengths fit in regoff_t; this isn't true if regoff_t is the same
81369         width as size_t.
81370         * lib/regex.c (re_search_internal): 5th arg is LAST_START
81371         (= START + RANGE) instead of RANGE.  This avoids overflow
81372         problems when regoff_t is the same width as size_t.
81373         All callers changed.
81374         (re_search_2_stub): Check for overflow when adding the
81375         sizes of the two strings.
81376         (re_search_stub): Check for overflow when adding START
81377         to RANGE; if it occurs, substitute the extreme value.
81378
81379 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81380
81381         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
81382
81383 2005-08-31  Jim Meyering  <jim@meyering.net>
81384
81385         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
81386         a pointer-to-const.
81387         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
81388         (register_state): Likewise.
81389         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
81390         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81391         (group_nodes_into_DFAstates): Likewise.
81392
81393 2005-08-31  Jim Meyering  <jim@meyering.net>
81394
81395         * check-module: Add a FIXME comment.
81396
81397 2005-08-31  Eric Blake  <ebb9@byu.net>
81398
81399         * modules/unistd-safer (Files): Add unistd--.h.
81400         * modules/stdio-safer (Files): Add stdio--.h.
81401
81402 2005-08-31  Derek Price  <derek@ximbiot.com>
81403
81404         * lib/getdelim.c (getdelim): Return EOF on EOF.
81405         Reported by Larry Jones <lawrence.jones@ugs.com>.
81406
81407 2005-08-31  Bruno Haible  <bruno@clisp.org>
81408
81409         Avoid unnecessary diffs in the generated lib/Makefile.am.
81410         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
81411         the generated files.
81412         (func_import): Don't set cmd.
81413
81414 2005-08-31  Bruno Haible  <bruno@clisp.org>
81415
81416         * lib/strstr.c: Include <stddef.h>, for NULL.
81417         * lib/strcasestr.c: Likewise.
81418         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81419
81420 2005-08-31  Bruno Haible  <bruno@clisp.org>
81421
81422         * gnulib-tool: New option --macro-prefix.
81423         (func_import): Use macro_prefix.
81424         (import): Handle option --macro-prefix.
81425
81426 2005-08-31  Bruno Haible  <bruno@clisp.org>
81427
81428         * gnulib-tool (import): Rename most ac_* variables to cached_*.
81429         Also use new variables cached_lgpl, cached_libtool.
81430
81431 2005-08-31  Bruno Haible  <bruno@clisp.org>
81432
81433         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
81434         always instantiating them.
81435
81436 2005-08-31  Bruno Haible  <bruno@clisp.org>
81437
81438         * gnulib-tool (func_import): Read the previous cached settings
81439         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
81440         earlier added by gnulib but are now dropped. Warn when a gnulib file
81441         overwrites a non-gnulib file.
81442
81443 2005-08-31  Bruno Haible  <bruno@clisp.org>
81444
81445         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
81446         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
81447         projects that don't keep autogenerated files in CVS. Put into
81448         actioncmd only the specified modules, not the transitive closure.
81449
81450 2005-08-31  Bruno Haible  <bruno@clisp.org>
81451
81452         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
81453         Create directories that shall be filled.
81454         (import): Don't look for gl_* macros in configure.ac. Recurse across
81455         all directories containing a gnulib-cache.m4 files, if meaningful.
81456
81457 2005-08-31  Bruno Haible  <bruno@clisp.org>
81458
81459         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
81460         (import): Set seen_libtool when we see gl_LIBTOOL.
81461
81462 2005-08-31  Bruno Haible  <bruno@clisp.org>
81463
81464         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
81465         declaration macro definitions from generated gnulib.m4.
81466
81467 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
81468
81469         * lib/iconvme.h: Add prototype for iconv_alloc.
81470
81471 2005-08-29  Simon Josefsson  <jas@extundo.com>
81472
81473         * lib/iconvme.c: Fix errno.
81474
81475 2005-08-29  Bruno Haible  <bruno@clisp.org>
81476
81477         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
81478         that it works when the directory contains spaces.
81479
81480 2005-08-29  Bruno Haible  <bruno@clisp.org>
81481
81482         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
81483
81484 2005-08-29  Bruno Haible  <bruno@clisp.org>
81485
81486         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
81487         Emit more advice.
81488
81489 2005-08-29  Bruno Haible  <bruno@clisp.org>
81490         and Stepan Kasal  <kasal@ucw.cz>
81491
81492         * check-module: If more parameters are given, check each of them
81493         separately; add more exceptions, as noted by Jim Meyering.
81494         (check_module): New procedure.
81495         (%exempt_header): Now contains all exceptions.
81496
81497 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
81498
81499         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
81500
81501 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
81502
81503         * lib/iconvme.c: Split iconv_string into iconv_alloc.
81504
81505 2005-08-28  Bruno Haible  <bruno@clisp.org>
81506
81507         * m4/gnulib-tool.m4: New file.
81508
81509 2005-08-27  Jim Meyering  <jim@meyering.net>
81510
81511         * modules/unistd-safer (Files): Add pipe-safer.c.
81512         * modules/fcntl-safer (Files): Add creat-safer.c.
81513
81514 2005-08-27  Jim Meyering  <jim@meyering.net>
81515
81516         * m4/stdlib-safer.m4: New file.  From coreutils.
81517         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
81518         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
81519         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
81520         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
81521         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
81522
81523 2005-08-27  Jim Meyering  <jim@meyering.net>
81524
81525         * lib/fopen-safer.c: Merge minor changes from coreutils.
81526         * lib/dup-safer.c: Likewise.
81527         * lib/fd-safer.c: Likewise.
81528
81529         Merge from coreutils.
81530         * lib/stdio--.h: New file.
81531         * lib/stdlib--.h: New file.
81532         * lib/mkstemp-safer.c: New file.
81533
81534         GNU tar needs these.
81535         * lib/pipe-safer.c: New file.
81536         * lib/creat-safer.c: New file.
81537         * lib/fcntl--.h (creat): Define to creat_safer.
81538         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
81539         * lib/unistd--.h (pipe): Define to pipe_safer.
81540         * lib/unistd-safer.h: Declare pipe_safer.
81541
81542 2005-08-26  Simon Josefsson  <jas@extundo.com>
81543
81544         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
81545         Haible <bruno@clisp.org>.
81546
81547 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
81548
81549         * lib/regex_internal.h: Remove all references to
81550         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
81551         or better.
81552         (bitset_not, bitset_merge, bitset_not_merge):
81553         (bitset_mask, re_string_allocate, re_string_construct):
81554         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
81555         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
81556         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
81557         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
81558         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81559         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81560         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
81561         (re_acquire_state_context):
81562         Remove unnecessary forward decls.
81563         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
81564         Put __attribute at function definition,
81565         now that the function decl has been removed.
81566         * lib/regex_internal.c (re_string_peek_byte_case):
81567         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
81568         Likewise.
81569
81570 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
81571
81572         * m4/regex.m4: Add AC_PREREQ(2.50).
81573         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
81574
81575 2005-08-25  Simon Josefsson  <jas@extundo.com>
81576
81577         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
81578         __fsetlocking.
81579
81580 2005-08-25  Simon Josefsson  <jas@extundo.com>
81581
81582         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
81583         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
81584         GLIBC specific code.
81585
81586 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81587
81588         Make regex safe for g++.  This fixes one real bug (an "err"
81589         that should have been "*err").  g++ problem reported by
81590         Sam Steingold.
81591         * lib/regex_internal.h (re_calloc): New macro, consistent with
81592         re_malloc etc.  All callers of calloc changed to use re_calloc.
81593         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
81594         not int.  All callers changed.
81595         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
81596         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
81597         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
81598         (find_recover_state): Change "err" to "*err"; this fixes what
81599         appears to be a real bug.
81600         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
81601         versus int.
81602
81603 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81604
81605         * modules/regex (Depends-on): Add malloc, since the code
81606         assumes that !malloc(0) means failure.
81607
81608 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81609
81610         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
81611
81612         alloca modernization/simplification for regex.
81613         * lib/regex.c: Remove portability cruft for alloca.  This no longer
81614         needs to be at the start of the file, and can be moved into
81615         regex_internal.h and simplified.
81616         * lib/regex_internal.h: Include <alloca.h>.
81617         (__libc_use_alloca) [!defined _LIBC]: New macro.
81618         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
81619         now works outside glibc.
81620
81621 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81622
81623         * config/srclist.txt: Add glibc bugs 1241, 1245.
81624
81625 2005-08-25  Jim Meyering  <jim@meyering.net>
81626
81627         * lib/open-safer.c: Include <config.h>.
81628         Otherwise, we'd lose LARGEFILE support in any file using
81629         e.g. "fcntl--.h"
81630
81631 2005-08-25  Bruno Haible  <bruno@clisp.org>
81632
81633         * m4/minmax.m4: Require autoconf 2.52.
81634         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
81635         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
81636         alternatives of translit over the alphabet.
81637         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
81638
81639 2005-08-24  Simon Josefsson  <jas@extundo.com>
81640
81641         * tests/test-getpass.c: New file.
81642
81643 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81644
81645         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
81646         for GNU regex features.
81647
81648 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81649
81650         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
81651         * lib/regex.h (regerror): Likewise.
81652
81653         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
81654         requires this.  (The code never needed it.)
81655
81656         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
81657         All uses of recently-renamed identifiers changed to use the new,
81658         POSIX-compliant names.  The code will build and run just fine
81659         without these changes, but it's better to eat our own dog food
81660         and use the standard-conforming names.
81661
81662         * lib/regex.h: Fix a multitude of POSIX name space violations.
81663         These changes have an effect only for programs that define
81664         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
81665         do not change anything for programs compiled in the normal way.
81666         Also, there is no effect on the ABI.
81667
81668         (_REGEX_SOURCE): New macro.
81669         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
81670         defined and _GNU_SOURCE is not; this fixes a name space violation.
81671
81672         Rename the following macros to obey POSIX requirements.
81673         The old names are still visible as macros if _REGEX_SOURCE is defined.
81674         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
81675         RE_BACKSLASH_ESCAPE_IN_LISTS.
81676         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
81677         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
81678         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
81679         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
81680         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
81681         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
81682         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
81683         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
81684         (REG_INTERVALS): renamed from RE_INTERVALS.
81685         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
81686         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
81687         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
81688         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
81689         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
81690         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
81691         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
81692         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
81693         RE_UNMATCHED_RIGHT_PAREN_ORD.
81694         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
81695         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
81696         (REG_DEBUG): renamed from RE_DEBUG.
81697         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
81698         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
81699         unusual, since we can't clash with the POSIX REG_ICASE.
81700         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
81701         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
81702         (REG_NO_SUB): renamed from RE_NO_SUB.
81703         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
81704         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
81705         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
81706         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
81707         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
81708         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
81709         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
81710         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
81711         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
81712         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
81713         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
81714         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
81715         RE_SYNTAX_POSIX_MINIMAL_BASIC.
81716         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
81717         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
81718         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
81719         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
81720         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
81721         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
81722         (REG_FIXED): Renamed from REGS_FIXED.
81723         (REG_NREGS): Renamed from RE_NREGS.
81724
81725         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
81726         of other REG_* macros, since POSIX says the user is allowed to
81727         #undef these macros selectively.
81728
81729         (reg_errcode_t): Update comment stating what other tables need
81730         to be consistent.
81731
81732         Rename the following enum values to obey POSIX requirements.
81733         The old names are still visible as macros.
81734         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
81735         is not defined, since GNU is supposed to be a superset of POSIX as
81736         much as possible, and since we want reg_errcode_t to be a signed
81737         type for implementation consistency.
81738         (_REG_NOERROR): Renamed from REG_NOERROR.
81739         (_REG_NOMATCH): Renamed from REG_NOMATCH.
81740         (_REG_BADPAT): Renamed from REG_BADPAT.
81741         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
81742         (_REG_ECTYPE): Renamed from REG_ECTYPE.
81743         (_REG_EESCAPE): Renamed from REG_EESCAPE.
81744         (_REG_ESUBREG): Renamed from REG_ESUBREG.
81745         (_REG_EBRACK): Renamed from REG_EBRACK.
81746         (_REG_EPAREN): Renamed from REG_EPAREN.
81747         (_REG_EBRACE): Renamed from REG_EBRACE.
81748         (_REG_BADBR): Renamed from REG_BADBR.
81749         (_REG_ERANGE): Renamed from REG_ERANGE.
81750         (_REG_ESPACE): Renamed from REG_ESPACE.
81751         (_REG_BADRPT): Renamed from REG_BADRPT.
81752         (_REG_EEND): Renamed from REG_EEND.
81753         (_REG_ESIZE): Renamed from REG_ESIZE.
81754         (_REG_ERPAREN): Renamed from REG_ERPAREN.
81755         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
81756         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
81757         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
81758         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
81759
81760         (_REG_RE_NAME, _REG_RM_NAME): New macros.
81761         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
81762         changed.  But support the old name if the new one is not defined
81763         and if _REGEX_SOURCE.
81764
81765         Change the following member names in struct re_pattern_buffer.
81766         The old names are still supported if !_REGEX_SOURCE.
81767         The new names are always supported, regardless of _REGEX_SOURCE.
81768         (re_buffer): Renamed from buffer.
81769         (re_allocated): Renamed from allocated.
81770         (re_used): Renamed from used.
81771         (re_syntax): Renamed from syntax.
81772         (re_fastmap): Renamed from fastmap.
81773         (re_translate): Renamed from translate.
81774         (re_can_be_null): Renamed from can_be_null.
81775         (re_regs_allocated): Renamed from regs_allocated.
81776         (re_fastmap_accurate): Renamed from fastmap_accurate.
81777         (re_no_sub): Renamed from no_sub.
81778         (re_not_bol): Renamed from not_bol.
81779         (re_not_eol): Renamed from not_eol.
81780         (re_newline_anchor): Renamed from newline_anchor.
81781
81782         Change the following member names in struct re_registers.
81783         The old names are still supported if !_REGEX_SOURCE.
81784         The new names are always supported, regardless of _REGEX_SOURCE.
81785         (rm_num_regs): Renamed from num_regs.
81786         (rm_start): Renamed from start.
81787         (rm_end): Renamed from end.
81788
81789         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
81790         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
81791         Prepend __ to parameter names.
81792
81793         Undo yesterday's changes.
81794
81795 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81796
81797         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
81798         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
81799         lib/regex.c.
81800
81801 2005-08-24  Jim Meyering  <jim@meyering.net>
81802
81803         Sync from coreutils.
81804         * m4/fcntl-safer.m4: New file.
81805
81806         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
81807         and object files for this module.
81808
81809 2005-08-24  Jim Meyering  <jim@meyering.net>
81810
81811         Sync from coreutils.
81812         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
81813
81814 2005-08-24  Jim Meyering  <jim@meyering.net>
81815
81816         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
81817         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
81818
81819 2005-08-24  Jim Meyering  <jim@meyering.net>
81820
81821         * modules/fcntl-safer: New module.
81822         * modules/fts (Depends-on): Add fcntl-safer.
81823         * MODULES.html.sh (File descriptor based Input/Output):
81824         Add fcntl-safer.
81825
81826 2005-08-24  Bruno Haible  <bruno@clisp.org>
81827
81828         Support for unit test modules.
81829         * modules/README: Mention tests modules.
81830         * modules/TEMPLATE-TESTS: New file.
81831         * gnulib-tool: New options --extract-tests-module, --with-tests and
81832         --tests-base (unused for the moment).
81833         (testsbase, inctests): New variables.
81834         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
81835         (func_verify_module): Exclude TEMPLATE-TESTS.
81836         (func_verify_nontests_module, func_verify_tests_module): New functions.
81837         (func_get_dependencies): Add implicit dependency for tests modules.
81838         (func_get_tests_module): New function.
81839         (func_modules_transitive_closure): When --with-tests was specified,
81840         include the unit tests as well, unless explicitly avoided.
81841         (func_emit_lib_Makefile_am): Ignore the tests modules here.
81842         (func_emit_tests_Makefile_am): New function.
81843         (func_create_testdir): When --with-tests was specified, emit a
81844         tests/ directory.
81845         * MODULES.html.sh (Future developments): Update.
81846
81847 2005-08-24  Bruno Haible  <bruno@clisp.org>
81848
81849         * modules/tls-tests: New file.
81850         * tests/test-tls.c: New file, from GNU gettext.
81851
81852 2005-08-24  Bruno Haible  <bruno@clisp.org>
81853
81854         * modules/lock-tests: New file.
81855         * tests/test-lock.c: New file, from GNU gettext.
81856
81857 2005-08-24  Bruno Haible  <bruno@clisp.org>
81858
81859         * lib/lock.h: Add multiple inclusion guard.
81860         * lib/tls.h: Add multiple inclusion guard.
81861
81862 2005-08-24  Bruno Haible  <bruno@clisp.org>
81863
81864         * gnulib-tool: Add support for the --aux-dir option to
81865         --create-testdir, --create-megatestdir, --test, --megatest.
81866         (func_create_testdir, func_create_megatestdir): Optionally emit a
81867         AC_CONFIG_AUX_DIR directive.
81868         (create-testdir, create-megatestdir, test, megatest): Provide a
81869         default value for $auxdir.
81870
81871 2005-08-24  Bruno Haible  <bruno@clisp.org>
81872
81873         * gnulib-tool (import): Use compound statement instead of subshell
81874         where possible.
81875
81876 2005-08-24  Bruno Haible  <bruno@clisp.org>
81877
81878         * gnulib-tool (import): Change --aux-dir default to "build-aux".
81879
81880 2005-08-24  Bruno Haible  <bruno@clisp.org>
81881
81882         * gnulib-tool (func_version): Update.
81883
81884 2005-08-24  Bruno Haible  <bruno@clisp.org>
81885
81886         * gnulib-tool (func_import, func_create_testdir,
81887         func_create_megatestdir): Quote all autoconf macro arguments.
81888
81889 2005-08-24  Bruno Haible  <bruno@clisp.org>
81890
81891         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
81892         option --force, because --force causes the aclocal.m4 of each
81893         subdirectory to be newer than the corresponding config.h.in.
81894
81895 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81896
81897         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
81898         All contents moved to gl_REGEX.
81899         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
81900         assume that it does.
81901
81902 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81903
81904         * lib/regex.h (REG_NOSYS)
81905         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
81906         Define, since POSIX requires it as of 2001.
81907         (_REG_ENOSYS)
81908         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
81909         New private symbol, used to keep the enum signed in all cases.
81910         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
81911         Youngman in
81912         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
81913
81914         * lib/regex_internal.c (re_string_skip_chars, register_state):
81915         (calc_state_hash):
81916         Remove forward decls; no longer needed now that we use prototypes.
81917         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
81918         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
81919         (clean_state_log_if_needed): Likewise.
81920
81921 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81922
81923         * config/srclist.txt: Add glibc bugs 1231-1233.
81924
81925 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81926
81927         Fix problems reported by Sam Steingold in
81928         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
81929         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
81930         assumed that reg_errcode_t is a signed type, which is not
81931         necessarily true if _XOPEN_SOURCE is not defined.
81932         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
81933         since some compilers warn about it otherwise.
81934
81935 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81936
81937         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
81938         (init_word_char, create_initial_state, duplicate_node_closure):
81939         (fetch_token, peek_token_bracket, build_range_exp):
81940         (build_collating_symbol): Remove forward decls; no longer needed
81941         now that we use prototypes.
81942
81943         * lib/regcomp.c:
81944         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
81945         (re_compile_fastmap_iter, regcomp, regerror, regfree):
81946         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
81947         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
81948         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
81949         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
81950         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
81951         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
81952         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
81953         (build_range_exp, build_collating_symbol, parse_bracket_exp):
81954         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
81955         (build_charclass, build_charclass_op, fetch_number, create_tree):
81956         (create_token_tree, mark_opt_subexp, duplicate_tree):
81957         Use prototypes rather than old-style definitions.
81958
81959         * lib/regex_internal.c:
81960         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
81961         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
81962         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81963         (re_string_reconstruct, re_string_peek_byte_case):
81964         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
81965         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81966         (re_node_set_init_copy, re_node_set_add_intersect):
81967         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81968         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81969         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81970         (re_acquire_state, re_acquire_state_context, register_state):
81971         (create_ci_newstate, create_cd_newstate, free_state):
81972         Likewise.
81973         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
81974         re_search_2):
81975         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
81976         (re_search_internal, prune_impossible_nodes):
81977         (acquire_init_state_context, check_matching, static):
81978         (check_halt_node_context, check_halt_state_context, proceed_next_node):
81979         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
81980         (update_regs, sift_states_backward, build_sifted_states):
81981         (clean_state_log_if_needed, merge_state_array):
81982         (update_cur_sifted_state, add_epsilon_src_nodes):
81983         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
81984         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
81985         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
81986         (find_recover_state, check_subexp_matching_top, transit_state_mb):
81987         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
81988         (check_arrival, check_arrival_add_next_nodes):
81989         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81990         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81991         (check_node_accept_bytes, check_node_accept, extend_buffers):
81992         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
81993         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
81994         (sift_ctx_init):
81995         Likewise.
81996
81997         * lib/regex_internal.h:
81998         (re_string_allocate, re_string_construct, re_string_reconstruct):
81999         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
82000         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
82001         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
82002         (re_string_context_at, re_string_peek_byte_case):
82003         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
82004         is defined, since we now use prototypes always.
82005
82006         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
82007         C89 or better.  All uses removed.
82008
82009 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82010
82011         * config/srclist.txt: Add glibc bugs 1220-1227.
82012
82013 2005-08-20  Jim Meyering  <jim@meyering.net>
82014
82015         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
82016         of unused local, dfa.
82017
82018 2005-08-20  Bruno Haible  <bruno@clisp.org>
82019
82020         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
82021
82022 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82023
82024         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
82025         (re_node_set_insert_last, re_dfa_add_node):
82026         Rename local variables to avoid GCC shadowing warnings.
82027
82028 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82029
82030         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
82031         [defined lint]: Suppress bogus uninitialized-variable warnings.
82032
82033         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
82034         and let the caller return REG_ESPACE if out of space.  This
82035         removes an uninitialied-variable warning with GCC 4.0.1, and also
82036         avoids taking the address of a local variable.  All callers
82037         changed.
82038
82039 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82040
82041         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
82042         $LIBCSRC/posix/regexec.c.
82043         Add glibc bug 1217 for regcomp.c.
82044
82045 2005-08-19  Jim Meyering  <jim@meyering.net>
82046
82047         * lib/regexec.c (proceed_next_node): Redo local variables to
82048         avoid GCC shadowing warnings.
82049
82050 2005-08-18  Bruno Haible  <bruno@clisp.org>
82051
82052         * lib/strstr.c (strstr): Fix return value in multibyte case.
82053         * lib/strcasestr.c (strcasestr): Likewise.
82054
82055 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
82056
82057         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
82058
82059 2005-08-17  Jim Meyering  <jim@meyering.net>
82060
82061         Make the %s format (seconds since the epoch) work for a negative
82062         number and when used with a zero-padded field width, e.g. %015s.
82063
82064         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
82065         label so that it precedes the code to set `digits'.  Otherwise,
82066         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
82067         print `00-22'.  Now, it prints `-0022', as it should.
82068
82069 2005-08-17  Bruno Haible  <bruno@clisp.org>
82070
82071         * modules/strstr (Files): Add m4/mbrtowc.m4.
82072         (Depends-on): Add mbuiter.
82073
82074 2005-08-17  Bruno Haible  <bruno@clisp.org>
82075
82076         * modules/strcasestr: New file.
82077         * MODULES.html.sh (String handling, based on ANSI C 89): Add
82078         strcasestr.
82079
82080 2005-08-17  Bruno Haible  <bruno@clisp.org>
82081
82082         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
82083
82084 2005-08-17  Bruno Haible  <bruno@clisp.org>
82085
82086         * modules/mbuiter: New file.
82087         * MODULES.html.sh (Extended multibyte and wide character utilities):
82088         Add mbuiter.
82089
82090 2005-08-17  Bruno Haible  <bruno@clisp.org>
82091
82092         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
82093         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
82094
82095 2005-08-17  Bruno Haible  <bruno@clisp.org>
82096
82097         * m4/strcasestr.m4: New file.
82098
82099 2005-08-17  Bruno Haible  <bruno@clisp.org>
82100
82101         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
82102         * lib/strstr.c: Completely rewritten, with multibyte locale support.
82103
82104 2005-08-17  Bruno Haible  <bruno@clisp.org>
82105
82106         * lib/strcasestr.h: New file.
82107         * lib/strcasestr.c: New file.
82108
82109 2005-08-17  Bruno Haible  <bruno@clisp.org>
82110
82111         * lib/strcasecmp.c: Use mbuiter.h.
82112
82113 2005-08-17  Bruno Haible  <bruno@clisp.org>
82114
82115         * lib/mbuiter.h: New file.
82116
82117 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
82118
82119         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
82120         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
82121         and gl_GETOPT are both invoked via different paths (as happens
82122         with GNU tar CVS because it uses both argp and getopt), the former
82123         wins.
82124
82125 2005-08-16  Bruno Haible  <bruno@clisp.org>
82126
82127         * modules/tls: New file.
82128         * MODULES.html.sh (Multithreading): Add tls.
82129
82130 2005-08-16  Bruno Haible  <bruno@clisp.org>
82131
82132         * modules/strnlen1: New file.
82133         * MODULES.html.sh (String handling): Add strnlen1.
82134
82135 2005-08-16  Bruno Haible  <bruno@clisp.org>
82136
82137         * modules/strcase (Files): Add m4/mbrtowc.m4.
82138         (Depends-on): Add strnlen1, mbchar.
82139
82140 2005-08-16  Bruno Haible  <bruno@clisp.org>
82141
82142         * modules/mbiter: New file.
82143         * MODULES.html.sh (Extended multibyte and wide character utilities):
82144         Add mbiter.
82145
82146 2005-08-16  Bruno Haible  <bruno@clisp.org>
82147
82148         * modules/mbfile: New file.
82149         * MODULES.html.sh (Extended multibyte and wide character utilities):
82150         Add mbfile.
82151
82152 2005-08-16  Bruno Haible  <bruno@clisp.org>
82153
82154         * modules/mbchar: New file.
82155         * MODULES.html.sh (Extended multibyte and wide character utilities):
82156         New section.
82157
82158 2005-08-16  Bruno Haible  <bruno@clisp.org>
82159
82160         * m4/tls.m4: New file, from GNU gettext.
82161
82162 2005-08-16  Bruno Haible  <bruno@clisp.org>
82163
82164         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
82165         always.
82166         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
82167
82168 2005-08-16  Bruno Haible  <bruno@clisp.org>
82169
82170         * m4/mbiter.m4: New file.
82171
82172 2005-08-16  Bruno Haible  <bruno@clisp.org>
82173
82174         * m4/mbfile.m4: New file.
82175
82176 2005-08-16  Bruno Haible  <bruno@clisp.org>
82177
82178         * m4/mbchar.m4: New file.
82179
82180 2005-08-16  Bruno Haible  <bruno@clisp.org>
82181
82182         * lib/tls.h: New file, from GNU gettext.
82183         * lib/tls.c: New file, from GNU gettext.
82184
82185 2005-08-16  Bruno Haible  <bruno@clisp.org>
82186
82187         * lib/strnlen1.h: New file.
82188         * lib/strnlen1.c: New file.
82189
82190 2005-08-16  Bruno Haible  <bruno@clisp.org>
82191
82192         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
82193         (mbi_init): Update.
82194         (mbi_avail, mbi_advance): Let the iteration end before the terminating
82195         NUL byte, not after it.
82196
82197 2005-08-16  Bruno Haible  <bruno@clisp.org>
82198
82199         * lib/strcase.h (strcasecmp): Add note in comments.
82200         * lib/strncasecmp.c: Use code from strcasecmp.c.
82201         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
82202         (strcasecmp): Work correctly in multibyte locales.
82203
82204 2005-08-16  Bruno Haible  <bruno@clisp.org>
82205
82206         * lib/mbiter.h: New file.
82207
82208 2005-08-16  Bruno Haible  <bruno@clisp.org>
82209
82210         * lib/mbfile.h: New file.
82211
82212 2005-08-16  Bruno Haible  <bruno@clisp.org>
82213
82214         * lib/mbchar.h: New file.
82215         * lib/mbchar.c: New file.
82216
82217 2005-08-16  Bruno Haible  <bruno@clisp.org>
82218
82219         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
82220         the valid ones. Makes the comparison operations transitive:
82221         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
82222         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
82223
82224 2005-08-15  Simon Josefsson  <jas@extundo.com>
82225
82226         * modules/ssize_t (License): Change to 'unlimited'.
82227
82228         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
82229
82230 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
82231
82232         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
82233         Add comments for each pending glibc patch.
82234
82235 2005-08-15  Bruno Haible  <bruno@clisp.org>
82236
82237         * lib/regex.h (__restrict_arr): Don't define to __restrict if
82238         __cplusplus is defined.
82239
82240 2005-08-14  Jim Meyering  <jim@meyering.net>
82241
82242         Sync from coreutils.
82243
82244         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
82245         Use the hash-table-based cycle-detection code not just when
82246         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
82247         Reported by James Youngman in
82248         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
82249         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
82250         FTS_TIGHT_CYCLE_CHECK.
82251         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
82252         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
82253         once again.
82254         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
82255         * lib/fts.c (fd_safer): Remove decl.
82256         Include fcntl--.h rather than unistd-safer.h
82257         (fts_safe_changedir): Don't call fd_safer; no longer needed
82258         now that we include fcntl--.h.
82259
82260 2005-08-12  Simon Josefsson  <jas@extundo.com>
82261
82262         * modules/getndelim2: Use ssize_t module.
82263         * modules/getnline: Likewise.
82264         * modules/safe-read: Likewise.
82265         * modules/xreadlink: Likewise.
82266
82267         * modules/ssize_t: New file.
82268
82269 2005-08-12  Simon Josefsson  <jas@extundo.com>
82270
82271         * m4/readline.m4: Look for termcap, curses or ncurses if required.
82272
82273 2005-08-12  Simon Josefsson  <jas@extundo.com>
82274
82275         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82276         ssize_t.
82277
82278 2005-08-12  Simon Josefsson  <jas@extundo.com>
82279
82280         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
82281         readline, getdelim and check_version.
82282         (Support for systems lacking ISO C 99: Sizes of integer types):
82283         Add size_max.
82284
82285 2005-08-12  Bruno Haible  <bruno@clisp.org>
82286
82287         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
82288
82289 2005-08-11  Simon Josefsson  <jas@extundo.com>
82290
82291         * modules/readline: New file.
82292
82293         * modules/strnlen (Files): Add strnlen.h.
82294
82295 2005-08-11  Simon Josefsson  <jas@extundo.com>
82296
82297         * m4/readline.m4: New file.
82298
82299 2005-08-11  Simon Josefsson  <jas@extundo.com>
82300
82301         * lib/readline.h, readline.c: New file.
82302
82303 2005-08-11  Simon Josefsson  <jas@extundo.com>
82304
82305         * doc/gnulib.texi (Initial import, Finishing touches): Mention
82306         gl_AVOID.
82307
82308 2005-08-11  Bruno Haible  <bruno@clisp.org>
82309
82310         * lib/strnlen.h (strnlen): Change parameter name to match comment.
82311
82312 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
82313
82314         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
82315
82316 2005-08-10  Simon Josefsson  <jas@extundo.com>
82317
82318         * tests/test-iconvme.c: New file.
82319
82320 2005-08-10  Simon Josefsson  <jas@extundo.com>
82321
82322         * m4/strnlen.m4: New file.
82323
82324         * m4/strndup.m4: Don't check for strnlen declaration, done in
82325         strnlen.m4.
82326
82327 2005-08-10  Simon Josefsson  <jas@extundo.com>
82328
82329         * lib/strndup.c: Use strnlen.h.
82330
82331         * lib/strnlen.h: New file.
82332
82333 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82334
82335         * README: Typos.
82336
82337 2005-08-02  Simon Josefsson  <jas@extundo.com>
82338
82339         * modules/readline: New file.
82340
82341 2005-08-02  Simon Josefsson  <jas@extundo.com>
82342
82343         * modules/getdelim: New file.
82344
82345         * modules/getline: Rewrite, don't use getndelim2.
82346
82347 2005-08-02  Simon Josefsson  <jas@extundo.com>
82348
82349         * m4/getline.m4: Separate out getdelim stuff into separate module.
82350
82351         * m4/getdelim.m4: New file.
82352
82353 2005-08-02  Simon Josefsson  <jas@extundo.com>
82354
82355         * lib/getline.h, getline.c: Rewrite.
82356
82357         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
82358
82359 2005-07-31  Bruno Haible  <bruno@clisp.org>
82360
82361         * lib/lock.h (gl_lock_initializer): New macro.
82362         (gl_lock_define_initialized): Use it.
82363         (gl_rwlock_initializer): New macro.
82364         (gl_rwlock_define_initialized): Use it.
82365         (gl_recursive_lock_initializer): New macro.
82366         (gl_recursive_lock_define_initialized): Use it.
82367
82368 2005-07-30  Karl Berry  <karl@gnu.org>
82369
82370         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
82371         Report from Ben Pfaff, regarding getopt.
82372
82373 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
82374
82375         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
82376         normal way.
82377         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
82378         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
82379         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
82380         (gl_GETOPT): Use the new macros.  Most of the implementation
82381         is moved to the new macros.  This is for programs like Emacs
82382         that don't want all the functionality of gl_GETOPT.
82383
82384 2005-07-26  Bruno Haible  <bruno@clisp.org>
82385
82386         * m4/lock.m4: Update from GNU gettext.
82387
82388 2005-07-26  Bruno Haible  <bruno@clisp.org>
82389
82390         * lib/lock.h: Update from GNU gettext.
82391         * lib/lock.c: Update from GNU gettext.
82392
82393 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
82394
82395         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
82396         obsolescent AC_TRY_RUN.  Include the default includes files, for
82397         'exit'.
82398
82399 2005-07-24  Bruno Haible  <bruno@clisp.org>
82400
82401         * modules/visibility: New file.
82402         * MODULES.html.sh (Misc): Add visibility.
82403
82404 2005-07-24  Bruno Haible  <bruno@clisp.org>
82405
82406         * m4/visibility.m4: New file.
82407
82408 2005-07-24  Bruno Haible  <bruno@clisp.org>
82409
82410         * doc/visibility.texi: New file.
82411
82412 2005-07-22  Bruno Haible  <bruno@clisp.org>
82413
82414         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
82415         $(ALLOCA_H), redundant through BUILT_SOURCES.
82416         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
82417         redundant through BUILT_SOURCES.
82418         * modules/byteswap (Makefile.am): Remove explicit dependency on
82419         $(BYTESWAP_H), redundant through BUILT_SOURCES.
82420         * modules/fnmatch (Makefile.am): Remove explicit dependency on
82421         $(FNMATCH_H), redundant through BUILT_SOURCES.
82422         * modules/getopt (Makefile.am): Remove explicit dependency on
82423         $(GETOPT_H), redundant through BUILT_SOURCES.
82424         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
82425         redundant through BUILT_SOURCES.
82426         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
82427         redundant through BUILT_SOURCES.
82428         * modules/stdbool (Makefile.am): Remove explicit dependency on
82429         $(STDBOOL_H), redundant through BUILT_SOURCES.
82430         * modules/stdint (Makefile.am): Remove explicit dependency on
82431         $(STDINT_H), redundant through BUILT_SOURCES.
82432         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
82433         Remove explicit dependency on $(SYSEXITS_H).
82434         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
82435
82436 2005-07-18  Simon Josefsson  <jas@extundo.com>
82437
82438         * lib/check-version.c (check_version): Accept identical versions too.
82439
82440 2005-07-18  Bruno Haible  <bruno@clisp.org>
82441
82442         * modules/lock: New file.
82443         * MODULES.html.sh (Multithreading): New section.
82444
82445 2005-07-18  Bruno Haible  <bruno@clisp.org>
82446
82447         * m4/lock.m4: New file, from GNU gettext.
82448
82449 2005-07-18  Bruno Haible  <bruno@clisp.org>
82450
82451         * lib/lock.h: New file, from GNU gettext.
82452         * lib/lock.c: New file, from GNU gettext.
82453
82454 2005-07-18  Bruno Haible  <bruno@clisp.org>
82455
82456         * lib/lock.h (gl_once_t): New type.
82457         (gl_once_define, gl_once): New macros.
82458         * lib/lock.c (fresh_once): New variable.
82459         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
82460         functions.
82461
82462 2005-07-16  Simon Josefsson  <jas@extundo.com>
82463
82464         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
82465         workaround, suggested by Bruno.
82466
82467 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82468
82469         * modules/xalloc (Depends-on): Add xalloc-die.
82470         * modules/xvasprintf (Depends-on): Add xalloc-die.
82471
82472 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82473
82474         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
82475         with a minor change.
82476
82477 2005-07-15  Bruno Haible  <bruno@clisp.org>
82478
82479         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
82480         When using lib/poll.c, define poll as rpl_poll.
82481
82482 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
82483
82484         * modules/argp (Depends-on): Remove unlocked-io.
82485
82486 2005-07-14  Derek Price  <derek@ximbiot.com>
82487
82488         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
82489         for glob symlink bug.
82490
82491 2005-07-14  Bruno Haible  <bruno@clisp.org>
82492
82493         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
82494         Instead, test for *_unlocked function declarations directly.
82495
82496 2005-07-11  Simon Josefsson  <jas@extundo.com>
82497
82498         * modules/size_max: New file.
82499
82500         * modules/xsize: Depend on size_max module for size_max.m4.
82501
82502 2005-07-11  Simon Josefsson  <jas@extundo.com>
82503
82504         * lib/size_max.h: New file.
82505
82506 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
82507
82508         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
82509         copyright symbol and the year.
82510         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
82511         (version_etc_va): Use parameterized copyright notice.
82512         Reword to conform to the current GNU coding standards.
82513
82514 2005-07-11  Karl Berry  <karl@gnu.org>
82515
82516         * doc/gnulib.texi (Quoting): new node.
82517         (Initial import): more info, from Patrice.
82518
82519 2005-07-11  Bruno Haible  <bruno@clisp.org>
82520
82521         * gnulib-tool (func_usage): Document option --avoid.
82522         (Command line options): Handle --avoid.
82523         (func_acceptable): New function.
82524         (func_modules_transitive_closure): Use it.
82525
82526 2005-07-11  Bruno Haible  <bruno@clisp.org>
82527
82528         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
82529         Reported by Jim Meyering.
82530
82531 2005-07-10  Bruno Haible  <bruno@clisp.org>
82532
82533         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
82534         Needed when size_t is smaller than 'unsigned int'.
82535         Reported by Paul Eggert.
82536
82537 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82538
82539         * modules/argp (Depends-on): Add unlocked-io
82540
82541 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82542
82543         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
82544         block of defines.
82545
82546 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
82547
82548         * config/srclist.txt: Comment out regcomp.c, since we have a porting
82549         fix now.
82550
82551 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
82552         and Paul Eggert  <eggert@cs.ucla.edu>
82553
82554         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
82555         in wint_t, not wchar_t.  Remove now-unnecessary cast.
82556
82557 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82558
82559         * modules/regex (Files): Add lib/regex_internal.c,
82560         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
82561         (Depends-on): Add extensions.
82562         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
82563
82564 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82565
82566         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
82567         pathconf.
82568         * m4/same.m4 (gl_SAME): Likewise.
82569         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
82570
82571         * m4/regex.m4: Adjust to new libc regex implementation.
82572         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
82573         all the .c and .h parts of (the new) regex.
82574         Quote the m4 stuff better.
82575         Check for RE_ICASE bug of old gnulib.
82576         Check for REG_STARTEND of recent libc.
82577         Rename local variables from jm_* to gl_*.
82578         Quote operand of "test -f".
82579         Say "recent enough" version of libc, not "version 2".
82580         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
82581         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
82582         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
82583         Remove check for btowc, isascii.
82584         Require AM_LANGINFO_CODESET.
82585
82586 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82587
82588         * lib/regex.c, regex.h: Sync from libc.
82589         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
82590         * lib/regexec.c:
82591         New files, synced from libc, except that regex_internal.h
82592         currently has a small porting fix.
82593
82594 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82595
82596         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
82597         regex_internal.c, regexec.c.
82598         Add regex_internal.h too, but as a comment, since the libc version
82599         is currently broken in gnulib mode.
82600
82601 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
82602
82603         Support programs like Emacs that use gnulib but not gettext.
82604         * MODULES.html.sh (Internationalization functions): Add gettext-h.
82605         * modules/gettext-h: New file.
82606         * modules/gettext (Files): Remove lib/gettext.h.
82607         (Depends-on): Add gettext-h.
82608         (Makefile.am): Remove lib_SOURCES.
82609         * modules/argmatch, modules/c-stack, modules/closeout:
82610         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
82611         * modules/execute, modules/file-type, modules/getaddrinfo:
82612         * modules/getopt, modules/human, modules/javacomp:
82613         * modules/javaexec, modules/mkdir-p, modules/obstack:
82614         * modules/openat, modules/pagealign_alloc, modules/pipe:
82615         * modules/quotearg, modules/regex, modules/rpmatch:
82616         * modules/unicodeio, modules/userspec, modules/version-etc:
82617         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
82618         * modules/xsetenv:
82619         Depend on gettext-h, not gettext.
82620
82621 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
82622
82623         * gnulib-tool (func_import): Add support for 'public domain' license.
82624         * modules/alloca, modules/atexit, modules/memmove:
82625         Now public domain, not GPL.
82626         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
82627         * modules/realloc, modules/strerror, modules/strtod:
82628         Now LGPL, not GPL.
82629
82630 2005-07-05  Bruno Haible  <bruno@clisp.org>
82631
82632         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
82633         autoconf CVS. Needed for mingw.
82634
82635 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82636
82637         Remove the dependency of the strftime module on the tzset module.
82638         * modules/strftime (Depends-on): Remove dependency on tzset.
82639
82640 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82641
82642         Remove the dependency of the strftime module on the tzset module.
82643         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
82644         gl_FUNC_TZSET_CLOBBER.
82645
82646 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82647
82648         Remove the dependency of the strftime module on the tzset module.
82649         * lib/strftime.c (my_strftime)
82650         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
82651         Copy the input structure, to work around some of the bug with
82652         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
82653         Solaris releases, you should also use the tzset module, but we won't
82654         require it as a dependency any more since we don't want LGPLed code
82655         to depend on GPLed code.
82656
82657 2005-07-02  Jim Meyering  <jim@meyering.net>
82658
82659         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
82660         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
82661         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
82662         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
82663
82664 2005-07-02  Jim Meyering  <jim@meyering.net>
82665
82666         * lib/backupfile.c (backup_args): Change a `0' to NULL.
82667
82668 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82669
82670         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
82671         declares only 'struct timespec;' (!).
82672
82673 2005-07-01  Jim Meyering  <jim@meyering.net>
82674
82675         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
82676         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
82677         * lib/save-cwd.c, tempname.c:
82678         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
82679         and don't include <sys/file.h>).
82680
82681 2005-06-29  Jim Meyering  <jim@meyering.net>
82682
82683         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
82684         type name.  Use the variable name instead.
82685         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
82686         Likewise.
82687
82688 2005-06-28  Simon Josefsson  <jas@extundo.com>
82689
82690         * modules/check-version (Files): Add check-version.m4.
82691
82692 2005-06-28  Simon Josefsson  <jas@extundo.com>
82693
82694         * m4/check-version.m4: New file, suggested by Jim Meyering
82695         <jim@meyering.net>.
82696
82697 2005-06-28  Simon Josefsson  <jas@extundo.com>
82698
82699         * lib/check-version.h, lib/check-version.c: New files.
82700
82701 2005-06-28  Simon Josefsson  <jas@extundo.com>
82702
82703         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
82704         collision with global variable.  Better indentation.  Don't
82705         increment buffer pointer beyond buffer end.  Based on comments
82706         from Paul Eggert <eggert@cs.ucla.edu>.
82707
82708         * lib/base64.h: Indent.
82709
82710 2005-06-28  Simon Josefsson  <jas@extundo.com>
82711
82712         * doc/gnulib.texi (Library version handling): New section.
82713
82714 2005-06-28  Jim Meyering  <jim@meyering.net>
82715
82716         * check-module (find_included_lib_files): Hard-code another
82717         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
82718         but modules/fts-lgpl (correctly) does not list those files.
82719
82720         * modules/canonicalize (Files): Add lib/pathmax.h.
82721
82722 2005-06-25  Simon Josefsson  <jas@extundo.com>
82723
82724         * modules/check-version: New file.
82725
82726 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
82727
82728         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
82729         initializer of struct addrinfo, as an indication that we don't
82730         care how many members the structure has.
82731
82732 2005-06-24  Derek Price  <derek@ximbiot.com>
82733         and Bruno Haible  <bruno@clisp.org>
82734
82735         Remove stat module & update lstat.
82736         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
82737         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82738         * m4/stat.m4: Remove this file.
82739
82740 2005-06-24  Derek Price  <derek@ximbiot.com>
82741         and Bruno Haible  <bruno@clisp.org>
82742
82743         Remove stat module & update lstat.
82744         * lib/stat.c: Remove this file...
82745         (slash_aware_lstat): ...moving this content and its support...
82746         * lib/lstat.c (rpl_lstat): ...into here.
82747         * lib/lstat.h: New file.
82748
82749 2005-06-24  Derek Price  <derek@ximbiot.com>
82750         and Bruno Haible  <bruno@clisp.org>
82751
82752         Remove stat module & update lstat.
82753         * config/srclist.txt (libc sources): Remove stat.
82754
82755 2005-06-24  Derek Price  <derek@ximbiot.com>
82756         and Bruno Haible  <bruno@clisp.org>
82757
82758         Remove stat module & update lstat.
82759         * MODULES.html.sh (stat): Remove.
82760         * MODULES.html: Regenerated.
82761         * modules/lstat (Description): Correct function name.
82762         (Files): Add "lstat.h".
82763         (Depends-on): Remove stat, add xalloc, stat-macros.
82764         * modules/stat: Remove this file.
82765         (Include): Add "lstat.h", remove <sys/stat.h>.
82766
82767 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
82768
82769         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
82770         (ranged_convert): Don't save conversion in a temporary struct.
82771         This causes a warning with GCC 4.0.0, and anyway in the typical
82772         case it's not worth the extra 100 bytes or so of code.
82773         (ranged_convert, __mktime_internal): When calling a function via a
82774         pointer P, use P () rather than (*P) (), as we now assume C89 or
82775         better.
82776
82777 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82778
82779         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
82780         "who -r" failed to give output.  Problem reported by Tim Waugh.
82781
82782         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
82783         (xcalloc): Use it to avoid needless tests.
82784         Problem reported by Jim Meyering.
82785
82786 2005-06-20  Derek Price  <derek@ximbiot.com>
82787
82788         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
82789         unnecessary for Autoconfs > 2.59c.
82790
82791 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82792
82793         * lib/argp.h (__option_is_short): Check upper limit of
82794         __key. Isprint() requires its argument to have the value
82795         of an unsigned char or EOF.
82796
82797 2005-06-16  Jim Meyering  <jim@meyering.net>
82798
82799         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
82800         when either N or S is zero.
82801
82802 2005-06-16  Derek Price  <derek@ximbiot.com>
82803
82804         * m4/bison.m4: Declare YACC & YFLAGS precious.
82805
82806 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
82807
82808         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
82809         multibyte string or pattern, fall back on unibyte matching.
82810         Problem reported by James Youngman.
82811
82812 2005-06-08  Bruno Haible  <bruno@clisp.org>
82813
82814         * modules/csharpcomp: New file.
82815         * MODULES.html.sh (C#): Add csharpcomp.
82816
82817 2005-06-08  Bruno Haible  <bruno@clisp.org>
82818
82819         * m4/csharpcomp.m4: New file, from GNU gettext.
82820
82821 2005-06-08  Bruno Haible  <bruno@clisp.org>
82822
82823         * lib/csharpcomp.h: New file, from GNU gettext.
82824         * lib/csharpcomp.c: New file, from GNU gettext.
82825         * lib/csharpcomp.sh.in: New file, from GNU gettext.
82826
82827 2005-06-08  Bruno Haible  <bruno@clisp.org>
82828
82829         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
82830         warning on mingw.
82831
82832 2005-06-07  Derek Price  <derek@ximbiot.com>
82833
82834         Sync from CVS.
82835         * lib/glob_.h: Indent nested #ifdef.
82836
82837 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82838
82839         Sync from coreutils.
82840         Use "file name" when talking about file names, instead of "filename"
82841         or "path", as per the GNU coding standards.
82842         * lib/mkdir-p.c: Renamed from makepath.c.
82843         (make_dir_parents): Renamed from make_path.  All callers changed.
82844         * lib/mkdir-p.h: Likewise.  All includers changed.
82845         * lib/filenamecat.c: Renamed from path-concat.c.
82846         (file_name_concat): Renamed from path_concat.  All callers changed.
82847         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
82848         * lib/filenamecat.h: Likewise.  All includers changed.
82849         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
82850         in comments or local variable names.
82851         * lib/basename.c: Likewise.
82852         * lib/canonicalize.c, canonicalize.h: Likewise.
82853         * lib/dirname.c, dirname.h: Likewise.
82854         * lib/euidaccess.c: Likewise.
82855         * lib/exclude.c: Likewise
82856         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
82857         * lib/fsusage.c, fsuage.h: Likewise.
82858         * lib/fts.c, fts_.h: Likewise.
82859         * lib/getcwd.c: Likewise.
82860         * lib/getloadavg.c: Likewise.
82861         * lib/mkstemp.c: Likewise.
82862         * lib/mountlist.c, mountlist.h: Likewise.
82863         * lib/openat.c, openat.h: Likewise.
82864         * lib/readlink-stub.c: Likewise.
82865         * lib/readutmp.c, readutmp.h: Likewise.
82866         * lib/rename.c: Likewise.
82867         * lib/rmdir.c: Likewise.
82868         * lib/same.c: Likewise.
82869         * lib/savedir.c: Likewise.
82870         * lib/stripslash.c: Likewise.
82871         * lib/tempname.c: Likewise.
82872         * lib/xreadlink.c: Likewise.
82873         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
82874         All uses changed.
82875         * lib/exclude.h: Likewise.
82876
82877         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
82878         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82879         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
82880         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82881         * lib/pathmax.h: Include <limits.h> unconditionally, since other
82882         files have been getting away with it for years (MORE/BSD 4.3
82883         is extinct now).
82884         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
82885         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82886
82887         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
82888         Define to 256, not 255, as per modern POSIX.
82889
82890 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82891
82892         Sync from coreutils.
82893         Use "file name" when talking about file names, instead of "filename"
82894         or "path", as per the GNU coding standards.
82895         * MODULES.html.sh: mkdir-p renamed from makepath.
82896         filenamecat renamed from path-concat.
82897         * modules/filenamecat: Renamed from modules/path-concat.
82898         (Files): filenamecat.h and filenamecat.c renamed from
82899         path-concat.h and path-concat.c.
82900         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
82901         (Include): filenamecat.h, not path-concat.h.
82902         * modules/mkdir-p: Renamed from modules/makepath.
82903         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
82904         makepath.c.
82905         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
82906         (Include): mkdir-p.h, not makepath.h.
82907
82908 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82909
82910         Sync from coreutils.
82911         * m4/mkdir-p.m4: Renamed from makepath.m4.
82912         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
82913         Rename files from makepath.c to mkdir-p.c, and from
82914         makepath.h to mkdir-p.h.
82915         * m4/filenamecat.m4: Renamed from path-concat.m4.
82916         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
82917         Rename files from path-concat.c to filenamecat.c,
82918         and from path-concat.h to filenamecat.h.
82919         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
82920         "file name" in local variables or comments.
82921         * m4/rename.m4: Likewise.
82922
82923 2005-06-01  Bruno Haible  <bruno@clisp.org>
82924
82925         * modules/csharpexec: New file.
82926         * MODULES.html.sh (C#): New section.
82927
82928 2005-06-01  Bruno Haible  <bruno@clisp.org>
82929
82930         * m4/csharp.m4: New file, from GNU gettext.
82931         * m4/csharpexec.m4: New file, from GNU gettext.
82932
82933 2005-06-01  Bruno Haible  <bruno@clisp.org>
82934
82935         * lib/csharpexec.h: New file, from GNU gettext.
82936         * lib/csharpexec.c: New file, from GNU gettext.
82937         * lib/csharpexec.sh.in: New file, from GNU gettext.
82938
82939 2005-05-31  Derek Price  <derek@ximbiot.com>
82940             Paul Eggert  <eggert@cs.ucla.edu>
82941
82942         Sync from cvs.
82943         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82944
82945 2005-05-31  Derek Price  <derek@ximbiot.com>
82946             Paul Eggert  <eggert@cs.ucla.edu>
82947
82948         Sync from cvs.
82949         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82950
82951 2005-05-29  Derek Price  <derek@ximbiot.com>
82952
82953         * config/srclist.txt (glob_.h, glob.c): Add these files.
82954
82955 2005-05-29  Derek Price  <derek@ximbiot.com>
82956
82957         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
82958         * modules/glob: New file.
82959         * modules/getlogin_r: Add link to POSIX spec in description.
82960
82961 2005-05-29  Derek Price  <derek@ximbiot.com>
82962             Paul Eggert  <eggert@cs.ucla.edu>
82963
82964         * m4/glob.m4: New file.
82965
82966 2005-05-29  Derek Price  <derek@ximbiot.com>
82967             Paul Eggert  <eggert@cs.ucla.edu>
82968
82969         * lib/glob_.h, lib/glob.c: New files.
82970
82971 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82972
82973         * modules/fts (Files): Remove m4/inttypes-pri.m4.
82974         * modules/fts-lgpl (Depends-on): Remove gettext.
82975
82976 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82977
82978         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
82979         and don't require gt_INTTYPES_PRI.
82980
82981 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82982
82983         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
82984
82985         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
82986         the configuration hassle isn't worth it.
82987         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
82988         (LONGEST_MODIFIER, PRIuMAX): Remove.
82989
82990 2005-05-27  Bruno Haible  <bruno@clisp.org>
82991
82992         * lib/getlogin_r.h: Remove second include of <stddef.h>.
82993
82994 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
82995
82996         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
82997         _POSIX_PTHREAD_SEMANTICS for Solaris.
82998
82999 2005-05-25  Derek Price  <derek@ximbiot.com>
83000
83001         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
83002
83003 2005-05-25  Derek Price  <derek@ximbiot.com>
83004             Paul Eggert  <eggert@cs.ucla.edu>
83005
83006         * modules/getlogin_r, m4/getlogin_r.m4: New files.
83007         * lib/getlogin_r.c, getlogin_r.h: New files.
83008
83009 2005-05-25  Bruno Haible  <bruno@clisp.org>
83010             Derek Price  <derek@ximbiot.com>
83011
83012         * lib/getlogin_r.h: Simplify API documentation.
83013
83014 2005-05-23  Derek Price  <derek@ximbiot.com>
83015
83016         * modules/minmax (Files): Add m4/minmax.m4.
83017         (configure.ac): Add gl_MINMAX.
83018
83019 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
83020
83021         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
83022         so that unistd-safer.h (GPL'ed code) need not be included.
83023
83024 2005-05-22  Bruno Haible  <bruno@clisp.org>
83025
83026         * m4/minmax.m4: New file.
83027         Based on a patch by Derek Price <derek@ximbiot.com>.
83028
83029 2005-05-22  Bruno Haible  <bruno@clisp.org>
83030
83031         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
83032         (INT64_MIN): Fix definition.
83033         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
83034
83035         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
83036         NEED_SIGNED_INT_TYPES.
83037
83038         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
83039         HAVE_SYSTEM_INTTYPES.
83040
83041 2005-05-22  Bruno Haible  <bruno@clisp.org>
83042
83043         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
83044         Also include <sys/param.h> if it defines MIN, MAX.
83045         Based on a patch by Derek Price <derek@ximbiot.com>.
83046
83047 2005-05-21  Jim Meyering  <jim@meyering.net>
83048
83049         * modules/fts (Files): Add m4/inttypes-pri.m4.
83050         (Depends-on): Add lstat and remove gettext.  Alphabetize.
83051
83052 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83053
83054         New fts module.
83055         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
83056         (setup_dir, free_dir): New functions.
83057         (enter_dir, leave_dir): Define trivial
83058         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
83059         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
83060         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
83061         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
83062         Move to fts-cycle.c.
83063         (fts_open): Use setup_dir.
83064         (fts_close): Use free_dir.
83065         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
83066         This adds a label and some gotos, but the alternatives were messier.
83067         Check for memory allocation failure when entering a dir.
83068         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
83069         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
83070         (FTS): New member fts_cycle, that is a union that contains the
83071         old active_dir_ht and cycle_state.  All uses changed to mention
83072         fts_cycle.ht and fts_cycle.state.
83073         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
83074         fts.c, with the following changes:
83075         (setup_dir, free_dir): New functions.
83076         (enter_dir): Now returns bool.  Return true if successful, false
83077         if memory exhausted.  All callers changed.
83078         Do not bother partly cleaning up on
83079         memory allocation failure; that is free_dir's job.
83080         However, free ad if hash_insert fails, to avoid memory leak.
83081         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
83082         fts->fts_options to see which union member to use.
83083
83084 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83085
83086         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
83087         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
83088
83089 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83090
83091         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
83092
83093 2005-05-20  Jim Meyering  <jim@meyering.net>
83094
83095         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
83096         Now a macro, to pacify GCC.
83097
83098 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
83099
83100         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
83101         of -1.
83102
83103 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
83104
83105         * lib/chown.c (rpl_chown): Return -1 on failure.
83106
83107 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
83108
83109         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
83110         Don't check for stddef.h.
83111         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
83112         don't use its results.
83113         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
83114         since we include them unconditionally.  Don't require
83115         AM_STDBOOL_H, since stdbool is a prerequisite.
83116         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
83117         since we assume C89 or better.
83118         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
83119         as we don't use their results.
83120         Don't check for fchdir, memmove, memset, strrchr, as we use
83121         them unconditionally.
83122         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
83123         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
83124
83125 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
83126
83127         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
83128         Include <stddef.h> unconditionally, since we assume C89 now.
83129         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
83130         * lib/fts.c: Include fts_.h first, to check interface.
83131         Do not include intprops.h; no longer needed.
83132         Include cycle-check.h and hash.h, since fts_.h no longer does.
83133         Remove unnecessary casts of closedir to void.
83134         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
83135         decide whether to decrement nlinks.
83136         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
83137         (FTS): Use struct hash_table * instead of Hash_table, so that
83138         we no longer need to include hash.h here.
83139
83140 2005-05-18  Jim Meyering  <jim@meyering.net>
83141
83142         * modules/dirfd (License): Change to LGPL.  Most of the code
83143         is already in the public domain.
83144
83145 2005-05-18  Jim Meyering  <jim@meyering.net>
83146
83147         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
83148         Reported by Yoann Vandoorselaere.
83149
83150 2005-05-17  Jim Meyering  <jim@meyering.net>
83151
83152         * m4/fts.m4: New file, from coreutils.
83153
83154 2005-05-17  Jim Meyering  <jim@meyering.net>
83155
83156         * lib/fts.c, lib/fts_.h: New files, from coreutils.
83157
83158 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83159
83160         Sync from coreutils.
83161         * m4/unlinkdir.m4: New file.
83162
83163 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83164
83165         Sync from coreutils.
83166         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
83167         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
83168         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
83169         White space changes only.
83170         * lib/makepath.c (make_path): Port to hosts where leading "//" is
83171         special.
83172         * lib/yesno.c: Include getline.h, not ctype.h.
83173         (yesno): Don't remove leading white space; POSIX doesn't allow it.
83174         Use getline to remove arbitrary restriction on response length.
83175
83176 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83177
83178         * config/srclist-update: Spell out "Street" in FSF postal
83179         mail address; this is the style the FSF seems to prefer.
83180
83181         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
83182         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
83183         this updates FSF postal mail address.
83184
83185         Sync from coreutils.
83186         * modules/unlinkdir: New file.
83187         * modules/yesno (Depends-on): Add getline.
83188         * MODULES.html.sh (File system functions): Add unlinkdir.
83189
83190 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83191
83192         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
83193         lib/strsep.h:
83194         Change the initial comment to refer to GPL, not LGPL.
83195         gnulib-tool will change it to LGPL as needed.
83196
83197         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
83198         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
83199         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
83200         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
83201         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
83202         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
83203         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
83204         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
83205         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
83206         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
83207         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
83208         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
83209         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
83210         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
83211         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
83212         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
83213         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
83214         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
83215         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
83216         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
83217         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
83218         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
83219         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
83220         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
83221         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
83222         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
83223         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
83224         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
83225         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
83226         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
83227         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
83228         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
83229         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
83230         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
83231         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
83232         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
83233         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
83234         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
83235         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
83236         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
83237         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
83238         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
83239         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
83240         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
83241         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
83242         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
83243         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
83244         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
83245         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
83246         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
83247         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
83248         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
83249         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
83250         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
83251         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
83252         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
83253         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
83254         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
83255         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
83256         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
83257         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
83258         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
83259         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
83260         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
83261         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
83262         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
83263         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
83264         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
83265         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
83266         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
83267         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
83268         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
83269         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
83270         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
83271         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
83272         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
83273         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
83274         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
83275         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
83276         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
83277         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
83278         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
83279         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
83280         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
83281         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
83282         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
83283         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
83284         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
83285         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
83286         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
83287         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
83288         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
83289         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
83290         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
83291         lib/yesno.c, lib/yesno.h:
83292         Update FSF postal mail address.
83293
83294 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83295
83296         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
83297         tests/test-memmem.c, tests/test-stpncpy.c:
83298         Update FSF postal mail address.
83299
83300 2005-05-13  Bruno Haible  <bruno@clisp.org>
83301
83302         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
83303         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
83304         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
83305         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
83306         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
83307         Add support for 64-bit integers in the MSVC compiler.
83308
83309 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83310
83311         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
83312
83313 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
83314
83315         * gnulib-tool (func_import): Sort and uniquify recommended includes.
83316
83317 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
83318
83319         * doc/getdate.texi (General date syntax): Don't say that date
83320         date --iso-8601=ns generates acceptable dates; it doesn't yet.
83321         Problem reported by Nic Ferrier.
83322
83323 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83324
83325         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
83326         specified in ai_socktype. Fix invalid ai_protocol
83327         check. ai_protocol is usually set to 0 or depending on
83328         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
83329         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
83330         ai_socktype / ai_protocol in the returned addrinfo structure.
83331
83332 2005-05-10  Simon Josefsson  <jas@extundo.com>
83333
83334         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
83335         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
83336
83337 2005-05-10  Karl Berry  <karl@gnu.org>
83338
83339         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
83340         (from http://www.gnu.org/licenses).
83341         * doc/COPYING.LIB: also rename to COPYING.LESSER.
83342         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
83343         fdl.texi suffices.
83344
83345 2005-05-10  Karl Berry  <karl@gnu.org>
83346
83347         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
83348         (COPYING.DOC): remove.
83349
83350         * config/srclist-update: new FSF address.
83351
83352 2005-05-10  Derek Price  <derek@ximbiot.com>
83353
83354         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
83355         possible.
83356
83357 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83358             Bruno Haible  <bruno@clisp.org>
83359
83360         * modules/inet_ntop: New file.
83361         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83362         inet_ntop.
83363
83364 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83365             Bruno Haible  <bruno@clisp.org>
83366
83367         * m4/inet_ntop.m4: New file.
83368
83369 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83370             Bruno Haible  <bruno@clisp.org>
83371
83372         * lib/inet_ntop.h: New file.
83373         * lib/inet_ntop.c: New file, from glibc with modifications.
83374
83375 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
83376
83377         * modules/time_r (License): Change to LGPL.
83378         * modules/extensions (License): Change to LGPL.  Actually,
83379         the license is more permissive than that, but currently gnulib-tool
83380         doesn't know how to handle more-permissive licenses.
83381
83382         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
83383         Problem reported by Dave Love.
83384
83385 2005-05-08  Jim Meyering  <jim@meyering.net>
83386
83387         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
83388         blank.
83389
83390 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
83391
83392         * modules/argmatch (Depends-on): Add stdbool.
83393         * modules/backupfile (Depends-on): Likewise.
83394         * modules/chdir-long (Depends-on): Likewise.
83395         * modules/closeout (Depends-on): Likewise.
83396         * modules/cycle-check (Depends-on): Likewise.
83397         * modules/dirname (Depends-on): Likewise.
83398         * modules/fnmatch (Depends-on): Likewise.
83399         * modules/fsusage (Depends-on): Likewise.
83400         * modules/fwriteerror (Depends-on): Likewise.
83401         * modules/getcwd (Depends-on): Likewise.
83402         * modules/getloadavg (Depends-on): Likewise.
83403         * modules/hard-locale (Depends-on): Likewise.
83404         * modules/makepath (Depends-on): Likewise.
83405         * modules/mountlist (Depends-on): Likewise.
83406         * modules/nanosleep (Depends-on): Likewise.
83407         * modules/posixtm (Depends-on): Likewise.
83408         * modules/quotearg (Depends-on): Likewise.
83409         * modules/readtokens (Depends-on): Likewise.
83410         * modules/readtokens0 (Depends-on): Likewise.
83411         * modules/readutmp (Depends-on): Likewise.
83412         * modules/save-cwd (Depends-on): Likewise.
83413         * modules/strftime (Depends-on): Likewise.
83414         * modules/userspec (Depends-on): Likewise.
83415         * modules/utimecmp (Depends-on): Likewise.
83416         * modules/xgetcwd (Depends-on): Likewise.
83417         * modules/xnanosleep (Depends-on): Likewise.
83418         * modules/xstrtod (Depends-on): Likewise.
83419         * modules/yesno (Depends-on): Likewise.
83420
83421 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
83422
83423         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
83424         needless checks.
83425
83426 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83427
83428         Merge from coreutils.  Among other things,
83429         add bulletproofing for cases where stdin, stdout, or stderr are closed.
83430         * lib/fd-safer.c: New file.
83431         * lib/fcntl-safer.h, open-safer.c: Remove.
83432         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
83433         * lib/dup-safer.c: Include unistd-safer.h first.
83434         Don't include errno.h.
83435         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
83436         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
83437         * lib/file-type.c: Rely on file-type.h change.
83438         * lib/getloadavg.c: Include unistd-safer.h.
83439         (getloadavg): Use safer open.
83440         * lib/getusershell.c: Include "stdio-safer.h".
83441         (getusershell): Use safer fopen.
83442         * lib/long-options.c (long_options): Use NULL rather than 0.
83443         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
83444         'free'.
83445         * lib/modechange.c: Likewise.
83446         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
83447         (MODE_DONE): New constant.
83448         (struct mode_change): Remove 'next' member.
83449         (make_node_op_equals): New function; like the old one of the
83450         same name, except it allocates an array.
83451         (mode_compile, mode_create_from_ref): Use it.
83452         (mode_compile): Allocate result as an array, not a linked list.
83453         Parse octal string ourself, so that we catch mistakes like "+0".
83454         (mode_adjust): Arg is an array, not a linked list.
83455         * lib/modechange.c: Include stat-macros.h, xalloc.h.
83456         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
83457         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
83458         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
83459         Remove.  This is now stat-macros.h's job.
83460         (talloc): Remove.  All callers replaced by xalloc, so that
83461         our invokers don't have to worry about reporting memory failures.
83462         (make_node_op_equals): Remove.
83463         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83464         New constants.
83465         (struct mode_change): Moved here from modechange.h.
83466         (mode_append_entry): Remove.
83467         (mode_compile): Remove MASKED_OPS arg, since it encouraged
83468         apps to have incorrect behavior.  Use simpler algorithm for head
83469         and tail.  Don't futz with umask; that's now the job of mode_adjust.
83470         Detect more invalid usages rather than having somewhat-random behavior.
83471         Don't insert an "a=" action, as that leads to incorrect behavior.
83472         (mode_compile, mode_create_from_ref): Return NULL on error instead
83473         of an enum, since now there's only one way to have an error.  All
83474         callers changed.
83475         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
83476         at the correct time.  Simplify calculation of "+u" and its ilk.
83477         Don't mishandle "+X".
83478         (mode_free): Remove "register" and localize decls.
83479         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83480         (struct mode_change): Move to modechange.c; callers don't
83481         need to see this stuff.
83482         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
83483         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
83484         (mode_change, mode_adjust): Reflect the new signatures noted above.
83485         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
83486         that might redefine system include files.
83487         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
83488         (my_usleep): Use NULL rather than (void *) 0.
83489         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
83490         Use siginterrupt to specify that system calls should be interrupted.
83491         (rpl_nanosleep): Move initialization of suspended closer to call of
83492         my_usleep.
83493         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
83494         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
83495         (desirable_utmp_entry): New function.
83496         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
83497         using x2nrealloc, to simplify logic.
83498         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
83499         size calculation.  Do not assume utmp file is a regular file.
83500         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
83501         (READ_UTMP_CHECK_PIDS): New constant.
83502         * lib/save-cwd.c: Include unistd-safer.h.
83503         (save_cwd): Use fd_safer.
83504         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
83505         [!_LIBC] Include "stat-macros.h" instead.
83506         * lib/unistd-safer.h (fd_safer): New decl.
83507
83508 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83509
83510         * modules/getloadavg (Depends-on): Add unistd-safer.
83511         * modules/getusershell (Depends-on): Add stdio-safer.
83512         * modules/lstat (Depends-on): Remove xalloc.
83513         * modules/mkstemp (Depends-on): Add stat-macros.
83514         * modules/modechange (Depends-on): Remove xstrtol.
83515         Add stat-macros, xalloc.
83516         * modules/save-cwd (Depends-on): Add unistd-safer.
83517         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
83518         * modules/unistd-safer (Files): Add lib/fd-safer.c
83519         (Makefile.am): Remove lib_SOURCES.
83520
83521         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
83522         Remove fcntl-safer; unistd-safer supersedes it.
83523
83524 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83525
83526         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
83527         AC_HEADER_STAT.
83528         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
83529         (gl_PREREQ_CHOWN): Remove.
83530         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
83531         it.  Don't require AC_HEADER_STAT.
83532         (gl_PREREQ_LSTAT): Remove.
83533         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
83534         Don't require AC_HEADER_STAT.
83535         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
83536         (gl_PREREQ_RMDIR): Remove.
83537         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
83538         mention stat-macros.h or AC_HEADER_STAT, since we'll make
83539         the stat-macros module a prerequisite.
83540         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
83541         * m4/filemode.m4 (gl_FILEMODE): Likewise.
83542         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
83543         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
83544         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
83545         variable names.
83546         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
83547         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
83548         variable prefixes.
83549         * m4/fcntl-safer.m4: Remove.
83550         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
83551         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
83552         Invoke gl_PREREQ_FD_SAFER.
83553         (gl_PREREQ_FD_SAFER): New macro.
83554         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
83555         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
83556         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
83557         Remove duplicate call to AC_LIBOBJ(readutmp).
83558         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
83559
83560         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
83561         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
83562
83563 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83564
83565         * MODULES.html.sh (Misc): Add byteswap.
83566
83567 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83568
83569         * modules/getcwd (Depends-on): Add extensions.
83570         * modules/openat (Depends-on): Likewise.
83571
83572 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83573
83574         * modules/byteswap: New file.
83575
83576 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83577
83578         * m4/byteswap.m4: New file.
83579
83580 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83581
83582         * lib/byteswap_.h: New file.
83583
83584 2005-04-25  Karl Berry  <karl@gnu.org>
83585
83586         * m4/gettext.m4: Update from GNU gettext 0.14.4.
83587
83588 2005-04-25  Albert Chin  <china@thewrittenword.com>
83589
83590         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
83591         Toolkit C bug.
83592
83593 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
83594
83595         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
83596         (func_ln_if_changed): Remove forcibly for no error message
83597         in case file does not exist.
83598
83599 2005-04-19  Simon Josefsson  <jas@extundo.com>
83600
83601         * gnulib-tool (Options): Make --symlink mean --symbolic.
83602
83603 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
83604
83605         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
83606
83607 2005-04-16  Simon Josefsson  <jas@extundo.com>
83608
83609         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
83610
83611 2005-04-15  Simon Josefsson  <jas@extundo.com>
83612
83613         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
83614
83615 2005-04-15  Simon Josefsson  <jas@extundo.com>
83616
83617         * gnulib-tool: Rename --symlink to --symbolic.
83618
83619 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
83620
83621         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
83622         symbolic links to files instead of copying/moving.  Add --aux-dir,
83623         specifying directory relative --dir where auxiliary build tools
83624         are placed.
83625
83626 2005-04-14  Bruno Haible  <bruno@clisp.org>
83627
83628         * modules/allocsa (License): Change to LGPL.
83629         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
83630
83631 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
83632
83633         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
83634         that "UTC +1 second" continues to work.  Problem reported
83635         by Dmitry V. Levin.
83636         (relunit_snumber): New rule.
83637         (relunit): Use it.
83638
83639 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
83640
83641         * lib/getdate.y (universal_time_zone_table): New constant.
83642         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
83643         universal_time_zone_table.
83644         (lookup_zone): Prefer universal_time_zone_table to
83645         local_time_zone_table, so that "GMT" time stamps are allowed in
83646         London during the summer.  Problem reported by Ian Abbott.
83647
83648 2005-04-12  Jim Meyering  <jim@meyering.net>
83649
83650         * lib/human.c (humblock): Set *options even when returning due to
83651         xstrtoumax conversion failure.  Thanks to a used-uninitialized
83652         warning from gcc-4.
83653
83654 2005-04-09  Jim Meyering  <jim@meyering.net>
83655
83656         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
83657         -Wuninitialized: initialize tm0.tm_year.
83658
83659 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
83660
83661         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
83662         count, since there's no maximum.  All uses changed.
83663         Add member dsts_seen.
83664         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
83665         not being INT_MAX.
83666         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
83667         Use pc_rels_seen to decide whther a date is absolute.
83668
83669         * lib/getdate.y (number): Don't overwrite year.
83670         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
83671         check.
83672
83673 2005-04-02  Simon Josefsson  <jas@extundo.com>
83674
83675         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
83676         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
83677
83678 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
83679
83680         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
83681         where no absolute path name can be longer than PATH_MAX.
83682
83683 2005-03-27  Jim Meyering  <jim@meyering.net>
83684
83685         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
83686
83687 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
83688
83689         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
83690         "one's complement" -> "ones' complement" in comment, as per Knuth.
83691         "value of type" -> "type or expression" in comment.
83692         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
83693
83694 2005-03-26  Jim Meyering  <jim@meyering.net>
83695
83696         Comment nits.
83697         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
83698         Correct typos: s/or/of/.
83699
83700 2005-03-26  Jim Meyering  <jim@meyering.net>
83701
83702         * modules/check-include-files: Move to ../ and rename to...
83703         * check-module: ...this.
83704
83705 2005-03-25  Jim Meyering  <jim@meyering.net>
83706
83707         * modules/xvasprintf (Files): Add xalloc.h.
83708
83709 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
83710
83711         * modules/gettext (Files): config/config.rpath ->
83712         build-aux/config.rpath
83713         * modules/iconv (Files): Likewise.
83714         Problem reported by Oskar Liljeblad.
83715
83716 2005-03-23  Jim Meyering  <jim@meyering.net>
83717
83718         * modules/check-include-files: New script to check for
83719         missing dependencies, multiple includes, etc.
83720
83721         * modules/c-strtold (Depends-on): Add xalloc.
83722         * modules/c-strtod (Depends-on): Add xalloc.
83723         * modules/hash (Depends-on): Add xalloc.
83724         (Files): Remove lib/xalloc.h.
83725
83726         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
83727         * modules/userspec (Files): Add lib/inttostr.h.
83728
83729 2005-03-23  Jim Meyering  <jim@meyering.net>
83730
83731         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
83732
83733 2005-03-22  Jim Meyering  <jim@meyering.net>
83734
83735         * modules/stat-macros: New module.
83736         * modules/canonicalize, modules/euidaccess, modules/file-type,
83737         * modules/filemode, modules/lchown, modules/makepath,
83738         * modules/rmdir, modules/stat: Depend on new stat-macros module
83739         rather than listing lib/stat-macros.h manually.
83740         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
83741
83742 2005-03-22  Jim Meyering  <jim@meyering.net>
83743
83744         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
83745
83746 2005-03-22  Bruno Haible  <bruno@clisp.org>
83747
83748         * config/srclist.txt: Replace target directory 'config' with
83749         'build-aux'.
83750         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
83751         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
83752         ../build-aux/.
83753
83754 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
83755
83756         * modules/chdir-long (Depends-on): Add mempcpy.
83757
83758         * modules/acl, modules/backupfile, modules/c-strtod,
83759         modules/c-strtold, modules/canon-host, modules/canonicalize,
83760         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
83761         modules/exclude, modules/exitfail, modules/file-type,
83762         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
83763         modules/getdate, modules/getline, modules/getpagesize,
83764         modules/getpass, modules/getugroups, modules/group-member,
83765         modules/hard-locale, modules/hash, modules/human, modules/idcache,
83766         modules/inttostr, modules/long-options, modules/makepath,
83767         modules/md5, modules/memcasecmp, modules/memcoll,
83768         modules/modechange, modules/mountlist, modules/path-concat,
83769         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
83770         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
83771         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
83772         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
83773         modules/strftime, modules/strndup, modules/strverscmp,
83774         modules/timespec, modules/unlocked-io, modules/userspec,
83775         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
83776         modules/yesno:
83777         Remove lib_SOURCES line from Makefile.am section, as this is now
83778         done automatically by the corresponding Autoconf macro.
83779
83780 2005-03-21  Jim Meyering  <jim@meyering.net>
83781
83782         Changes imported from coreutils.
83783
83784         * lib/cycle-check.c: Don't include xalloc.h.
83785
83786         * lib/path-concat.c: Don't include assert.h.
83787         (path_concat): Remove assertion that would have triggered
83788         for ABASE starting with more than one slash.
83789         Reported by Andreas Schwab.
83790
83791         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
83792         properly when ABASE is an absolute file name.
83793         Correct the description of this function.
83794         Include <assert.h>.
83795         Add an assertion and a test driver.
83796         This fixes a bug introduced on 2004-07-02.
83797         Andreas Schwab reported the resulting failure of cp --parents:
83798         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
83799
83800 2005-03-21  Jim Meyering  <jim@meyering.net>
83801
83802         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
83803         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
83804
83805 2005-03-21  Jim Meyering  <jim@meyering.net>
83806         and  Paul Eggert  <eggert@cs.ucla.edu>
83807
83808         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
83809         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
83810         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
83811         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
83812         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
83813         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
83814         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
83815         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
83816         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
83817         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
83818         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
83819         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
83820         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
83821         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
83822         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
83823         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
83824         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
83825         for these modules.
83826
83827 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
83828
83829         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
83830         (which shouldn't happen), generate nothing instead of returning 0
83831         immediately, so that nstrftime (NULL, ...) doesn't return 0.
83832
83833 2005-03-16  Bruno Haible  <bruno@clisp.org>
83834
83835         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
83836         HAVE_LONGLONG_64BIT.
83837
83838 2005-03-16  Bruno Haible  <bruno@clisp.org>
83839
83840         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
83841         HAVE_LONGLONG_64BIT.
83842
83843 2005-03-16  Bruno Haible  <bruno@clisp.org>
83844
83845         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
83846         HAVE_LONGLONG_64BIT.
83847
83848 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83849
83850         * lib/strftime.c (my_strftime): Prepend space to format so that we can
83851         reliably distinguish strftime failure from empty output on POSIX
83852         hosts.
83853
83854 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83855
83856         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
83857         (iconv_string): Don't guess a size-zero buffer, as that might cause
83858         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
83859         result would be 'too large', where 'too large' is (heuristically)
83860         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
83861         overflow concerns.  This will prevent some unwanted malloc failures
83862         when the inputs are very large.
83863
83864 2005-03-15  Karl Berry  <karl@gnu.org>
83865
83866         * config/srclist.txt (config.rpath): from gettext.
83867         * config/config.rpath: update.
83868
83869 2005-03-15  Bruno Haible  <bruno@clisp.org>
83870
83871         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
83872         to 'negate'.
83873
83874         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
83875         variable.
83876
83877         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
83878         results.
83879
83880 2005-03-14  Simon Josefsson  <jas@extundo.com>
83881
83882         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
83883         <fx@gnu.org>.
83884
83885 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
83886
83887         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
83888         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
83889         intprops.h.
83890         * lib/strtol.c: Likewise.
83891
83892 2005-03-14  Jim Meyering  <jim@meyering.net>
83893
83894         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
83895         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
83896         to be nonzero so that we (and caller) can detect the difference
83897         between a valid zero-length expansion and an error return, even
83898         when the underlying strftime fails before writing anything into
83899         that location.
83900
83901 2005-03-14  Bruno Haible  <bruno@clisp.org>
83902
83903         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
83904         Update from GNU gettext 0.14.3.
83905
83906 2005-03-10  Jim Meyering  <jim@meyering.net>
83907
83908         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
83909
83910 2005-03-10  Jim Meyering  <jim@meyering.net>
83911
83912         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
83913         so that this module works on systems without fchdir.
83914
83915 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
83916
83917         Factor int-properties macros into a single file, except for
83918         glibc-related files.
83919         * lib/intprops.h: New file.
83920         * lib/getloadavg.c: Include it instead of limits.h.
83921         (INT_STRLEN_BOUND): Remove.
83922         * lib/human.c: Include intprops.h.
83923         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
83924         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
83925         302/1000.
83926         * lib/inttostr.h: Include intprops.h instead of limits.h.
83927         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
83928         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
83929         for consistency with intprops.h.
83930         (time_t_is_integer, twos_complement_arithmetic): Use them.
83931         * lib/sig2str.h: Include <signal.h>, intprops.h.
83932         (INT_STRLEN_BOUND): Remove.
83933         * lib/strftime.c (TYPE_SIGNED): Remove.
83934         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
83935         * lib/strtol.c: Adjust comments to match intprops.h.
83936         * lib/userspec.c: Include intprops.h.
83937         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
83938         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
83939         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
83940         instead of rolling our own expressions.
83941         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
83942
83943         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
83944         instead of int.
83945         (my_strftime): Do not mishandle years close to INT_MAX, by doing
83946         the right thing even if adding 1900 would overflow.  Similarly
83947         for tm_mon + 1 and tm_yday + 1.
83948         Make %Y always equivalent to %C%y, and similarly for %G and %g.
83949         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
83950         (DO_SIGNED_NUMBER): New macro.
83951         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
83952
83953 2005-03-07  Bruno Haible  <bruno@clisp.org>
83954
83955         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
83956
83957 2005-03-07  Bruno Haible  <bruno@clisp.org>
83958
83959         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
83960
83961 2005-03-04  Derek R. Price  <derek@ximbiot.com>
83962
83963         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
83964         (func_import): Only replace files via --import when they have actually
83965         changed.
83966
83967 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83968
83969         * m4/mmap-anon.m4: New file.
83970         * m4/pagealign_alloc.m4: New file.
83971
83972 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83973             Bruno Haible  <bruno@clisp.org>
83974
83975         * modules/pagealign_alloc: New file.
83976         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
83977
83978 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83979             Bruno Haible  <bruno@clisp.org>
83980
83981         * lib/pagealign_alloc.h: New file.
83982         * lib/pagealign_alloc.c: New file.
83983
83984 2005-03-03  Bruno Haible  <bruno@clisp.org>
83985
83986         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
83987         Use an all-permissive copyright notice, recommended by RMS.
83988
83989 2005-03-02  Bruno Haible  <bruno@clisp.org>
83990
83991         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
83992         of AIX, the replacement has to be done only after <string.h> is
83993         included, therefore not in config.h. stpncpy.h does the replacement,
83994         and stpncpy.c uses it.
83995
83996 2005-03-02  Bruno Haible  <bruno@clisp.org>
83997
83998         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
83999         stpncpy.c uses it.
84000
84001 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84002
84003         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
84004         The workaround isn't strictly needed for POSIX conformance, and
84005         it's too much of a pain to configure and maintain.  We'll ask
84006         people to fix their kernels instead.
84007         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
84008         (NANOSLEEP_BUG_WORKAROUND): Remove.
84009         (xnanosleep): Remove the workaround.
84010
84011 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84012
84013         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
84014         Reported by Derek Price.
84015         (Include): Add "timespec.h".
84016
84017         * modules/xnanosleep (Depends-on): Remove gethrxtime.
84018
84019 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84020
84021         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
84022         to detect nanosleep bug.
84023
84024 2005-03-01  Bruno Haible  <bruno@clisp.org>
84025
84026         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
84027
84028 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
84029
84030         * modules/gethrxtime: New file.
84031         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
84032         (Depends-on): Add gethrxtime.
84033         (configure.ac): Add gl_XNANOSLEEP.
84034         (Makefile.am): Remove lib_SOURCES line.
84035
84036 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
84037
84038         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
84039         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
84040
84041 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
84042
84043         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
84044         * lib/timespec.h (gettime): Return void, since it always
84045         succeeds now.  All uses changed.
84046         * lib/gettime.c (gettime): Likewise.
84047         [HAVE_NANOTIME]: Prefer nanotime.
84048         Assume gettimeofday succeeds, as POSIX requires.
84049         Assime time () succeeds, since other code already does.
84050         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
84051         (timespec_subtract): Remove.
84052         (NANOSLEEP_BUG_WORKAROUND): New constant.
84053         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
84054         things considerably.  Use it only on GNU/Linux hosts, since the
84055         workaround shouldn't be needed elsewhere.
84056
84057 2005-02-24  Bruno Haible  <bruno@clisp.org>
84058
84059         * modules/gettext (Files): Add m4/glibc2.m4.
84060
84061 2005-02-24  Bruno Haible  <bruno@clisp.org>
84062
84063         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
84064         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
84065         * m4/progtest.m4:
84066         Update from GNU gettext 0.14.2.
84067         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
84068
84069 2005-02-24  Bruno Haible  <bruno@clisp.org>
84070
84071         * lib/localcharset.c: Update from GNU gettext 0.14.2.
84072         * lib/config.charset: Update from GNU gettext 0.14.2.
84073
84074 2005-02-24  Bruno Haible  <bruno@clisp.org>
84075
84076         * lib/gettext.h: Update from GNU gettext 0.14.2.
84077
84078 2005-02-23  Simon Josefsson  <jas@extundo.com>
84079
84080         * m4/iconvme.m4: New file.
84081
84082 2005-02-23  Jim Meyering  <jim@meyering.net>
84083
84084         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
84085         change.
84086         Thanks to Bruno Haible for catching it.
84087
84088 2005-02-22  Simon Josefsson  <jas@extundo.com>
84089
84090         * modules/iconvme: New file.
84091
84092         * MODULES.html.sh: Add iconvme.
84093
84094 2005-02-22  Simon Josefsson  <jas@extundo.com>
84095
84096         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
84097
84098 2005-02-22  Simon Josefsson  <jas@extundo.com>
84099
84100         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
84101
84102 2005-02-22  Jim Meyering  <jim@meyering.net>
84103
84104         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
84105         s/ifndef/ifdef/.
84106
84107 2005-02-20  Neil Conway  <neilc@samurai.com>
84108
84109         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
84110         returned by OSX/Darwin if the specified buffer is not large
84111         enough for the hostname.
84112
84113 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84114
84115         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
84116         pass it to _help, otherwise the latter coredumps trying to
84117         dereference state.root_argp.
84118
84119 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84120
84121         * modules/chdir-long (Depends-on): Add memrchr.
84122         * modules/memrchr (Files): Add lib/memrchr.h.
84123         (Include): "memrchr.h".
84124
84125 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84126
84127         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
84128
84129 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84130
84131         * lib/memrchr.h: New file.
84132         * lib/chdir-long.c: Include it.
84133         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
84134         Don't bother including stddef.h.
84135
84136 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
84137
84138         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
84139         inclusion.
84140         Include <sys/types.h>, for dev_t.
84141         (ME_DUMMY, ME_REMOTE): Move from here....
84142         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
84143         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
84144         Dmitry V. Levin.
84145         Include mountlist.h first, to test the interface.
84146
84147 2005-01-29  Bruno Haible  <bruno@clisp.org>
84148
84149         * lib/progname.c (program_name): Initialize.
84150         Needed when linking statically on MacOS X.
84151
84152 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
84153
84154         Sync from coreutils.
84155         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
84156         (Depends-on): Add c-strtod.
84157         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
84158
84159 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
84160
84161         Sync from coreutils.
84162         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
84163
84164         Remove files that are specific to coreutils.
84165         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
84166
84167 2005-01-28  Bruno Haible  <bruno@clisp.org>
84168
84169         * modules/javacomp: New file.
84170         * MODULES.html.sh (Java): Add javacomp.
84171
84172 2005-01-28  Bruno Haible  <bruno@clisp.org>
84173
84174         * m4/javacomp.m4: New file, from GNU gettext.
84175
84176 2005-01-28  Bruno Haible  <bruno@clisp.org>
84177
84178         * lib/javacomp.sh.in: New file, from GNU gettext.
84179         * lib/javacomp.h: New file, from GNU gettext.
84180         * lib/javacomp.c: New file, from GNU gettext.
84181
84182 2005-01-26  Simon Josefsson  <jas@extundo.com>
84183
84184         * lib/gai_strerror.c: Use GPL in header.
84185
84186 2005-01-26  Bruno Haible  <bruno@clisp.org>
84187
84188         * modules/javaexec: New file.
84189         * MODULES.html.sh (Java): Add javaexec.
84190
84191 2005-01-26  Bruno Haible  <bruno@clisp.org>
84192
84193         * m4/javaexec.m4: New file, from GNU gettext.
84194
84195 2005-01-26  Bruno Haible  <bruno@clisp.org>
84196
84197         * lib/javaexec.sh.in: New file, from GNU gettext.
84198         * lib/javaexec.h: New file, from GNU gettext.
84199         * lib/javaexec.c: New file, from GNU gettext.
84200
84201 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84202
84203         * modules/lchown (Depends-on): Remove lchown.h
84204
84205 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84206
84207         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
84208         must be defined if the header file was not found, in order
84209         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
84210
84211 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84212
84213         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
84214         initializers for struct pentry_state.
84215         (__argp_error): Check return value of __asprintf
84216         (__argp_failure): Translate error message
84217
84218         * lib/argp-parse.c: Removed braces around the expansion of N_()
84219
84220 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
84221
84222         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
84223         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
84224         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
84225         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
84226         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
84227         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
84228         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
84229         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
84230         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
84231         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
84232         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
84233         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
84234         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
84235         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
84236         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
84237         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
84238         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
84239         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
84240         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
84241         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
84242         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
84243         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
84244         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
84245         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
84246         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
84247         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
84248         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
84249         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
84250         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
84251         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
84252         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
84253         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
84254         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
84255         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
84256         xstrtol.m4, xstrtoumax.m4, yesno.m4:
84257         Use an all-permissive copyright notice, recommended by RMS.
84258
84259 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
84260
84261         * modules/chdir-long (Depends-on): Remove mempcpy.
84262
84263 2005-01-21  Jim Meyering  <jim@meyering.net>
84264
84265         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
84266         same value as for Solaris 9.
84267
84268         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
84269         component length.  This included changing the parameter to be
84270         of type `char *' rather than `char const *'.
84271         * lib/chdir-long.h (chdir_long): Update prototype.
84272
84273         * lib/openat.c (fdopendir, fstatat): New functions.
84274         * lib/openat.h: Include headers required for use of DIR and struct
84275         stat.
84276         [AT_SYMLINK_NOFOLLOW]: Define.
84277         (fdopendir, fstatat): Add prototypes.
84278
84279 2005-01-21  Bruno Haible  <bruno@clisp.org>
84280
84281         * modules/classpath: New file.
84282         * MODULES.html.sh (Java): Add classpath.
84283
84284 2005-01-21  Bruno Haible  <bruno@clisp.org>
84285
84286         * lib/classpath.h: New file, from GNU gettext.
84287         * lib/classpath.c: New file, from GNU gettext.
84288
84289 2005-01-20  Simon Josefsson  <jas@extundo.com>
84290
84291         * modules/version-etc-fsf: New file.
84292
84293 2005-01-20  Simon Josefsson  <jas@extundo.com>
84294
84295         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
84296         * lib/version-etc.c: Remove version_etc_copyright.
84297         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
84298         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
84299
84300 2005-01-20  Simon Josefsson  <jas@extundo.com>
84301
84302         * lib/base64.h (isbase64): Add.
84303
84304         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
84305         using a unsigned prototype, don't inline.
84306         (base64_decode): Use it.
84307
84308 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84309
84310         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
84311         it.
84312
84313 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84314
84315         * lib/save-cwd.c (save_cwd): Remove code to support the case
84316         where fchdir is missing or flaky.
84317
84318 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84319
84320         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
84321
84322 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
84323
84324         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
84325         AC_LIBSOURCES now does this.
84326         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
84327         with new ullong_max module.
84328
84329 2005-01-19  Bruno Haible  <bruno@clisp.org>
84330
84331         * modules/sh-quote: New file.
84332         * MODULES.html.sh (Executing programs): Add sh-quote.
84333
84334 2005-01-19  Bruno Haible  <bruno@clisp.org>
84335
84336         * lib/sh-quote.h: New file, from GNU gettext.
84337         * lib/sh-quote.c: New file, from GNU gettext.
84338
84339 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84340
84341         Merge from coreutils.
84342         * m4/ullong_max.m4: New file.
84343         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
84344         (gl_MACROS): Assume localeconv exists.
84345
84346 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84347
84348         Merge changes from coreutils, as described below in several
84349         changelogs dated today.
84350
84351         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
84352         (O_DIRECTORY): Remove; not needed here, since "." must be
84353         a directory.  All uses removed.
84354         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
84355         universal on Suns, and we also need to test for IRIX.
84356         Revamp code to use 'if' rather than '#if'.
84357         Avoid unnecessary comparison of cwd->desc to 0.
84358
84359         * lib/utimens.c (futimens): Robustify the previous patch, by checking
84360         for known valid error numbers rather than observed invalid ones.
84361
84362 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84363
84364         * modules/ullong_max: New file.
84365
84366         * modules/chdir-long, modules/openat: New files.
84367         * modules/save-cwd (Depends-on): Depend on chdir-long.
84368         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
84369
84370 2005-01-18  Jim Meyering  <jim@meyering.net>
84371
84372         Merge from coreutils.
84373         * m4/chdir-long.m4, m4/openat.m4: New files.
84374         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
84375         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
84376         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
84377         is sane and DOES follow symlinks.  Besides, testing 20 different
84378         systems found no broken chown implementations.
84379         Prompted by a change in rsync's copy of this macro.
84380         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
84381
84382         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
84383
84384         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
84385         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
84386         NULL-means-set-to-current-time semantics.
84387         Remove temporary file immediately, rather than waiting
84388         for configure's at-exit trap code to do it.
84389
84390 2005-01-18  Jim Meyering  <jim@meyering.net>
84391
84392         * lib/version-etc.c (version_etc_copyright): Update copyright date.
84393
84394         * lib/utimens.c (futimens): Account for the fact that futimes
84395         can also fail with errno == ENOSYS or errno == ENOENT.
84396         Patch from Dmitry V. Levin.
84397
84398         Change the name of the robust chdir function from chdir to chdir_long.
84399         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
84400         (restore_cwd): Use chdir_long, not chdir.
84401         * lib/chdir-long.c: Renamed from chdir.c.
84402         * lib/chdir-long.h: Renamed from chdir.h.
84403         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
84404         Hurd.
84405
84406 2005-01-18  Bruno Haible  <bruno@clisp.org>
84407
84408         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
84409         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
84410         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
84411         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
84412         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
84413         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
84414         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
84415         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
84416         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
84417         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
84418         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
84419         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
84420         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
84421         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
84422         Use an all-permissive copyright notice, recommended by RMS.
84423
84424 2005-01-18  Bob Proulx  <bob@proulx.com>
84425
84426         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
84427         simplify offsetof() macro construct to avoid compile failure with
84428         native HP-UX 11.0 ANSI C compiler.
84429
84430 2005-01-17  Bruno Haible  <bruno@clisp.org>
84431
84432         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
84433         redundant because stpncpy.m4 takes care of it.
84434
84435 2005-01-17  Bruno Haible  <bruno@clisp.org>
84436
84437         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
84438
84439 2005-01-17  Bruno Haible  <bruno@clisp.org>
84440
84441         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
84442         used.
84443
84444 2005-01-17  Bruno Haible  <bruno@clisp.org>
84445
84446         * lib/fwriteerror.h (fwriteerror): Change specification to include
84447         fclose.
84448         * lib/fwriteerror.c: Include <stdbool.h>.
84449         (fwriteerror): At the end, close the file stream. Record whether
84450         stdout was already closed.
84451
84452 2005-01-17  Bruno Haible  <bruno@clisp.org>
84453
84454         * lib/execute.c (environ): Declare if needed.
84455         * lib/pipe.c (environ): Likewise.
84456         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
84457
84458 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84459
84460         * modules/argp: Depend on vsnprintf
84461
84462 2005-01-10  Jim Meyering  <jim@meyering.net>
84463
84464         * modules/closeout (Depends-on): Add atexit.
84465
84466 2005-01-06  Bruno Haible  <bruno@clisp.org>
84467
84468         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
84469
84470 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84471
84472         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
84473         definitions to be after all include files, to avoid collisions.
84474         Problem reported by Bob Proulx.
84475
84476 2005-01-04  Jim Meyering  <jim@meyering.net>
84477
84478         Changes imported from coreutils.
84479         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
84480         as the mkstemp template, use a temporary directory and an
84481         8.3-friendly template to avoid trouble on systems like DJGPP.
84482         Reported by Juan M. Guerrero via Stepan Kasal.
84483         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
84484         close. Remove the temporary directory right away, rather than waiting
84485         for configure's at-exit trap code to do it.
84486         Suggestion from Stepan Kasal.
84487
84488 2005-01-01  Simon Josefsson  <jas@extundo.com>
84489
84490         * gnulib-tool: Print #include directives when --import'ing.
84491
84492 2004-12-28  Simon Josefsson  <jas@extundo.com>
84493
84494         * tests/test-base64.c: Include required header files.  Remove
84495         unused variables.
84496
84497 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84498
84499         * modules/error (Depends-on): Remove gettext.
84500
84501 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84502
84503         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
84504         not needed.  This removes a dependency on the gettext module.
84505         [defined _LIBC]: Do not include <libintl.h>; not needed.
84506
84507 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84508
84509         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
84510         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
84511
84512 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84513
84514         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
84515         HAVE_DECL_STRTOLD.
84516
84517 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84518
84519         * modules/getdate (Depends-on): Remove alloca-opt.
84520
84521 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84522
84523         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
84524
84525 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84526
84527         * lib/argp-parse.c: Include <stddef.h>.
84528         (alignof, alignto): New macros.
84529         (parser_init): Don't assume that void * is aligned sufficiently
84530         for struct option.
84531
84532         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
84533         need to extend the stack.
84534         (YYINITDEPTH): New macro, so that the initial stack isn't overly
84535         large.
84536
84537 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84538
84539         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
84540
84541 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84542
84543         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
84544         (2004-10-24) change.  Apparently this was a false alarm.
84545
84546         * modules/getdate: Depend on alloca-opt, not alloca.
84547
84548 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84549
84550         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
84551         Remove now-obsolete comment about AIX.
84552         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
84553         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
84554         (YYMAXDEPTH): New macro.
84555
84556 2004-12-18  Simon Josefsson  <jas@extundo.com>
84557
84558         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
84559
84560 2004-12-18  Bruno Haible  <bruno@clisp.org>
84561
84562         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
84563
84564 2004-12-18  Bruno Haible  <bruno@clisp.org>
84565
84566         * lib/fatal-signal.c (fatal_signals): Make non-const.
84567         (init_fatal_signals): New function.
84568         (uninstall_handlers, install_handlers): Ignore signals that were set to
84569         SIG_IGN.
84570         (at_fatal_signal): Call init_fatal_signals.
84571         (init_fatal_signal_set): Likewise. Ignore signals that were set to
84572         SIG_IGN.
84573         Reported by Paul Eggert.
84574
84575 2004-12-18  Bruno Haible  <bruno@clisp.org>
84576
84577         * doc/alloca.texi: New file.
84578         * doc/alloca-opt.texi: New file.
84579
84580 2004-12-17  Jim Meyering  <jim@meyering.net>
84581
84582         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
84583         Otherwise, install-sh could exit with improper exit status when
84584         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
84585
84586 2004-12-16  Simon Josefsson  <jas@extundo.com>
84587
84588         * tests/test-base64.c: Add license.
84589
84590 2004-12-15  Stepan Kasal  <address@hidden>
84591
84592         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
84593
84594 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
84595
84596         * modules/getcwd (Files): Add m4/d-ino.m4.
84597         Suggested by Mark D. Baushke.
84598
84599 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84600
84601         * lib/getdate.y (textint): New member "negative".
84602         (time_zone_hhmm): New function.
84603         Expect 14 shift-reduce conflicts, not 13.
84604         (o_colon_minutes): New rule.
84605         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
84606         (yylex): Set the "negative" member of signed numbers.
84607
84608 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84609
84610         * doc/getdate.texi (Time of day items, Time zone items):
84611         Describe new formats +00:00, UTC+00:00.
84612
84613 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84614
84615         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
84616         spurious "-l"s.  Problem reported by Stepan Kasal.
84617
84618 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
84619
84620         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
84621         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
84622
84623 2004-12-04  Simon Josefsson  <jas@extundo.com>
84624
84625         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
84626         Vandoorselaere <yoann@prelude-ids.org>.
84627
84628 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84629
84630         Changes imported from coreutils.
84631         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
84632         exist.
84633         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
84634
84635 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84636
84637         Changes imported from coreutils.
84638         * lib/hard-locale.c: Assume <locale.h> exists.
84639         Include "strdup.h".
84640         (GLIBC_VERSION): New macro.
84641         (hard_locale): Assume setlocale exists.
84642         Rewrite to avoid #ifdef.
84643         Use strdup rather than malloc + strcpy.
84644         * lib/human.c: Assume <locale.h> exists.
84645         (human_readable): Assume localeconv exists.
84646
84647 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84648
84649         * modules/hard-locale (Depends-on): Add strdup.
84650
84651 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
84652
84653         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
84654         convert T2, not T.  (Imported from libc.)
84655
84656 2004-11-30  Simon Josefsson  <jas@extundo.com>
84657
84658         * modules/restrict (License): Change to LGPL.
84659
84660 2004-11-30  Simon Josefsson  <jas@extundo.com>
84661
84662         * m4/restrict.m4: Add copyright and copying conditions.
84663
84664 2004-11-30  Simon Josefsson  <jas@extundo.com>
84665
84666         * m4/base64.m4: New file.
84667
84668 2004-11-30  Simon Josefsson  <jas@extundo.com>
84669
84670         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
84671         base64.
84672
84673         * tests/test-base64.c: New file.
84674
84675         * modules/base64: New file.
84676
84677 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84678
84679         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
84680         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
84681
84682         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
84683
84684 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84685
84686         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
84687         (__getcwd.c): Don't restore errno; glibc doesn't.
84688         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
84689         first, falling back to our code only if its results look suspicious.
84690         Ensure that the resulting buffer is only as large as necessary.
84691
84692         * lib/readutmp.c: Include readutmp.h first.
84693         Include <errno.h>, since readutmp.h no longer does that.
84694         * lib/readutmp.h: Don't include <errno.h>,
84695         <sys/param.h>, <time.h>; not needed to establish interface.
84696         (errno): Remove decl.
84697         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
84698         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
84699         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
84700
84701 2004-11-28  Simon Josefsson  <jas@extundo.com>
84702
84703         * lib/base64.h, base64.c: New file.
84704
84705 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
84706
84707         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
84708
84709 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
84710
84711         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
84712         (Depends-on): Remove pathmax, same.  Add mempcpy.
84713         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
84714         (Makefile.am): Append getcwd.h to lib_SOURCES.
84715         (Include): Add getcwd.h.
84716         (Maintainer): Change from Jim Meyering to "all, glibc",
84717         since getdate now uses intended-for-glibc code.
84718         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
84719         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
84720
84721 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84722
84723         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
84724         HP's ANSI C compiler.
84725         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
84726         Declaring int functions causes warnings on some modern systems and
84727         shouldn't be needed to compile on ancient ones.
84728         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
84729         defined.
84730
84731         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
84732         with the following changes.
84733         (__set_errno): Parenthesize properly.
84734         Include <stdbool.h>.
84735         (MIN, MAX, MATCHING_INO): New macros.
84736         (__getcwd): Define with prototype, not K&R form.
84737         Use heuristics to allocate default buffer on stack if possible.
84738         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
84739         behavior, and to avoid the PATH_MAX limit when computing
84740         ../../../../...
84741         Use MATCHING_INO to compare inode number to file.
84742         Check for arithmetic overflow in size calculations.
84743         Fix bug in reallocation of dot array that caused getcwd to fail
84744         on directories nested deeper than 75.
84745         Be more careful about saving errno on error.
84746         Do not use realloc; use only free+malloc, as this is a bit
84747         more flexible and avoids a needless copy operation.
84748         Do not inspect st_dev and st_ino for symbolic links; POSIX
84749         doesn't specify the latter.
84750         Check for closedir errors.
84751         Avoid needless casts.
84752         Use "#ifdef weak_alias" around weak_alias, to be like other
84753         glibc code.
84754         The following changes to getcwd.c have effect only when used in
84755         gnulib; they have no effect inside glibc proper.
84756         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
84757         as alloca isn't used.
84758         (alloca, __alloca): Likewise.
84759         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
84760         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
84761         unconditionally, as gnulib assumes C89 or better.
84762         Do not include <sys/param.h>.
84763         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
84764         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
84765         better.
84766         (NULL) [!defined NULL]: Remove; we assume C89 or better.
84767         Include <dirent.h> in a way that is compatible with modern Autoconf.
84768         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
84769         New macros, if not already defined.
84770         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
84771         Use "_LIBC", not "defined _LIBC", for consistency.
84772         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
84773         a mempcpy module.
84774         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
84775         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
84776         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
84777         credit only to Jim Meyering and adjust the copyright dates.
84778         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
84779         <stdlib.h>, <unistd.h>, "pathmax.h".
84780         Instead, include "xgetcwd.h" (first) and "getcwd.h".
84781         (INITIAL_BUFFER_SIZE): Remove.
84782         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
84783
84784 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84785
84786         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
84787         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
84788         Use the _ONCE methods, for efficiency.
84789         Check for fcntl.h.  In test program, include <errno.h>
84790         and <fcntl.h> if available.  Remove old K&R cruft from
84791         test program.  Check for common errors in GNU/Linux,
84792         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
84793         don't do AC_LIBOBJ, as that's getcwd.m4's job.
84794         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
84795         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
84796         name accordingly.
84797         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
84798         accommodate new getcwd.c.
84799         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
84800         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
84801         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
84802         that's all we need now.
84803
84804 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84805
84806         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
84807         argp-parse.c depends on getopt internals, that means we should
84808         always use our getopt, to be on the safe side.
84809         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
84810         order not to spoil the result of an eventual previous invocation
84811         of gl_GETOPT_SUBSTITUTE.
84812
84813 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84814
84815         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
84816         redefinition warnings. To avoid them, include the defines
84817         in `#if !defined __need_getopt ... #endif'. The only place
84818         where __getopt_argv_const is used is in definitions
84819         of getopt_long and getopt_long_only below, which are as well
84820         protected by `#ifndef __need_getopt'.
84821         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
84822         __need_getopt after including <stdio.h> and <unistd.h> These
84823         headers might have defined it.
84824
84825 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84826
84827         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
84828
84829 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84830
84831         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
84832         (futimens): New function, which uses futimes if available.
84833         (futimens, utimens): Support timespec==NULL, with same semantics
84834         as utime and utimens.
84835         * lib/utimens.h (futimens): New decl.
84836
84837 2004-11-23  Jim Meyering  <jim@meyering.net>
84838
84839         * lib/getopt_.h: Remove trailing blanks.
84840
84841 2004-11-23  Jim Meyering  <jim@meyering.net>
84842
84843         * lib/__fpending.c: Add comment.
84844
84845 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
84846
84847         * modules/canonicalize (Depends-on): Add xreadlink.
84848         Problem reported by James Youngman.
84849
84850 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
84851
84852         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
84853         New macros.
84854         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
84855         optopt): Use them instead of invoking ## directly; otherwise, the
84856         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
84857
84858 2004-11-19  Bruno Haible  <bruno@clisp.org>
84859
84860         * lib/strtok_r.c: Move comments from here...
84861         * lib/strtok_r.h: ... to here.
84862
84863 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84864
84865         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
84866         implementations that mishandle size_t overflow.
84867
84868 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84869
84870         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
84871         might fail.  Problem reported by Yoann Vandoorselaere.
84872         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
84873         implementations that mishandle size_t overflow.
84874
84875 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84876
84877         * modules/canon-host (Depends-on): Add strdup.
84878
84879 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84880
84881         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
84882
84883 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84884
84885         * lib/canon-host.c: Include "strdup.h".
84886         (canon_host): Use getaddrinfo if available, so that IPv6 works.
84887         Use strdup instead of malloc/strcpy to duplicate strings.
84888
84889         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
84890         (human_space_before_unit): New constant.
84891         * lib/human.c (human_readable): Support it.
84892
84893         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
84894         (xgetcwd): Set errno correctly when failing.
84895         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
84896         the failure is actually due to a PATH_MAX problem.
84897
84898         Further getopt changes to make it more likely that glibc will
84899         buy the changes back.
84900         * lib/getopt.c (POSIXLY_CORRECT): New constant.
84901         (getopt): Use it, so to preserve glibc semantic
84902         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
84903         when compiling for libc.
84904         * lib/getopt_.h (__getopt_argv_const): Bring it back.
84905         (getopt_long, getopt_long_only): Use it.
84906
84907         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84908         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
84909         (getopt): Argv is now char * const *, as per standard.
84910         (_getopt_internal_r, _getopt_internal): Argv is now char **,
84911         not char *__getopt_argv_const *.
84912         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84913         _getopt_long_only_r): Likewise.
84914         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
84915         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84916         _getopt_long_r, _getopt_long_only_r): Likewise.
84917         * lib/getopt_.h (__getopt_argv_const): Remove.
84918         (getopt): Argv is now char * const *, as per standard.
84919
84920         * lib/getdate.y (tORDINAL): New token.
84921         (day, relunit): Allow it for relative times.
84922         (relative_time_table): Use tORDINAL for ordinals.
84923
84924 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84925
84926         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
84927         Document that "second" isn't allowed as an ordinal number.
84928
84929 2004-11-16  Jim Meyering  <jim@meyering.net>
84930
84931         * modules/closeout (Depends-on): Add fpending.
84932
84933 2004-11-15  Jim Meyering  <jim@meyering.net>
84934
84935         * lib/closeout.c: Include "__fpending.h" once again.
84936         Include <stdbool.h>.
84937         (close_stdout): Don't fail just because stdout was closed initially,
84938         since some programs don't write to stdout in the normal course of
84939         operation (other than --version and --help), and we don't want this
84940         function to make e.g. `touch file >&-' fail.
84941         But do fail if it was closed and someone has tried to write to it.
84942         E.g., `printf foo >&-' must fail.
84943
84944 2004-11-13  Jim Meyering  <jim@meyering.net>
84945
84946         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
84947
84948 2004-11-12  Simon Josefsson  <jas@extundo.com>
84949
84950         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
84951         small doc fix is still pending.
84952
84953 2004-11-11  Simon Josefsson  <jas@extundo.com>
84954
84955         * modules/strtok_r: New file.
84956
84957         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84958         strtok_r.
84959
84960 2004-11-11  Simon Josefsson  <jas@extundo.com>
84961
84962         * m4/strtok_r.m4: New file.
84963
84964         * m4/getopt.m4: Replace opterr.
84965
84966 2004-11-11  Simon Josefsson  <jas@extundo.com>
84967
84968         * lib/strtok_r.h, strtok_r.c: New file.
84969
84970 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84971
84972         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
84973         of replacing opterr, getopt, etc.  This should handle the
84974         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
84975
84976 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84977
84978         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
84979         we can stop lying to compilers about the constness of argv when we
84980         are compiled outside glibc.
84981         (getopt, getopt_long, getopt_long_only): Use it.
84982         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84983         _getopt_internal, getopt): Likewise.
84984         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84985         _getopt_long_only_r): Likewise.
84986         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84987         _getopt_long_r, _getopt_long_only_r): Likewise.
84988
84989         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
84990         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
84991         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
84992         the other external symbols.
84993         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
84994         declaration, since the above renaming now works around collisions.
84995
84996 2004-11-11  Jim Meyering  <jim@meyering.net>
84997
84998         * lib/linebreak.c: Remove trailing blanks.
84999         * lib/alloca_.h: Likewise.
85000         * lib/acosl.c: Likewise.
85001         * lib/euidaccess.c: Likewise.
85002         * lib/allocsa.h: Likewise.
85003
85004 2004-11-10  Simon Josefsson  <jas@extundo.com>
85005
85006         * m4/getaddrinfo.m4: New file.
85007
85008 2004-11-10  Simon Josefsson  <jas@extundo.com>
85009
85010         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
85011
85012 2004-11-10  Simon Josefsson  <jas@extundo.com>
85013
85014         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85015         getaddrinfo.
85016
85017         * modules/getaddrinfo: New file.
85018
85019 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
85020
85021         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
85022
85023 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
85024
85025         * lib/mktime.c (SHR): New macro, which is a portable
85026         substitute for >> that should work even on Crays.
85027         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
85028         Problem reported by Mark D. Baushke in
85029         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
85030         * lib/getdate.y (SHR): Likewise.
85031         (tm_diff): Use it.
85032         * lib/strftime.c (SHR): Likewise.
85033         (tm_diff): Use it.
85034         * lib/quotearg.c (struct quoting_options): Use unsigned int for
85035         quote_these_too, so that right shifts are well defined.  All uses
85036         changed.
85037
85038 2004-11-10  Jim Meyering  <jim@meyering.net>
85039
85040         Ensure that no close failure goes unreported.
85041         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
85042         return early when it seems there's nothing to flush.
85043         Don't include __fpending.h.
85044
85045 2004-11-10  Jim Meyering  <jim@meyering.net>
85046
85047         * modules/closeout (Depends-on): Remove fpending.
85048
85049 2004-11-10  Jim Meyering  <jim@meyering.net>
85050
85051         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
85052
85053 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
85054
85055         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
85056         gl_FUNC_STRFTIME.
85057         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
85058         and AC_REQUIRE when possible, to avoid duplicate checks.
85059         Check for <wchar.h>.
85060
85061 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
85062
85063         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
85064
85065 2004-11-09  Bruno Haible  <bruno@clisp.org>
85066
85067         * m4/sockpfaf.m4: New file.
85068
85069 2004-11-05  Bruno Haible  <bruno@clisp.org>
85070
85071         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
85072         Reported by Mark D. Baushke <mdb@cvshome.org>.
85073
85074 2004-11-04  Bruno Haible  <bruno@clisp.org>
85075
85076         2004-09-11  Bruno Haible  <bruno@clisp.org>
85077                 * allocsa.valgrind: New file.
85078         2004-02-06  Bruno Haible  <bruno@clisp.org>
85079                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
85080                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
85081                 Reported by Christopher Seip <chris.seip@hp.com>.
85082
85083 2004-11-04  Bruno Haible  <bruno@clisp.org>
85084
85085         * modules/allocsa (Files): Add lib/allocsa.valgrind.
85086         (Makefile.am): Distribute it.
85087
85088 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
85089
85090         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
85091         with errno == ERANGE if the buffer is too small.
85092         Problem reported by Mark D. Baushke.
85093
85094 2004-11-03  Albert Chin  <china@thewrittenword.com>
85095             Paul Eggert  <eggert@cs.ucla.edu>
85096
85097         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
85098         equivalent, substitute $ac_type for equivalent type rather than
85099         blindly using uint32_t *always* which won't work if uint32_t is not
85100         available.  Define _UINT32_T to work around typedef of uint32_t if
85101         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
85102         2.5.1.
85103
85104 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85105
85106         * m4/jm-macros.m4: Sync from coreutils.
85107         (gl_MACROS): Check for mbrlen, for pathchk.
85108         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
85109
85110 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85111
85112         * lib/xreadlink.c (MAXSIZE): New macro.
85113         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
85114         size does not exceed MAXSIZE.  Avoid cast.
85115         As suggested by Mark D. Baushke in
85116         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
85117         if readlink fails with buffer size just under MAXSIZE, try again
85118         with MAXSIZE.
85119
85120 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85121
85122         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
85123
85124 2004-11-02  Derek R. Price  <derek@ximbiot.com>
85125         and  Paul Eggert  <eggert@cs.ucla.edu>
85126
85127         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
85128         (get_date): Overparenthesize to avoid GCC warning.
85129
85130 2004-11-02  Bruno Haible  <bruno@clisp.org>
85131
85132         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
85133         returns void.
85134
85135 2004-11-02  Bruno Haible  <bruno@clisp.org>
85136
85137         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
85138         function returns void.
85139
85140 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
85141
85142         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
85143         fflush_unlocked, flockfile, funlockfile, funlockfile,
85144         fputs_unlocked, putc_unlocked.
85145
85146 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
85147
85148         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
85149         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
85150         already declared.
85151
85152 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85153
85154         * modules/getdate (Files): Add doc/getdate.texi.
85155         (Depends-on): Add setenv, xalloc.
85156
85157 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85158
85159         * lib/getdate.y: Add support for TZ="foo" within a date string.
85160         Fix some bugs near time_t boundaries.  Reject dates with
85161         out-of-range components, e.g., "Sept 31".
85162         Include <stdlib.h>, "setenv.h", "xalloc.h".
85163         (ISDIGIT_LOCALE): Remove; unused.
85164         Note that the TZ and time functions used here are not reentrant.
85165         (mktime_ok, get_tz): New functions.
85166         (TZBUFSIZE): New constant.
85167         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
85168         This requires that we sometimes generate our own TZ="XXX..." setting.
85169
85170 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85171
85172         * doc/getdate.texi: New file, from coreutils with modifications for
85173         the new TZ parsing.
85174
85175 2004-10-27  Derek R. Price  <derek@ximbiot.com>
85176
85177         * lib/mktime.c (not_equal_tm): Remove redundant check.
85178
85179 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
85180
85181         * modules/regex (lib_SOURCES): Add regex.c.
85182         Reported by James Youngman in
85183         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
85184
85185 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
85186
85187         * lib/getdate.y: Use Bison 1.875 features, and some minor
85188         code cleanups.  This change does not affect semantics.
85189         Don't include <stdlib.h>; no longer needed.
85190         Don't include unlocked-io.h; only the "#if TEST" code uses
85191         stdio, and performance isn't crucial there.
85192         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
85193         Bison 1.875 features as described below.
85194         All uses of "PC." replaced by "pc->".
85195         (YYSTYPE): Add a forward declaration.
85196         (yylex, yyerror): Use full prototypes in forward decls.
85197         Use "%pure-parser" rather than obsolescent "%pure_parser".
85198         Use %parse-param and %lex-param instead of obsolescent
85199         YYPARSE_PARAM and YYLEX_PARAM.
85200         (meridian_table, month_and_day_table, time_units_table,
85201         relative_time_table, time_zone_table, military_table,
85202         lookup_zone, lookup_word, get_date):
85203         Use NULL instead of 0 where appropriate.
85204         (to_hour): Avoid abort (), to avoid a dependency on
85205         stdlib.h.
85206         (yyerror, yylex): Now accepts parser_control * arg.
85207         (main) [TEST]: Use '\0' rather than 0 for char.
85208
85209 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
85210
85211         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
85212
85213 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
85214
85215         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
85216         It's now the caller's responsibility to handle the case where
85217         !HAVE_GETPAGESIZE && !defined getpagesize.
85218
85219         * lib/mktime.c (leapyear): Arg is long int, not int.
85220
85221 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
85222
85223         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
85224
85225 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
85226
85227         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
85228         missing.  Problem reported by James Youngman.
85229
85230 2004-10-16  Simon Josefsson  <jas@extundo.com>
85231
85232         * gnulib-tool: Fix comments.  Fix parse problem.
85233         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
85234
85235 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
85236
85237         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
85238         implementation of getopt_long.  Problem reported by Alexander Taler in:
85239         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
85240
85241 2004-10-15  Bruno Haible  <bruno@clisp.org>
85242
85243         * gnulib-tool: Untabify. Initialize supplied_libname.
85244         (func_usage): More homogenous output.
85245         (func_modules_transitive_closure, func_modules_to_filelist,
85246         func_emit_lib_Makefile_am): New functions.
85247         (func_import): New function, extracted from big case statement. Use
85248         func_get_license, func_modules_transitive_closure,
85249         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
85250         opt_lgpl. Don't use test -a, as it's not portable.
85251         (func_create_testdir): Use func_modules_transitive_closure,
85252         func_modules_to_filelist, func_emit_lib_Makefile_am.
85253
85254 2004-10-15  Bruno Haible  <bruno@clisp.org>
85255
85256         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
85257
85258 2004-10-15  Bruno Haible  <bruno@clisp.org>
85259
85260         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
85261         the portions belonging to each module.
85262         Suggested by Derek Robert Price <derek@ximbiot.com>.
85263
85264 2004-10-12  Simon Josefsson  <jas@extundo.com>
85265
85266         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
85267         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
85268         to real functions.
85269
85270 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85271
85272         * modules/vsnprintf: New file.
85273
85274 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85275
85276         * m4/vsnprintf.m4: New file.
85277
85278 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85279
85280         * lib/vsnprintf.h: New file.
85281         * lib/vsnprintf.c: New file.
85282
85283 2004-10-11  Bruno Haible  <bruno@clisp.org>
85284
85285         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
85286         vsnprintf.
85287
85288 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
85289
85290         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
85291
85292 2004-10-07  Bruno Haible  <bruno@clisp.org>
85293
85294         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
85295         fits into the provided buffer.
85296
85297 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
85298
85299         * lib/diacrit.c, diacrit.h: Add GPL notice.
85300
85301         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
85302         notice.
85303         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
85304         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
85305         This avoids a potential constant-folding bug.
85306
85307 2004-10-05  Bruno Haible  <bruno@clisp.org>
85308
85309         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
85310         for the declaration of strsep.
85311
85312 2004-10-05  Bruno Haible  <bruno@clisp.org>
85313
85314         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
85315
85316 2004-10-04  Simon Josefsson  <jas@extundo.com>
85317
85318         * modules/memmem: New file.
85319         * tests/test-memmem.c: New file.
85320         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
85321
85322 2004-10-04  Simon Josefsson  <jas@extundo.com>
85323
85324         * m4/memmem.m4: New file.
85325
85326 2004-10-04  Simon Josefsson  <jas@extundo.com>
85327
85328         * lib/memmem.h: New file.
85329         * lib/memmem.c: New file, taken from glibc.
85330
85331 2004-10-04  Simon Josefsson  <jas@extundo.com>
85332
85333         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
85334         '#ifdef USE_UNLOCKED_IO'.
85335
85336 2004-10-04  Simon Josefsson  <jas@extundo.com>
85337
85338         * config/srclist.txt: Add memmem from glibc.
85339
85340 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85341
85342         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
85343
85344         * modules/argmatch, modules/argp, modules/closeout, modules/error,
85345         modules/exclude, modules/getdate, modules/getline,
85346         modules/getndelim2, modules/getpass, modules/getpass-gnu,
85347         modules/getusershell, modules/linebuffer, modules/md5,
85348         modules/mountlist, modules/posixtm, modules/readtokens,
85349         modules/readutmp, modules/regex, modules/sha1,
85350         modules/version-etc, modules/yesno:
85351         Remove dependency on unlocked-io.
85352
85353 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85354
85355         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
85356
85357         * m4/unlocked-io.m4: Add copyright notice.
85358         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
85359
85360 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85361
85362         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
85363         * lib/xmalloc.c (xmemdup): Likewise.
85364         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
85365         XFREE): Remove these long-obsolescent macros.
85366         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
85367         * lib/xstrdup.c: Remove.
85368
85369         * lib/regex.c (re_comp): Cast gettext return value to char *,
85370         Problem reported by Martin Neitzel via Mark D. Baushke.
85371
85372 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85373
85374         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
85375         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
85376         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
85377         regex.c, sha1.c, version-etc.c, yesno.c:
85378         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
85379         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
85380         the includer's responsibility.
85381
85382         Sync from coreutils.
85383
85384         * lib/modechange.c (mode_compile): Don't decrement a pointer that
85385         points to the start of a string, as the C Standard says the
85386         resulting behavior is undefined.
85387
85388         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
85389         simple -> simple_backups, numbered_existing ->
85390         numbered_existing_backups, numbered -> numbered_backups
85391         to avoid shadowing problems.  All uses changed.
85392         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
85393         * lib/backupfile.c (check_extension, numbered_backup):
85394         Rename locals to avoid shadowing 'basename'.
85395         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
85396         once.
85397
85398         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
85399         * lib/.cvsignore: Add getopt.h.
85400
85401 2004-10-04  Bruno Haible  <bruno@clisp.org>
85402
85403         * modules/README: New file.
85404         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
85405         not a module.
85406
85407 2004-10-02  Jim Meyering  <jim@meyering.net>
85408
85409         * lib/dirfd.h, getpagesize.h: Add copyright notice.
85410
85411 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85412
85413         * modules/strsep: New file.
85414
85415 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85416
85417         * m4/strsep.m4: New file.
85418
85419 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85420
85421         * lib/strsep.h: New file.
85422         * lib/strsep.c: New file.
85423
85424 2004-10-01  Simon Josefsson  <jas@extundo.com>
85425
85426         * lib/snprintf.c (snprintf): Handle size==0.
85427
85428 2004-10-01  Simon Josefsson  <jas@extundo.com>
85429             Bruno Haible  <bruno@clisp.org>
85430
85431         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
85432         (snprintf): Declare 'args'.
85433
85434 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
85435
85436         * lib/snprintf.c: Remove comments as to why each header is needed.
85437
85438 2004-10-01  Bruno Haible  <bruno@clisp.org>
85439
85440         * MODULES.html.sh: Add strsep.
85441
85442 2004-09-30  Simon Josefsson  <jas@extundo.com>
85443
85444         * modules/snprintf: New file.
85445
85446 2004-09-30  Simon Josefsson  <jas@extundo.com>
85447
85448         * m4/snprintf.m4: New file.
85449
85450 2004-09-30  Simon Josefsson  <jas@extundo.com>
85451
85452         * lib/snprintf.h, lib/snprintf.c: New files.
85453
85454 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85455
85456         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
85457         (hol_entry_help): Never translate an empty string.
85458         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
85459         * lib/argp.h (OPTION_NO_TRANS): New option.
85460
85461 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85462
85463         * modules/argp (Maintainer): Replace Simon Josefsson
85464         by Sergey Poznyakoff.
85465
85466 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85467
85468         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
85469         changes merged back into glibc.
85470
85471 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85472
85473         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
85474
85475 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
85476
85477         * lib/xvasprintf.c: Include xalloc.h.
85478         (xvasprintf): Use xalloc_die, not xmalloc_die.
85479
85480 2004-09-29  Bruno Haible  <bruno@clisp.org>
85481
85482         * modules/alloca-opt: New file, derived from modules/alloca.
85483         * modules/allocsa: Depend on alloca-opt instead of alloca.
85484         * modules/setenv: Likewise.
85485         * modules/vasnprintf: Likewise.
85486         * MODULES.html.sh: Add alloca-opt.
85487
85488 2004-09-28  Simon Josefsson  <jas@extundo.com>
85489
85490         * gnulib-tool: New parameter --lgpl, to asseert that modules are
85491         LGPL, and to replace license template from GPL to LGPL.
85492
85493 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85494
85495         * modules/dummy: Change license to LGPL.
85496
85497 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85498
85499         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
85500
85501 2004-09-24  Simon Josefsson  <jas@extundo.com>
85502
85503         * modules/minmax (License): Change from GPL to LGPL.
85504
85505 2004-09-23  Simon Josefsson  <jas@extundo.com>
85506
85507         * gnulib-tool (--import): Typo.
85508
85509 2004-09-23  Simon Josefsson  <jas@extundo.com>
85510
85511         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
85512
85513 2004-09-22  Bruno Haible  <bruno@clisp.org>
85514
85515         * modules/*: Add 'License' field.
85516         * gnulib-tool: Accept --extract-license option.
85517         (func_get_license): New function.
85518
85519 2004-09-21  Bruno Haible  <bruno@clisp.org>
85520
85521         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
85522         Reported by Simon Josefsson.
85523
85524 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85525
85526         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
85527         gl_AC_TYPE_LONG_LONG.
85528
85529 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85530
85531         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
85532
85533 2004-09-18  Simon Josefsson  <jas@extundo.com>
85534         and  Paul Eggert  <eggert@cs.ucla.edu>
85535
85536         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
85537         calls with autoreconf.  Define GL_LIB.
85538
85539 2004-09-14  Karl Berry  <karl@gnu.org>
85540
85541         * config/srclist.txt: unsync setenv.c, sigh.
85542
85543 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85544
85545         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
85546         Problem reported by Bruno Haible in:
85547         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
85548
85549 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85550
85551         * config/srclist.txt: Comment out argp-pvh.c.
85552
85553 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
85554
85555         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
85556         in case some system header has #define'd it.  Problem reported by
85557         Soeren D. Schulze in
85558         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
85559
85560 2004-09-09  Karl Berry  <karl@gnu.org>
85561
85562         * regex.[ch]: delete from the root.  These were supposed to be
85563                 synced with emacs cvs, but this has not happened for about
85564                 a year, and anyway nothing else uses emacs regex.[ch].
85565                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
85566                 lib/regex[.ch] is untouched.
85567
85568 2004-09-09  Bruno Haible  <bruno@clisp.org>
85569
85570         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
85571
85572 2004-09-09  Bruno Haible  <bruno@clisp.org>
85573
85574         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
85575         modifications.
85576         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
85577
85578 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85579
85580         * modules/xvasprintf: New file.
85581         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
85582
85583 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85584
85585         * lib/xvasprintf.h: New file.
85586         * lib/xvasprintf.c: New file.
85587         * lib/xasprintf.c: New file.
85588
85589 2004-09-08  Bruno Haible  <bruno@clisp.org>
85590
85591         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
85592
85593 2004-09-08  Bruno Haible  <bruno@clisp.org>
85594
85595         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
85596         length is > INT_MAX.
85597         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
85598         more.
85599
85600 2004-09-08  Bruno Haible  <bruno@clisp.org>
85601
85602         * lib/stdint_.h: New file, taken from GNU clisp.
85603
85604 2004-09-08  Bruno Haible  <bruno@clisp.org>
85605             Oskar Liljeblad  <oskar@osk.mine.nu>
85606
85607         * modules/stdint: New file.
85608         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
85609
85610 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85611
85612         Import from coreutils.
85613         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
85614         strings on unbounded length.  alloca's performance benefits aren't
85615         that important here.
85616         (V_STRDUP): Remove.
85617         (parse_with_separator): New function, with most of the internals
85618         of the old parse_user_spec.  Allow user to omit both user and group,
85619         for compatibility with FreeBSD.
85620         Clone only the user name, not the entire spec.
85621         Do not set *uid, *gid unless entirely successful.
85622         Avoid memory leak in some failing cases.
85623         Fix regression for USER.GROUP reported by Dmitry V. Levin in
85624         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
85625         (parse_user_spec): Rewrite to use parse_with_separator.
85626
85627 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85628
85629         * modules/userspec: Don't depend on alloca.
85630
85631 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85632
85633         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
85634
85635 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
85636
85637         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
85638         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
85639         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
85640
85641 2004-08-16  Simon Josefsson  <jas@extundo.com>
85642
85643         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
85644         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
85645         Add --dry-run for --import.
85646         Let user provided command line parameters override configure.ac
85647         settings.
85648
85649 2004-08-12  Simon Josefsson  <jas@extundo.com>
85650
85651         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
85652         as discussed with Paul Eggert in threads rooted at
85653         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
85654         and
85655         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
85656         Before, the test was empty, and relied on ELIDE_CODE in source
85657         code.)
85658         (gl_PREREQ_GETOPT): New macro.
85659         (gl_GETOPT): Use them.
85660
85661 2004-08-12  Simon Josefsson  <jas@extundo.com>
85662
85663         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
85664         * lib/getopt_.h: Renamed from getopt.h.
85665
85666 2004-08-12  Simon Josefsson  <jas@extundo.com>
85667
85668         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
85669         Change default library name from libfoo to libgnu.
85670         Now, if you have a configure.ac that says:
85671                 gl_SOURCE_BASE(gl)
85672                 gl_M4_BASE(gl/m4)
85673                 gl_MODULES(error getopt etcetera)
85674                 gl_INIT
85675         you can import all you need by running:
85676                 ../gnulib/gnulib-tool --import
85677
85678         * modules/getopt (Files): Rename getopt.h to getopt_.h.
85679         (Makefile.am): Rewrite, use logic from argz.
85680         (Include): Use <getopt.h> instead of "getopt.h".
85681
85682 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85683
85684         * modules/argp (Files): Add m4/unlocked-io.m4.
85685         (Depends-on): Add extensions.
85686
85687 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85688
85689         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
85690         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
85691         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
85692         Check for program_invocation_name, program_invocation_short_name,
85693         flockfile, funlockfile, features.h, _getopt_long_only_r.
85694
85695 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85696
85697         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
85698         its complicated substitute.
85699         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
85700         and program_invocation_name.
85701         (__argp_basename) [!_LIBC]: Remove; the only use was
85702         replaced by its body.
85703         (__argp_short_program_name): Change condition from
85704         !defined __argp_short_program_name to
85705         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
85706         to match argp-namefrob.h.
85707         (__argp_failure): Don't assume strerror_r returns char *.
85708         * lib/argp-parse.c (N_): Define unconditionally.
85709         (argp_default_options): Fill out initializers with 0 to avoid
85710         gcc warnings.
85711
85712 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85713
85714         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
85715         getopt1.c.
85716
85717 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85718
85719         Merge from coreutils.
85720
85721         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
85722
85723         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
85724         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
85725
85726 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85727
85728         Merge from coreutils.
85729
85730         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
85731         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
85732         for Reliant Unix 5.43.
85733
85734         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
85735         (union fooround): Use uintmax_t, not long int.
85736         The rest is a merge from libc:
85737         [defined _LIBC]: Include <shlib-compat.h>.
85738         (_obstack) [defined _LIBC]: Remove after 2.3.4.
85739
85740         * lib/settime.c (settime): Recode to avoid warning with
85741         Sun Forte C 6U2.
85742
85743         * lib/strverscmp.c: Convert to UTF-8.
85744
85745 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85746
85747         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
85748         m4/uintmax_t.m4.
85749
85750 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85751
85752         * modules/xalloc-die: New file.
85753         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
85754
85755         * modules/md5 (Files): Add m4/uint32_t.m4.
85756         * modules/sha1: Renamed from modules/sha.
85757         (Files):
85758         Rename lib/sha.h to lib/sha1.h.
85759         Rename lib/sha.c to lib/sha1.c.
85760         Rename m4/sha.m4 to m4/sha1.m4.
85761         (lib_SOURCES): Likewise.
85762         (configure.ac): Rename gl_SHA to gl_SHA1.
85763         (Include): sha.h -> sha1.h.
85764
85765 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85766
85767         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
85768         * m4/sha1.m4: Renamed from sha.m4.
85769         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
85770
85771 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85772
85773         * lib/obstack.h (obstack_empty_p):
85774         Don't assume that chunk->contents is suitably aligned.
85775         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
85776         Likewise. Problem reported by Benno in
85777         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
85778
85779         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
85780         readable.  This could be improved further but it'd take some work.
85781
85782 2004-08-08  Simon Josefsson  <jas@extundo.com>
85783
85784         * modules/xgethostname (Depends-on): Remove exit and error (not
85785         used).
85786
85787         * modules/getpass-gnu: Add getpass.h.
85788         (Depends-on): Add stdbool.
85789         * modules/getpass: Add getpass.h.
85790
85791 2004-08-08  Simon Josefsson  <jas@extundo.com>
85792
85793         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
85794         Check getpass declaration.
85795
85796 2004-08-08  Simon Josefsson  <jas@extundo.com>
85797
85798         * lib/xgethostname.c: Don't include error.h (not used).
85799
85800         * lib/getpass.h: Add.
85801         * lib/getpass.c: Include getpass.h first.
85802
85803 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
85804
85805         * lib/xalloc-die.c: New file.
85806         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
85807         All uses removed.
85808         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
85809         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
85810         xalloc-die.c.
85811         (_, N_, xalloc_die): Move to xalloc-die.c.
85812         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
85813         so that we needn't mess with xalloc_msg_memory_exhausted.
85814
85815         * lib/sha1.h: Renamed from sha.h.
85816         (SHA1_H): Renamed from _SHA_H.
85817         (sha1_ctx): Renamed from sha_ctx.
85818         (sha1_init_ctx): Renamed from sha_init_ctx.
85819         (sha1_process_block): Renamed from sha_process_block.
85820         (sha1_process_bytes): Renamed from sha_process_bytes.
85821         (sha1_finish_ctx): Renamed from sha_finish_ctx.
85822         (sha1_read_ctx): Renamed from sha_read_ctx.
85823         (sha1_stream): Renamed from sha_stream.
85824         (sha1_buffer): Renamed from sha_buffer.
85825         * lib/sha1.c: Likewise; renamed from sha.c.
85826         Do not include <sys/types.h>.
85827         Include <stddef.h> rather than <stdlib.h>.
85828
85829 2004-08-08  Bruno Haible  <bruno@clisp.org>
85830
85831         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
85832         FILESYSTEM_PREFIX_LEN.
85833         * lib/progreloc.c: Likewise.
85834         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
85835
85836 2004-08-06  Simon Josefsson  <jas@extundo.com>
85837
85838         * modules/progname (Depends-on): Don't depend on stdbool.
85839
85840 2004-08-06  Simon Josefsson  <jas@extundo.com>
85841
85842         * modules/getsubopt: New file.
85843         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85844         getsubopt.
85845
85846 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85847
85848         More merge from coreutils.
85849
85850         * m4/utimens.m4, m4/utimecmp.m4: New files.
85851         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
85852         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
85853         prereq.m4, sha.m4: Import changes from coreutils.
85854
85855 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85856
85857         More merge from coreutils.
85858         * modules/raise, modules/readtokens0, modules/utimens:
85859         * modules/utimecmp, module/xnanosleep: New files.
85860         * modules/strftime: Add lib/strftime.h.
85861         Change include from <time.h> to "strftime.h".
85862         * modules/yesno: Add lib/yesno.h.
85863         * modules/backupfile: Remove lib/addext.c.
85864         * modules/euidaccess: Add stat-macros.h.
85865         * modules/canonicalize, modules/euidaccess,
85866         modules/filemode, modules/lchown, modules/makepath,
85867         modules/rmdir, modules/stat: Likewise.
85868
85869 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85870
85871         Merge from tar.
85872         * lib/argp-help.c (make_hol, hol_append): Don't assume that
85873         SIZE_MAX is a valid preprocessor constant.
85874         (__argp_basename): Change from "#ifndef _LIBC"
85875         to "#ifndef __argp_short_program_name", so that
85876         we don't compile these functions for tar.
85877
85878         More merges from coreutils.
85879         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
85880         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
85881         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
85882         * lib/addext.c: Remove; no longer needed.
85883         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
85884         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
85885         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
85886         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
85887         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
85888         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
85889         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
85890         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
85891         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
85892         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85893         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
85894         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
85895         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
85896         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
85897         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
85898         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
85899         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
85900         Import changes from coreutils.
85901
85902 2004-08-05  Simon Josefsson  <jas@extundo.com>
85903
85904         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
85905
85906 2004-08-05  Simon Josefsson  <jas@extundo.com>
85907
85908         * m4/getsubopt.m4: New file.
85909
85910 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85911
85912         Merge from coreutils.
85913
85914         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
85915         * m4/getcwd-path-max.m4: New files.
85916
85917         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
85918         FILESYSTEM_PREFIX_LEN ->
85919         FILE_SYSTEM_PREFIX_LEN.
85920         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
85921         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
85922         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
85923         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
85924
85925         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
85926         prerequisite modules now handle the DOS stuff.
85927         Don't check for unistd.h.
85928
85929 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85930
85931         Merge from coreutils.
85932
85933         * lib/.gdb-history: Remove; this doesn't belong here.
85934
85935         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
85936         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
85937         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
85938         * lib/getcwd.c: New files.
85939
85940         * lib/dirname.h: Include <stdbool.h>.
85941         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
85942         for consistency with POSIX terminology.  All uses changed.
85943         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
85944         (strip_trailing_slashes): Use bool for booleans.
85945         * lib/stripslash.c (strip_trailing_slashes): Likewise.
85946
85947         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
85948         sometimes returns a positive errno value even when it succeeds.
85949         (print_errno_message) [!LIBC]: Fall back on strerror if
85950         __strerror_r fails.
85951
85952         * lib/path-concat.c (mempcpy): Don't define if a system header defines
85953         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
85954         (longest_relative_suffix): New function.
85955         (path_concat): Use it.  Assume first argument is not NULL.
85956         Port to DOS.  Omit redundant separators.
85957         Report an error instead of returning NULL.
85958         Use mempcpy instead of memcpy.
85959         (xpath_concat): Remove: not declared or used.
85960
85961         * lib/same.h: Include <stdbool.h>
85962         (same_name): Return bool, not int.
85963         * lib/same.c (same_name): Likewise.
85964         (errno): Don't declare; we assume C89 or better now.
85965
85966         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
85967         if not already defined.
85968
85969         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
85970         * lib/dup-safer.c (errno): Likewise.
85971
85972 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85973
85974         Merge from coreutils.
85975         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
85976         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
85977         * modules/path-concat: Don't depend on strdup.
85978
85979 2004-08-03  Simon Josefsson  <jas@extundo.com>
85980
85981         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
85982         * lib/progname.h: Don't include stdbool.h.
85983
85984 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85985
85986         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
85987         * MODULES.html.sh (func_all_modules): Remove fatal.
85988
85989 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85990
85991         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
85992
85993 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85994
85995         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
85996         working.
85997
85998 2004-08-02  Simon Josefsson  <jas@extundo.com>
85999
86000         * lib/getsubopt.h: New file, with comments from Bruno Haible.
86001         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
86002         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
86003
86004 2004-08-01  Simon Josefsson  <jas@extundo.com>
86005
86006         * lib/xgetdomainname.c: Include stdlib.h, for free().
86007
86008 2004-07-19  Bruno Haible  <bruno@clisp.org>
86009
86010         * MODULES.html.sh (func_all_modules): Add dummy.
86011
86012 2004-07-16  Simon Josefsson  <jas@extundo.com>
86013
86014         * modules/dummy: New file.
86015
86016 2004-07-16  Simon Josefsson  <jas@extundo.com>
86017
86018         * lib/dummy.c: New file.
86019
86020 2004-07-16  Bruno Haible  <bruno@clisp.org>
86021
86022         * lib/backupfile.h: Add extern "C" for C++.
86023         * lib/closeout.h: Likewise.
86024         * lib/copy-file.h: Likewise.
86025         * lib/findprog.h: Likewise.
86026         * lib/full-write.h: Likewise.
86027         * lib/pathname.h: Likewise.
86028         * lib/progname.h: Likewise.
86029         * lib/stpcpy.h: Likewise.
86030         * lib/stpncpy.h: Likewise.
86031         * lib/strcase.h: Likewise.
86032         * lib/strstr.h: Likewise.
86033         * lib/xalloc.h: Likewise.
86034
86035         * lib/mbswidth.h: Add extern "C" for C++.
86036         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
86037
86038 2004-07-13  Robert Millan  <robertmh@gnu.org>
86039
86040         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
86041
86042 2004-07-09  Simon Josefsson  <jas@extundo.com>
86043
86044         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
86045         failed without this.)
86046
86047 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
86048
86049         * modules/chown (Files): Add lib/fchown-stub.c, since
86050         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
86051
86052 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
86053
86054         * lib/fchown-stub.c: New file.
86055
86056 2004-06-24  Jim Meyering  <jim@meyering.net>
86057
86058         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
86059
86060 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86061
86062         * modules/argz: Omit "#include".
86063
86064         * MODULES.html.sh (func_all_modules): Add calloc, to match
86065         2004-06-01 addition of calloc module.
86066
86067 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86068
86069         * m4/argz.m4: New file, which is autoupdated from libtool.
86070
86071 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86072
86073         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
86074         libtool.
86075
86076 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86077
86078         * config/srclist-update: Don't insist on "USA." before the
86079         close-comment, as libtool omits the period and puts the */ on a
86080         separate line.
86081         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
86082         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
86083
86084 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
86085
86086         * modules/argz: New file.
86087         * MODULES.html.sh (func_all_modules): Add argz.
86088
86089 2004-06-12  Jim Meyering  <jim@meyering.net>
86090         and  Paul Eggert  <eggert@cs.ucla.edu>
86091
86092         * modules/hash (Files): Add lib/xalloc.h.
86093         * modules/pipe (Depends-on): Add wait-process.
86094         * modules/stat (Depends-on): Add xalloc.
86095         * modules/userspec (Files): Add lib/userspec.h.
86096         * modules/xstrto
86097
86098         Upgrade from gettext-0.13.
86099         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
86100         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
86101         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
86102
86103 2004-06-10  Jim Meyering  <jim@meyering.net>
86104
86105         * lib/calloc.c: New file.
86106
86107 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
86108
86109         * lib/getdate.y (yylex): Allow space between sign and number.
86110         Problem reported by Dan Jacobson.
86111
86112 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
86113
86114         Merge from coreutils CVS.
86115
86116         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
86117         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
86118         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
86119         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
86120         xstrtol.m4: Fix copyright date and/or serial number.
86121
86122         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
86123         See if we need an fchown replacement.
86124         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
86125         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
86126         and use the replacement function if we detect either defect.
86127
86128         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
86129         gl_UTIMECMP.
86130
86131 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
86132         and  Jim Meyering  <jim@meyering.net>
86133
86134         Merge from coreutils CVS.
86135
86136         * lib/stat-macros.h: New file, with contents from file-type.h
86137         and coreutils' system.h.
86138         * lib/file-type.c: Include "stat-macros.h".
86139         * lib/file-type.h (file_type): Move all macro definitions to new file,
86140         stat-macros.h.
86141
86142         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
86143         Wrap old code with this conditional.
86144         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
86145         function that does not dereference symlinks.
86146         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
86147
86148         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
86149         dependency problems.
86150         (xreadlink): Accept new arg SIZE, for efficiency.
86151         All decls and uses changed.
86152         * lib/xreadlink.h: Include <stddef.h>, for size_t.
86153
86154         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
86155         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
86156
86157         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
86158         sysexits.h.
86159
86160 2004-06-01  Jim Meyering  <jim@meyering.net>
86161
86162         * m4/calloc.m4: New file.
86163
86164 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
86165
86166         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
86167         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
86168         Also, fix a typo in a diagnostic.
86169
86170 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
86171
86172         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
86173         or AC_FUNC_REALLOC.
86174
86175 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
86176
86177         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
86178         macros to be defined.
86179         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
86180         the allocator returns NULL because the requested size is zero.
86181
86182 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86183
86184         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
86185         var.  Add comment explaining why libc still defines it.  This
86186         merges the following patch from glibc:
86187         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
86188
86189 2004-05-20  Andreas Schwab  <schwab@suse.de>
86190
86191         * m4/free.m4: Replace free if it not known to work, not the other
86192         way round.
86193
86194 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
86195
86196         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
86197         present in glibc since revision 1.1 of this file.
86198         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
86199         obstack_alignment_mask, obstack_alloc, obstack_base,
86200         obstack_blank, obstack_blank_fast, obstack_chunk_size,
86201         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
86202         obstack_grow0, obstack_init, obstack_int_grow,
86203         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
86204         obstack_next_free, obstack_object_size, obstack_ptr_grow,
86205         obstack_ptr_grow_fast, obstack_room): Remove declarations of
86206         nonexistent functions.
86207
86208 2004-05-18  Karl Berry  <karl@gnu.org>
86209
86210         * config/srclist.txt: break link for vasnprintf.c.
86211
86212 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86213
86214         Port obstack to the AS/400, where pointers are 16 bytes wide and
86215         you cannot cast an integer to a valid pointer.  This patch is
86216         currently waiting to be integrated into glibc; see
86217         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
86218
86219         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
86220         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
86221         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
86222         (struct obstack): temp member is now a union of a pointer and
86223         an integer, instead of an integer.  All integer uses changed.
86224         This does not affect the physical layout of struct obstack,
86225         except on hosts (like the AS/400) where the size or alignment of
86226         void * is greater than that of ptrdiff_t.
86227         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
86228         __STDC__)]: Store temporary in pointer member of union, not
86229         integer member.
86230         * lib/obstack.c: Include <stddef.h>, for offsetof.
86231         (struct fooalign): Remove; it doesn't need a name.
86232         (union fooround): Change double to long double, and add void *.
86233         (DEFAULT_ALIGNMENT): Use offsetof to compute.
86234         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
86235         not a macro.  Hence the values are always int; so remove all
86236         casts-to-int in uses.
86237
86238 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86239
86240         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
86241         we can get this patch merged into glibc.
86242
86243 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86244             Paul Eggert  <eggert@cs.ucla.edu>
86245
86246         * m4/argp: Depend on alloca.
86247
86248 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86249             Paul Eggert  <eggert@cs.ucla.edu>
86250
86251         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
86252         freecoding.
86253
86254 2004-05-17  Bruno Haible  <bruno@clisp.org>
86255
86256         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
86257         precision that consists of a '.' followed by an empty digit string.
86258         Patch by Tor Lillqvist <tml@iki.fi>.
86259
86260 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86261
86262         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
86263         for backward compatibility with older code.  We need our own
86264         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
86265         it under some other name, and our alloca.h will define it.
86266
86267 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86268             Derek Price  <derek@ximbiot.com>
86269
86270         * lib/alloca.c: Include <alloca.h>, to get our interface.
86271         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
86272         include <alloca.h> first.  Use C89 prototype for alloca; this
86273         requires including <stddef.h> for size_t.  Use extern "C" if C++.
86274         Use #elif for simplicity, since we can assume C89 now.
86275         Don't try to source the system alloca.h since it will not be found
86276         and to prevent recursively including its replacement.
86277         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
86278         * lib/regex.c: Likewise.
86279
86280 2004-05-16  Derek Price  <derek@ximbiot.com>
86281             Paul Eggert  <eggert@cs.ucla.edu>
86282
86283         getline cleanup.  This changes the getndelim2 API: both order of
86284         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
86285         no delimiter).
86286
86287         * lib/getline.c: Don't include stddef.h or stdio.h, since our
86288         interface does that.
86289         (getline): Always use getdelim, so that we don't have two
86290         copies of this code.
86291         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
86292         if available.
86293         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
86294         (GETNDELIM2_MAXIMUM): New macro.
86295         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
86296         instead of the old practice of delim2==0.  All callers changed.
86297         Return -1 on overflow, instead of returning junk.
86298         Do not set *linesize unless allocation succeeds.
86299         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
86300         that we include sys/types.h.
86301         * lib/getnline.h: Likewise.
86302         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
86303         (getndelim2): Reorder arguments.
86304         * lib/getnline.c (getnline, getndelim):
86305         Don't discard the NMAX argument.
86306         (getnline): Invoke getndelim, to avoid code duplication.
86307         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
86308         of (size_t) -1 by callers of the getnline family.
86309
86310 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86311
86312         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
86313         Check for gettimeofday.
86314         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
86315         Check for settimeofday, stime.
86316
86317 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86318
86319         * lib/nanosleep.c (suspended): Change its type from int to
86320         sig_atomic_t volatile.
86321         (first_call): Make it private to rpl_nanosleep, and have it
86322         be zero initially as that's a bit faster.
86323         (my_usleep): Round up fractional times instead of truncating them,
86324         as this is the usual meaning for 'sleep'.
86325
86326         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
86327         doesn't work.
86328         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
86329         (ENOSYS): Define if not defined.
86330         (settime): Fall back on stime if it exists and settimeofday fails.
86331         But don't bother with fallbacks if a method fails with errno == EPERM.
86332
86333 2004-05-11  Jim Meyering  <jim@meyering.net>
86334
86335         Prior to this change, the save_cwd caller required read access to the
86336         current directory on most systems (ones with the fchdir function).
86337
86338         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
86339         fails, try write-only, and finally, resort to using xgetcwd.
86340
86341 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
86342
86343         * lib/obstack.c, obstack.h: Import changes from libc.
86344
86345 2004-04-28  Bruno Haible  <bruno@clisp.org>
86346
86347         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
86348         also implicitly appends .exe to executables.
86349         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
86350         accepts Windows pathnames.
86351         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86352         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86353         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86354         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86355         Reported by Derek Robert Price <derek@ximbiot.com>.
86356
86357 2004-04-21  Karl Berry  <karl@gnu.org>
86358
86359         * config/srclist.txt (localcharset.c): break sync.
86360
86361 2004-04-20  Paul Eggert  <eggert@twinsun.com>
86362
86363         * m4/host-os.m4: Add a copyright notice.
86364
86365 2004-04-20  Jim Meyering  <jim@meyering.net>
86366
86367         Change UTILS_ to gl_ in AC_DEFINE'd names.
86368         Change utils_- and jm_-prefixed variables, too.
86369         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
86370         UTILS_FUNC_MKDIR_TRAILING_SLASH.
86371         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
86372
86373         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
86374         Don't emit trailing blanks.
86375         Also rename jm_-prefixed variables to have gl_ prefix.
86376
86377         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
86378         Also rename jm_-prefixed variables to have gl_ prefix.
86379
86380         * m4/jm-macros.m4: Reflect the renamings.
86381         * m4/prereq.m4: Likewise.
86382
86383 2004-04-20  Jim Meyering  <jim@meyering.net>
86384
86385         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
86386         memory.
86387
86388 2004-04-20  Jim Meyering  <jim@meyering.net>
86389             Bruno Haible  <bruno@clisp.org>
86390
86391         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
86392         memory when realloc fails.
86393
86394 2004-04-19  Jim Meyering  <jim@meyering.net>
86395
86396         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
86397         now that readutmp.c may call `free (0)'.
86398
86399 2004-04-19  Bruno Haible  <bruno@clisp.org>
86400
86401         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
86402         * m4/inttypes_h.m4: Likewise.
86403         * m4/stdint_h.m4: Likewise.
86404         * m4/intmax_t.m4: Likewise.
86405         * m4/uintmax_t.m4: Likewise.
86406
86407 2004-04-18  Jim Meyering  <jim@meyering.net>
86408
86409         * m4/prereq.m4: Don't forbid jm_ prefix.
86410
86411         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
86412         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
86413         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
86414         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
86415         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
86416         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
86417         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
86418         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
86419         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
86420         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
86421         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
86422         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
86423         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
86424         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
86425         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
86426         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
86427         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
86428         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
86429         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
86430
86431 2004-04-18  Jim Meyering  <jim@meyering.net>
86432
86433         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
86434         failure, don't leak memory and do call END_UTMP_ENT.
86435
86436 2004-04-16  Jim Meyering  <jim@meyering.net>
86437
86438         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
86439         coreutils' stat program.
86440         (gl_PREREQ): Don't require jm_PREREQ_STAT.
86441
86442 2004-04-11  Paul Eggert  <eggert@twinsun.com>
86443
86444         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
86445         C89.
86446         (CHAR_BIT): Remove, since we assume C89.
86447         Include <stdint.h> if available, as per current Autoconf CVS advice.
86448
86449 2004-03-31  Jim Meyering  <jim@meyering.net>
86450
86451         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
86452         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
86453         * m4/xalloc.m4: Likewise.
86454
86455 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86456
86457         Merge from coreutils.
86458
86459         * m4/inttostr.m4: New file.
86460         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
86461         Require AM_STDBOOL_H and gl_TIMESPEC instead.
86462         Require gl_CLOCK_TIME.
86463         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
86464
86465 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86466
86467         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
86468         not bool, to be more consistent with Unix conventions.
86469         Suggested by Bruno Haible.
86470
86471         Merge from coreutils.
86472
86473         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
86474         * lib/umaxtostr.c: New files.
86475
86476         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
86477         the usual <time.h> dance.
86478         (get_date): Change signature to support fractional time stamps.
86479         All callers changed.
86480         * lib/getdate.y: Include "getdate.h" first, as we can now
86481         assume C89 and don't need to worry about 'const'.
86482         Similarly, include "unlocked-io.h" near start, not in middle.
86483         Include <limits.h>.
86484         (textint.value): Use long int rather than int.
86485         (textint.digits): Use size_t rather than int.
86486         (BILLION, LOG10_BILLION): New constants.
86487         (parser_control): New member rel_ns.  Members day_ordinal,
86488         time_zone, month, day, hour, minutes, rel_year, rel_month,
86489         rel_day, rel_hour, rel_minutes, rel_seconds
86490         are now long int, not int.  Member seconds is now struct timespec,
86491         not int.  New member timespec_seen.  Members dates_seen, days_seen,
86492         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
86493         not int.
86494         (%union.intval): Now long int, not int.
86495         New member timespec.
86496         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
86497         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
86498         (spec): Now is a timespec or an item list.
86499         (timespec, items): New nonterminals.
86500         (time, rel, relunit, number, get_date):
86501         Add support for fractional seconds.
86502         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
86503         (gmtime, localtime, mktime): Remove decls; not needed with C89.
86504         (to_hour): First arg is now long int, not int.
86505         (to_year): Returns long int, not int.
86506         Don't treat year -70 like 70.
86507         (tm_diff): Returns long int, not int.
86508         (lookup_word): Use bool instead of int when appropriate.
86509         (yylex): Use size_t for count, not int.
86510         Detect overflow when parsing large integer constants.
86511         Add support for fractions.
86512         (get_date): Make pointers 'const' if possible.
86513         Use more-portable code to detect integer overflow.
86514         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
86515         Don't use ctime; it's not reliable if the year has >4 digits.
86516
86517         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
86518         This is for compatibility with BSD.
86519
86520         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
86521         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
86522         From coreutils' system.h.
86523
86524         * lib/userspec.c: Don't include "posixver.h".
86525         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
86526         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
86527         compatible extension.  Simplify code by removing a boolean int
86528         that was always nonzero if a string was nonnull.
86529
86530 2004-03-30  Jim Meyering  <jim@meyering.net>
86531
86532         Merge from coreutils.
86533
86534         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
86535         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
86536         on some systems one must include <grp.h> before it.
86537         Reported by Christian Krackowizer.
86538
86539 2004-03-30  Jim Meyering  <jim@meyering.net>
86540
86541         Merge from coreutils.
86542
86543         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
86544
86545         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
86546         an empty input stream.
86547
86548         * lib/readtokens.c: Include <stdbool.h>.
86549         (readtoken): Use `size_t' rather than int/long.
86550         All callers adjusted.
86551         Use `bool' rather than `int' where appropriate.
86552         Use memset rather than an explicit loop.
86553         Use x2nrealloc rather than xrealloc.
86554         Allow the use of `\0' as a delimiter.
86555         (readtokens): Likewise.
86556         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
86557
86558 2004-03-30  Jim Meyering  <jim@meyering.net>
86559
86560         * m4/realloc.m4: Remove file, since now it does no more than
86561         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
86562         the `configure.ac' section of module/realloc.
86563         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
86564
86565 2004-03-30  Bruno Haible  <bruno@clisp.org>
86566
86567         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
86568         nonnull.
86569
86570 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86571
86572         Merge changes to getloadavg.c from coreutils and Emacs.
86573
86574         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
86575         Define to an expression, not to the empty string.
86576         Include cloexec.h and xalloc.h.
86577         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
86578         Use set_cloexec_flag rather than rolling our own.
86579         * lib/cloexec.c, lib/cloexec.h: New files.
86580
86581 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86582
86583         * m4/cloexec.m4: New file.
86584
86585 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86586
86587         * lib/getopt.h: Sync with libc CVS.
86588
86589 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86590             Bruno Haible  <bruno@clisp.org>
86591
86592         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
86593         mbswidth.
86594
86595 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86596             Bruno Haible  <bruno@clisp.org>
86597
86598         * lib/mbswidth.h: Include <wchar.h> only if
86599         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
86600         <wchar.h>.
86601         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
86602
86603 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86604
86605         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
86606         Sync with libc CVS.
86607         * lib/getopt_int.h: New file, also synced from libc.
86608
86609 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86610
86611         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
86612         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
86613         Bring back getopt.c, getopt.h, getopt1.c.
86614
86615 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86616
86617         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
86618         All uses changed.  Check for sa_sigaction member; this fixes
86619         a bug first reported by Jason Andrade in
86620         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86621
86622 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86623
86624         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
86625         '#if' expressions.  Unlike the code it replaces, it does not
86626         depend on (defined _SC_PAGESIZE).  However, it does depend on
86627         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
86628         first reported by Jason Andrade in
86629         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86630
86631 2004-02-25  Simon Josefsson  <jas@extundo.com>
86632
86633         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
86634
86635 2004-02-25  Simon Josefsson  <jas@extundo.com>
86636
86637         * lib/strdup.h: New file.
86638         * lib/strdup.c: Include it.
86639         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
86640         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
86641
86642 2004-02-23  Karl Berry  <karl@gnu.org>
86643
86644         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
86645         (from fencepost.gnu.org:/gd/gnuorg).
86646
86647 2004-02-23  Karl Berry  <karl@gnu.org>
86648
86649         * config/srclistvars.sh (GNUORG) [karl]: redefine.
86650         * config/srclist.txt: add maintain/standards documents.
86651
86652 2004-02-18  Bruno Haible  <bruno@clisp.org>
86653
86654         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
86655         Reported by Derek Robert Price <derek@ximbiot.com>.
86656
86657 2004-02-16  Karl Berry  <karl@gnu.org>
86658
86659         * config/mkinstalldirs, install-sh: update from automake.
86660
86661 2004-02-06  Karl Berry  <karl@gnu.org>
86662
86663         * m4/po.m4: update from gettext 0.14.1.
86664
86665 2004-02-06  Karl Berry  <karl@gnu.org>
86666
86667         * lib/config.charset: update from gettext 0.14.1.
86668
86669 2004-02-05  Paul Eggert  <eggert@twinsun.com>
86670
86671         Add comments and code, prompted by suggestions from Bruno Haible
86672         for sh-quote.
86673         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
86674         describing the enum quoting_style values.
86675         * lib/quotearg.c (quotearg_alloc): New function.
86676         (quotearg_buffer_restyled): Treat lone { and } as special.
86677         Treat = as special.  Work around bug with older shells
86678         that "see" a '\' that is really the 2nd byte of a multibyte char.
86679         Quote empty string with shell_quoting_style.
86680
86681 2004-02-03  Bruno Haible  <bruno@clisp.org>
86682
86683         * m4/pipe.m4: New file, from GNU gettext.
86684
86685 2004-02-03  Bruno Haible  <bruno@clisp.org>
86686
86687         * lib/pipe.h: New file, from GNU gettext.
86688         * lib/pipe.c: New file, from GNU gettext.
86689
86690 2004-01-27  Bruno Haible  <bruno@clisp.org>
86691
86692         * m4/execute.m4: New file, from GNU gettext.
86693
86694 2004-01-27  Bruno Haible  <bruno@clisp.org>
86695
86696         * lib/execute.h: New file, from GNU gettext.
86697         * lib/execute.c: New file, from GNU gettext.
86698         * lib/w32spawn.h: New file, from GNU gettext.
86699
86700 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86701
86702         Merge from diffutils.
86703
86704         * lib/file-type.c (file_type): Add typed memory objects.
86705         * lib/file-type.h (S_TYPEISTMO): New macro.
86706
86707         * lib/c-stack.h (c_stack_action): Remove argv argument.
86708         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
86709         (die): Don't calculate message unless segv_action returns.
86710         (get_stack_location, min_address_from_argv, max_address_from_argv,
86711         volatile stack_base, volatile_stack_size): Remove.
86712         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
86713         that every segmentation violation is a stack overflow.  (Ouch!)
86714         See Debian bug 136249 (still outstanding) for more info about why
86715         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
86716
86717 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86718
86719         Exit-status fix from coreutils.
86720
86721         Use exit_failure consistently in place of EXIT_FAILURE,
86722         so that program exit statuses are consistent on failure.
86723
86724         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
86725         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
86726         * lib/argmatch.h: Comment fix to match the above.
86727         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
86728         Now a macro referring to exit_failure, instead of a separate
86729         variable.  Include "exitfail.h" to get it.
86730         * lib/xstrtol.h: Include "exitfail.h".
86731         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
86732
86733         * lib/long-options.c (parse_long_options): Use prototype
86734         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
86735         for clarity.
86736
86737 2004-01-21  Jim Meyering  <jim@meyering.net>
86738
86739         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
86740         so as not to conflict with a different-sized __mktime_internal
86741         function in GNU libc.
86742         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
86743         Problem building statically-linked `ls' reported by Michael Brunnbauer.
86744
86745 2004-01-20  Karl Berry  <karl@gnu.org>
86746
86747         * config/config.guess: update from config.
86748
86749         * config/srclistvars.sh: GNUWWWLICENSES for karl.
86750
86751 2004-01-20  Bruno Haible  <bruno@clisp.org>
86752
86753         Safer stack allocation.
86754         * lib/setenv.c: Include allocsa.h.
86755         (alloca): Remove fallback definition.
86756         (freea): Remove macro.
86757         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
86758         instead of freea.
86759
86760 2004-01-20  Bruno Haible  <bruno@clisp.org>
86761
86762         * m4/eealloc.m4: New file, from GNU gettext.
86763
86764 2004-01-20  Bruno Haible  <bruno@clisp.org>
86765
86766         * m4/allocsa.m4: New file, from GNU gettext.
86767
86768 2004-01-20  Bruno Haible  <bruno@clisp.org>
86769
86770         * lib/xallocsa.h: New file, from GNU gettext.
86771         * lib/xallocsa.c: New file, from GNU gettext.
86772
86773 2004-01-20  Bruno Haible  <bruno@clisp.org>
86774
86775         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
86776
86777 2004-01-20  Bruno Haible  <bruno@clisp.org>
86778
86779         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
86780         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
86781         specially.
86782
86783 2004-01-20  Bruno Haible  <bruno@clisp.org>
86784
86785         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
86786         patch.
86787
86788 2004-01-20  Bruno Haible  <bruno@clisp.org>
86789
86790         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
86791
86792 2004-01-20  Bruno Haible  <bruno@clisp.org>
86793
86794         * lib/eealloc.h: New file.
86795
86796 2004-01-20  Bruno Haible  <bruno@clisp.org>
86797
86798         * lib/binary-io.h: Avoid warnings on Cygwin.
86799
86800 2004-01-20  Bruno Haible  <bruno@clisp.org>
86801
86802         * lib/allocsa.h: New file, from GNU gettext.
86803         * lib/allocsa.c: New file, from GNU gettext.
86804
86805 2004-01-18  Karl Berry  <karl@gnu.org>
86806
86807         * doc/gpl.texi, doc/lgpl.texi: new files.
86808
86809 2004-01-18  Karl Berry  <karl@gnu.org>
86810
86811         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
86812         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
86813
86814 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86815
86816         Merge from coreutils.
86817
86818         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
86819         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
86820         (gl_DEFAULT_POSIX2_VERSION): Move
86821         the documentation from 'configure' into 'config.hin',
86822         so that 'configure --help' isn't burdened by it and
86823         we don't have to worry about its formatting there.
86824         Reword the documentation so that it's more succinct
86825         and can be run together into a single paragraph.
86826         * m4/same.m4 (gl_SAME): Check for pathconf.
86827
86828 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86829
86830         Merge from coreutils.
86831
86832         * lib/posixver.c: Include posixver.h.
86833
86834         * lib/same.c: Include <stdbool.h>, <limits.h>.
86835         (_POSIX_NAME_MAX): Define if not defined.
86836         (MIN): New macro.
86837         (same_name): If file names are silently truncated, report
86838         that the file names are the same if they are the same after
86839         the silent truncation.
86840
86841         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
86842         conversion function.
86843         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
86844         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
86845         longer needed.
86846
86847 2004-01-15  Jim Meyering  <jim@meyering.net>
86848
86849         Merge from coreutils.
86850
86851         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
86852         if no library is required.
86853         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
86854         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
86855         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
86856         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
86857         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
86858         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
86859         value, $ac_cv_search_crypt, if it's "none required".
86860         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
86861         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
86862         not gl_FUNC_GETLOADAVG.
86863         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
86864         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
86865
86866 2004-01-15  Jim Meyering  <jim@meyering.net>
86867
86868         Merge from coreutils.
86869
86870         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
86871         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
86872         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
86873
86874         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
86875         optional configure-time default.
86876
86877         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86878
86879         * lib/xreadlink.c (xreadlink): Correct outdated comment.
86880
86881 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
86882
86883         Merge from coreutils.
86884
86885         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
86886         value, $ac_cv_search_nanosleep, if it's "none required".
86887
86888 2004-01-14  Paul Eggert  <eggert@twinsun.com>
86889
86890         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
86891         with like-named macro in fnmatch.c.
86892         (EXT): Use an internal constant instead.
86893
86894         Merge fnmatch patches from glibc.
86895         * lib/fnmatch.c (mbsinit): Remove define.
86896         Add libc_hidden_ver (__fnmatch, fnmatch).
86897         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
86898         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
86899
86900 2004-01-14  Karl Berry  <karl@gnu.org>
86901
86902         * config/install-sh: update from automake.
86903
86904 2004-01-13  Karl Berry  <karl@gnu.org>
86905
86906         * config/install-sh: update from automake.
86907
86908 2004-01-09  Karl Berry  <karl@gnu.org>
86909
86910         * config/install-sh: update from automake.
86911
86912 2004-01-05  Karl Berry  <karl@gnu.org>
86913
86914         * config/config.{sub,guess}: update from config.
86915
86916 2003-12-31  Karl Berry  <karl@gnu.org>
86917
86918         * config/depcomp: update from automake.
86919
86920 2003-12-14  Karl Berry  <karl@gnu.org>
86921
86922         * lib/config.charset: update from gettext-runtime.
86923
86924 2003-12-03  Paul Eggert  <eggert@twinsun.com>
86925
86926         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
86927         Bug reported by Alfred M. Szmidt.
86928
86929 2003-12-03  Bruno Haible  <bruno@clisp.org>
86930
86931         * m4/gettext.m4: Upgrade from gettext-0.13.
86932         * m4/po.m4: Upgrade from gettext-0.13.
86933         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
86934         * m4/intmax.m4: New file, from gettext-0.13.
86935         * m4/printf-posix.m4: New file, from gettext-0.13.
86936
86937 2003-11-29  Karl Berry  <karl@gnu.org>
86938
86939         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
86940
86941 2003-11-25  Paul Eggert  <eggert@twinsun.com>
86942             Bruno Haible  <bruno@clisp.org>
86943
86944         * lib/printf-parse.h: Don't include sys/types.h.
86945         (ARG_NONE): New macro.
86946         (char_directive): Change type of *arg_index fields to size_t.
86947         * lib/printf-parse.c: Don't include sys/types.h.
86948         (SSIZE_MAX): Remove macro.
86949         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
86950         Remove unnecessary overflow check.
86951         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
86952         fields.
86953
86954 2003-11-25  Bruno Haible  <bruno@clisp.org>
86955
86956         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
86957
86958 2003-11-25  Bruno Haible  <bruno@clisp.org>
86959
86960         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
86961         gt_TYPE_SSIZE_T.
86962
86963 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86964
86965         * modules/alloca: Remove dependency on xalloc.
86966
86967 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86968
86969         * lib/alloca.c: Remove dependency on xalloc module.
86970         (xalloc_die): Remove.
86971         (memory_full) [!defined emacs]: New macro.
86972         [!defined emacs]: Don't include xalloc.h.
86973         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
86974         address arithmetic overflows.  Change datatypes a bit to avoid
86975         unnecessary casts.
86976
86977 2003-11-22  Jim Meyering  <jim@meyering.net>
86978
86979         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
86980         s/size/size_t/.
86981
86982 2003-11-21  Karl Berry  <karl@gnu.org>
86983
86984         * config/config.{sub,guess}: update from config.
86985
86986 2003-11-18  Karl Berry  <karl@gnu.org>
86987
86988         * config/config.{sub,guess}: update from config.
86989
86990         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
86991
86992 2003-11-17  Paul Eggert  <eggert@twinsun.com>
86993
86994         * README: Mention that S+T cannot overflow if S is the size of
86995         an existing object and T is sufficiently small.
86996
86997 2003-11-17  Jim Meyering  <jim@meyering.net>
86998
86999         On systems without utime and without a utimes function capable of
87000         dealing with a NULL struct utimbuf* argument, this utime replacement
87001         could -- in unusual circumstances -- leak a file descriptor.
87002         * lib/utime.c: Include <unistd.h> and <errno.h>.
87003         (utime_null): Be sure to close `fd' and to preserve errno.
87004         Reported by Geoff Collyer via Arnold Robbins.
87005
87006 2003-11-17  Bruno Haible  <bruno@clisp.org>
87007
87008         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
87009         (Depends-on): Add xsize.
87010
87011 2003-11-17  Bruno Haible  <bruno@clisp.org>
87012
87013         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
87014
87015 2003-11-17  Bruno Haible  <bruno@clisp.org>
87016
87017         * lib/vasnprintf.c (alloca): Remove fallback definition.
87018         (freea): Remove definition.
87019         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
87020         Reported by Paul Eggert.
87021
87022 2003-11-16  Paul Eggert  <eggert@twinsun.com>
87023             Bruno Haible  <bruno@clisp.org>
87024
87025         Protect against address arithmetic overflow.
87026         * lib/printf-args.h: Include stddef.h.
87027         (arguments): Change type of field 'count' to size_t.
87028         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
87029         'unsigned int' where appropriate.
87030         * lib/printf-parse.h: Include sys/types.h.
87031         (char_directive): Change type of *arg_index fields to ssize_t.
87032         (char_directives): Change type of fields 'count', max_*_length to
87033         size_t.
87034         * lib/printf-parse.c: Include sys/types.h and xsize.h.
87035         (SSIZE_MAX): Define fallback value.
87036         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
87037         instead of 'int' where appropriate. Check a_allocated, d_allocated
87038         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
87039         * lib/vasnprintf.c: Include xsize.h.
87040         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
87041         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
87042         overflow. Avoid wraparound when converting a width or precision from
87043         decimal to binary.
87044
87045 2003-11-16  Bruno Haible  <bruno@clisp.org>
87046
87047         Update from GNU gettext.
87048         * lib/printf-parse.c: Generalize to it can be compiled for wide
87049         strings.
87050         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
87051         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
87052         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
87053         SNPRINTF): New macros.
87054         Don't include <alloca.h> if the file is used inside libintl.
87055         (local_wcslen): New function, for Solaris 2.5.1.
87056         (VASNPRINTF): Use it instead of wcslen.
87057
87058 2003-11-16  Bruno Haible  <bruno@clisp.org>
87059
87060         * lib/xsize.h (xmax): New function.
87061         (xsum, xsum3, xsum4): Declare as "pure" functions.
87062
87063 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87064
87065         * modules/xalloc (Files): Undo latest change, since xalloc.h
87066         no longer needs SIZE_MAX or PTRDIFF_MAX.
87067
87068 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87069
87070         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
87071         gl_PTRDIFF_MAX.
87072
87073 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87074
87075         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
87076         "return", to pacify some unknown compiler.  Problem reported
87077         by Joerg Schilling.
87078
87079 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87080
87081         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
87082         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
87083         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
87084         heuristic is just as accurate as far as we know, and it removes a
87085         dependency on size_max.m4 and ptrdiff_max.m4.
87086
87087 2003-11-11  Bruno Haible  <bruno@clisp.org>
87088
87089         * modules/xsize (Files): Add m4/size_max.m4.
87090         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
87091
87092 2003-11-11  Bruno Haible  <bruno@clisp.org>
87093
87094         * m4/size_max.m4: New file.
87095         * m4/ptrdiff_max.m4: New file.
87096         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
87097         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
87098         (gl_XALLOC): Invoke it.
87099
87100 2003-11-11  Bruno Haible  <bruno@clisp.org>
87101
87102         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
87103         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
87104         defined.
87105
87106 2003-11-10  Paul Eggert  <eggert@twinsun.com>
87107
87108         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
87109         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
87110         rejected some allocations of exactly SIZE_MAX - 2 bytes.
87111         From Bruno Haible.
87112         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
87113         not (size_t) -1, since it's defined here.
87114
87115 2003-11-09  Karl Berry  <karl@gnu.org>
87116
87117         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
87118
87119 2003-11-06  Paul Eggert  <eggert@twinsun.com>
87120
87121         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
87122         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
87123         Reject sizes of exactly SIZE_MAX bytes.
87124         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
87125         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
87126
87127 2003-11-05  Bruno Haible  <bruno@clisp.org>
87128
87129         * lib/xsize.h: Include limits.h, to avoid a possible collision with
87130         SIZE_MAX defined in <limits.h> on Solaris.
87131
87132 2003-11-04  Jim Meyering  <jim@meyering.net>
87133
87134         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
87135         variable names, rather than @VAR@.
87136         * modules/poll: Likewise.
87137
87138 2003-11-04  Bruno Haible  <bruno@clisp.org>
87139
87140         * modules/xsize: New file.
87141         * modules/linebreak: Depend on xsize.
87142         * MODULES.html.sh (func_all_modules): Add xsize.
87143
87144 2003-11-04  Bruno Haible  <bruno@clisp.org>
87145
87146         * m4/xsize.m4: New file.
87147
87148 2003-11-04  Bruno Haible  <bruno@clisp.org>
87149
87150         * lib/xsize.h: New file.
87151         * lib/linebreak.c: Include xsize.h.
87152         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
87153         argument for overflow.
87154         Suggested by Paul Eggert.
87155
87156 2003-11-03  Karl Berry  <karl@gnu.org>
87157
87158         * config/config.{guess,sub}: update from config.
87159
87160 2003-11-03  Jim Meyering  <jim@meyering.net>
87161
87162         * modules/userspec (lib_SOURCES): Add userspec.h.
87163         (Include): Add "userspec.h".
87164         Improve description.
87165
87166 2003-11-03  Jim Meyering  <jim@meyering.net>
87167
87168         * lib/userspec.c: Include "userspec.h".
87169         * lib/userspec.h: New file.
87170
87171 2003-11-03  Bruno Haible  <bruno@clisp.org>
87172
87173         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
87174
87175 2003-11-03  Bruno Haible  <bruno@clisp.org>
87176
87177         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
87178         available, to avoid (extremely rare) race condition.
87179         Suggested by Paul Eggert.
87180
87181 2003-11-02  Karl Berry  <karl@gnu.org>
87182
87183         * config/srclist.txt (vasprintf.c): sync broken, sigh.
87184
87185 2003-10-31  Paul Eggert  <eggert@twinsun.com>
87186
87187         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
87188         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
87189         (read_filesystem_list): Set and use me_type_malloced.
87190         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
87191         whatever the type happens to be), for brevity and consistency.
87192         Check for size calculation overflow on Alphas running OSF/1.
87193
87194 2003-10-31  Jim Meyering  <jim@meyering.net>
87195
87196         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
87197
87198         * lib/linebuffer.c: Include <string.h> for declaration of memset.
87199
87200 2003-10-30  Paul Eggert  <eggert@twinsun.com>
87201             Bruno Haible  <bruno@clisp.org>
87202
87203         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
87204         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
87205
87206 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
87207
87208         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
87209         netbsd*-gnu*.  Suggested by Robert Millan.
87210
87211 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87212
87213         * modules/group-member: Depend on stdbool.
87214
87215 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87216
87217         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
87218
87219 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87220
87221         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
87222         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
87223         after the 'gnu' in these cases.  This fixes some bugs in the
87224         previous change, and is based on suggestions by Robert Millan.
87225
87226 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87227
87228         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
87229         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
87230         no longer needed.
87231         * lib/quotearg.c (quotearg_n_options): Use it.
87232         * lib/group-member.c: Include <stdbool.h>.
87233         (free_group_info): Arg is now const *; don't free arg.
87234         (get_group_info): Now returns bool and accepts struct group_info *,
87235         rather than returning a malloc'ed struct group_info *.
87236         All uses changed.  Check for overflow in internal size calculation.
87237
87238         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
87239         rather than xmalloc/xrealloc.
87240         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
87241         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
87242         conformance bug: the old code used a pointer after freeing the
87243         storage that it addressed.
87244         * lib/hash.c (hash_initialize): Simplify the code by using
87245         xalloc_oversized rather than doing it by hand.
87246         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
87247         the buffer preserved.  Use free and xmalloc instead.
87248         * lib/quotearg.c (quotearg_n_options): Likewise.
87249         Use a simpler test for size overflow.  Don't use xalloc_oversized
87250         because unsigned int might be wider than size_t (!); this suggests
87251         that we should switch from unsigned int to size_t for slot numbers.
87252
87253 2003-10-28  Paul Eggert  <eggert@twinsun.com>
87254
87255         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
87256         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
87257         NetBSD kernels.  Requested by Richard Stallman.
87258
87259 2003-10-27  Paul Eggert  <eggert@twinsun.com>
87260
87261         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
87262         to allocate the returned structure.  Do not allocate a subarray,
87263         as x2nrealloc will do that.
87264         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
87265         instead of xnrealloc.
87266         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
87267
87268 2003-10-27  Bruno Haible  <bruno@clisp.org>
87269
87270         * lib/stdbool_.h: Better support for BeOS.
87271
87272 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87273
87274         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
87275         now uses inline.
87276
87277 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87278
87279         * lib/xalloc.h (xalloc_oversized): New static inline function, for
87280         callers that want to do their own size-overflow checking.  Include
87281         <stdbool.h>, since xalloc_oversized returns bool.
87282         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
87283         to use xalloc_oversized.
87284
87285         Add two functions x2realloc, x2nrealloc, for programs that grow
87286         arrays dynamically by doubling their sizes.
87287         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
87288         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
87289         New functions.
87290
87291         Port to C99 semantics for 'inline' of external functions.
87292         Bug reported by Bruno Haible.
87293         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
87294         with the old contents of xnmalloc.
87295         (xnmalloc, xmalloc): Use it.
87296         (xnrealloc_inline): New static inline function,
87297         with the old contents of xnrealloc.
87298         (xnrealloc, xrealloc): Use it.
87299
87300         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
87301         that.
87302
87303 2003-10-26  Karl Berry  <karl@gnu.org>
87304
87305         * config/srclist.txt (COPYING.DOC): no longer available from
87306         /gd/gnuorg; don't know where the ultimate source is.
87307
87308 2003-10-25  Paul Eggert  <eggert@twinsun.com>
87309
87310         Fix several address-calculation bugs in the hash modules,
87311         plus some minor code cleanup.
87312
87313         * lib/hash.h: Include <stdbool.h>, for bool.
87314         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
87315         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
87316         hash_get_n_entries, hash_get_max_bucket_length,
87317         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
87318         hash_rehash): Use size_t rather than unsigned.
87319         * lib/hash.c (struct hash_table, hash_get_n_buckets,
87320         hash_get_n_buckets_used, hash_get_n_entries,
87321         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
87322         hash_get_entries, hash_do_for_each, hash_string, is_prime,
87323         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
87324         Likewise.
87325         (SIZE_MAX): Define if not defined.
87326         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
87327         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
87328         hash_print):
87329         Use const * when possible.
87330         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
87331         (check_tuning): Fix bug: if tuning parameters were very close to
87332         0 or 1, rounding errors could have caused subscript violations.
87333         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
87334         (hash_initialize): Add 'fail:' label
87335         to free table and return NULL, and use it to simplify code.
87336         Use calloc rather than clearing the storage ourself.
87337         (hash_initialize, hash_rehash): Check for arithmetic overflow in
87338         buffer size calculations.
87339         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
87340         Include <stddef.h>, for size_t.
87341         * lib/hash-pjw.c (hash_pjw): Likewise.
87342         Switch to method described by Bruno Haible.
87343         Include <limits.h>, for CHAR_BIT.
87344         (SIZE_BITS): New macro.
87345
87346 2003-10-23  Paul Eggert  <eggert@twinsun.com>
87347
87348         * m4/getline.m4 (AM_FUNC_GETLINE):
87349         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
87350         hosts.  Problem reported by Derek Robert Price in
87351         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
87352         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
87353         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
87354
87355 2003-10-21  Paul Eggert  <eggert@twinsun.com>
87356
87357         * lib/getndelim2.c (getndelim2): When size calculation overflows,
87358         ceiling the allocation at NMAX bytes rather than silently
87359         discarding input bytes before NMAX is reached.  This makes
87360         a difference only if NMAX exceeds SIZE_MAX / 2.
87361
87362         * lib/obstack.c: Merge from glibc.
87363         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
87364         Add libc_hidden_def (_obstack_newchunk).
87365         (_obstack_free) [! defined _LIBC]: Remove.
87366         [defined _LIBC]: Make a strong alias from obstack_free, rather than
87367         a clone of the function body.
87368         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
87369         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
87370
87371         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
87372         glibc.
87373         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
87374         arg to memcpy.
87375
87376         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
87377         (obstack_ptr_grow_fast, obstack_int_grow_fast):
87378         Don't use lvalue casts, as GCC plans to remove support for them
87379         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
87380         was also present in the non-GCC version, indicating that this
87381         code had always been buggy and had never been widely used.
87382         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
87383         Use the fast variant of each macro, rather than copying the
87384         definiens of the fast variant; that way, we'll be more likely to
87385         catch future bugs in the fast variants.
87386
87387 2003-10-20  Bruno Haible  <bruno@clisp.org>
87388
87389         * modules/wait-process: New file.
87390         * MODULES.html.sh (func_all_modules): Add wait-process.
87391
87392 2003-10-20  Bruno Haible  <bruno@clisp.org>
87393
87394         * m4/wait-process.m4: New file.
87395
87396 2003-10-20  Bruno Haible  <bruno@clisp.org>
87397
87398         * lib/wait-process.h: New file, from GNU gettext.
87399         * lib/wait-process.c: New file, from GNU gettext.
87400
87401 2003-10-19  Jim Meyering  <jim@meyering.net>
87402
87403         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
87404         HPUX 10.20.
87405
87406 2003-10-18  Karl Berry  <karl@gnu.org>
87407
87408         * config/config.guess: update from config.
87409
87410 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87411
87412         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
87413         (getgroups): First arg is int, not size_t.
87414         Don't let 'free' mangle errno.
87415
87416 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87417
87418         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
87419
87420 2003-10-16  Karl Berry  <karl@gnu.org>
87421
87422         * config/config.{guess,sub}: update from config.
87423
87424 2003-10-16  Jim Meyering  <jim@meyering.net>
87425
87426         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
87427         memcpy.
87428
87429 2003-10-15  Paul Eggert  <eggert@twinsun.com>
87430
87431         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
87432         (SIZE_MAX): Remove.
87433         (new_exclude, add_exclude_file): Initial size no longer needs to
87434         be a power of 2.
87435         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
87436         our own address arithmetic overflow checking.
87437
87438         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
87439         (fnmatch): Do not alloca more than 2000 wide characters;
87440         instead, use malloc for large buffers.
87441         Check for address arithmetic overflow, and return -1
87442         with errno set to ENOMEM in that case.
87443         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
87444         (NEW_PATTERN): Do not alloca more than 8000 bytes;
87445         instead, return -1.  Check for address arithmetic overflow.
87446
87447 2003-10-14  Paul Eggert  <eggert@twinsun.com>
87448
87449         Handle invalid suffixes and overflow independently, so that
87450         callers can treat them independently as needed.  Fix some bugs in
87451         suffix handling, e.g., "100k@" was not diagnosed as an invalid
87452         suffix for a human-readable blocksize.  The major caller-visible
87453         change is the addition of a new
87454         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
87455         that both overflow and suffix chars were found.
87456
87457         * lib/human.c (humblock): Don't check separately for invalid suffix
87458         char; that is xstrtoumax's job (now that its bug is fixed).
87459         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
87460         INTMAX_MAX]: New macros.
87461         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
87462         TYPE_MAXIMUM): New macros.
87463         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
87464         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
87465         if overflow occurs, as it's what __strtol does and it's more useful
87466         in practice.
87467         (__xstrtol): If __strtol reports some error other than ERANGE,
87468         reflect it to the caller as LONGINT_INVALID.  If it reports
87469         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
87470         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
87471         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
87472         value.
87473         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
87474         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
87475         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
87476         [defined UINTMAX_MAX]: New macros.
87477
87478 2003-10-14  Bruno Haible  <bruno@clisp.org>
87479
87480         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
87481
87482 2003-10-14  Bruno Haible  <bruno@clisp.org>
87483
87484         * m4/sig_atomic_t: New file, from GNU gettext.
87485         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
87486
87487 2003-10-14  Bruno Haible  <bruno@clisp.org>
87488
87489         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
87490         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
87491         Also use volatile where needed.
87492
87493 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87494
87495         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
87496         Change maintainer from Bruno Haible to 'all'.
87497
87498 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87499
87500         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
87501
87502 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87503
87504         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
87505         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
87506         and define in terms of the other primitives.
87507         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
87508         (SIZE_MAX): Define if not already defined.
87509         (array_size_overflow): New function.
87510         (xalloc_die): Abort instead of exiting if 'error' returns.
87511         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
87512         (xmalloc, xrealloc): Use them.
87513         (xcalloc): Check for address arithmetic overflow.
87514         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
87515         a bit faster than strcpy.
87516
87517 2003-10-10  Simon Josefsson  <jas@extundo.com>
87518
87519         * modules/argp (Depends-on): Add restrict and strcase.
87520
87521 2003-10-10  Simon Josefsson  <jas@extundo.com>
87522
87523         * m4/argp.m4: Add AC_C_INLINE.
87524
87525 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87526
87527         Merge getpass from libc, plus a few fixes.
87528
87529         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
87530         Include <stdbool.h>.
87531         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
87532         __fsetlocking to empty.
87533         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
87534         do include <bits/libc-lock.h>.
87535         Do not include <fcntl.h>; not needed.
87536         [_LIBC]: Include <wchar.h>.
87537         (NOTCANCEL_MODE): New macro.
87538         (flockfile, funlockfile) [_LIBC]: New macros.
87539         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
87540         [!_LIBC]: New macros.
87541         (call_fclose): New function.
87542         (getpass): Use it.  Save tty stream separately; this simplifies the
87543         code and makes it more reliable if stdin happens to equal stdout.
87544         Invoke __fsetlocking on tty.
87545         Handle thread cancellation if needed.
87546         Namespace cleanup (use __tcgetattr, __getline).
87547         Use bool for Booleans.
87548         [USE_IN_LIBIO]: Handle wide streams.
87549         [!_LIBC]: Unconditionally do the fseek, since we don't know what
87550         stream might go where.
87551
87552         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
87553         doesn't have to include <stdio.h> before us.
87554         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
87555         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
87556         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
87557         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
87558         if not declared, so that we can use getpass.c code from libc without
87559         rewriting it.
87560         (flockfile, ftrylockfile, funlockfile): New macros.
87561
87562 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87563
87564         * modules/getpass: Depend on stdbool.
87565
87566 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87567
87568         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
87569
87570 2003-10-07  Karl Berry  <karl@gnu.org>
87571
87572         * config/config.{guess,sub}: update from config.
87573
87574 2003-10-06  Jim Meyering  <jim@meyering.net>
87575             Bruno Haible  <bruno@clisp.org>
87576
87577         This lets translators provide better translations for the
87578         "Written by ..." part of --version output.
87579         * lib/version-etc.h: Include stdarg.h.
87580         (version_etc_copyright): Declare as readonly.
87581         (version_etc): Make this function variadic with a NULL-terminated list
87582         of author name strings.
87583         (version_etc_va): New declaration.
87584         * lib/version-etc.c: Include stdarg.h, stdlib.h.
87585         (version_etc_copyright): Declare as readonly.
87586         (version_etc_va): New function. Provide a different translatable string
87587         for each possible number of authors < 10. Abbreviate when there are 10
87588         authors or more.
87589         (version_etc): Make this function variadic. Call version_etc_va.
87590         Suggestion from Gary V. Vaughan.
87591
87592         * lib/long-options.h (parse_long_options): Change prototype: the
87593         authors string is moved to the end and becomes variadic.
87594         * lib/long-options.c: Include stdarg.h.
87595         (parse_long_options): Make this function variadic, too.
87596         Call version_etc_va, not version_etc.
87597
87598 2003-10-06  Bruno Haible  <bruno@clisp.org>
87599
87600         * modules/version-etc-2: Remove file.
87601         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
87602
87603 2003-10-06  Bruno Haible  <bruno@clisp.org>
87604
87605         * modules/fatal-signal: New file.
87606         * MODULES.html.sh (func_all_modules): Add fatal-signal.
87607
87608 2003-10-06  Bruno Haible  <bruno@clisp.org>
87609
87610         * m4/fatal-signal.m4: New file.
87611         * m4/signalblocking.m4: New file, from GNU gettext.
87612
87613 2003-10-06  Bruno Haible  <bruno@clisp.org>
87614
87615         * lib/version-etc-2.h: Remove file.
87616         * lib/version-etc-2.c: Remove file.
87617
87618 2003-10-06  Bruno Haible  <bruno@clisp.org>
87619
87620         * lib/fatal-signal.h: New file, from GNU gettext.
87621         * lib/fatal-signal.c: New file, from GNU gettext.
87622
87623 2003-10-05  Paul Eggert  <eggert@twinsun.com>
87624
87625         * README: Rework advice for preventing empty .o files.
87626         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
87627         not <sys/types.h>.
87628
87629 2003-10-04  Karl Berry  <karl@gnu.org>
87630
87631         * lib/argp*: update from libc.
87632
87633 2003-10-04  Karl Berry  <karl@gnu.org>
87634
87635         * config/config.{guess,sub}: update from config.
87636
87637 2003-10-02  Bruno Haible  <bruno@clisp.org>
87638
87639         * modules/lchown (Include): Add lchown.h.
87640         * modules/time_r (Include): Use "..." syntax.
87641         * modules/xgetdomainname (Include): Add xgetdomainname.h.
87642
87643 2003-10-01  Simon Josefsson  <jas@extundo.com>
87644
87645         * MODULES.html.sh (func_all_modules): Move gethostname from section
87646         'based on' to section 'lacking' POSIX:2001.
87647
87648 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
87649
87650         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
87651         to output mode on the same stream.
87652
87653 2003-09-29  Paul Eggert  <eggert@twinsun.com>
87654
87655         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
87656         Fix arg typo in previous patch.
87657
87658 2003-09-28  Jim Meyering  <jim@meyering.net>
87659
87660         * lib/error.c: Correct cpp indentation.
87661
87662 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87663
87664         * modules/free: New file.
87665
87666 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87667
87668         * m4/free.m4: New file.
87669
87670 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87671
87672         * lib/minmax.h (MIN, MAX)
87673         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
87674         Omit the special code that used __typeof__, since we worry that
87675         it could be more trouble than it's worth.  See:
87676         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
87677         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
87678
87679         * lib/free.c: New file.
87680
87681 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
87682
87683         Trivial fixes to Makefile.am parts of module listings.
87684         * modules/strstr: Append strstr.h to lib_SOURCES.
87685         * modules/strcase: Likewise, for strcase.h.
87686
87687 2003-09-27  Karl Berry  <karl@gnu.org>
87688
87689         * config/mkinstalldirs: update from automake.
87690
87691 2003-09-26  Paul Eggert  <eggert@twinsun.com>
87692
87693         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
87694         (error_tail): Do not loop, reallocating temporary buffer, since
87695         the output cannot contain more wide characters than the input
87696         contains bytes, the size must be big enough already.  This avoids
87697         one potential size overflow calculation.  Check for size overflow
87698         when calculating temporary buffer size.  Free temporary buffer
87699         when done, if it was allocated with malloc; this plugs a memory
87700         leak.  Remove casts from void * to pointers, that are no longer
87701         needed now that we're assuming C89 or better.
87702
87703         Merge error changes from glibc.
87704
87705         * lib/error.c, error.h: Update copyright notice header to match glibc.
87706         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
87707         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
87708         Disable cancellation while printing error.
87709         * lib/error.h: Prepend __ to parameter names.
87710
87711 2003-09-26  Jim Meyering  <jim@meyering.net>
87712
87713         * lib/error.c (error_tail): Move some declarations
87714         into inner scope where the local variables are used.
87715
87716 2003-09-26  Bruno Haible  <bruno@clisp.org>
87717
87718         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
87719         stpncpy().
87720         Don't define stpncpy through config.h; it's now done through stpncpy.h.
87721
87722 2003-09-26  Bruno Haible  <bruno@clisp.org>
87723
87724         * lib/stpncpy.h (gnu_stpncpy): New declaration.
87725         (stpncpy): Define as alias for gnu_stpncpy.
87726         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
87727
87728 2003-09-25  Simon Josefsson  <jas@extundo.com>
87729
87730         * lib/xgetdomainname.h: New file.
87731         * lib/xgetdomainname.c: New file.
87732
87733 2003-09-25  Simon Josefsson  <jas@extundo.com>
87734             Bruno Haible  <bruno@clisp.org>
87735
87736         * modules/getdomainname: New file.
87737         * modules/xgetdomainname: New file.
87738         * MODULES.html.sh (func_all_modules): Add getdomainname,
87739         xgetdomainname.
87740
87741 2003-09-25  Simon Josefsson  <jas@extundo.com>
87742             Bruno Haible  <bruno@clisp.org>
87743
87744         * m4/getdomainname.m4: New file.
87745
87746 2003-09-25  Simon Josefsson  <jas@extundo.com>
87747             Bruno Haible  <bruno@clisp.org>
87748
87749         * lib/getdomainname.h: New file.
87750         * lib/getdomainname.c: New file.
87751
87752 2003-09-25  Karl Berry  <karl@gnu.org>
87753
87754         * lib/argp-fmtstream.c, argp-help.c: update from libc.
87755
87756 2003-09-25  Karl Berry  <karl@gnu.org>
87757
87758         * config/install-sh: update from automake.
87759
87760 2003-09-25  Bruno Haible  <bruno@clisp.org>
87761
87762         * modules/version-etc-2: New file, from modules/version-etc with
87763         modifications.
87764         * MODULES.html.sh (func_all_modules): Add version-etc-2.
87765
87766 2003-09-25  Bruno Haible  <bruno@clisp.org>
87767
87768         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
87769         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
87770
87771 2003-09-24  Simon Josefsson  <jas@extundo.com>
87772
87773         * modules/xgethostname: Add xgethostname.h.
87774
87775 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87776
87777         * lib/linebuffer.c (freebuffer): Don't free the argument, just
87778         the buffer associated with the argument.  Bug reported by
87779         Simon Josefsson.
87780
87781 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87782
87783         * README: Document assumptions that 'int' is at least 32 bits
87784         wide, that integer arithmetic is 2's complement without overflow,
87785         that there are no holes in integer values, that adding sizes of
87786         two nonoverlapping objects can't overflow, and that all-bits-zero
87787         yields scalar zero.  Fix spelling and capitalization typos.
87788
87789 2003-09-19  Karl Berry  <karl@gnu.org>
87790
87791         * lib/argp.h: update from libc.
87792
87793 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87794
87795         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
87796         to avoid spurious warnings like "AC_RUN_IFELSE was called before
87797         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
87798
87799 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87800
87801         * gnulib-tool: Use "test -h", not "test -L", for portability
87802         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
87803         (tags_regexp): Remove, since \| doesn't conform to POSIX.
87804         (sed_extract_prog): Issue s commands one-by-one, rather than
87805         using \| in one s command.
87806
87807 2003-09-16  Paul Eggert  <eggert@twinsun.com>
87808
87809         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
87810         input error, instead of returning NULL the next time we are called
87811         (and therefore losing track of errno).
87812
87813 2003-09-16  Bruno Haible  <bruno@clisp.org>
87814
87815         * gnulib-tool (func_create_testdir): Warn about duplicated
87816         dependencies.
87817
87818 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87819
87820         * modules/argmatch, modules/fatal, modules/obstack,
87821         modules/xalloc, modules/xgethostname: Sort dependencies by
87822         importance, not alphabetically.
87823
87824 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87825
87826         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
87827         fails, so that the caller gets the proper errno.
87828
87829         * lib/readutmp.c (read_utmp): Likewise.
87830         Check for fstat error.  Close stream and free storage
87831         when failing.
87832
87833 2003-09-14  Karl Berry  <karl@gnu.org>
87834
87835         * config/srclist.txt (strdup.c): disable for c89 changes.
87836
87837 2003-09-14  Jim Meyering  <jim@meyering.net>
87838
87839         * lib/getloadavg.c: Correct cpp indentation.
87840         * lib/strdup.c: Likewise.
87841         * lib/vasnprintf.c: Likewise.
87842
87843 2003-09-14  Bruno Haible  <bruno@clisp.org>
87844
87845         * modules/fwriteerror: New file.
87846         * MODULES.html.sh (func_all_modules): Add fwriteerror.
87847
87848 2003-09-14  Bruno Haible  <bruno@clisp.org>
87849
87850         * lib/fwriteerror.h: New file.
87851         * lib/fwriteerror.c: New file.
87852
87853 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87854
87855         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
87856         modules/xgethostname, modules/xalloc: Depend on exit.
87857
87858 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87859
87860         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
87861
87862         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
87863         and AC_MINIX, too, so that their extensions are available.
87864
87865         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
87866         This macro has been superseded by gl_BACKUPFILE.
87867
87868         More patches to assume C89 or better.
87869
87870         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
87871
87872         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
87873         unconditionally.
87874         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
87875         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
87876         Include <string.h>, <stdlib.h> unconditionally.
87877         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
87878         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
87879         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
87880         headers or for string.h.
87881         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
87882         or strtoul.
87883
87884         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
87885         headers.
87886         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
87887         * m4/userspec.m4 (gl_USERSPEC): Likewise.
87888         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
87889         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
87890         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
87891         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
87892         memcpy, memset.
87893         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
87894         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
87895         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
87896         strtol.
87897         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
87898         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
87899         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
87900         strtoul.
87901
87902 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87903
87904         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
87905         * lib/obstack.c [!defined _LIBC]: Likewise.
87906         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
87907         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
87908         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
87909
87910         More changes to assume C89 or better.
87911
87912         * lib/error.c (error_tail): Assume vprintf.
87913
87914         * lib/argmatch.c (getenv): Remove decl.
87915         * lib/progreloc.c (get_full_program_name): Define via prototype.
87916         * lib/setenv.c (clearenv): Likewise.
87917         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
87918         needed.
87919         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
87920         (malloc, memcpy): Remove decls.
87921         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
87922         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
87923         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87924         (memcpy): Remove macro.
87925         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
87926         (__P): Remove.  All uses removed.
87927         (PTR): Remove.  All uses changed to void *.
87928         (CHAR_BIT, NULL): Remove.
87929         (spaces, zeros, memset_space, memset_zero)
87930         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
87931         Remove.
87932         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
87933         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
87934         Define with prototype.
87935         Remove now-unnecessary prototype decl.
87936         (extra_args_spec): Assume ANSI C.  All uses changed.
87937         (extra_args_spec_iso): Remove.
87938         (my_strftime, emacs_strftimeu): Define via prototype.
87939         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
87940         unconditionally.
87941         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
87942         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
87943         (strtoul, strtol): Remove decls.
87944         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
87945         LONG_MAX): Remove.
87946         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87947         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
87948         (LOCALE_PARAM_PROTO): New macro.
87949         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
87950         (INTERNAL (strtol), strtol): Define with a prototype.
87951         (PARAMS): Remove.  All uses removed.
87952         * lib/tempname.c: Include <string.h> unconditionally.
87953         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
87954         * lib/xgethostname.c (main): Define with a prototype.
87955         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
87956         Include <stdlib.h> unconditionally.
87957         (calloc, malloc, realloc, free): Remove decls.
87958         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
87959         Include <stdlib.h> unconditionally.  Sort include file names.
87960         (strtod): Remove.
87961         (xstrtod): Define with a prototype.
87962         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
87963         (strtol, strtoul): Remove decls.
87964
87965 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87966
87967         More patches to assume C89 or better.
87968         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
87969         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
87970         string.h, memchr, STDC_HEADERS.
87971
87972 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87973
87974         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
87975         Include <stdlib.h>, <string.h> unconditionally.
87976         Remove now-unnecessary cast to char *.
87977         * lib/strnlen.c: Include <string.h> unconditionally.
87978         * lib/yesno.c (yesno): Define with a prototype.
87979
87980 2003-09-11  Bruno Haible  <bruno@clisp.org>
87981
87982         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
87983
87984 2003-09-10  Jim Meyering  <jim@meyering.net>
87985
87986         * lib/error.c: Correct indentation of cpp directives.
87987
87988 2003-09-10  Bruno Haible  <bruno@clisp.org>
87989
87990         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
87991         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
87992         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
87993         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
87994         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
87995         <stdlib.h> and <string.h> checks.
87996         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
87997         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
87998
87999 2003-09-10  Bruno Haible  <bruno@clisp.org>
88000
88001         * lib/strcspn.c: Include <string.h> unconditionally.
88002         * lib/strpbrk.c: Include <string.h> unconditionally.
88003         * lib/strstr.c: Include <string.h> unconditionally.
88004         * lib/unicodeio.c: Include <string.h> unconditionally.
88005         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
88006         * lib/unsetenv.c: Likewise.
88007         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
88008         * lib/yesno.c: Include <stdlib.h> unconditionally.
88009         (rpmatch): Add prototype.
88010
88011 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88012
88013         More patches to assume C89 or better.
88014         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
88015         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
88016         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
88017         or for string.h.
88018         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
88019         stdlib.h.
88020         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
88021         C headers.
88022         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
88023         string.h.
88024         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
88025         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
88026         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
88027         or for string.h.
88028         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
88029         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
88030         C headers.
88031         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
88032         memcpy.
88033         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
88034         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
88035         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
88036         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
88037         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
88038         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
88039         string.h, free.
88040         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
88041         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
88042         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
88043         C headers, or for string.h.
88044         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
88045         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
88046         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
88047         headers, memory.h, stdlib.h, string.h, strings.h.
88048         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
88049         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
88050         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
88051         strchr.
88052         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
88053         headers, memory.h, string.h.
88054         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
88055         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
88056         free.
88057         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
88058         headers.
88059         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
88060         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
88061         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
88062         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
88063         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
88064
88065 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88066
88067         More K&R removal.
88068
88069         * lib/acosl.c (main): Use a prototype.
88070         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
88071         tanl.c: Likewise.
88072
88073         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
88074
88075         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
88076         (getopt, etopt_long, getopt_long_only, _getopt_internal)
88077         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
88078         with a prototype.
88079         * lib/getopt.c (const): Remove macro.
88080         Include <string.h> unconditionally.
88081         (my_index): Remove; all uses changed to strchr.
88082         (strlen): Remove decl.
88083         (exchange): Remove forward decl; no longer needed.
88084         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
88085         Define with prototype.
88086         * lib/getopt1.c (const): Remove macro.
88087         (getopt_long, getopt_long_only, main): Define with prototype.
88088
88089         * lib/getugroups.c: Include <string.h> unconditionally.
88090
88091         * lib/getusershell.c: Include <stdlib.h> unconditionally.
88092         (getusershell, setusershell, endusershell, readname, main):
88093         Define with prototypes.
88094
88095         * lib/group-member.c: Include group-member.h first.
88096         Include <stdlib.h> unconditionally.
88097
88098         * lib/hard-locale.c: Include hard-locale.h first.
88099         Include <stdlib.h>, <string.h> unconditionally.
88100
88101         * lib/hash.c (free, malloc): Remove decls.
88102         Include <stdlib.h> unconditionally.
88103
88104         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
88105         (getenv): Do not declare.
88106
88107         * lib/idcache.c: Include <string.h> unconditionally.
88108
88109         * lib/long-options.c: Include long-options.h first, to test interface.
88110         Include <stdlib.h> unconditionally.
88111
88112         * lib/makepath.c: Include makepath.h first, to test interface.
88113         Include <stdlib.h> and <string.h> unconditionally.
88114
88115         * lib/linebuffer.c: Include <stdlib.h>.
88116         (free): Remove decl.
88117
88118         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
88119         stddef.h. rpl_malloc returns void *, not char *.
88120         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
88121         prototype.
88122
88123         * lib/md5.h: Include <limits.h> unconditionally.
88124         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
88125         (__P): Remove; all uses removed.
88126         * lib/md5.c: Include "md5.h" first.
88127         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
88128         md5_buffer, md5_process_bytes, md5_process_block):
88129         Define with prototypes.
88130         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
88131         * lib/sha.c: Include "sha.h" first.
88132         Include <stdlib.h>, <string.h> unconditionally.
88133
88134         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
88135         * lib/memcmp.c (__ptr_t): Likewise.
88136         * lib/memrchr.c (__ptr_t): Likewise.
88137         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
88138         Include <string.h> unconditionally.
88139         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
88140         * lib/memchr.c: Include <stdlib.h> unconditionally.
88141         * lib/memchr.c (LONG_MAX): Remove.
88142         * lib/memrchr.c (LONG_MAX): Likewise.
88143         * lib/memchr.c (__memchr): Define via a prototype.
88144         * lib/memrchr.c (__memrchr): Likewise.
88145         * lib/memcmp.c (__P): Remove, and remove all uses.
88146         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
88147         Remove forward decls; no longer needed.
88148         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
88149         Use types required by C89 in prototype.
88150
88151         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
88152         * lib/savedir.c: Likewise.
88153         * lib/mkdir.c (free): Remove decl.
88154         * lib/rmdir.c (rmdir): Define with a prototype.
88155         * lib/savedir.c: Include savedir.h first, to test interface.
88156
88157         * lib/mktime.c (STDC_HEADERS): Remove.
88158         Include <stdlib.h>, <string.h> unconditionally.
88159
88160         * lib/modechange.c: Include <stdlib.h> unconditionally.
88161         (malloc): Remove decl.
88162
88163         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
88164         (free): Remove decl.
88165
88166         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
88167         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
88168         (This type really should be intptr_t, but that's a C99ism.)
88169         (_obstack_memcpy): Remove: all uses changed to memcpy.
88170         Include <string.h> unconditionally.
88171         (struct obstack): Assume __STDC__ for types of members
88172         chunkfun, freefun, extra_arg.
88173         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
88174         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
88175         obstack_begin, obstack_specify_allocation,
88176         obstack_specify_allocation_with_arg, obstack_chunkfun,
88177         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
88178         Remove unprototyped decls and the macros that use them.
88179         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
88180         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
88181         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
88182         (defined __STDC__ && __STDC__)]:
88183         Remove nonprototyped code.
88184         Include <stdlib.h> unconditionally.
88185         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
88186         _obstack_allocated_p, _obstack_free, obstack_free,
88187         _obstack_memory_used, print_and_abort):
88188         Define using prototypes.
88189         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
88190         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
88191         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
88192         obstack_next_free, obstack_object_size, obstack_room) [0]:
88193         Remove unused, unprototyped code.
88194
88195         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
88196
88197         * lib/physmem.c (physmem_total, physmem_available, main): Define
88198         with prototypes.
88199
88200         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
88201         (main): Define with a prototype.
88202
88203         * lib/posixver.c (getenv): Remove decl.
88204
88205         * lib/putenv.c (malloc): Returns void *, not char *.
88206         Include <string.h> unconditionally.
88207         (strchr, memcpy, NULL): Do not define.
88208
88209         * lib/readtokens.c: Include readtokens.h first, to test interface.
88210         Include <stdlib.h>, <string.h> unconditionally.
88211         (init_tokenbuffer): Define with a prototype.
88212
88213         * lib/regex.c (PARAMS): Remove.  All uses removed.
88214         All uses of _RE_ARGS removed, too.
88215         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
88216         unconditionally.
88217         (bzero): Assume memset exists.
88218         (memcmp, memcpy, NULL): Remove.
88219         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
88220         char, or assignments to local vars of type signed char.
88221         (init_syntax_once, PREFIX(extract_number_and_incr),
88222         PREFIX(print_partial_compiled_pattern),
88223         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
88224         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
88225         PREFIX(regex_grow_registers), PREFIX(regex_compile),
88226         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
88227         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
88228         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
88229         wcs_compile_range, byte_compile_range, truncate_wchar,
88230         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
88231         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
88232         count_mbs_length, wcs_re_match_2_internal,
88233         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
88234         PREFIX(alt_match_null_string_p),
88235         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
88236         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
88237         regfree, PREFIX(extract_number)): Define with prototype.  Remove
88238         now-unnecessary declaration, if any.
88239         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
88240         regcomp, regexec):
88241         Remove now-unnecessary casts among pointer types.
88242         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
88243
88244         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
88245         (free): Remove decl.
88246
88247         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
88248
88249         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
88250         (free): Remove decl.
88251
88252         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
88253         * lib/xgetcwd.c: Likewise.
88254
88255         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
88256         (free): Remove decl.
88257
88258         * lib/strchrnul.c (strchrnul): Define with a prototype.
88259         Fix bug: c_in was not converted to char before searching.
88260
88261         The following changes are not K&R related:
88262
88263         * lib/group-member.h: Include <sys/types.h>, so that this file is
88264         self-contained.
88265         * lib/makepath.h: Likewise.
88266
88267         * lib/getusershell.c (readname, default_index, line_size, readname):
88268         Use size_t, not int, for sizes.
88269         (readname): If the size overflows, report an error instead of
88270         looping forever.
88271
88272 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88273
88274         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
88275         libc.
88276
88277 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88278
88279         * README: New section: portability guidelines.
88280
88281 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88282
88283         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
88284         C89 spec.
88285
88286 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88287
88288         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
88289
88290 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88291
88292         Assume C89 or better; remove K&R cruft.
88293         A few of these changes were first proposed by Derek Robert Price
88294         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
88295
88296         * lib/addext.c: Include <string.h> unconditionally.
88297         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
88298         Don't declare getenv or malloc.
88299
88300         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
88301         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
88302         (NULL): Remove.
88303         (find_stack_direction, alloca): Use prototypes.
88304
88305         * lib/atexit.c (atexit): Define using a prototype.
88306
88307         * lib/basename.c, dirname.c, stripslash.c:
88308         Include <string.h> unconditionally.
88309
88310         * lib/bcopy.c: Include <stddef.h>.
88311         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
88312
88313         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
88314
88315         * lib/error.h (error, error_at_line, error_print_progname)
88316         [! (defined (__STDC__) && __STDC__)]: Remove decls.
88317         * lib/error.c: Include error.h first, to check interface.
88318         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88319         (VA_START): Remove; all uses changeed to va_start.
88320         (exit, strerror): Remove decls.
88321         (error_print_progname): Prototype uncondionally.
88322         Don't include <errno.h>; no longer needed.
88323         (private_strerror): Remove.
88324         (error_tail): Always define.
88325         (error, error_at_line): Assume C89 or better; always use prototypes.
88326         * lib/fatal.c: Include "fatal.h" first, to test interface.
88327         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88328         (VA_START): Remove; all uses changed to va_start.
88329         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
88330         this case.
88331         (exit): Remove decl.
88332         (fatal): Prototype unconditionally.  Assume va_start works.
88333         Abort at end, to pacify gcc.
88334
88335         * lib/euidaccess.c (main): Define with a prototype.
88336
88337         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
88338
88339         * lib/exitfail.c: Include <stdlib.h> unconditionally.
88340
88341         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
88342         prototypes.
88343         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
88344         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
88345         (getenv): Remove decl.
88346         (fnmatch): Define using a prototype.
88347         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
88348         (FCT): Define using a prototype.
88349
88350         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
88351
88352         * lib/gethostname.c: Include <stddef.h>.
88353         (gethostname): Define with prototype.  Length is size_t, not int.
88354
88355 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88356
88357         Assume C89 or better; remove K&R cruft.
88358         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
88359         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
88360         string.h, getenv, malloc.
88361         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
88362         headers.
88363         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
88364         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
88365         do not check for strerror.
88366         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
88367         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
88368         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
88369         do not check for doprnt or vprintf.
88370         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
88371         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
88372
88373 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88374
88375         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
88376         getversion.c should have been removed then, but was accidentally
88377         preserved.
88378
88379         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
88380         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
88381
88382 2003-09-08  Karl Berry  <karl@gnu.org>
88383
88384         * config/config.sub, config.guess, srclistvars.sh: update from savannah
88385                 config, forget about prep.
88386
88387         * config/depcomp, missing: update from automake.
88388
88389 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88390
88391         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
88392         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88393
88394 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88395
88396         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
88397         copy_tm_result.  Bug reported by Simon Josefsson in
88398         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88399
88400 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88401
88402         * m4/time_r.m4: New file.
88403         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
88404         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
88405         is. Check for timegm declaration.
88406         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
88407         Do not check for gmtime_r.
88408         Replace mktime if __mktime_internal does not exist and if mktime
88409         hasn't been replaced already.
88410
88411 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88412
88413         * lib/time_r.c, lib/time_r.h: New files.
88414
88415         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
88416         __localtime_r.
88417         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
88418         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
88419
88420         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
88421         __gmtime_r.
88422         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
88423         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
88424         Include <time_r.h>.
88425
88426         * lib/timegm.c: Switch to glibc implementation, with the following
88427         changes:
88428         [defined HAVE_CONFIG_H]: Include <config.h>.
88429         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
88430         (__mktime_internal) [!defined _LIBC]: New decl.
88431         (__gmtime_r) [!defined _LIBC]: New macro and function.
88432         (timegm): Use a prototype, since gnulib assumes C89.
88433         Do not bother declaring tmp to be const, as it's not really usefu.
88434         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
88435         (timegm): Declare only if HAVE_DECL_TIMEGM.
88436
88437 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88438
88439         * MODULES.html.sh (func_all_modules): Add time_r.
88440         * modules/time_r: New file.
88441         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
88442         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
88443
88444 2003-09-03  Paul Eggert  <eggert@twinsun.com>
88445
88446         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
88447         Bug reported by Lute Kamstra in
88448         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
88449
88450         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
88451         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
88452         course with correspondingly smaller numbers for tomorrow and
88453         yesterday.  From Tadayoshi Funaba.  Originally installed into
88454         sh-utils on 1999-08-07, but the patch got lost (I guess during the
88455         coreutils merge?).
88456
88457 2003-08-31  Simon Josefsson  <jas@extundo.com>
88458
88459         * modules/timegm: New file.
88460         * MODULES.html.sh (func_all_modules): Add timegm.
88461
88462 2003-08-31  Simon Josefsson  <jas@extundo.com>
88463
88464         * m4/timegm.m4: New file.
88465
88466 2003-08-31  Simon Josefsson  <jas@extundo.com>
88467
88468         * lib/timegm.h: New file.
88469         * lib/timegm.c: New file.  Based on
88470         wget-1.8.2/src/http.c:mktime_from_utc.
88471
88472 2003-08-31  Karl Berry  <karl@gnu.org>
88473
88474         * lib/argp.h: update from libc.
88475
88476 2003-08-28  Bruno Haible  <bruno@clisp.org>
88477
88478         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
88479         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
88480         followed by '#define fnmatch fnmatch_posix' gives an error.
88481
88482 2003-08-28  Bruno Haible  <bruno@clisp.org>
88483
88484         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
88485         warning on QNX, which defines O_BINARY to 000000.
88486
88487 2003-08-27  Jim Meyering  <jim@meyering.net>
88488
88489         * m4/mkstemp.m4: Require that the system mkstemp be able to create
88490         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
88491         would fail after 32.  Reported by Danny Levinson.  Details here:
88492         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
88493
88494 2003-08-24  Bruno Haible  <bruno@clisp.org>
88495
88496         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
88497         MSVC7 <stdio.h> is included later.
88498
88499 2003-08-22  Simon Josefsson  <jas@extundo.com>
88500
88501         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
88502
88503 2003-08-20  Karl Berry  <karl@gnu.org>
88504
88505         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
88506
88507 2003-08-20  Bruno Haible  <bruno@clisp.org>
88508
88509         * modules/progname: New file.
88510         * MODULES.html.sh (func_all_modules): Add progname.
88511
88512 2003-08-20  Bruno Haible  <bruno@clisp.org>
88513
88514         * lib/progname.h: New file, from GNU gettext.
88515         * lib/progname.c: New file, from GNU gettext.
88516         * lib/progreloc.c: New file, from GNU gettext.
88517
88518 2003-08-19  Jim Meyering  <jim@meyering.net>
88519
88520         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
88521         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
88522
88523 2003-08-19  Bruno Haible  <bruno@clisp.org>
88524
88525         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
88526         more.
88527
88528 2003-08-19  Bruno Haible  <bruno@clisp.org>
88529
88530         * lib/xstrdup.c: Assume <string.h> exists.
88531
88532 2003-08-18  Paul Eggert  <eggert@twinsun.com>
88533
88534         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
88535         in makefile rules.
88536
88537 2003-08-18  Jim Meyering  <jim@meyering.net>
88538
88539         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
88540         * m4/lib-ld.m4: Likewise.
88541
88542 2003-08-18  Jim Meyering  <jim@meyering.net>
88543
88544         * lib/setenv.h: Indent nested cpp directive.
88545         * lib/vasnprintf.c: Remove trailing blanks.
88546
88547 2003-08-17  Simon Josefsson  <jas@extundo.com>
88548
88549         * modules/xstrndup: New file.
88550         * MODULES.html.sh (func_all_modules): Add xstrndup.
88551
88552 2003-08-17  Simon Josefsson  <jas@extundo.com>
88553
88554         * modules/argp: Fix autoconf macro name. Add more dependencies.
88555
88556 2003-08-17  Simon Josefsson  <jas@extundo.com>
88557
88558         * m4/xstrndup.m4: New file.
88559
88560 2003-08-17  Simon Josefsson  <jas@extundo.com>
88561
88562         * m4/argp.m4: New file.
88563
88564 2003-08-17  Simon Josefsson  <jas@extundo.com>
88565             Bruno Haible  <bruno@clisp.org>
88566
88567         * lib/xstrndup.h: New file.
88568         * lib/xstrndup.c: New file.
88569
88570 2003-08-17  Bruno Haible  <bruno@clisp.org>
88571
88572         * modules/strndup (Files, Include): Add lib/strndup.h.
88573
88574 2003-08-17  Bruno Haible  <bruno@clisp.org>
88575
88576         * modules/euidaccess (Files): Add lib/euidaccess.h.
88577
88578 2003-08-17  Bruno Haible  <bruno@clisp.org>
88579
88580         * lib/strndup.h: New file.
88581
88582 2003-08-17  Bruno Haible  <bruno@clisp.org>
88583
88584         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
88585         like AC_GNU_SOURCE.
88586         * modules/extensions (configure.ac): Comment out the invocation of
88587         gl_USE_SYSTEM_EXTENSIONS.
88588
88589 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88590
88591         Merges from coreutils, etc.
88592         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
88593         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
88594         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
88595         fixing a typo.
88596         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
88597         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
88598
88599 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88600
88601         Document merge from coreutils.
88602         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
88603         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
88604         * modules/utime: Add m4/utimes-null.m4.
88605
88606 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88607
88608         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
88609         space, undoing this 2003-08-12 change:
88610         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88611
88612 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88613
88614         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
88615         strtoul.c from libc, undoing this 2003-08-12 change:
88616         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88617
88618 2003-08-16  Jim Meyering  <jim@meyering.net>
88619
88620         Merges from coreutils.
88621         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
88622         prefix.  Adjust cache variables similarly.  Create 500 rather than
88623         just 300 files, to exercise bug on Darwin6.5, too.
88624         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
88625         $missing_dir.
88626         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
88627         AM_SYS_POSIX_TERMIOS.
88628         Reported by mkc@mathdogs.com.
88629         Also change use of $am_cv_sys_posix_termios
88630         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
88631         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
88632         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
88633         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
88634         in /proc/mounts until it finds one with matching device number.  This
88635         is unnecessary when the FILE argument *is* a mount point.  No stat call
88636         is necessary in that case.  So, disable the statvfs-testing code on
88637         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
88638         as RedHat bug# 84846.
88639         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88640         to 1MB, so as not to render systems with no stack size limit (e.g.,
88641         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88642         Include <unistd.h>.  On some systems,
88643         it is required for the definition of _SC_PAGESIZE.
88644
88645 2003-08-16  Jim Meyering  <jim@meyering.net>
88646
88647         Merge from coreutils.
88648         * lib/xstrtoimax.c: #else #if -> #elif.
88649         * lib/xstrtoumax.c: Likewise.
88650
88651 2003-08-16  Jim Meyering  <jim@meyering.net>
88652
88653         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
88654         * m4/utimes.m4: Removed.
88655         * m4/utimes-null.m4: Renamed from utimes.m4.
88656
88657         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88658         to 1MB, so as not to render systems with no stack size limit (e.g.,
88659         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88660         Include <unistd.h>.  On some systems,
88661         it is required for the definition of _SC_PAGESIZE.
88662
88663 2003-08-16  Jim Meyering  <jim@meyering.net>
88664         and Paul Eggert  <eggert@cs.ucla.edu>
88665
88666         Merges from coreutils, etc.
88667
88668         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
88669         using the latest version from cvs.  This avoids problems with #line
88670         directives using a vendor (Sun) compiler.
88671         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
88672         Don't set GETGROUPS_LIB here; now it's
88673         done via getgroups.m4's wrapper function.
88674         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
88675         rather than just in sh-util/configure.in, so that the
88676         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
88677         same.
88678         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
88679         AC_FUNC_GETLOADAVG where to find getloadavg.c.
88680         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
88681         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
88682         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
88683         Remove code that is now done by the newly-required macros.
88684         Append $(EXEEXT) to DF_PROG.
88685         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
88686         Do not invoke or require the following here,
88687         since prereq.m4 or some gnulib .m4 now does this for us:
88688         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
88689         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
88690         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
88691         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
88692         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
88693         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
88694         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
88695         AC_FUNC_OBSTACK.
88696         Do not replace the following functions, as this is now the job
88697         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
88698         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
88699         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
88700         atexit getpass, strdup, getpagesize.
88701         Replace 'raise'.
88702         Do not check for the following functions, as this is now the job
88703         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
88704         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
88705         setregid.
88706         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
88707         Check for sys/sysctl.h.
88708         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
88709         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
88710         of checking for ssize_t ourselves.
88711
88712         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
88713         Require every macro that gnulib/modules/* suggests for us.
88714         (jm_PREREQ_ADDEXT): New macro.
88715         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
88716         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
88717
88718         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
88719         (gl_PHYSMEM): Use it.
88720         Also check for `table' function.
88721         Check for new headers and functions.
88722         Add check for sys/sysmp.h.
88723         With suggestions from Kaveh Ghazi.
88724         Ignore headers that are present but cannot be compiled.  This
88725         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
88726         C 5.4.
88727
88728 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88729
88730         Document merge from coreutils.
88731         * modules/userspec: Depend on posixver.
88732         * modules/strftime: Depend on tzset.
88733
88734 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88735
88736         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
88737         rather than tab, after '#' in shell-script copyright notices.
88738         Suggested by Bruno Haible.
88739
88740 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88741
88742         * config/srclist-update: Use three spaces, rather than tab, after '#'
88743         in shell-script copyright notices.  Suggested by Bruno Haible.
88744         Remove unnecessary parenthesization in regular expression.
88745
88746 2003-08-15  Jim Meyering  <jim@meyering.net>
88747
88748         Merge from coreutils.
88749         * lib/xgethostname.c: Include <stdlib.h>.
88750         (xghostname): Don't exit for anything other than memory-related
88751         failure; just return NULL.
88752         * lib/userspec.c: Include "posixver.h".
88753         (parse_user_spec): Accept `.' as a separator only
88754         in pre-POSIX-200112 mode.
88755         * lib/strtoimax.c: Use #elif rather than #else #if.
88756         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
88757         Remove function, now that we can rely on a working tzset function.
88758         [!_LIBC]: Ensure that the required autoconf test has been run.
88759         [!defined _NL_CURRENT && HAVE_STRFTIME]:
88760         Use underlying_strftime for %r.
88761         * lib/sha.c: Merge in some clean-up and optimization changes from
88762         glibc.
88763         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
88764         Ensure that it is a multiple of 64.
88765         Rearrange loop exit tests so as to avoid performing an
88766         additional fread after encountering an error or EOF.
88767         * lib/realloc.c: Update copyright date.
88768
88769 2003-08-15  Jim Meyering  <jim@meyering.net>
88770         and Paul Eggert  <eggert@twinsun.com>
88771
88772         Merge from coreutils.
88773         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
88774         member but strut utmpx does not.  Needed for AIX 4.3.3.
88775         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
88776
88777 2003-08-15  Jim Meyering  <jim@meyering.net>
88778         and Paul Eggert  <eggert@cs.ucla.edu>
88779
88780         Merges from coreutils, etc.
88781         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
88782         Require gl_FUNC_TZSET_CLOBBER.
88783         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
88784         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
88785         members.
88786
88787 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88788
88789         Help the merge from coreutils.
88790         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
88791         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
88792         * m4/tzset.m4: Use it too.
88793
88794 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88795
88796         * modules/tzset: New file.
88797
88798 2003-08-14  Jim Meyering  <jim@meyering.net>
88799
88800         Merges from coreutils.
88801         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
88802         variable names, rather than @FNMATCH_H@.
88803         * modules/alloca: Likewise for $(ALLOCA_H).
88804
88805         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
88806         the three copies of the literal target, `fnmatch.h'.
88807         * modules/alloca (alloca.h): Likewise.
88808
88809 2003-08-14  Jim Meyering  <jim@meyering.net>
88810
88811         Merge from coreutils.
88812         * m4/tzset.m4: New file.
88813         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
88814         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
88815         otherwise, AIX 5.1 systems would end up using the latter.
88816         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
88817         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
88818         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
88819         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
88820
88821 2003-08-14  Jim Meyering  <jim@meyering.net>
88822
88823         Merge from coreutils.
88824         * lib/obstack.h: Whitespace changes.
88825         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
88826         and xcalloc return values.
88827         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
88828         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
88829         hang on OSF/1 5.1 for DIR on both local and remote file systems.
88830         Reported by (and fix confirmed by) Nelson H. F. Beebe.
88831         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
88832         error from mntctl.
88833         Use mntctl's return value to drive the entry-processing loop, since
88834         we can't rely on the value of the vmt_length member in the last
88835         entry.  On some systems doing so could result in exhausting
88836         virtual memory.  Based in part on a patch from Mike Jetzer.
88837
88838 2003-08-14  Jim Meyering  <jim@meyering.net>
88839         and Paul Eggert  <eggert@twinsun.com>
88840
88841         Merges from coreutils, plus other fixes.
88842         * lib/physmem.c: Merge in portability changes from gcc/libiberty
88843         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
88844         for credits and details.  Thanks to Kaveh Ghazi for helping
88845         to keep these files in sync.
88846         (ARRAY_SIZE): Define it.
88847         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
88848         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
88849         (memcasecmp): Don't assume size_t fits in unsigned int.
88850         Remove casts and duplicate code.
88851         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
88852         (memcpy): Remove definition.
88853         Merge in some clean-up and optimization changes from glibc.
88854         [BLOCKSIZE]: Move definition to top of file.
88855         Ensure that it is a multiple of 64.
88856         Rearrange loop exit tests so as to avoid performing an
88857         additional fread after encountering an error or EOF.
88858         * lib/md5.h (md5_uintptr): Define.
88859         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
88860         return to the initial working directory.  Preserve errno
88861         for caller.
88862         * lib/idcache.c: Include "xalloc.h".
88863         (xmalloc, xrealloc): Remove decls.
88864         (getuser): Remove casts no longer required in C89.
88865         * lib/human.c: Include stdio.h, for sprintf.
88866         * lib/group-member.c: Include "xalloc.h".
88867         (xmalloc, xrealloc): Remove decls.
88868         (get_group_info): Remove casts no longer required in C89.
88869         * lib/getusershell.c (readname): Remove casts no longer required in
88870         C89.
88871         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
88872         * lib/getline.c: Whitespace fix, from coreutils.
88873
88874 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88875
88876         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
88877         Check for isascii.
88878
88879         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88880         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88881         Undo previous (whitespace-only) change.
88882
88883 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88884
88885         * lib/exclude.c: Include <ctype.h>
88886         (IN_CTYPE_DOMAIN): New macro.
88887         (is_space): New fn.
88888         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
88889         and empty lines.
88890
88891         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88892         Undo previous (whitespace-only) change.
88893
88894 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88895
88896         * config/srclist-update: Change update back to the old behavior,
88897         leaving whitespace alone.  Use one 'sed' command rather than a
88898         pipeline.
88899         (fixlicense): Now a variable, not a function.
88900         (remove_trailing_blanks): Remove.
88901         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
88902         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88903         Undo previous (whitespace-only) change.
88904
88905 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88906
88907         Merge from coreutils.
88908         * modules/euidaccess: Add lib_SOURCES, include for new
88909         file euidaccess.h
88910
88911 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88912
88913         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88914         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88915         Normalize leading white space and remove trailing white space.
88916
88917         Merge from coreutils
88918         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
88919
88920         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
88921         0.12.1.  These files are now being upgraded automatically by
88922         ../config/srclist-update.
88923
88924 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88925
88926         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88927         Normalize leading white space and remove trailing white space.
88928         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
88929         notice, as per ../config/srclist-update.
88930
88931         Merge from coreutils.
88932         * lib/euidaccess.h: New file.
88933         * lib/euidaccess.c: Include it.
88934         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
88935         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
88936         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
88937
88938 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88939
88940         * config/srclist-update: Add copyright notice.
88941         (remove_id_lines, remove_trailing_blanks): New constants.
88942         (fixfile): Use them to normalize spacing a bit in copied files.
88943         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88944         Normalize leading white space and remove trailing white space.
88945
88946         * config/texinfo.tex: Sync with texinfo.
88947
88948         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
88949         strtoul.c from libc, to merge coreutils whitespace changes.
88950
88951         * config/srclist.txt: Get the following m4 files from gettext:
88952         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
88953         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
88954         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
88955         wint_t.m4.
88956
88957 2003-08-12  Karl Berry  <karl@gnu.org>
88958
88959         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
88960         been made.
88961
88962 2003-08-11  Paul Eggert  <eggert@twinsun.com>
88963
88964         * modules/gnu-source, m4/gnu-source.m4:
88965         Remove; we're assuming Autoconf 2.54 or later now.
88966         Suggested by Bruno Haible.
88967         * MODULES.html.sh (func_all_modules): Remove gnu-source.
88968
88969 2003-08-11  Bruno Haible  <bruno@clisp.org>
88970
88971         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
88972
88973 2003-08-11  Bruno Haible  <bruno@clisp.org>
88974
88975         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
88976         (vasnprintf): Use it instead of wcslen.
88977
88978 2003-08-11  Bruno Haible  <bruno@clisp.org>
88979
88980         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
88981         value to ensure that _Bool promotes to int. Use #define for _Bool when
88982         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
88983
88984 2003-08-10  Karl Berry  <karl@gnu.org>
88985
88986         * lib/regex.h: update from libc (whitespace fix).
88987
88988 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88989
88990         Merge some files from coreutils.  These changes were
88991         originally made by Jim Meyering.
88992         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
88993         many older Unixes require this.
88994         * lib/alloca.c (alloca): Remove cast to argument of free;
88995         no longer needed in C89.
88996         * lib/alloca_.h, regex.h: Fix white space to match
88997         what GNU indent does.
88998
88999 2003-08-09  Paul Eggert  <eggert@twinsun.com>
89000
89001         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
89002         apparently Emacs's Unicode mode got confused before my 2003-08-05
89003         checkin.
89004
89005 2003-08-08  Paul Eggert  <eggert@twinsun.com>
89006
89007         * m4/extensions.m4: New file.
89008         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
89009         Require gl_USE_SYSTEM_EXTENSIONS.
89010         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
89011         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
89012
89013 2003-08-08  Paul Eggert  <eggert@twinsun.com>
89014
89015         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
89016         * modules/extensions, modules/gnu-source: New files.
89017         * modules/timespec, modules/unlocked-io: Depend on extensions.
89018
89019 2003-08-07  Paul Eggert  <eggert@twinsun.com>
89020
89021         * modules/restrict: New file.
89022         * MODULES.html.sh (func_all_modules): Add restrict.
89023         * modules/regex: Depend on restrict.
89024
89025 2003-08-07  Paul Eggert  <eggert@twinsun.com>
89026
89027         * m4/restrict.m4: New file.
89028         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
89029
89030 2003-08-07  Bruno Haible  <bruno@clisp.org>
89031
89032         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
89033         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
89034
89035 2003-08-07  Bruno Haible  <bruno@clisp.org>
89036
89037         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
89038         makes the module 'getndelim2' compatible with the module 'getline'.
89039
89040 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89041
89042         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
89043         byte with "\201" to avoid glitches when editing that source file
89044         with multi-gnome-terminal.
89045
89046 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89047
89048         * lib/bumpalloc.h: Remove.
89049
89050 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89051
89052         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
89053         * modules/bumpalloc: Remove.
89054
89055 2003-08-04  Paul Eggert  <eggert@twinsun.com>
89056
89057         * lib/getloadavg.c: Change copyright notice and spacing to conform to
89058         GNU coding style.
89059
89060         Merge from coreutils.
89061         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
89062         1. From glibc.
89063         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
89064         from Karl Berry, implemented by Jim Meyering.
89065         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
89066         from Dmitry V. Levin.
89067         Remove anachronistic cast of xrealloc.
89068         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
89069         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
89070         type. Otherwise, it wouldn't compile with at least /bin/cc on
89071         ymp-cray-unicos9.0.2.X.
89072         Combine two mostly-identical uses of alloca into one.
89073         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
89074
89075 2003-08-04  Dave Love  <d.love@dl.ac.uk>
89076
89077         [From Emacs.]
89078
89079         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
89080         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
89081         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
89082         obsolete NLIST_NAME_UNION.
89083         [__GNU__]: Undef BSD and FSCALE.
89084         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
89085
89086 2003-08-03  Paul Eggert  <eggert@twinsun.com>
89087
89088         * lib/stdbool_.h (_Bool): Make it signed char, instead of
89089         an enum type, so that it's guaranteed to promote to int.  See:
89090         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
89091
89092 2003-08-03  Karl Berry  <karl@gnu.org>
89093
89094         * config/depcomp: update from automake.
89095
89096 2003-07-31  Paul Eggert  <eggert@twinsun.com>
89097
89098         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
89099         (strerror): Don't assume that a printable int fits in 14 bytes.
89100
89101 2003-07-31  Bruno Haible  <bruno@clisp.org>
89102
89103         * modules/getpass-gnu: New file.
89104         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
89105
89106 2003-07-31  Bruno Haible  <bruno@clisp.org>
89107
89108         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
89109
89110 2003-07-24  Karl Berry  <karl@gnu.org>
89111
89112         * config/missing: update from automake.
89113
89114 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
89115             Bruno Haible  <bruno@clisp.org>
89116
89117         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
89118         * lib/getline.c (getline, getdelim): Likewise.
89119         Remove _GNU_SOURCE define; now it's defined in config.h through
89120         m4/getline.m4.
89121
89122 2003-07-23  Karl Berry  <karl@gnu.org>
89123
89124         * config/config.sub: update from prep.
89125
89126 2003-07-22  Paul Eggert  <eggert@twinsun.com>
89127
89128         * modules/xalloc (Depends-on): Add exitfail.
89129         * modules/xmemcoll: Likewise.
89130
89131 2003-07-22  Paul Eggert  <eggert@twinsun.com>
89132
89133         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
89134         over-parenthesization in macros.
89135
89136         Sync with coreutils.
89137
89138         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
89139         required by C99.
89140
89141         Use `exit_failure' for xalloc and xmemcoll instead of their own
89142         private exit-failure variables.
89143         * lib/xalloc.h (xalloc_exit_failure): Remove.
89144         * lib/xmalloc.c: Likewise.  Include exitfail.h.
89145         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
89146         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
89147         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
89148         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
89149
89150 2003-07-20  Jim Meyering  <jim@meyering.net>
89151
89152         * modules/closeout (Depends-on): Add exitfail.
89153         Suggestion from Bruno Haible.
89154
89155 2003-07-19  Karl Berry  <karl@gnu.org>
89156
89157         * config/config.sub: update from prep.
89158
89159 2003-07-18  Paul Eggert  <eggert@twinsun.com>
89160
89161         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
89162         Remove.
89163         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
89164         to test that it can stand by itself.  Include "exitfail.h".
89165         Clients should set exit_failure instead.
89166         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
89167
89168 2003-07-18  Bruno Haible  <bruno@clisp.org>
89169
89170         * modules/getndelim2: New file.
89171         * modules/getline: Share files with module getndelim2.
89172         * modules/getnline: Depend on getndelim2 instead of sharing files with
89173         it. Add getnline.c to lib_SOURCES.
89174         * MODULES.html.sh (func_all_modules): Add getndelim2.
89175
89176 2003-07-18  Bruno Haible  <bruno@clisp.org>
89177
89178         * m4/getndelim2.m4: New file.
89179         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
89180         invoke gl_PREREQ_GETNDELIM2.
89181         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
89182         gl_PREREQ_GETNDELIM2.
89183         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
89184         gl_GETNDELIM2.
89185
89186 2003-07-18  Bruno Haible  <bruno@clisp.org>
89187
89188         * lib/getndelim2.h: New file.
89189         * lib/getndelim2.c: Make into a module of its own. Include config.h,
89190         getndelim2.h.
89191         (getndelim2): Make non-static. Change return type to ssize_t.
89192         * lib/getline.h: Change argument names.
89193         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
89194         * lib/getnline.c: Include getndelim2.h.
89195
89196 2003-07-18  Andreas Schwab  <schwab@suse.de>
89197
89198         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
89199
89200 2003-07-17  Karl Berry  <karl@gnu.org>
89201
89202         * config/config.sub: update from prep.
89203
89204 2003-07-17  Bruno Haible  <bruno@clisp.org>
89205
89206         * modules/getnline: New file.
89207         * modules/getline: Add lib/getndelim2.c to source file list.
89208         * MODULES.html.sh (func_all_modules): Add getnline.
89209
89210 2003-07-17  Bruno Haible  <bruno@clisp.org>
89211
89212         * m4/getnline.m4: New file.
89213
89214 2003-07-17  Bruno Haible  <bruno@clisp.org>
89215
89216         * m4/Makefile.am.in: Remove file.
89217         * m4/Makefile.am: Remove file.
89218         * m4/Makefile.in: Remove file.
89219
89220 2003-07-17  Bruno Haible  <bruno@clisp.org>
89221
89222         * lib/getnline.h: New file.
89223         * lib/getnline.c: New file.
89224         * lib/getndelim2.c: New file, extracted from getline.c.
89225         (getndelim2): Renamed from getdelim2, with added nmax argument.
89226         * lib/getline.c: Include getndelim2.c.
89227         (getdelim2): Moved out to getndelim2.c.
89228         (getline, getdelim): Update.
89229
89230 2003-07-17  Bruno Haible  <bruno@clisp.org>
89231
89232         * lib/Makefile.am: Remove file.
89233         * lib/Makefile.in: Remove file.
89234
89235 2003-07-17  Bruno Haible  <bruno@clisp.org>
89236
89237         * configure.in: Remove file.
89238         * Makefile.in: Remove file.
89239
89240 2003-07-17  Bruno Haible  <bruno@clisp.org>
89241
89242         * MODULES.html.sh: Put the </BODY> right before </HTML>.
89243
89244 2003-07-16  Karl Berry  <karl@gnu.org>
89245
89246         * config/srclist-update: was running fixlicense twice, which caused
89247                 texinfo.tex to be nullified for some reason.  Simplify,
89248                 $gplsrc is no longer needed as far as I can see?
89249
89250 2003-07-16  Jim Meyering  <jim@meyering.net>
89251
89252         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
89253
89254 2003-07-15  Paul Eggert  <eggert@twinsun.com>
89255
89256         * config/srclist.txt: Get the following files from gettext-runtime/intl
89257         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
89258         ref-del.sin.  From Bruno Haible.
89259         * config/srclist-update (fixfile): Change grep pattern again, since the
89260         previous fix didn't work (there was another trailing $).  Use
89261         '[$]' to escape the $s.
89262
89263 2003-07-15  Karl Berry  <karl@gnu.org>
89264
89265         * lib/vasnprintf.c: update from gettext.
89266
89267 2003-07-15  Karl Berry  <karl@gnu.org>
89268
89269         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
89270         gets expanded when surrounded by '$'.
89271
89272 2003-07-15  Jim Meyering  <jim@meyering.net>
89273
89274         * modules/save-cwd: Don't depend on error.  From Derek Price.
89275
89276 2003-07-15  Jim Meyering  <jim@meyering.net>
89277
89278         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
89279
89280 2003-07-14  Simon Josefsson  <jas@extundo.com>
89281
89282         * modules/mempcpy: New file.
89283         * MODULES.html.sh (func_all_modules): Add mempcpy.
89284
89285 2003-07-14  Simon Josefsson  <jas@extundo.com>
89286
89287         * m4/mempcpy.m4: New file.
89288
89289 2003-07-14  Simon Josefsson  <jas@extundo.com>
89290
89291         * lib/mempcpy.h: New file.
89292         * lib/mempcpy.c: New file.
89293
89294 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89295
89296         * modules/getdate, modules/posixtm: Depend on mktime.
89297
89298 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89299
89300         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
89301         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
89302         unicodeio.c, unicodeio.h, unlocked-io.h:
89303         Switch from LGPL to GPL.
89304
89305 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89306
89307         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
89308         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
89309         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
89310         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
89311         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
89312         updated automatically by ../config/srclist-update.  This changes
89313         their license from LPGL to GPL.
89314
89315 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89316
89317         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
89318         assumed to refer to the root of the most recent stable gettext version.
89319         * config/srclistvars.sh: Add defaults for eggert.
89320         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
89321         Match "This program" as well as "The program".  This is needed
89322         for gettext.
89323
89324 2003-07-14  Jim Meyering  <jim@meyering.net>
89325
89326         Don't emit diagnostics.  Let callers do that.
89327         * lib/save-cwd.c: Don't include "error.h".
89328         (save_cwd): Don't call error.  Ensure that errno is valid
89329         when returning nonzero.
89330
89331         * lib/save-cwd.h (restore_cwd): Update prototype.
89332         * lib/save-cwd.c (restore_cwd): Remove two parameters.
89333         Simplify.  Don't call error upon failure.  Let callers do that.
89334         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
89335         when auditing is enabled.  But don't bother updating the #if.
89336
89337 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
89338
89339         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
89340         it breaks C++ compilation.
89341         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
89342
89343 2003-07-10  Simon Josefsson  <jas@extundo.com>
89344
89345         * modules/strchrnul (Makefile.am): Add strchrnul.h.
89346
89347 2003-07-10  Jim Meyering  <jim@meyering.net>
89348
89349         * m4/clock_time.m4: Remove trailing blank.
89350         * m4/intmax_t.m4: Likewise.
89351
89352 2003-07-10  Jim Meyering  <jim@meyering.net>
89353
89354         * lib/vasnprintf.c: Remove trailing blanks.
89355         Make cpp indentation consistent.
89356
89357 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89358
89359         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
89360         posixver.c, strftime.c, strnlen.c, strverscmp.c:
89361         Switch from LGPL to GPL.
89362
89363 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89364
89365         * config/srclist.txt: Sort sublists.  Add
89366         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
89367         that differ from gnulib for one reason or another; we'd like this list
89368         to be smaller but for now let's document what we have.
89369
89370 2003-07-08  Paul Eggert  <eggert@twinsun.com>
89371
89372         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
89373         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
89374         and sweeter "eval x=$x".
89375         * config/srclist.txt: Get lib/argp* from glibc.
89376
89377 2003-07-07  Paul Eggert  <eggert@twinsun.com>
89378
89379         * lib/mktime.c: Fix some boundary cases and remove need for floating
89380         point.
89381
89382         Issue a compile-time diagnostic if time_t is floating point, or if
89383         two's complement arithmetic is not in effect, or if arithmetic
89384         right shift does not propagate the sign.  These assumptions were
89385         all in the original code but they weren't checked.
89386
89387         (TIME_T_MIDPOINT, verify): New macros.
89388         (__isleap): Remove; it has integer overflow problems.
89389         (leapyear): New function, without those problems.
89390         (ydhms_tm_diff): Remove; splitting into two parts.
89391         (ydhms_diff): New function, containing the arithmetic part of
89392         the old ydhms_tm_diff function.  Issue a compile-time
89393         diagnostic if we are not using C99 integer division.
89394         Avoid casts when possible.
89395         (guess_time_tm): New function, containing the checking part of
89396         the old ydhms_tm_diff function.  Return the new value, rather than
89397         the difference between it and the old.  Accept a new argument T
89398         so that *T specifies the old value.  Check for overflow in the result.
89399
89400         (__mktime_internal): Use a time_t offset, not a long int offset.
89401         This undoes the 2003-06-04 change, which is no longer needed now
89402         that we have better overflow checking.
89403         (localtime_offset): Likewise.
89404
89405         (__mktime_internal): Avoid harmful overflow on hosts where time_t
89406         and long are 64-bit but int is only 32-bit.
89407         (ydhms_diff): Use long int to store year1 and yday1.
89408         Issue a compile-time diagnostic if long int is not wide enough.
89409
89410         (__mktime_internal): Use long int to store adjusted year and yday.
89411         Use plain C rather than preprocessor commands, if that doesn't
89412         affect efficiency.
89413         Check for overflow (and try to repair) after each probe
89414         rather than checking only at the very end.  This avoids some bugs
89415         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
89416         does not equal GMT offset at maximum time).
89417         Use integer to check for overflow rather than floating point; this
89418         is more portable to non-IEEE hosts, and is a tad faster.
89419         When we detect that we are oscillating between two values,
89420         don't check whether tm_isdst has the requested value, since
89421         we already know the answer.  When tm_isdst has the wrong value,
89422         use a different heuristic to find the right one, based on the
89423         extreme values actually observed in practice in tz2003a,
89424         rather than the (overly optimistic) "previous 3 calendar quarters".
89425
89426         (not_equal_tm, print_tm, check_result): Use "const T" rather than
89427         "T const" to accommodate glibc style.
89428         (check_result): Use less-confusing report format.  "long" -> "long int.
89429         (main): Likewise.
89430         Don't loop if the iteration overflows time_t.
89431         Allow a negative step in the iteration.
89432
89433 2003-07-06  Karl Berry  <karl@gnu.org>
89434
89435         * config/depcomp: update from automake.
89436         * config/config.sub: update from prep.
89437
89438 2003-07-03  Karl Berry  <karl@gnu.org>
89439
89440         * config/config.guess: update from prep.
89441
89442 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89443
89444         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
89445         xreadlink.c now includes it unconditionally.
89446
89447 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89448
89449         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
89450         having it depend on HAVE_SYS_TYPES_H.
89451
89452 2003-07-01  Bruno Haible  <bruno@clisp.org>
89453
89454         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
89455         <sys/types.h> should be sufficient.
89456         Reported by Paul Eggert.
89457
89458 2003-06-26  Karl Berry  <karl@gnu.org>
89459
89460         * config/depcomp: update from automake.
89461
89462 2003-06-26  Bruno Haible  <bruno@clisp.org>
89463
89464         * modules/human: Depend on module stdbool.
89465
89466 2003-06-25  Bruno Haible  <bruno@clisp.org>
89467
89468         * modules/readlink: New file.
89469         * modules/xreadlink: Depend on it.
89470         * MODULES.html.sh (func_all_modules): Add readlink.
89471
89472 2003-06-25  Bruno Haible  <bruno@clisp.org>
89473
89474         * m4/readlink.m4: New file.
89475
89476 2003-06-25  Bruno Haible  <bruno@clisp.org>
89477
89478         * lib/readlink.c: New file.
89479
89480 2003-06-22  Karl Berry  <karl@gnu.org>
89481
89482         * config/srclist.txt: update mkinstalldirs from automake.
89483         * config/mkinstalldirs: update.
89484
89485 2003-06-22  Bruno Haible  <bruno@clisp.org>
89486
89487         Portability to mingw32.
89488         * m4/ssize_t.m4: New file, from GNU gettext.
89489         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
89490         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
89491
89492 2003-06-22  Bruno Haible  <bruno@clisp.org>
89493
89494         * modules/safe-read: Add m4/ssize_t.m4.
89495         * modules/xreadlink: Add m4/ssize_t.m4.
89496
89497 2003-06-20  Bruno Haible  <bruno@clisp.org>
89498
89499         Assume C89, so PARAMS isn't needed.
89500         * lib/unicodeio.h (PARAMS): Remove.
89501         * lib/unicodeio.c: Don't use PARAMS.
89502
89503 2003-06-18  Karl Berry  <karl@gnu.org>
89504
89505         * config/config.{guess,sub}: update from prep.
89506
89507 2003-06-18  Jim Meyering  <jim@meyering.net>
89508
89509         Merge changes from coreutils.
89510         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
89511         Remove explicit declarations of xmalloc and realloc.
89512         Include xalloc.h.
89513         (read_utmp): Remove anachronistic cast of xmalloc.
89514
89515 2003-06-17  Paul Eggert  <eggert@twinsun.com>
89516
89517         Assume C89, so PARAMS isn't needed.
89518         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
89519         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
89520         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
89521         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
89522         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
89523         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
89524         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
89525         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
89526         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
89527         lib/xstrtod.h, lib/xstrtol.h: Likewise.
89528         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
89529         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
89530         no longer needed. Anyway, config.h should always be included before any
89531         other file.
89532
89533 2003-06-11  Simon Josefsson  <jas@extundo.com>
89534
89535         * modules/sysexits: New file.
89536         * MODULES.html.sh (func_all_modules): Add sysexits.
89537
89538 2003-06-11  Simon Josefsson  <jas@extundo.com>
89539
89540         * lib/sysexit_.h: New file.
89541
89542 2003-06-11  Derek Price  <derek@ximbiot.com>
89543
89544         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
89545         necessary.
89546
89547 2003-06-11  Bruno Haible  <bruno@clisp.org>
89548
89549         * m4/sysexits.m4: New file.
89550
89551 2003-06-10  Simon Josefsson  <jas@extundo.com>
89552
89553         * lib/argp.h: New file, from glibc.
89554         * lib/argp-ba.c: New file, from glibc.
89555         * lib/argp-eexst.c: New file, from glibc.
89556         * lib/argp-fmtstream.c: New file, from glibc.
89557         * lib/argp-fmtstream.h: New file, from glibc.
89558         * lib/argp-fs-xinl.c: New file, from glibc.
89559         * lib/argp-help.c: New file, from glibc.
89560         * lib/argp-namefrob.h: New file, from glibc.
89561         * lib/argp-parse.c: New file, from glibc.
89562         * lib/argp-pv.c: New file, from glibc.
89563         * lib/argp-pvh.c: New file, from glibc.
89564         * lib/argp-xinl.c: New file, from glibc.
89565
89566 2003-06-10  Simon Josefsson  <jas@extundo.com>
89567
89568         * modules/strchrnul: New file.
89569
89570 2003-06-10  Simon Josefsson  <jas@extundo.com>
89571
89572         * modules/argp: New file.
89573
89574 2003-06-10  Simon Josefsson  <jas@extundo.com>
89575
89576         * m4/strchrnul.m4: New file.
89577
89578 2003-06-10  Simon Josefsson  <jas@extundo.com>
89579
89580         * lib/strchrnul.h: New file.
89581         * lib/strchrnul.c: New file.
89582
89583 2003-06-10  Bruno Haible  <bruno@clisp.org>
89584
89585         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
89586
89587 2003-06-07  Karl Berry  <karl@gnu.org>
89588
89589         * config/config.{guess,sub}: update from prep.
89590
89591 2003-06-07  Jim Meyering  <jim@meyering.net>
89592
89593         * modules/strtod: Use $(...) notation, not @...@ for
89594         AC_REPLACE'd variables.
89595         * modules/localcharset: Likewise.
89596
89597 2003-06-07  Jim Meyering  <jim@meyering.net>
89598
89599         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
89600         in place of my name in the copyright comment.
89601         Remove definition and uses of __P.
89602
89603         From coreutils.
89604         * lib/stat.c: Don't declare xmalloc explicitly.
89605         Instead, include "xalloc.h".
89606         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
89607         xrealloc, and xcalloc return values.
89608         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
89609         Improve comment.
89610         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
89611
89612 2003-06-07  Bruno Haible  <bruno@clisp.org>
89613
89614         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
89615         avoid AC_CONFIG_LINKS.
89616         * modules/fnmatch (Makefile.am): Use explicit creation rule for
89617         fnmatch.h, to avoid AC_CONFIG_LINKS.
89618         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
89619
89620 2003-06-07  Bruno Haible  <bruno@clisp.org>
89621
89622         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
89623         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
89624         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89625         directory.
89626         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
89627         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89628         directory.
89629
89630 2003-06-06  Jim Meyering  <jim@meyering.net>
89631
89632         Merge from coreutils.
89633         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
89634         Consolidate declarations and initializations of *_base* locals.
89635
89636         Merge from coreutils.
89637         This avoids a core dump on systems without GNU putenv,
89638         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
89639         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
89640         (unsetenv): New static function, from GNU libc.
89641         (rpl_putenv): Use it.
89642
89643         * lib/modechange.c: Remove trailing blanks.
89644
89645         Merge from coreutils.
89646         * lib/fsusage.c: Remove declaration of statfs.
89647         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
89648
89649         * lib/posixtm.c: Include <stdbool.h> unconditionally.
89650
89651 2003-06-06  Jim Meyering  <jim@meyering.net>
89652
89653         * lib/stdbool_.h: Renamed from stdbool.h.in.
89654
89655 2003-06-06  Jim Meyering  <jim@meyering.net>
89656             Bruno Haible  <bruno@clisp.org>
89657
89658         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
89659         Adjust Makefile.am snippet not to redirect directly to target.
89660         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
89661
89662 2003-06-05  Paul Eggert  <eggert@twinsun.com>
89663
89664         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
89665         mismatch, look in future quarters as well as past.  This fixes a
89666         bug when processing fall-backwards gaps immediately after a long
89667         period of daylight-saving time.
89668
89669         * lib/mktime.c: Assume freestanding C89 or better.
89670         (HAVE_LIMITS_H): Remove.  Assume it's 1.
89671         (__P): Remove; not used.
89672         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
89673         (mktime, not_equal_tm, print_tm, check_result,
89674         main): Use prototypes.  Use const * where appropriate.
89675         (main): Fix typo in testing code that uncovered by above changes.
89676         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
89677
89678 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89679
89680         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
89681         locale.h, localeconv.  This merges changes from coreutils.
89682
89683         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
89684         It can be removed after the next Autoconf is released.
89685         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
89686         needed.
89687
89688 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89689
89690         * lib/mktime.c: Fix Debian bug 177940
89691         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
89692         (localtime_offset): Now long int, not time_t, because we want it
89693         to be guaranteed to be signed.  All uses changed.
89694         (__mktime_internal): If overflow would occur when adding offset,
89695         don't add it.
89696
89697         Merge 'human' changes from coreutils.  Rewrite to support
89698         locale-specific notations like thousands separators.
89699         * lib/human.c: Simplify authorship notice.
89700         Include human.h immediately after config.h.
89701         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
89702         <limits.h>: Do not include, since human.h does.
89703         (SIZE_MAX, UINTMAX_MAX): New macros.
89704         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
89705         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
89706         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
89707         (power_letter): Renamed from suffixes.
89708         (generate_suffix_backwards): Remove.
89709         (adjust_value): Now takes int style (because of human.h changes)
89710         and long double value (for greater precision on some platforms).
89711         (group_number): New function.
89712         (human_readable): Use it.  Use integer options, not enum.
89713         Put the options before the sizes in the arg list.
89714         Support all the new options.
89715         The old human_readable function has been removed;
89716         use inttostr.h instead.
89717         (human_readable, default_block_size, humblock):
89718         Use uintmax_t, not int, for block sizes.
89719         (human_readable_inexact, block_size_types): Remove.
89720         (block_size_opts): New constant.
89721         (human_options): Renamed from human_block_size, with new signature
89722         that allows block sizes up to UINTMAX_MAX.  All callers changed.
89723         * lib/human.h: Add copyright and authorship notice.
89724         Include <limits.h> and <stdbool.h> unconditionally.
89725         (PARAMS): Remove.  All uses removed.
89726         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
89727         (enum human_inexact_style): Remove tag; now a nameless enum.
89728         (human_floor, human_ceiling, human_round_to_even): Now have
89729         values 2, 0, 1 rather than -1, 1, 0.
89730         (human_group_digits, human_suppress_point_zero, human_autoscale,
89731         human_base_1024, human_SI, human_B): New constants.
89732         (human_readable_inexact, human_block_size): Remove.
89733         (human_readable): Size args are now uintmax_t, not int.
89734         (human_options): New decl.
89735
89736         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
89737         unnecessary now that we assume C89 or better.  This change
89738         imported from coreutils.
89739
89740         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89741         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
89742         in the 2003-05-30 sync from glibc.
89743
89744         .h files should stand alone, but we shouldn't include <sys/types.h>
89745         if we can get away with just <stddef.h>.
89746
89747         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
89748         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
89749         rather than <sys/types.h>, as we merely need size_t.
89750         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
89751         to get size_t.
89752         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
89753         Include <stdio.h>, to get FILE.
89754         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
89755         memcasecmp.h has included <stddef.h> and all we need is size_t.
89756         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
89757         our interface, instead of including <sys/types.h>
89758
89759 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89760
89761         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
89762         now, as glibc mktime is buggy on non-glibc systems.
89763
89764 2003-06-03  Karl Berry  <karl@gnu.org>
89765
89766         * config/config.sub: update from prep.
89767
89768 2003-06-02  Paul Eggert  <eggert@twinsun.com>
89769
89770         [from coreutils]
89771         Fix some minor time-related bugs with POSIX time arguments.
89772         Some valid time stamps were being rejected (notably -1, and
89773         time stamps before 1900 on 64-bit hosts).  And some invalid
89774         time stamps were being accepted, e.g. September 31.
89775
89776         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
89777         that we can return (time_t) -1 successfully.
89778         * lib/posixtm.c: Likewise.
89779         [HAVE_STDBOOL_H]: Include <stdbool.h>.
89780         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
89781         (t): Remove static var.
89782         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
89783         of static var.  All uses changed.
89784         (year): Do not reject years before 1900; they can occur with
89785         64-bit time_t.
89786         (posix_time_parse): Do not check for out-of-range components;
89787         that is now the caller's responsibility, since our checks were
89788         only approximations.
89789         (posixtime): Use mktime to check for out-of-range components,
89790         since it knows them exactly.
89791         If mktime returns (time_t) -1, check whether an error actually occurred
89792         by invoking localtime on -1.
89793         (main) [TEST_POSIXTIME]: Check for input data errors, and report
89794         posixtime failures better.
89795         Improve the test data (in comments only).
89796
89797 2003-06-02  Karl Berry  <karl@gnu.org>
89798
89799         * config/mkinstalldirs (version): new variable.
89800         (--version): new option.
89801         (usage): improve message.
89802
89803 2003-05-30  Karl Berry  <karl@gnu.org>
89804
89805         * lib/mktime.c: update from libc.
89806
89807 2003-05-30  Bruno Haible  <bruno@clisp.org>
89808
89809         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
89810         * config/config.rpath: Upgrade to gettext-0.12.1.
89811
89812 2003-05-30  Bruno Haible  <bruno@clisp.org>
89813
89814         * m4/gettext.m4: Upgrade to gettext-0.12.1.
89815         * m4/nls.m4: New file, from gettext-0.12.1.
89816         * m4/po.m4: New file, from gettext-0.12.1.
89817         * m4/progtest.m4: Upgrade to gettext-0.12.1.
89818
89819 2003-05-30  Bruno Haible  <bruno@clisp.org>
89820
89821         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
89822         * lib/localcharset.h: Likewise.
89823         * lib/localcharset.c: Likewise.
89824
89825 2003-05-29  Karl Berry  <karl@gnu.org>
89826
89827         * config/config.rpath: update from gettext.
89828
89829 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89830
89831         Assume the headers required for C89 freestanding compilers.
89832         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
89833         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
89834         * m4/human.m4 (gl_HUMAN): Likewise.
89835         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
89836         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
89837         * m4/userspec.m4 (gl_USERSPEC): Likewise.
89838         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
89839         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
89840         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
89841
89842 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89843
89844         Assume the headers required for C89 freestanding compilers.
89845         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
89846         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
89847         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
89848         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
89849         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
89850         define, since <limits.h> is guaranteed to do that.
89851         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
89852         * lib/exclude.c: Include <stdbool.h> unconditionally.
89853         * lib/tempname.c: Include <stddef.h> unconditionally.
89854         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
89855         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
89856         <stddef.h> does that.
89857         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
89858         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
89859         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
89860         needed.
89861         * lib/xstrtol.c: Likewise.
89862         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
89863         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
89864
89865         * lib/addext.c (addext): Use assignment rather than cast, to avoid
89866         warnings on some platforms.
89867
89868         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89869         arbitrarily.
89870
89871 2003-05-26  Jim Meyering  <jim@meyering.net>
89872
89873         Merge in a change from coreutils:
89874         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
89875         that is guaranteed to be `no'.  Use `no_such_member' to indicate
89876         that condition, rather than `-1' which is slightly misleading.
89877         Change the name of the cache variable to have the gl_ prefix.
89878         Prompted by a patch from Richard Dawe for DJGPP.
89879
89880 2003-05-24  Karl Berry  <karl@gnu.org>
89881
89882         * config/config.guess: update from prep.
89883
89884 2003-05-22  Karl Berry  <karl@gnu.org>
89885
89886         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
89887
89888 2003-05-20  Karl Berry  <karl@gnu.org>
89889
89890         * config/config.guess: update from prep.
89891
89892 2003-05-18  Karl Berry  <karl@gnu.org>
89893
89894         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
89895         might actually be set by the user.
89896
89897         * config/depcomp, install-sh, mdate-sh: update from automake.
89898
89899 2003-05-17  Bruno Haible  <bruno@clisp.org>
89900
89901         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
89902         invalid expansion for AC_EGREP_CPP.
89903         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
89904         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
89905         Suggested by Akim Demaille <akim@epita.fr> in
89906         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
89907
89908 2003-05-12  Jim Meyering  <jim@meyering.net>
89909
89910         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
89911         the space-padded-by-default conversion specifiers, %e, %k, %l.
89912
89913 2003-05-12  Bruno Haible  <bruno@clisp.org>
89914
89915         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
89916         the string is longer than 4 KB.
89917
89918 2003-05-11  Karl Berry  <karl@gnu.org>
89919
89920         * config/config.{guess,sub}: update from prep.
89921
89922 2003-05-09  Bruno Haible  <bruno@clisp.org>
89923
89924         * modules/error: Add m4/strerror_r.m4 to file list.
89925
89926 2003-05-03  Bruno Haible  <bruno@clisp.org>
89927
89928         Upgrade to Unicode-4.0.
89929         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
89930         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
89931         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
89932         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
89933         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
89934         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
89935         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
89936         Change width of U+E0100..U+E01EF from 1 to 0.
89937
89938 2003-04-25  Jim Meyering  <jim@meyering.net>
89939
89940         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
89941         of type size_t, not int.
89942
89943 2003-04-25  Bruno Haible  <bruno@clisp.org>
89944
89945         * lib/copy-file.c: Include <stddef.h>, for size_t.
89946
89947 2003-04-21  Paul Eggert  <eggert@twinsun.com>
89948
89949         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
89950         code which expansion is under static control.  Patch imported from
89951         Akim Demaille's patch to Bison; see
89952         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
89953
89954 2003-04-14  Bruno Haible  <bruno@clisp.org>
89955
89956         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
89957
89958 2003-04-11  Jim Meyering  <jim@meyering.net>
89959
89960         Merge changes from Coreutils.
89961
89962         2003-03-22  Jim Meyering  <jim@meyering.net>
89963
89964         * lib/strftime.c (widen): Cast alloca return value to proper type.
89965
89966         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
89967
89968         From GNU libc.
89969         * lib/strftime.c (my_strftime): Handle very large width
89970         specifications for numeric values correctly.  Improve checks for
89971         overflow.
89972
89973         2003-01-19  Jim Meyering  <jim@meyering.net>
89974
89975         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
89976         definitions.
89977         (nl_get_alt_digit) [! defined my_strftime]: Define.
89978         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
89979         _nl_get_alt_digit and _nl_get_walt_digit.
89980
89981         * lib/strftime.c (my_strftime): Merge in locale-related changes from
89982         libc. These changes have no effect outside of _LIBC.
89983
89984 2003-04-10  Bruno Haible  <bruno@clisp.org>
89985
89986         * modules/findprog: New file.
89987         * MODULES.html.sh (func_all_modules): Add it.
89988
89989 2003-04-10  Bruno Haible  <bruno@clisp.org>
89990
89991         * m4/findprog.m4: New file.
89992         * m4/eaccess.m4: New file.
89993
89994 2003-04-10  Bruno Haible  <bruno@clisp.org>
89995
89996         * lib/findprog.h: New file, from GNU gettext.
89997         * lib/findprog.c: New file, from GNU gettext.
89998
89999 2003-04-05  Jim Meyering  <jim@meyering.net>
90000
90001         Merge changes from Coreutils.
90002
90003         * lib/exclude.h (PARAMS): Remove definition and uses.
90004         * lib/exclude.c: Remove uses of `PARAMS'.
90005
90006         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
90007         Add test-cases for DOS filenames. Declare program_name.
90008         (main): Set up program_name.  Patch by Rich Dawe.
90009
90010         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
90011         error from mntctl.
90012         Use mntctl's return value to drive the entry-processing loop, since
90013         we can't rely on the value of the vmt_length member in the last
90014         entry.  On some systems doing so could result in exhausting
90015         virtual memory.  Based in part on a patch from Mike Jetzer.
90016
90017 2003-04-04  Bruno Haible  <bruno@clisp.org>
90018
90019         * modules/linebreak: New file.
90020         * MODULES.html.sh (func_all_modules): Add it.
90021
90022 2003-04-04  Bruno Haible  <bruno@clisp.org>
90023
90024         * m4/linebreak.m4: New file.
90025
90026 2003-04-04  Bruno Haible  <bruno@clisp.org>
90027
90028         * lib/linebreak.h: New file, from GNU gettext.
90029         * lib/linebreak.c: New file, from GNU gettext with slight
90030         modifications.
90031         * lib/lbrkprop.h: New file, from GNU gettext.
90032
90033 2003-04-03  Bruno Haible  <bruno@clisp.org>
90034
90035         * modules/utf8-ucs4: New file.
90036         * modules/utf16-ucs4: New file.
90037         * modules/ucs4-utf8: New file.
90038         * modules/ucs4-utf16: New file.
90039         * MODULES.html.sh (func_all_modules): Add them.
90040
90041 2003-04-03  Bruno Haible  <bruno@clisp.org>
90042
90043         * m4/utf-ucs4.m4: New file.
90044         * m4/ucs4-utf.m4: New file.
90045
90046 2003-04-03  Bruno Haible  <bruno@clisp.org>
90047
90048         * lib/utf8-ucs4.h: New file, from GNU gettext.
90049         * lib/utf16-ucs4.h: New file, from GNU gettext.
90050         * lib/ucs4-utf8.h: New file, from GNU gettext.
90051         * lib/ucs4-utf16.h: New file, from GNU gettext.
90052
90053 2003-04-02  Bruno Haible  <bruno@clisp.org>
90054
90055         * modules/binary-io: New file.
90056         * MODULES.html.sh (func_all_modules): Add it.
90057
90058 2003-04-02  Bruno Haible  <bruno@clisp.org>
90059
90060         * lib/binary-io.h: New file, from GNU gettext.
90061
90062 2003-04-01  Bruno Haible  <bruno@clisp.org>
90063
90064         * modules/pathname: New file.
90065         * MODULES.html.sh (func_all_modules): Add it.
90066
90067 2003-04-01  Bruno Haible  <bruno@clisp.org>
90068
90069         * lib/pathname.h: New file, from GNU gettext.
90070         * lib/concatpath.c: New file, from GNU gettext.
90071
90072 2003-03-30  Bruno Haible  <bruno@clisp.org>
90073
90074         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
90075
90076 2003-03-30  Bruno Haible  <bruno@clisp.org>
90077
90078         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
90079         function chown() doesn't exist.
90080
90081 2003-03-28  Bruno Haible  <bruno@clisp.org>
90082
90083         * modules/copy-file: New file.
90084         * MODULES.html.sh (func_all_modules): Add it.
90085
90086 2003-03-28  Bruno Haible  <bruno@clisp.org>
90087
90088         * m4/copy-file.m4: New file.
90089
90090 2003-03-28  Bruno Haible  <bruno@clisp.org>
90091
90092         * lib/copy-file.h: New file, from GNU gettext.
90093         * lib/copy-file.c: New file, from GNU gettext.
90094
90095 2003-03-18  Jim Meyering  <jim@meyering.net>
90096
90097         * lib/quote.c (quote_n): Fix typo in comment.
90098
90099 2003-03-18  Bruno Haible  <bruno@clisp.org>
90100
90101         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
90102         checking.
90103         * m4/onceonly_2_57.m4: Likewise.
90104
90105 2003-03-17  Bruno Haible  <bruno@clisp.org>
90106
90107         * m4/onceonly.m4: Require autoconf 2.54 or newer.
90108         (m4_quote): Remove macro.
90109         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
90110
90111 2003-03-14  Jim Meyering  <jim@meyering.net>
90112
90113         Merge changes from Coreutils.
90114         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
90115         to be const, in order to avoid warnings.
90116         (obstack_room): Likewise.
90117         (obstack_empty_p): Likewise.
90118
90119 2003-03-14  Bruno Haible  <bruno@clisp.org>
90120
90121         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
90122         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
90123
90124 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90125
90126         Merge changes from Bison.
90127         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
90128         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
90129         when compiling Bison 1.875's `bitset bset = obstack_alloc
90130         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
90131         * lib/hash.c: Include <stdbool.h> unconditionally.
90132
90133 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90134
90135         * m4/onceonly.m4 (m4_quote): New macro.
90136         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
90137         Quote AC_FOREACH variable-expansions properly.
90138
90139 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90140
90141         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
90142
90143 2003-03-09  Paul Eggert  <eggert@twinsun.com>
90144
90145         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
90146         Reported by Bruce Becker; see:
90147         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
90148
90149 2003-03-03  Paul Eggert  <eggert@twinsun.com>
90150             Bruno Haible  <bruno@clisp.org>
90151
90152         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
90153         Reported by John Hughes, see
90154         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
90155
90156 2003-02-20  Bruno Haible  <bruno@clisp.org>
90157
90158         * MODULES.html.sh (func_all_modules): Add poll.
90159
90160 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90161
90162         * modules/poll: New file.
90163
90164 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90165
90166         * lib/poll_.h: New file.
90167         * lib/poll.c: New file.
90168
90169 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90170
90171         * m4/poll.m4: New file.
90172
90173 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90174
90175         * modules/mathl: New file.
90176
90177 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90178
90179         * lib/mathl.h: New file.
90180         * lib/acosl.c: New file.
90181         * lib/asinl.c: New file.
90182         * lib/atanl.c: New file.
90183         * lib/ceill.c: New file.
90184         * lib/cosl.c: New file.
90185         * lib/expl.c: New file.
90186         * lib/floorl.c: New file.
90187         * lib/frexpl.c: New file.
90188         * lib/ldexpl.c: New file.
90189         * lib/logl.c: New file.
90190         * lib/sincosl.c: New file.
90191         * lib/sinl.c: New file.
90192         * lib/sqrtl.c: New file.
90193         * lib/tanl.c: New file.
90194         * lib/trigl.c: New file.
90195         * lib/trigl.h: New file.
90196
90197 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90198
90199         * m4/mathl.m4: New file.
90200
90201 2003-02-18  Bruno Haible  <bruno@clisp.org>
90202
90203         * MODULES.html.sh (func_all_modules): Add mathl.
90204
90205 2003-02-17  Bruno Haible  <bruno@clisp.org>
90206
90207         * modules/mkdtemp: New module.
90208         * MODULES.html.sh (func_all_modules): Add it.
90209
90210 2003-02-17  Bruno Haible  <bruno@clisp.org>
90211
90212         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
90213
90214 2003-02-17  Bruno Haible  <bruno@clisp.org>
90215
90216         * lib/mkdtemp.h: New file, from GNU gettext.
90217         * lib/mkdtemp.c: New file, from GNU gettext.
90218
90219 2003-02-02  Jim Meyering  <jim@meyering.net>
90220
90221         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
90222         e.g. glibc-2.2.93.
90223
90224 2003-01-31  Bruno Haible  <bruno@clisp.org>
90225
90226         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
90227         'rpl_rename'.
90228         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
90229         'rpl_strnlen'.
90230         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
90231         'rpl_strtod'.
90232         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
90233         'rpl_utime'.
90234
90235 2003-01-31  Bruno Haible  <bruno@clisp.org>
90236
90237         * lib/rename.c: #undef rename before defining rpl_rename.
90238         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
90239
90240 2003-01-30  Bruno Haible  <bruno@clisp.org>
90241
90242         * modules/vasnprintf, modules/vasprintf: New modules.
90243         * MODULES.html.sh (func_all_modules): Add them.
90244
90245 2003-01-30  Bruno Haible  <bruno@clisp.org>
90246
90247         * m4/signed.m4: New file, from GNU gettext.
90248         * m4/longdouble.m4: New file, from GNU gettext.
90249         * m4/wchar_t.m4: New file, from GNU gettext.
90250         * m4/wint_t.m4: New file, from GNU gettext.
90251         * m4/vasnprintf.m4: New file.
90252         * m4/vasprintf.m4: New file.
90253
90254 2003-01-30  Bruno Haible  <bruno@clisp.org>
90255
90256         * lib/printf-args.h: New file, from GNU gettext.
90257         * lib/printf-args.c: New file, from GNU gettext.
90258         * lib/printf-parse.h: New file, from GNU gettext.
90259         * lib/printf-parse.c: New file, from GNU gettext.
90260         * lib/vasnprintf.h: New file, from GNU gettext.
90261         * lib/vasnprintf.c: New file, from GNU gettext.
90262         * lib/asnprintf.c: New file, from GNU gettext.
90263         * lib/vasprintf.h: New file, from GNU gettext with modifications.
90264         * lib/vasprintf.c: New file, from GNU gettext.
90265         * lib/asprintf.c: New file, from GNU gettext.
90266
90267 2003-01-29  Bruno Haible  <bruno@clisp.org>
90268
90269         * modules/stpncpy: New module.
90270         * MODULES.html.sh (func_all_modules): Add it.
90271
90272 2003-01-29  Bruno Haible  <bruno@clisp.org>
90273
90274         * m4/stpncpy.m4: New file.
90275
90276 2003-01-29  Bruno Haible  <bruno@clisp.org>
90277
90278         * lib/stpncpy.h: New file, from GNU gettext with modifications.
90279         * lib/stpncpy.c: New file, from GNU gettext with modifications.
90280
90281 2003-01-28  Bruno Haible  <bruno@clisp.org>
90282
90283         * modules/c-ctype: New module.
90284         * MODULES.html.sh (func_all_modules): Add it.
90285
90286 2003-01-28  Bruno Haible  <bruno@clisp.org>
90287
90288         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
90289         Paul Eggert.
90290         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
90291         Paul Eggert.
90292
90293 2003-01-27  Bruno Haible  <bruno@clisp.org>
90294
90295         * modules/xsetenv: New module.
90296         * MODULES.html.sh (func_all_modules): Add it.
90297
90298 2003-01-27  Bruno Haible  <bruno@clisp.org>
90299
90300         * lib/xsetenv.h: New file, from GNU gettext.
90301         * lib/xsetenv.c: New file, from GNU gettext.
90302
90303 2003-01-23  Jim Meyering  <jim@meyering.net>
90304
90305         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
90306         from working on systems without dirfd (at least Irix and OSF1/Tru64).
90307
90308 2003-01-23  Bruno Haible  <bruno@clisp.org>
90309
90310         * modules/minmax: New module.
90311         * MODULES.html.sh (func_all_modules): Add it.
90312
90313 2003-01-23  Bruno Haible  <bruno@clisp.org>
90314
90315         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
90316         Eggert.
90317
90318 2003-01-22  Bruno Haible  <bruno@clisp.org>
90319
90320         * modules/exit: New module.
90321         * MODULES.html.sh (func_all_modules): Add it.
90322
90323 2003-01-22  Bruno Haible  <bruno@clisp.org>
90324
90325         * lib/exit.h: New file, from GNU gettext.
90326
90327 2003-01-19  Bruno Haible  <bruno@clisp.org>
90328
90329         * gnulib-tool: Recognize option --extract-maintainer.
90330         (func_get_maintainer): New function.
90331         * modules/*: Add Maintainer entry.
90332
90333 2003-01-16  Jim Meyering  <jim@meyering.net>
90334
90335         * m4/regex.m4: The `regex' struct is both input and output.
90336         Initialize it before each use.  Patch by Tim Waugh.
90337
90338 2003-01-16  Bruno Haible  <bruno@clisp.org>
90339
90340         * MODULES.html.sh: Add a table of contents. Add the module name as
90341         leftmost column. Add hyperlinks.
90342
90343 2003-01-15  Bruno Haible  <bruno@clisp.org>
90344
90345         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
90346
90347 2003-01-15  Bruno Haible  <bruno@clisp.org>
90348
90349         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
90350         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
90351         suffix.
90352
90353 2003-01-15  Bruno Haible  <bruno@clisp.org>
90354
90355         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
90356
90357 2003-01-15  Bruno Haible  <bruno@clisp.org>
90358
90359         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
90360         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
90361
90362 2003-01-14  Jim Meyering  <jim@meyering.net>
90363
90364         * lib/same.c (same_name): Tweak a comment.
90365
90366 2003-01-14  Bruno Haible  <bruno@clisp.org>
90367
90368         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
90369         when a string comparison is sufficient.
90370
90371 2003-01-14  Bruno Haible  <bruno@clisp.org>
90372
90373         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
90374         'unsigned int'.
90375
90376 2003-01-14  Bruno Haible  <bruno@clisp.org>
90377
90378         * lib/hash-pjw.c: Add comment about low quality of this function.
90379
90380 2003-01-13  Bruno Haible  <bruno@clisp.org>
90381
90382         * modules/stpcpy: Distribute lib/stpcpy.h.
90383         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
90384
90385 2003-01-13  Bruno Haible  <bruno@clisp.org>
90386
90387         * modules/*: Add a description.
90388         * modules/strpbrk: Fix Makefile.am snippet.
90389         * modules/strtoimax: Fix dependencies.
90390         * modules/strtoumax: Likewise.
90391
90392 2003-01-13  Bruno Haible  <bruno@clisp.org>
90393
90394         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
90395         * modules/alloca (Makefile.am): All object files depend on alloca.h.
90396         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
90397
90398 2003-01-13  Bruno Haible  <bruno@clisp.org>
90399
90400         * gnulib-tool (func_create_testdir): Store config/* files in the main
90401         directory.
90402         * config.rpath: Move to ...
90403         * config/config.rpath: ... here.
90404         * modules/gettext: Contains config/config.rpath, not config.rpath.
90405         * modules/iconv: Likewise.
90406
90407 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90408
90409         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90410         to avoid collisions with libcurses and libreadline.
90411
90412         * m4/getstr.m4: Remove.
90413         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
90414
90415 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90416
90417         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90418         to avoid collisions with libcurses and libreadline.
90419
90420         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
90421         * lib/getstr.h, getstr.c: Remove.
90422         * lib/getline.c: Include "getline.h", to check interface.
90423         Move body of old getstr.c here: this defines MIN_CHUNK and
90424         declares getdelim2, which is renamed from getstr.
90425         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
90426
90427         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
90428         All uses changed.
90429         * lib/linebuffer.h: Likewise.
90430         (readline): Remove backward-compatibility macro.
90431
90432 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90433
90434         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90435         to avoid collisions with libcurses and libreadline.
90436         * getstr: Remove.
90437         * MODULES.html.sh: Remove getstr.
90438         * modules/getline: Depend on unlocked-io, not getstr.
90439
90440 2003-01-12  Jim Meyering  <jim@meyering.net>
90441
90442         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
90443
90444 2003-01-10  Bruno Haible  <bruno@clisp.org>
90445
90446         * modules/alloca: Change Makefile.am requirements. Simplify Include
90447         requirements. Add lib/alloca_.h to file list.
90448
90449 2003-01-10  Bruno Haible  <bruno@clisp.org>
90450
90451         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
90452
90453 2003-01-10  Bruno Haible  <bruno@clisp.org>
90454
90455         * lib/alloca_.h: New file.
90456         * lib/getdate.y: Unconditionally include alloca.h.
90457         * lib/makepath.c: Likewise.
90458         * lib/setenv.c: Likewise.
90459         * lib/userspec.c: Likewise.
90460
90461 2003-01-09  Karl Berry  <karl@gnu.org>
90462
90463         * MODULES.html.sh: include `dirname $0` in PATH, to find
90464         gnulib-tool.
90465
90466 2003-01-09  Bruno Haible  <bruno@clisp.org>
90467
90468         * modules/stdbool: Change configure.ac, Makefile.am requirements.
90469         Simplify Include requirements. Add lib/stdbool.h.in to file list.
90470
90471 2003-01-09  Bruno Haible  <bruno@clisp.org>
90472
90473         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
90474
90475 2003-01-09  Bruno Haible  <bruno@clisp.org>
90476
90477         * lib/stdbool.h.in: New file.
90478
90479 2003-01-09  Bruno Haible  <bruno@clisp.org>
90480
90481         * gnulib-tool (func_all_modules): Ignore files ending in ~.
90482         * MODULES.html.sh: Likewise.
90483
90484 2003-01-08  Jim Meyering  <jim@meyering.net>
90485
90486         * lib/full-write.c: Undefine and define-away `const' after inclusion
90487         of errno.h, not before.  Suggestion from Bruno Haible.
90488
90489 2003-01-08  Bruno Haible  <bruno@clisp.org>
90490
90491         * modules/full-read: Depend on full-write.
90492
90493 2003-01-08  Bruno Haible  <bruno@clisp.org>
90494
90495         * lib/safe-read.c: Include specification header first, to ensure its
90496         selfcontainedness.
90497         * lib/full-write.c: Likewise.
90498
90499 2003-01-07  Jim Meyering  <jim@meyering.net>
90500
90501         * lib/full-write.c: Rework so that it may serve to define full_read,
90502         too.
90503         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
90504
90505 2003-01-07  Bruno Haible  <bruno@clisp.org>
90506
90507         * lib/strtoimax.c: Include <stdint.h> as an alternative to
90508         <inttypes.h>.
90509         * lib/xstrtol.h: Likewise.
90510         * lib/xstrtoimax.c: Likewise.
90511         * lib/xstrtoumax.c: Likewise.
90512         * lib/human.h: Likewise.
90513
90514         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
90515         on systems that have <inttypes.h> but not <stdint.h>.
90516
90517 2003-01-07  Bruno Haible  <bruno@clisp.org>
90518
90519         * MODULES.html.sh: Add copyright notice.
90520         (missed_files): Omit CVS directory entries.
90521         (func_module): Make it work with sed-3.02.
90522         * MODULES.txt: Remove file.
90523
90524 2003-01-06  Jim Meyering  <jim@meyering.net>
90525
90526         * lib/version-etc.c: Update year in translatable copyright string.
90527
90528 2003-01-03  Karl Berry  <karl@gnu.org>
90529
90530         * config/config.{guess,sub}: update from prep.
90531
90532 2003-01-02  Karl Berry  <karl@gnu.org>
90533
90534         * doc/COPYING.DOC: belatedly updated to 1.2.
90535
90536 2003-01-01  Karl Berry  <karl@gnu.org>
90537
90538         * gnulib-tool (func_verify_module): report module name $module in
90539         error message, not $1.
90540         * gnulib-tool (create-testdir): don't complain if destdir couldn't
90541         be created, only if it doesn't exist.
90542         * gnulib-tool (last_checkin_date): don't expand the $Date here.
90543
90544 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90545
90546         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
90547
90548 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90549
90550         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
90551         memcmp if strcoll doesn't work.
90552
90553 2002-12-31  Bruno Haible  <bruno@clisp.org>
90554
90555         * lib/utime.c (utime_null): No need to call ftruncate if the file was
90556         nonempty.
90557
90558 2002-12-31  Bruno Haible  <bruno@clisp.org>
90559
90560         * lib/memcoll.c (STRCOLL): New macro.
90561         (memcoll): Use it.
90562
90563 2002-12-31  Bruno Haible  <bruno@clisp.org>
90564
90565         * lib/localcharset.h: New file.
90566         * lib/localcharset.c: Include it.
90567         * lib/unicodeio.c: Likewise.
90568
90569 2002-12-31  Bruno Haible  <bruno@clisp.org>
90570
90571         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
90572         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
90573
90574 2002-12-31  Bruno Haible  <bruno@clisp.org>
90575
90576         * lib/getline.h: Include <stddef.h>, for size_t.
90577
90578         * lib/unicodeio.h: Include <stddef.h>, for size_t.
90579         * lib/unicodeio.c: Don't include <stddef.h>.
90580
90581 2002-12-31  Bruno Haible  <bruno@clisp.org>
90582
90583         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
90584         HAVE_TM_ZONE.
90585
90586 2002-12-24  Karl Berry  <karl@gnu.org>
90587
90588         * config/config.guess: update from prep.
90589
90590 2002-12-24  Bruno Haible  <bruno@clisp.org>
90591
90592         General infrasructure.
90593         * m4/README: Rewritten.
90594         * m4/onceonly.m4: New file.
90595         * m4/onceonly_2_57.m4: New file.
90596
90597         Module atexit.
90598         * m4/atexit.m4: New file.
90599
90600         Module strtod.
90601         * m4/strtod.m4: New file.
90602
90603         Module strtol.
90604         * m4/strtol.m4: New file.
90605
90606         Module strtoul.
90607         * m4/strtoul.m4: New file.
90608
90609         Module memchr.
90610         * m4/memchr.m4: New file.
90611
90612         Module memcmp.
90613         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
90614         (jm_FUNC_MEMCMP): Invoke it.
90615
90616         Module memcpy.
90617         * m4/memcpy.m4: New file.
90618
90619         Module memmove.
90620         * m4/memmove.m4: New file.
90621
90622         Module memset.
90623         * m4/memset.m4: New file.
90624
90625         Module strcspn.
90626         * m4/strcspn.m4: New file.
90627
90628         Module strpbrk.
90629         * m4/strpbrk.m4: New file.
90630
90631         Module strstr.
90632         * m4/strstr.m4: New file.
90633
90634         Module strerror.
90635         * m4/strerror.m4: New file.
90636
90637         Module mktime.
90638         * m4/mktime.m4: Renamed from jm-mktime.m4.
90639         (gl_PREREQ_MKTIME): New macro.
90640         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
90641
90642         Module malloc.
90643         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
90644         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
90645         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
90646
90647         Module realloc.
90648         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
90649         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
90650         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
90651
90652         Module strftime.
90653         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
90654         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
90655         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
90656         gl_TM_GMTOFF.
90657         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
90658
90659         Module xalloc.
90660         * m4/xalloc.m4: New file.
90661
90662         Module alloca.
90663         * m4/alloca.m4: New file.
90664
90665         Module putenv.
90666         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
90667         (jm_FUNC_PUTENV): Invoke it.
90668
90669         Module setenv.
90670         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
90671         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
90672         when invoked twice.
90673         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
90674         gt_FUNC_SETENV.
90675
90676         Module memrchr.
90677         * m4/memrchr.m4: New file.
90678
90679         Module stpcpy.
90680         * m4/stpcpy.m4: New file.
90681
90682         Module strcase.
90683         * m4/strcase.m4: New file.
90684
90685         Module strdup.
90686         * m4/strdup.m4: New file.
90687
90688         Module strnlen.
90689         * m4/strnlen.m4: New file.
90690
90691         Module strndup.
90692         * m4/strndup.m4: New file.
90693
90694         Module xstrtod.
90695         * m4/xstrtod.m4: New file.
90696
90697         Module xstrtol.
90698         * m4/xstrtol.m4: New file.
90699
90700         Module getdate.
90701         * m4/getdate.m4: New file.
90702
90703         Module unlocked-io.
90704         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
90705         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
90706         * m4/jm-glibc-io.m4n: Remove file.
90707
90708         Module long-options.
90709         * m4/long-options.m4: New file.
90710
90711         Module md5.
90712         * m4/md5.m4: New file.
90713
90714         Module sha.
90715         * m4/sha.m4: New file.
90716
90717         Module getstr.
90718         * m4/getstr.m4: New file.
90719
90720         Module getline.
90721         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
90722         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
90723         <sys/types.h>, for size_t. Use the function name gnu_getline, not
90724         simply getline. Infoke gl_PREREQ_GETLINE.
90725
90726         Module obstack.
90727         * m4/obstack.m4: New file.
90728
90729         Module hash.
90730         * m4/hash.m4: New file.
90731
90732         Module readtokens.
90733         * m4/readtokens.m4: New file.
90734
90735         Module strverscmp.
90736         * m4/strverscmp.m4: New file.
90737
90738         Module stdbool.
90739         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
90740         OSF/1.
90741
90742         Module strtoll.
90743         * m4/strtoll.m4: New file.
90744
90745         Module strtoull.
90746         * m4/strtoull.m4: New file.
90747
90748         Module strtoimax.
90749         * m4/strtoimax.m4: New file.
90750
90751         Module strtoumax.
90752         * m4/strtoumax.m4: New file.
90753
90754         Module xstrtoimax.
90755         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
90756         jm_AC_PREREQ_XSTRTOIMAX.
90757         Moved the strtol prerequisites to strtol.m4.
90758         Moved the strtoll prerequisites to strtoll.m4.
90759         Moved the strtoimax prerequisites to strtoimax.m4.
90760
90761         Module xstrtoumax.
90762         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
90763         jm_AC_PREREQ_XSTRTOUMAX.
90764         Moved the strtoul prerequisites to strtoul.m4.
90765         Moved the strtoull prerequisites to strtoull.m4.
90766         Moved the strtoumax prerequisites to strtoumax.m4.
90767
90768         Module chown.
90769         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
90770         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
90771
90772         Module dup2.
90773         * m4/dup2.m4: New file.
90774
90775         Module ftruncate.
90776         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
90777         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
90778
90779         Module getgroups.
90780         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
90781         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
90782
90783         Module gettimeofday.
90784         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
90785         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
90786         gl_PREREQ_GETTIMEOFDAY.
90787
90788         Module mkdir.
90789         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
90790         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
90791
90792         Module mkstemp.
90793         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
90794         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
90795         jm_AC_TYPE_UINTMAX_T.
90796         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
90797
90798         Module stat.
90799         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
90800         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
90801
90802         Module lstat.
90803         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
90804         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
90805
90806         Module timespec.
90807         * m4/timespec.m4 (gl_TIMESPEC): New macro.
90808         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
90809         * m4/st_mtim.m4: Indentation.
90810
90811         Module nanosleep.
90812         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
90813         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
90814         gl_PREREQ_NANOSLEEP.
90815
90816         Module regex.
90817         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
90818         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
90819         (gl_REGEX): New macro.
90820
90821         Module rename.
90822         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
90823         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
90824
90825         Module rmdir.
90826         * m4/rmdir.m4: New file.
90827
90828         Module utime.
90829         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
90830         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
90831         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
90832
90833         Module dirname.
90834         * m4/dirname.m4: New file.
90835
90836         Module getopt.
90837         * m4/getopt.m4: New file.
90838
90839         Module unistd-safer.
90840         * m4/unistd-safer.m4: New file.
90841
90842         Module fnmatch.
90843         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
90844         declaration.
90845         (gl_PREREQ_FNMATCH_EXTRA): New macro.
90846         (gl_FUNC_FNMATCH_POSIX): New macro.
90847         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
90848         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
90849         simply fnmatch.
90850
90851         Module exclude.
90852         * m4/exclude.m4: New file.
90853
90854         Module human.
90855         * m4/human.m4: New file.
90856
90857         Module acl.
90858         * m4/acl.m4: Nop.
90859
90860         Module backupfile.
90861         * m4/backupfile.m4: New file.
90862         * m4/d-ino.m4: Indentation.
90863
90864         Module fsusage.
90865         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
90866         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
90867         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
90868
90869         Module dirfd.
90870         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
90871         requirements.
90872
90873         Module euidaccess.
90874         * m4/euidaccess.m4: New file.
90875
90876         Module file-type.
90877         * m4/file-type.m4: New file.
90878
90879         Module fileblocks.
90880         * m4/fileblocks.m4: New file.
90881
90882         Module filemode.
90883         * m4/filemode.m4: New file.
90884
90885         Module isdir.
90886         * m4/isdir.m4: New file.
90887
90888         Module lchown.
90889         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
90890         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
90891
90892         Module makepath.
90893         * m4/makepath.m4: New file.
90894
90895         Module modechange.
90896         * m4/modechange.m4: New file.
90897
90898         Module mountlist.
90899         * m4/mountlist.m4: New file.
90900         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
90901         Indentation.
90902
90903         Module path-concat.
90904         * m4/path-concat.m4: New file.
90905
90906         Module pathmax.
90907         * m4/pathmax.m4: New file.
90908
90909         Module same.
90910         * m4/same.m4: New file.
90911
90912         Module save-cwd.
90913         * m4/save-cwd.m4: New file.
90914
90915         Module savedir.
90916         * m4/savedir.m4: New file.
90917
90918         Module xgetcwd.
90919         * m4/xgetcwd.m4: New file.
90920         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
90921
90922         Module xreadlink.
90923         * m4/xreadlink.m4: New file.
90924
90925         Module safe-read.
90926         * m4/safe-read.m4: New file.
90927
90928         Module safe-write.
90929         * m4/safe-write.m4: New file.
90930
90931         Module closeout.
90932         * m4/closeout.m4: New file.
90933
90934         Module stdio-safer.
90935         * m4/stdio-safer.m4: New file.
90936
90937         Module getpass.
90938         * m4/getpass.m4: New file.
90939
90940         Module getugroups.
90941         * m4/getugroups.m4: New file.
90942
90943         Module group-member.
90944         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
90945         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
90946
90947         Module idcache.
90948         * m4/idcache.m4: New file.
90949
90950         Module userspec.
90951         * m4/userspec.m4: New file.
90952
90953         Module gettime.
90954         * m4/clock_time.m4: New file.
90955         * m4/gettime.m4: New file.
90956
90957         Module settime.
90958         * m4/settime.m4: New file.
90959
90960         Module posixtm.
90961         * m4/posixtm.m4: New file.
90962
90963         Module gethostname.
90964         * m4/gethostname.m4: New file.
90965
90966         Module canon-host.
90967         * m4/canon-host.m4: New file.
90968
90969         Module gettext.
90970         * m4/codeset.m4: New file, from gettext-0.11.5.
90971         * m4/gettext.m4: New file, from gettext-0.11.5.
90972         * m4/glibc21.m4: New file, from gettext-0.11.5.
90973         * m4/iconv.m4: New file, from gettext-0.11.5.
90974         * m4/intdiv0.m4: New file, from gettext-0.11.5.
90975         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
90976         * m4/inttypes.m4: New file, from gettext-0.11.5.
90977         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
90978         * m4/isc-posix.m4: New file, from gettext-0.11.5.
90979         * m4/lcmessage.m4: New file, from gettext-0.11.5.
90980         * m4/lib-ld.m4: New file, from gettext-0.11.5.
90981         * m4/lib-link.m4: New file, from gettext-0.11.5.
90982         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
90983         * m4/progtest.m4: New file, from gettext-0.11.5.
90984         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
90985         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
90986         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
90987
90988         Module localcharset.
90989         * m4/localcharset.m4: New file.
90990
90991         Module hard-locale.
90992         * m4/hard-locale.m4: New file.
90993
90994         Module mbswidth.
90995         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
90996         onceonly macros.
90997         * m4/mbrtowc.m4: Add comment.
90998
90999         Module memcasecmp.
91000         * m4/memcasecmp.m4: New file.
91001
91002         Module memcoll.
91003         * m4/memcoll.m4: New file.
91004
91005         Module unicodeio.
91006         * m4/unicodeio.m4: New file.
91007
91008         Module rpmatch.
91009         * m4/rpmatch.m4: New file.
91010
91011         Module yesno.
91012         * m4/yesno.m4: New file.
91013
91014         Module exitfail.
91015         * m4/exitfail.m4: New file.
91016
91017         Module c-stack.
91018         * m4/c-stack.m4 (gl_C_STACK): New macro.
91019         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
91020
91021         Module error.
91022         * m4/error.m4 (gl_ERROR): New macro.
91023         (jm_PREREQ_ERROR): Use onceonly macros.
91024
91025         Module fatal.
91026         * m4/fatal.m4: New file.
91027
91028         Module getloadavg.
91029         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
91030         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
91031
91032         Module getpagesize.
91033         * m4/getpagesize.m4: New file.
91034
91035         Module getusershell.
91036         * m4/getusershell.m4: New file.
91037
91038         Module physmem.
91039         * m4/physmem.m4: New file.
91040
91041         Module posixver.
91042         * m4/posixver.m4: New file.
91043
91044         Module quotearg.
91045         * m4/quotearg.m4: New file.
91046
91047         Module quote.
91048         * m4/quote.m4: New file.
91049
91050         Module readutmp.
91051         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
91052
91053         Module sig2str.
91054         * m4/sig2str.m4: New file.
91055
91056         Other.
91057         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
91058         ulonglong.m4.
91059         * m4/intmax_t.m4: New file.
91060         * m4/d-type.m4: Indentation.
91061         * m4/jm-macros.m4: Update.
91062         * m4/prereq.m4 (jm_PREREQ): Update.
91063         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
91064         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
91065         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
91066         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
91067         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
91068         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
91069         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
91070         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
91071         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
91072         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
91073         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
91074         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
91075         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
91076         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
91077         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
91078         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
91079         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
91080         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
91081         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
91082
91083 2002-12-24  Bruno Haible  <bruno@clisp.org>
91084
91085         * MODULES.txt: Update according to m4/ changes.
91086
91087         Module gettext.
91088         * config.rpath: New file, from gettext-0.11.5.
91089
91090         * modules/*: New module descriptions.
91091         * gnulib-tool: New file.
91092         * MODULES.html.sh: New file.
91093
91094 2002-12-21  Karl Berry  <karl@gnu.org>
91095
91096         * doc/fdl.texi: update to version 1.2.
91097
91098 2002-12-19  Karl Berry  <karl@gnu.org>
91099
91100         * config/config.guess: update from prep.
91101
91102 2002-12-18  Bruno Haible  <bruno@clisp.org>
91103
91104         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
91105         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
91106
91107 2002-12-17  Bruno Haible  <bruno@clisp.org>
91108
91109         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
91110         stdlib.h, string.h.
91111
91112 2002-12-17  Bruno Haible  <bruno@clisp.org>
91113
91114         * lib/canon-host.c (strdup): Remove unused declaration.
91115
91116         * lib/fsusage.c: Include full_read.h.
91117         (get_fs_usage): Use full_read instead of safe_read.
91118
91119         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
91120
91121 2002-12-12  Karl Berry  <karl@gnu.org>
91122
91123         * config/config.guess: update from prep.
91124
91125 2002-12-11  Bruno Haible  <bruno@clisp.org>
91126
91127         * m4/setenv.m4: New file, from gettext-0.11.5.
91128
91129 2002-12-11  Bruno Haible  <bruno@clisp.org>
91130
91131         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
91132         not unsetenv().
91133         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
91134         modifications:
91135
91136         2002-12-11  Bruno Haible  <bruno@clisp.org>
91137
91138                 * setenv.c (alloca): Fall back to malloc.
91139                 (freea): New macro.
91140                 (setenv): Use freea() to free memory allocated with alloca().
91141
91142         2002-11-13  Bruno Haible  <bruno@clisp.org>
91143
91144                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
91145                 function declarations.
91146                 * unsetenv.c (unsetenv): Likewise.
91147
91148         2002-03-04  Bruno Haible  <bruno@clisp.org>
91149
91150                 Portability to AIX 4.3.3.
91151                 * unsetenv.c: New file, extracted from setenv.c.
91152                 * setenv.c: Move the unsetenv() function to unsetenv.c.
91153
91154         2001-12-20  Bruno Haible  <bruno@clisp.org>
91155
91156                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
91157                 use malloc instead. For SunOS 4.
91158
91159         2001-12-11  Bruno Haible  <bruno@clisp.org>
91160
91161                 * setenv.c: Declare alloca.
91162                 (compar_fn_t): New typedef.
91163                 (KNOWN_VALUE, STORE_VALUE): Use it.
91164
91165         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
91166         setenv.h.
91167
91168 2002-12-10  Paul Eggert  <eggert@twinsun.com>
91169
91170         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
91171         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
91172         Choose values that are less likely to collide with system fnmatch
91173         options.
91174         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
91175         defined (e.g., a pure POSIX system).
91176         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
91177         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
91178
91179 2002-12-06  Paul Eggert  <eggert@twinsun.com>
91180
91181         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
91182         a pain in practice to deal with generated m4 files.  This change
91183         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
91184
91185         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
91186         and jm-glibc-io.m4, as they are no longer a special case.
91187         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
91188         kludge and the auto-generation stuff.  Check only whether the
91189         functions are declared, not whether they exist, since older hosts
91190         that don't declare the functions can't use the optimization anyway.
91191
91192 2002-12-06  Jim Meyering  <jim@meyering.net>
91193
91194         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
91195
91196         Merge in changes from libc's misc/error.c, in preparation
91197         for the merge of gnulib's changes back into libc.
91198
91199         * lib/error.c (_): Define only if not already defined.
91200         Move definition to follow all #include directives.
91201         Include unlocked-io.h only if !_LIBC.
91202         [_LIBC]: Include <libio/libioP.h>.
91203         [USE_IN_LIBIO]: Include <libio/iolibio.h>
91204         (fflush): Tweak definition to use INTUSE.
91205         (putc): Define.
91206
91207 2002-12-05  Paul Eggert  <eggert@twinsun.com>
91208
91209         * lib/alloca.c [defined emacs]: Include "lisp.h".
91210         (xalloc_die) [defined emacs]: New macro.
91211         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
91212         [! defined emacs]: Include <xalloc.h>.
91213         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
91214         (pointer): Typedef to POINTER_TYPE *.
91215         (malloc): Remove decl; we now always use xmalloc.
91216         (alloca): Use old-style definition, since Emacs needs this.
91217         Check for arithmetic overflow when computing combined size.
91218
91219 2002-12-04  Paul Eggert  <eggert@twinsun.com>
91220
91221         Do not generate unlocked-io.h automatically, since it's easier to
91222         maintain it by hand.
91223
91224         * lib/unlocked-io.h: New file, from GNU diffutils,
91225         but with proper copyright notice and attribution.
91226         * lib/gen-uio: Remove.
91227         * lib/Makefile.am: Add copyright notice.
91228         (libfetish_a_SOURCES): Add unlocked-io.h.
91229         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
91230         (DISTCLEANFILES, io_functions): Remove macros.
91231         (EXTRA_DIST): Remove gen_uio.
91232         (unlocked-io.h): Remove rule.
91233
91234 2002-12-04  Jim Meyering  <jim@meyering.net>
91235
91236         Reflect the fact that stat.c and lstat.c are no longer generated.
91237         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
91238         (DISTCLEANFILES): Likewise.
91239         (EXTRA_DIST): Likewise.
91240         (all_local): Don't depend on stat.c or lstat.c.
91241         (stat.c, lstat.c): Remove rules.
91242         (EXTRA_DIST): Remove xstat.in.
91243
91244         * lib/xstat.in: Remove file.  Contents moved into stat.c.
91245         * lib/stat.c: New file.  Contents mostly from xstat.in.
91246         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
91247         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
91248
91249         * lib/safe-read.c: Rework so that it may serve to define safe_write,
91250         too.
91251         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
91252
91253 2002-12-03  Jim Meyering  <jim@meyering.net>
91254
91255         * lib/safe-read.c, safe-write.c: Change variable names and comments,
91256         but not semantics, to minimize the differences between these two files.
91257         (safe_read): Change comment to mention SAFE_READ_ERROR.
91258
91259         * lib/safe-read.c (IS_EINTR): Define.
91260         (safe_read): Use IS_EINTR in place of in-function cpp directives.
91261
91262 2002-12-02  Jim Meyering  <jim@meyering.net>
91263
91264         * lib/safe-read.c (EINTR): Define.
91265         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
91266         (INT_MAX): Provide fallback.
91267         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
91268
91269         * lib/safe-read.h (SAFE_READ_ERROR): Define.
91270
91271 2002-12-02  Bruno Haible  <bruno@clisp.org>
91272
91273         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
91274         Define, taken from safe-read.c.
91275         (INT_MAX): Provide fallback.
91276         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
91277         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
91278
91279         * lib/safe-read.c (EINTR): Remove definition.
91280         (safe_read): Don't use EINTR if it is absent.
91281
91282 2002-12-01  Jim Meyering  <jim@meyering.net>
91283
91284         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
91285         zero.
91286         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
91287
91288 2002-11-27  Paul Eggert  <eggert@twinsun.com>
91289
91290         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
91291         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
91292         with `if (! (value < limit)) abort ();', for readability.
91293
91294 2002-11-26  Karl Berry  <karl@gnu.org>
91295
91296         * lib/strdup.c: copy from libc again, with jim's ok.
91297         * lib/.cppi-disable: re-add strdup.c
91298
91299 2002-11-25  Karl Berry  <karl@gnu.org>
91300
91301         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
91302         instead of "strtol.c".
91303
91304 2002-11-25  Karl Berry  <karl@gnu.org>
91305
91306         * config/install-sh: update from automake for variable quoting, $0 in
91307         error msgs, etc.
91308
91309         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
91310         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
91311         entry.
91312
91313 2002-11-25  Jim Meyering  <jim@meyering.net>
91314
91315         * lib/mktime.c: Sync from libc, now that it has the latest fix.
91316
91317 2002-11-24  Karl Berry  <karl@gnu.org>
91318
91319         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
91320         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
91321
91322 2002-11-24  Jim Meyering  <jim@meyering.net>
91323
91324         Update from coreutils:
91325
91326         * lib/mktime.c: Merge in changes from libc.
91327
91328         Avoid a link-time failure on some Linux systems.
91329         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
91330         (otherwise).
91331         (__mon_yday): Declare with the STATIC attribute.
91332         (__mktime_internal): Likewise.
91333         Based on a report from Greg Schafer.
91334
91335 2002-11-23  Jim Meyering  <jim@meyering.net>
91336
91337         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
91338         Use `unsigned', not `int', as type of index.
91339
91340         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
91341
91342         * lib/fsusage.c: Remove unneeded parentheses around operands of
91343         `defined'.
91344
91345 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91346
91347         * lib/quotearg.h: Allow multiple inclusion by surrounding with
91348         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
91349         so that we can be included first.
91350         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
91351         * lib/quotearg.c: Include quotearg.h immediately after config.h.
91352         No need to include stddef.h or sys/types.h any more.
91353         Surround local include files with "", not "<>".
91354         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
91355         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
91356         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
91357         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
91358         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
91359         (ISPRINT): Remove; no longer needed now that we assume C89.
91360
91361         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
91362         Preserve errno.
91363
91364         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
91365         quotearg_char): Use SIZE_MAX rather than
91366         (size_t) -1 when we are talking about "infinity".
91367
91368         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
91369
91370 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91371
91372         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
91373         hint that one should use `if (! x) abort ();' rather than `assert
91374         (x);', and anyway it's one less thing to worry about configuring.
91375         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
91376         hash_rehash, hash_insert): Use abort rather than assert.
91377
91378 2002-11-22  Bruno Haible  <bruno@clisp.org>
91379
91380         * lib/safe-read.h: Assume C89. Add comments.
91381         (safe_read): Change return type to size_t.
91382         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
91383         byte counts > SSIZE_MAX correctly.
91384         * lib/safe-write.h: New file.
91385         * lib/safe-write.c: New file.
91386         * lib/full-read.h: New file.
91387         * lib/full-read.c: New file.
91388         * lib/full-write.h: Assume C89. Add comments.
91389         * lib/full-write.c: Include safe-write.h.
91390         (full_write): Rewritten to use safe_write.
91391         Suggested by Jim Meyering and Paul Eggert.
91392
91393 2002-11-21  Jim Meyering  <jim@meyering.net>
91394
91395         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
91396
91397         Merge in changes from the coreutils.
91398
91399         2002-09-25  Paul Eggert  <eggert@twinsun.com>
91400         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
91401         <stdint.h>.
91402         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
91403         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
91404         int.  Work more efficiently if X is the same width as uintmax_t.
91405         Do not compare X to -1, to avoid bogus compiler warning.
91406         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
91407         Don't assume that f_frsize and f_bsize are the same type.
91408
91409         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
91410         warning on FreeBSD.
91411
91412         * lib/makepath.c (make_path): Restore umask *before* creating the final
91413         component.
91414         (make_path): Minor reformatting.
91415
91416         * lib/xmalloc.c: Adjust to work with new autoconf macros,
91417         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
91418         HAVE_MALLOC/HAVE_REALLOC.
91419
91420         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
91421         dummy ones.  At least on GNU/Linux systems, `auto' means something
91422         else.
91423         From Michael Stone.
91424
91425 2002-11-21  Bruno Haible  <bruno@clisp.org>
91426
91427         Remove case insensitive option matching.
91428         * lib/argmatch.h (argcasematch): Remove declaration.
91429         (ARGCASEMATCH): Remove macro.
91430         (__xargmatch_internal): Remove case_sensitive argument.
91431         (XARGMATCH): Update.
91432         (XARGCASEMATCH): Remove macro.
91433         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
91434         case_sensitive argument.
91435         (argcasematch): Remove function.
91436         (__xargmatch_internal): Remove case_sensitive argument.
91437         (main): Use XARGMATCH instead of XARGCASEMATCH.
91438
91439         * lib/xmalloc.c: Change compile-time error message. Add comment about
91440         required autoconf version.
91441
91442 2002-11-20  Paul Eggert  <eggert@twinsun.com>
91443
91444         Merge argmatch cleanups from Bison.  Assume C89.
91445
91446         * lib/argmatch.c: Include config.h here, not in argmatch.h.
91447         Include stdlib.h, for EXIT_FAILURE.
91448         Always include <string.h>, since we assume C89.
91449         (EXIT_FAILURE): Remove pre-C89 bug workaround.
91450         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
91451         Include <stddef.h> instead, since it's all we need for size_t.
91452         (PARAMS): Remove.  All uses removed.
91453         (ARRAY_CARDINALITY): Do not bother to #undef.
91454         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
91455         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91456         Remove unnecessary parentheses.
91457         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91458         Insert necessary parentheses.
91459         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
91460         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
91461
91462 2002-11-19  Bruno Haible  <bruno@clisp.org>
91463
91464         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
91465         * lib/mbswidth.h: Include <stddef.h>, for size_t.
91466
91467         * lib/mbswidth.h (PARAMS): Remove macro.
91468         (mbswidth, mbsnwidth): Use ANSI C function declarations.
91469         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
91470
91471         * lib/gcd.h (PARAMS): Remove macro.
91472         (gcd): Use ANSI C function declarations.
91473         * lib/gcd.c (gcd): Likewise.
91474
91475 2002-11-15  Bruno Haible  <bruno@clisp.org>
91476
91477         * lib/strcspn.c: Include <stddef.h>.
91478         (strcspn): Use ANSI C function declaration. Change return type to
91479         size_t. Use NULL.
91480         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
91481         (strpbrk): Use NULL.
91482         * lib/strpbrk.h (PARAMS): Remove macro.
91483         (strpbrk): Use ANSI C function declaration.
91484         * lib/strstr.c: Don't include <sys/types.h>.
91485         * lib/strstr.h (PARAMS): Remove macro.
91486         (strstr): Use ANSI C function declarations.
91487
91488 2002-11-14  Karl Berry  <karl@gnu.org>
91489
91490         * config/mkinstalldirs: `do' on separate line, instead of
91491         `for var; do'.
91492
91493 2002-11-06  Bruno Haible  <bruno@clisp.org>
91494
91495         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
91496         * lib/gcd.c (gcd): Likewise.
91497
91498 2002-11-05  Bruno Haible  <bruno@clisp.org>
91499
91500         * lib/gcd.h: New file, from gettext-0.11.5.
91501         * lib/gcd.c: New file, from gettext-0.11.5.
91502
91503 2002-11-05  Bruno Haible  <bruno@clisp.org>
91504
91505         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91506         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91507         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91508         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91509
91510         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
91511         <libintl.h>.
91512         * lib/makepath.c: Include gettext.h instead of <locale.h> and
91513         <libintl.h>.
91514
91515         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
91516         * lib/human.c: Include gettext.h instead of <libintl.h>.
91517         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
91518         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
91519         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
91520         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
91521         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
91522         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
91523         (textdomain): Remove definition.
91524         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
91525
91526         * lib/long-options.c: Remove include of <libintl.h> and definition of
91527         _.
91528         * lib/same.c: Remove include of <libintl.h> and definition of _.
91529
91530 2002-11-04  Owen Taylor  <otaylor@redhat.com>
91531
91532         * lib/config.charset: A few additions for Solaris.
91533
91534 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91535
91536         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
91537         * lib/localcharset.c (locale_charset): Declare as extern "C".
91538
91539 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91540
91541         * lib/config.charset: msdos in uk_UA uses CP1125.
91542
91543 2002-11-04  Bruno Haible  <bruno@clisp.org>
91544
91545         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
91546         * lib/strcase.h: New file, from GNU gettext-0.11.5.
91547         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
91548         * lib/strstr.h: New file, from GNU gettext-0.11.5.
91549         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
91550
91551 2002-11-04  Bruno Haible  <bruno@clisp.org>
91552
91553         * lib/localcharset.c (locale_charset): Don't return an empty string.
91554
91555 2002-11-04  Bruno Haible  <bruno@clisp.org>
91556
91557         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
91558         aliases.
91559
91560 2002-11-04  Bruno Haible  <bruno@clisp.org>
91561
91562         * lib/config.charset: Update for newest glibc. Add canonical names
91563         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
91564
91565 2002-11-04  Bruno Haible  <bruno@clisp.org>
91566
91567         * lib/config.charset: Add support for NetBSD.
91568
91569 2002-11-04  Bruno Haible  <bruno@clisp.org>
91570
91571         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
91572
91573 2002-11-01  Bruno Haible  <bruno@clisp.org>
91574
91575         * configure.in: Add AC_CONFIG_AUX_DIR call.
91576         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
91577         test/Makefile.
91578         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
91579
91580 2002-09-28  Karl Berry  <karl@gnu.org>
91581
91582         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
91583         installed automake until the next release, since changes have been
91584         made.
91585
91586 2002-09-25  Karl Berry  <karl@gnu.org>
91587
91588         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
91589         * lib/getopt*: copy from libc/posix.
91590         * lib/gettext.h: copy from gettext.
91591         * lib/.cppi-disable: add strdup.c, gettext.h.
91592
91593 2002-09-25  Karl Berry  <karl@gnu.org>
91594
91595         * config/srclist.txt: enable gettext.h check.
91596         * config/config.{guess,sub}: update from prep.
91597         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
91598                 from automake 1.6.3.
91599         See srclist*.
91600
91601 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
91602
91603         * regex.c (PATFETCH): Remove the translating fetch.
91604         (PATFETCH_RAW): Rename to PATFETCH.
91605         (set_image_of_range): New fun.
91606         (SET_RANGE_TABLE_WORK_AREA): Use it.
91607         (regex_compile): Don't translate the pattern chars so eagerly.
91608         Only do it when inserting an `exactn' bytecode or when handling
91609         a char-range.
91610         (mutually_exclusive_p): Avoid empty statement.
91611
91612 2002-07-06  Jim Meyering  <meyering@lucent.com>
91613
91614         * m4/README: Don't mention Makefile.am.in.
91615         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
91616
91617 2002-07-01  Jim Meyering  <meyering@lucent.com>
91618
91619         * lib/c-stack.c: Include sys/time.h.
91620         From Volker Borchert.
91621
91622 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91623
91624         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
91625
91626 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91627
91628         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
91629         New macro.  Use it uniformly instead of
91630         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
91631         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
91632         reported by Vin Shelton.
91633
91634 2002-06-22  Paul Eggert  <eggert@twinsun.com>
91635
91636         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
91637         Do not assume SA_SIGINFO behavior.
91638         Bug reported by Jim Meyering on NetBSD 1.5.2.
91639
91640 2002-06-22  Jim Meyering  <meyering@lucent.com>
91641
91642         * m4/c-stack.m4: New file, from diffutils-2.8.2.
91643         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
91644
91645         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
91646         now that configure.ac uses AC_GNU_SOURCE.
91647         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
91648         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
91649
91650         Update to latest tools.  Suggestions from Paul Eggert.
91651         * m4/stdbool.m4: New file, from diffutils-2.8.2.
91652         * m4/gnu-source.m4: Update from diffutils-2.8.2.
91653         * m4/fnmatch.m4: Likewise.
91654         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
91655         to AC_HEADER_STDBOOL
91656
91657 2002-06-22  Jim Meyering  <meyering@lucent.com>
91658
91659         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
91660         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
91661
91662 2002-06-22  Jim Meyering  <meyering@lucent.com>
91663
91664         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
91665
91666         * lib/exitfail.c, exitfail.h: Likewise.
91667         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
91668
91669         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
91670         of fnmatch.h.
91671         (EXTRA_DIST): Add fnmatch_loop.c.
91672         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
91673
91674         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
91675         * lib/fnmatch.c: Update from diffutils-2.8.2.
91676         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
91677         * lib/fnmatch.h: Remove file.
91678
91679 2002-06-21  Jim Meyering  <meyering@lucent.com>
91680
91681         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
91682         * m4/mbrtowc.m4: Likewise.
91683
91684         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
91685         * m4/mbswidth.m4: Reflect name change:
91686         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
91687         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
91688
91689         * m4/lib-link.m4: Update from gettext-0.11.2.
91690         * m4/gettext.m4: Likewise.
91691
91692         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
91693         From Alfred M. Szmidt.
91694
91695 2002-06-18  Paul Eggert  <eggert@twinsun.com>
91696
91697         * lib/file-type.h: Report an error if neither S_ISREG nor
91698         S_IFREG is defined, instead of using a test specific to glibc
91699         2.2.  This should be safe, since POSIX requires S_ISREG and
91700         Unix Version 7 had S_IFREG.  We don't need to check for
91701         <sys/types.h> since we don't use any symbols that it defines.
91702
91703 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
91704
91705         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
91706         $@-t, so that each temporary file name is unique and valid in the first
91707         8 characters, for operation under DOS.
91708
91709 2002-06-15  Paul Eggert  <eggert@twinsun.com>
91710
91711         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
91712
91713 2002-06-15  Jim Meyering  <meyering@lucent.com>
91714
91715         Work even with DJGPP 2.03, which lacks support for symlinks.
91716         From Richard Dawe.
91717         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
91718         is defined.
91719         * lib/lchown.c (S_ISLNK): Likewise.
91720
91721 2002-06-15  Jim Meyering  <meyering@lucent.com>
91722
91723         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
91724         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
91725         have been included before this file.
91726
91727 2002-06-14  Jim Meyering  <meyering@lucent.com>
91728
91729         * lib/file-type.h: Use the version from diffutils-2.8.2.
91730         * lib/file-type.c: Likewise.
91731
91732 2002-06-07  Jim Meyering  <meyering@lucent.com>
91733
91734         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
91735         They're needed at least for NetBSD 1.5.2.
91736         ($statxfs_includes): Include those same headers.
91737         ($statxfs_includes): Include sys/vfs.h if available.
91738         ($statxfs_includes): Likewise for sys/statvfs.h.
91739         Check for the following members in both structs statfs and statvfs:
91740         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
91741
91742 2002-06-01  Jim Meyering  <meyering@lucent.com>
91743
91744         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
91745         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
91746
91747 2002-05-28  Jim Meyering  <meyering@lucent.com>
91748
91749         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
91750         Reported by Volker Borchert.
91751
91752 2002-05-27  Jim Meyering  <meyering@lucent.com>
91753
91754         Fix a problem seen only on nonconforming systems whereby ls.c's
91755         use of localtime, and then of gettimeofday would cause trouble:
91756         the localtime call used to initialize rpl_gettimeofday's save
91757         mechanism would clobber ls's current local time information so
91758         that in any long listing the first file would always be listed
91759         with date 1970-01-01.  Analysis by Volker Borchert.
91760
91761         * lib/gettimeofday.c (localtime): Undefine.
91762         (rpl_localtime): New function.
91763
91764 2002-05-27  Jim Meyering  <meyering@lucent.com>
91765
91766         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
91767         localtime.
91768
91769         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
91770         use the replacement function; it wouldn't resolve at link time.
91771         Reported by Volker Borchert.
91772
91773 2002-05-22  Jim Meyering  <meyering@lucent.com>
91774
91775         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
91776         file-type.h.
91777         * lib/file-type.h: New file.
91778         * lib/file-type.c (file_type): New file/function.  Extracted from
91779         diffutils.
91780
91781 2002-04-30  Jim Meyering  <meyering@lucent.com>
91782
91783         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
91784
91785 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91786
91787         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
91788
91789 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91790
91791         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
91792         Do not check for alloca.h (no longer used) or stdbool.h (was never
91793         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
91794
91795 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91796
91797         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
91798
91799 2002-04-29  Jim Meyering  <meyering@lucent.com>
91800
91801         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
91802         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
91803         Use AC_FUNC_STRNLEN here instead.
91804
91805         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
91806         With autoconf-2.53a, it's part of AC_PROG_CC.
91807
91808 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91809
91810         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
91811         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
91812
91813 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91814
91815         * lib/sig2str.h, lib/sig2str.c: New files.
91816         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
91817
91818 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91819
91820         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
91821         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
91822         of 127, since 64 is the largest conceivable number for ancient
91823         nonstandard hosts.
91824         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
91825
91826 2002-04-28  Jim Meyering  <meyering@lucent.com>
91827
91828         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
91829
91830 2002-04-24  Jim Meyering  <meyering@lucent.com>
91831
91832         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
91833         (jm_PREREQ): Use it.
91834
91835         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
91836         mach/mach.h fcntl.h.
91837         Check for this function: setlocale.
91838
91839 2002-04-24  Jim Meyering  <meyering@lucent.com>
91840
91841         * lib/gettext.h: New file, from Gettext.
91842         * lib/Makefile.am (INCLUDES): Remove -I../intl.
91843         (libfetish_a_SOURCES): Add gettext.h.
91844
91845 2002-04-16  Jim Meyering  <meyering@lucent.com>
91846
91847         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
91848         ut_pid, ut_id, ut_exit.
91849
91850 2002-04-16  Jim Meyering  <meyering@lucent.com>
91851
91852         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
91853         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
91854         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
91855
91856 2002-04-12  Jim Meyering  <meyering@lucent.com>
91857
91858         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
91859         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
91860         existence of the getmntinfo function.  Needed for Darwin 5.3.
91861
91862         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
91863         This is necessary at least on Darwin 5.3.
91864
91865         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
91866         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
91867         strnlen.o in the library, and that makes some versions of ranlib
91868         object.
91869
91870 2002-04-12  Jim Meyering  <meyering@lucent.com>
91871
91872         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
91873
91874 2002-04-09  Jim Meyering  <meyering@lucent.com>
91875
91876         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
91877         to be more precise.  Rather than saying we're checking whether the
91878         function `works', say what we're testing.
91879         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
91880         Reported by Bruno Haible.
91881
91882 2002-03-10  Jim Meyering  <meyering@lucent.com>
91883
91884         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
91885         Suggestion from Santiago Vila.
91886
91887 2002-03-08  Jim Meyering  <meyering@lucent.com>
91888
91889         * lib/rename.c: Mention that this wrapper is needed also on
91890         mips-dec-ultrix4.4 systems.
91891
91892 2002-03-02  Jim Meyering  <meyering@lucent.com>
91893
91894         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
91895         not HAVE_CLOCK_SETTIME.
91896
91897 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91898
91899         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
91900         Check for clock_settime.
91901
91902 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91903
91904         * lib/nanosleep.h: Rename to....
91905         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
91906
91907         * lib/gettime.c: New file.
91908         * lib/settime.c: New file.
91909         * lib/stime.c: Remove.
91910
91911         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
91912         timespec.h.  Remove nanosleep.h.
91913
91914 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91915
91916         * m4/acl.m4: New file.
91917         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
91918         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
91919
91920 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91921
91922         * lib/acl.c, lib/acl.h: New files.
91923         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
91924
91925 2002-02-24  Jim Meyering  <meyering@lucent.com>
91926
91927         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
91928         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
91929         cause trouble.  Reported by Nelson Beebe.
91930
91931 2002-02-23  Paul Eggert  <eggert@twinsun.com>
91932
91933         * lib/path-concat.c (xpath_concat): Reorder code to pacify
91934         compilers that don't know that xalloc_die never returns.
91935
91936 2002-02-20  Jim Meyering  <meyering@lucent.com>
91937
91938         * lib/getdate.c: Regenerate using bison-1.33.
91939
91940 2002-02-17  Jim Meyering  <meyering@lucent.com>
91941
91942         * config/config.guess (main): Don't use `head -1'; it's no longer
91943         portable. Use `sed 1q' instead.
91944
91945 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
91946
91947         * m4/codeset.m4: Upgrade to gettext-0.11.
91948         * m4/gettext.m4: Upgrade to gettext-0.11.
91949         * m4/glibc21.m4: Upgrade to gettext-0.11.
91950         * m4/iconv.m4: Upgrade to gettext-0.11.
91951         * m4/isc-posix.m4: Upgrade to gettext-0.11.
91952         * m4/lcmessage.m4: Upgrade to gettext-0.11.
91953         * m4/lib-ld.m4: New file, from gettext-0.11.
91954         * m4/lib-link.m4: New file, from gettext-0.11.
91955         * m4/lib-prefix.m4: New file, from gettext-0.11.
91956         * m4/progtest.m4: Upgrade to gettext-0.11.
91957
91958 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91959
91960         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
91961         (jm_PREREQ): Use it.
91962
91963 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91964
91965         * lib/posixver.c, lib/posixver.h: New files.
91966         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91967
91968 2002-02-02  Paul Eggert  <eggert@twinsun.com>
91969             Bruno Haible  <bruno@clisp.org>
91970
91971         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
91972         (fwrite_success_callback): New declaration.
91973         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
91974         print_unicode_char. Call failure callback instead of error.
91975         (fwrite_success_callback): New function.
91976         (exit_failure_callback): New function.
91977         (fallback_failure_callback): New function.
91978         (print_unicode_char): Call unicode_to_mb.
91979
91980 2002-01-26  Jim Meyering  <meyering@lucent.com>
91981
91982         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
91983         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
91984
91985 2002-01-26  Jim Meyering  <meyering@lucent.com>
91986
91987         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
91988
91989 2002-01-22  Paul Eggert  <eggert@twinsun.com>
91990
91991         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
91992
91993 2002-01-22  Jim Meyering  <meyering@lucent.com>
91994
91995         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
91996         Otherwise, some versions of automake would omit the rule that makes
91997         Makefile from Makefile.in.
91998
91999 2002-01-21  Paul Eggert  <eggert@twinsun.com>
92000
92001         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
92002         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
92003         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
92004         (memcoll): Set errno to zero if there is no error.
92005
92006         * lib/quotearg.c (quotearg_buffer_restyled):
92007         Fix bug with quoting buffers containing NUL when backslashing escapes.
92008         This bug was exposed by the other changes in this patch.
92009         (quotearg_n_options): New arg ARGSIZE.
92010         All callers changed.
92011         (quoting_options_from_style): New function.
92012         (quotearg_n_style): Use it.
92013         (quotearg_n_style_mem): New function.
92014
92015         * lib/quotearg.h (quotearg_n_style_mem): New function.
92016
92017 2002-01-19  Jim Meyering  <meyering@lucent.com>
92018
92019         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
92020         Remove useless quotes: DF_PROG="df".
92021         * m4/strnlen.m4: New file.
92022
92023 2002-01-16  Paul Eggert  <eggert@twinsun.com>
92024
92025         * lib/backupfile.c (ISDIGIT): Comment fix.
92026         * lib/getdate.y (ISDIGIT): Likewise.
92027         * lib/posixtm.c (ISDIGIT, year): Likewise.
92028         * lib/strverscmp.c (ISDIGIT): Likewise.
92029         * lib/userspec.c (ISDIGIT): Likewise.
92030
92031 2002-01-16  Jim Meyering  <meyering@lucent.com>
92032
92033         * lib/getdate.y: Add three semicolons, each just before a closing
92034         brace. Bison (as of version 1.31) no longer papers over that mistake.
92035
92036 2002-01-05  Jim Meyering  <meyering@lucent.com>
92037
92038         * lib/version-etc.c (version_etc_copyright): Update copyright year.
92039
92040 2001-12-19  Paul Eggert  <eggert@twinsun.com>
92041
92042         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
92043         not silently exit merely because the output buffer happens to
92044         have nothing pending.
92045
92046 2001-12-18  Paul Eggert  <eggert@twinsun.com>
92047
92048         See the big note in ../ChangeLog.
92049         * lib/human.c (suffixes): Prefer K to k for 1024.
92050         (generate_suffix_backwards): New function.
92051         (human_readable_inexact): Use it.
92052         * lib/xstrtol.c (__xstrtol): If there is no number but there
92053         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
92054         Accept 'K' as well as 'k'.
92055
92056 2001-12-15  Jim Meyering  <meyering@lucent.com>
92057
92058         * lib/regex.h (__restrict_arr): Update from libc.
92059
92060         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
92061         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
92062         (STREQ): Define.
92063
92064 2001-12-14  Jim Meyering  <meyering@lucent.com>
92065
92066         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
92067         Suggestion from Bruno Haible.
92068
92069 2001-12-10  Jim Meyering  <meyering@lucent.com>
92070
92071         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
92072         xrealloc, Instead, include "xalloc.h".
92073         (initbuffer): Don't cast xmalloc return value to char*.
92074         (readline): Reword comment.
92075         Don't cast xrealloc return value to char*
92076         Return NULL, not 0.
92077
92078 2001-12-09  Jim Meyering  <meyering@lucent.com>
92079
92080         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
92081         about `signed and unsigned type in conditional expression'.
92082         * lib/posixtm.c (posix_time_parse): Likewise.
92083
92084         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
92085
92086         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
92087         to avoid a pedantic warning.
92088
92089         * lib/getstr.c: Don't include assert.h.
92090         (getstr): Remove warning-evoking assertions.
92091         Return -1 if offset parameter is out of bounds.
92092         Change the type of a local from int to size_t.
92093
92094         * lib/strftime.c (my_strftime_localtime_r): Include this function
92095         definition in the `#if ! HAVE_TM_GMTOFF' block.
92096
92097         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
92098         Include xalloc.h instead.
92099
92100 2001-12-02  Jim Meyering  <meyering@lucent.com>
92101
92102         * lib/tempname.c: Don't declare getenv, thus reverting the change of
92103         2001-11-18.  It's no longer necessary, now that stdlib.h is always
92104         included.
92105
92106         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
92107         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
92108
92109 2001-11-30  Akim Demaille  <akim@epita.fr>
92110
92111         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
92112         before being defined.
92113
92114 2001-11-27  Paul Eggert  <eggert@twinsun.com>
92115
92116         * lib/quotearg.h (quotearg_n, quotearg_n_style):
92117         First arg is int, not unsigned.
92118         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
92119         (SIZE_MAX, UINT_MAX): New macros.
92120         (quotearg_n_options): Abort if N is negative.
92121         Avoid overflow check on hosts where size_t is 64 bits and int
92122         is 32 bits, as overflow is impossible there.
92123         Fix off-by-one typo that caused unnecessary reallocation.
92124
92125 2001-11-27  Jim Meyering  <meyering@lucent.com>
92126
92127         * lib/tempname.c: Merge with version from libc.
92128         * lib/regex.c: Likewise.
92129
92130         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
92131         systems for which STDC_HEADERS is 0, it was not included, resulting in
92132         a warning about an integer-to-pointer conversion problem with getenv.
92133         Reported by Volker Borchert.
92134
92135 2001-11-26  Jim Meyering  <meyering@lucent.com>
92136
92137         * lib/gtod.h: Remove file.
92138         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
92139         * lib/gettimeofday.c: Don't include gtod.h.
92140         (GTOD_init): Remove function.
92141         (rpl_gettimeofday): Do its job here instead, rather than aborting.
92142         Suggestion from Volker Borchert.
92143
92144 2001-11-23  Jim Meyering  <meyering@lucent.com>
92145
92146         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
92147         it.
92148         * lib/hash.c (struct hash_table): Define it here instead.
92149
92150 2001-11-22  Jim Meyering  <meyering@lucent.com>
92151
92152         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
92153
92154 2001-11-20  Jim Meyering  <meyering@lucent.com>
92155
92156         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
92157         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
92158
92159 2001-11-19  Jim Meyering  <meyering@lucent.com>
92160
92161         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
92162         directory.  Use "conftestXXXXXX" as the template.
92163         Suggestion from Paul Eggert.
92164
92165         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
92166         immediately, so the test doesn't mistakenly hit the max-open-files
92167         limit.
92168
92169 2001-11-18  Paul Eggert  <eggert@twinsun.com>
92170
92171         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
92172         (TEMPORARIES): New macro.
92173         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
92174         removes an artificial limitation (e.g. HP-UX 10.20, where
92175         TMP_MAX is 17576).
92176
92177 2001-11-18  Jim Meyering  <meyering@lucent.com>
92178
92179         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
92180
92181 2001-11-18  Jim Meyering  <meyering@lucent.com>
92182
92183         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
92184         on SunOS 4.
92185
92186         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
92187         files will be created before anything else.
92188
92189 2001-11-17  Paul Eggert  <eggert@twinsun.com>
92190
92191         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
92192         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
92193
92194 2001-11-17  Jim Meyering  <meyering@lucent.com>
92195
92196         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
92197         Prompted by a report from Bob Proulx.
92198
92199         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
92200         Instead, require UTILS_FUNC_MKSTEMP.
92201
92202 2001-11-17  Jim Meyering  <meyering@lucent.com>
92203
92204         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
92205         Now, that's done as part of AC_FUNC_STRTOD.
92206
92207 2001-11-17  Jim Meyering  <meyering@lucent.com>
92208
92209         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
92210         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
92211         rather than group writable.  Patch by Juan F. Codagnone.
92212
92213         * lib/readtokens.c: Remove explicit declarations of xmalloc and
92214         xrealloc, Instead, include "xalloc.h".
92215
92216         * lib/mountlist.c: Include unlocked-io.h after all system headers.
92217         Remove explicit declarations of xmalloc, xrealloc,
92218         and xstrdup.  Instead, include "xalloc.h".
92219
92220         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
92221         unlocked-io.h.
92222         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
92223         Likewise.
92224         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
92225
92226         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
92227         Reported by Padraig Brady.
92228
92229         * lib/mkstemp.c: #undef mkstemp.
92230         Include config.h.
92231         (rpl_mkstemp): Rename from mkstemp.
92232         Protoize.
92233
92234 2001-11-16  Jim Meyering  <meyering@lucent.com>
92235
92236         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
92237         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
92238         determine the amount of total physical memory, use pstat_getstatic.
92239         HPUX-11 doesn't define _SC_PHYS_PAGES.
92240         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
92241         If sysconf couldn't be used to determine the amount of available
92242         physical memory, use both pstat_getstatic and pstat_getdynamic.
92243         Based on a patch from Bob Proulx.
92244
92245 2001-11-10  Jim Meyering  <meyering@lucent.com>
92246
92247         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
92248         (jm_PREREQ): Use it.
92249
92250 2001-11-09  Jim Meyering  <meyering@lucent.com>
92251
92252         * m4/jm-macros.m4: Require autoconf-2.52f.
92253         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
92254         Use these AC_-prefixed names, not the AM_-prefixed ones.
92255
92256         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
92257
92258 2001-11-05  Jim Meyering  <meyering@lucent.com>
92259
92260         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
92261
92262 2001-11-04  Jim Meyering  <meyering@lucent.com>
92263
92264         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
92265         $DEFS.
92266
92267 2001-11-03  Jim Meyering  <meyering@lucent.com>
92268
92269         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
92270         of AC_DEFUN.
92271
92272         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
92273         know the name of the variable in the macro definition.
92274
92275 2001-11-03  Jim Meyering  <meyering@lucent.com>
92276
92277         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
92278         in argmatch_to_argument call.
92279
92280         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
92281         argument.
92282
92283         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
92284         e.g., a fault due to an attempt to free a NULL pointer.
92285
92286 2001-11-01  Jim Meyering  <meyering@lucent.com>
92287
92288         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
92289         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
92290
92291 2001-11-01  Jim Meyering  <meyering@lucent.com>
92292
92293         * lib/dirfd.c, lib/dirfd.h: New files.
92294         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
92295
92296         * lib/hash.c (hash_print) [TESTING]: Clean up.
92297
92298 2001-10-22  Paul Eggert  <eggert@twinsun.com>
92299
92300         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
92301         to avoid a warning if -Wall.
92302
92303 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
92304
92305         * README: New file
92306         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
92307         (per RMS's instructions, this is now the canonical source)
92308         * lgpl/, gpl/: New directories.
92309
92310 2001-10-21  Paul Eggert  <eggert@twinsun.com>
92311
92312         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
92313
92314 2001-10-21  Jim Meyering  <meyering@lucent.com>
92315
92316         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
92317         this code would end up calling gettext even in packages built
92318         with --disable-nls.
92319         * lib/getopt.c (_): Likewise.
92320         * lib/regex.c (_): Likewise.
92321
92322 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92323
92324         * m4/error.m4 (jm_PREREQ_ERROR):
92325         Do not invoke AC_CHECK_FUNCS with strerror_r, as
92326         AC_FUNC_STRERROR_R does that.
92327         Check for strerror declaration.
92328
92329         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
92330         are supposed to have them these days.
92331         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
92332         Merge changes from latest Autoconf CVS.
92333         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
92334         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
92335         POSIX decided to standardize on the int flavor of strerror_r.
92336
92337 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92338
92339         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
92340         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
92341         Use strerror_r that is only a macro, even if it is not a function.
92342         (strerror): Check for HAVE_DECL_STRERROR before declaring.
92343         (private_strerror): Use prototypes, not old-style function definition.
92344         (print_errno_message): New function.
92345         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
92346         char*-flavored one.
92347         (error_tail, error, error_at_line): Use it.
92348
92349 2001-10-11  Jim Meyering  <meyering@lucent.com>
92350
92351         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
92352         and quote_n (1, ... to avoid clobbering a buffer.
92353
92354 2001-10-05  Jim Meyering  <meyering@lucent.com>
92355
92356         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
92357         hash-pjw.h.
92358         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
92359         * lib/hash-pjw.h: New file.
92360
92361 2001-09-30  Jim Meyering  <meyering@lucent.com>
92362
92363         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
92364         `struct fsstat' has the `f_fstypename' member.
92365         Use that to define FS_TYPE, which is now used to make
92366         the getfsstat link test tighter.
92367
92368 2001-09-30  Jim Meyering  <meyering@lucent.com>
92369
92370         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
92371         Include <sys/ucred.h>, for Apple Darwin.
92372         Include sys/mount.h and sys/fs_types.h only if available.
92373         (FS_TYPE): Define.
92374         (read_filesystem_list): Use FS_TYPE.
92375
92376 2001-09-29  Paul Eggert  <eggert@twinsun.com>
92377
92378         * lib/exclude.c (excluded_filename): 0 -> false, since it's
92379         a boolean context.
92380
92381 2001-09-29  Jim Meyering  <meyering@lucent.com>
92382
92383         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92384         [one-argument getmntent function]): Include stdio.h before mntent.h.
92385         SunOS 4.1.x needs it for the declaration of `FILE'.
92386         Patch by Volker Borchert.
92387
92388         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92389         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
92390         sys/fs_types.h, and make the link-test for getfsstat guard #include
92391         directives with appropriate #if HAVE_*_H tests so that we can
92392         detect getfsstat on Apple Darwin1.3.7 systems.
92393         Reported by Nelson Beebe.
92394         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
92395
92396 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92397
92398         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92399         #defines strtoimax.  Also treat the other strto* functions
92400         like strtoimax.
92401
92402         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92403         Check for strtoul and strtoumax,
92404         as those declarations are made even in the signed case.
92405         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
92406         Likewise, for strtol and strtoimax.
92407
92408 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92409
92410         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92411         #defines strtoimax.  Also treat the other strto* functions
92412         like strtoimax.
92413
92414         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
92415         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
92416         (strtoimax, strtoumax): Do not declare if already defined as a macro.
92417
92418 2001-09-26  Jim Meyering  <meyering@lucent.com>
92419
92420         Most macros in unlocked-io.h had the wrong number of arguments.
92421         * lib/gen-uio: New script.
92422         (USE_UNLOCKED_IO): Define to 1 if not already defined.
92423         * lib/unlocked-io.hin: Remove file.
92424         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
92425         rather than trying to embed it here.
92426         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
92427         Reported by Padraig Brady.
92428
92429 2001-09-25  Volker Borchert  <bt@teknon.de>
92430
92431         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
92432         `result'.
92433
92434 2001-09-24  Jim Meyering  <meyering@lucent.com>
92435
92436         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
92437
92438 2001-09-23  Jim Meyering  <meyering@lucent.com>
92439
92440         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
92441         instead of the mere test for existence of mntent.h.  The latter
92442         would get a false-positive on AIX 3.4 systems.
92443         In the outer getmntent if-block, don't die if neither of the getmntent
92444         tests succeeds.  Instead, just fall through and continue with the
92445         remaining tests.
92446
92447 2001-09-23  Jim Meyering  <meyering@lucent.com>
92448
92449         * lib/mountlist.c: Remove useless parentheses in #if directives.
92450         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
92451         the deprecated MOUNTED symbol is no longer defined in mntent.h.
92452
92453 2001-09-22  Jim Meyering  <meyering@lucent.com>
92454
92455         * m4/gettext.m4: New file.  From gettext.
92456         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
92457         * m4/progtest.m4: Likewise
92458         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
92459         * m4/glibc21.m4: Likewise.
92460
92461         * m4/libintl.m4: Remove.  No longer used.
92462
92463 2001-09-22  Jim Meyering  <meyering@lucent.com>
92464
92465         * lib/localcharset.c: Update from latest gettext.
92466         * lib/config.charset: Likewise.
92467
92468 2001-09-20  Jim Meyering  <meyering@lucent.com>
92469
92470         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
92471         strtoimax.
92472         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
92473         strtoumax.
92474
92475 2001-09-20  Jim Meyering  <meyering@lucent.com>
92476
92477         * lib/xstrtol.c (strtoimax): Guard declaration with
92478         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
92479         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
92480         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
92481         (strtoumax): Likewise, for completeness (it wasn't necessary).
92482
92483 2001-09-17  Paul Eggert  <eggert@twinsun.com>
92484
92485         * lib/strtoimax.c (HAVE_LONG_LONG):
92486         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
92487         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
92488         to work around bug in IBM C compiler.
92489
92490 2001-09-17  Jim Meyering  <meyering@lucent.com>
92491
92492         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
92493         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
92494         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
92495         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
92496         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
92497         whenever the right hand side need not be expanded by the shell.
92498
92499 2001-09-16  Paul Eggert  <eggert@twinsun.com>
92500
92501         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
92502         library.  It's not correct, as some older glibcs are buggy.
92503         fnmatch wasn't fixed until glibc 2.2.
92504
92505         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
92506         special shell magic here.
92507
92508 2001-09-16  Jim Meyering  <meyering@lucent.com>
92509
92510         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
92511         * m4/jm-macros.m4: Require it.
92512
92513 2001-09-16  Jim Meyering  <meyering@lucent.com>
92514
92515         * lib/mkdir.c: New file.
92516
92517 2001-09-15  Jim Meyering  <meyering@lucent.com>
92518
92519         * m4/jm-macros.m4: Check for help2man.
92520
92521 2001-09-11  Jim Meyering  <meyering@lucent.com>
92522
92523         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
92524         The body, by Paul Eggert, was moved here from configure.in.
92525         * m4/jm-macros.m4: Require UTILS_HOST_OS.
92526
92527 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92528
92529         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
92530         (jm_PREREQ): Use it.
92531
92532 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92533
92534         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
92535         Use ssize_t, not int, to store result of readlink.
92536         Check for ssize_t overflow as well as size_t overflow,
92537         as POSIX says the result of readlink is implementation-defined
92538         when ssize_t overflows.
92539         Remove unnecessary cast to char*.
92540         Use free+malloc instead of realloc, as the storage doesn't need
92541         to be preserved and it's clearer and can be more efficient that way.
92542         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
92543         * lib/xreadlink.h (xreadlink): Update prototype.
92544
92545 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92546
92547         * lib/xgetcwd.c: Revert some of the previous change; intead,
92548         fix the HAVE_GETCWD_NULL code to behave more like the
92549         !HAVE_GETCWD_NULL code used to.
92550
92551         Include "xalloc.h".
92552         (xgetcwd): Do not return NULL when memory is exhausted; instead,
92553         invoke xalloc_die.
92554
92555 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92556
92557         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
92558         sys/param.h, as pathmax.h includes them.
92559
92560 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92561
92562         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
92563         (jm_PREREQ_XGETCWD): New macro.
92564
92565         * m4/getcwd.m4: New file.
92566
92567 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92568
92569         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
92570         like the HAVE_GETCWD_NULL code.
92571         Include pathmax.h if not HAVE_GETCWD.
92572         Do not include xalloc.h.
92573         (INITIAL_BUFFER_SIZE): New symbol.
92574         Do not use xmalloc / xrealloc, since the caller is responsible for
92575         handling errors.  Preserve errno around `free' during failure.
92576         Do not overrun buffer when using getwd.
92577
92578 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92579
92580         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
92581         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
92582         getcwd (NULL, 0).
92583
92584 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92585
92586         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
92587         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
92588         spotted by Jim Meyering.
92589
92590 2001-09-03  Jim Meyering  <meyering@lucent.com>
92591
92592         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
92593         failure.
92594
92595 2001-09-02  Jim Meyering  <meyering@lucent.com>
92596
92597         * lib/error.c: Update from GNU libc.
92598
92599 2001-09-01  Jim Meyering  <meyering@lucent.com>
92600
92601         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
92602         Used by df.
92603
92604 2001-09-01  Jim Meyering  <meyering@lucent.com>
92605
92606         * lib/xreadlink.c: New file.
92607         * lib/xreadlink.h: New file.
92608         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
92609         xreadlink.h.
92610
92611         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
92612         doesn't conflict with sparc Solaris 7's definition in
92613         /usr/include/sys/int_types.h.
92614
92615         * lib/exclude.c: Use `""', not `<>' to #include non-system header
92616         files.
92617         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
92618         and strncasecmp as r-values.  Unixware didn't have declarations.
92619
92620 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92621
92622         * lib/xstrtol.h: Add copyright notice.
92623         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
92624         LONGINT_INVALID_SUFFIX_CHAR.
92625
92626 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92627
92628         * lib/xstrtol.c (strtoimax): New decl.
92629
92630 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92631
92632         * lib/xgetcwd.c: Don't include pathmax.h.
92633         Include stdlib.h and unistd.h if available.
92634         Include xalloc.h.
92635         (xmalloc, xstrdup, free): Remove decls.
92636         (xgetcwd): Don't assume sizes fit in unsigned.
92637         Check for overflow when computing sizes.
92638         Simplify reallocation code.
92639
92640 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92641
92642         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
92643         a directory's st_size can have an arbitrary value, so the old
92644         usage could waste an arbitrary amount of memory.  All uses
92645         changed.
92646         * lib/savedir.h: Update prototype.
92647
92648 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92649
92650         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
92651
92652         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
92653         old strtoimax.c.
92654
92655         Also, make the following further changes to make this file's
92656         configuration more similar to that of strtol.c:
92657         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
92658         (strtoumax, uintmax_t, strtoull, strtol): Remove.
92659         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
92660         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
92661         changed to signed values.
92662
92663         And make the following changes as well:
92664         Fix copyright notice, as 1999 was missing.
92665         (verify): New macro.
92666         (strtoimax): Check sizes at compile-time, not run-time.
92667         Prefer strtol to strtoll if both work.
92668         (main): Remove; it was not that useful and was a pain to maintain.
92669
92670         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
92671
92672 2001-08-31  Jim Meyering  <meyering@lucent.com>
92673
92674         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
92675         Use an initial, malloc'd, buffer of length 128 rather than
92676         a statically allocated one of length 1024.
92677
92678 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92679
92680         Simplify code, partly by assuming autoconf 2.52 semantics.
92681
92682         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
92683
92684         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
92685         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
92686         All uses removed.
92687         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
92688         Move AC_REQUIRE to next-to-top level, to avoid confusion.
92689         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
92690         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
92691         jm_AC_HEADER_INTTYPES_H.
92692         * m4/jm-macros.m4 (jm_MACROS): Likewise.
92693
92694         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
92695
92696         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92697         Quote first arg of AC_DEFUN.
92698         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
92699         since they are needed to parse the include file even if we need
92700         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
92701         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
92702         but with opposite signedness.
92703
92704 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92705
92706         Merge 'exclude' changes from tar 1.13.22.
92707         This fixes one or two unlikely storage allocation overflow bugs,
92708         but doesn't change user-visible behavior otherwise.
92709
92710 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92711
92712         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
92713         (jm_PREREQ_EXCLUDE): New macro.
92714
92715 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92716
92717         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
92718         tm to be declared.
92719
92720 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92721
92722         * lib/hash.c: Remove '2001' from copyright notice.
92723
92724 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92725
92726         * lib/full-write.h: New file.
92727         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
92728         * lib/full-write.c: Correct credits, as cccp.c no longer
92729         exists and anyway it was so heavily changed from the old cccp
92730         code as to be unrecognizable.  Include full-write.h.
92731         (full_write): Return size_t, with short writes meaning failure.
92732         All callers changed.  This fixes a bug with large buffers
92733         on 64-bit hosts.
92734         * lib/utime.c: Include full-write.h.
92735
92736 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92737
92738         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
92739         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
92740         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
92741         Include if available.
92742         (<xalloc.h>): Include
92743         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
92744         (verify): New macro.  Use it to verify that EXCLUDE macros do not
92745         collide with FNM macros.
92746         (struct patopts): New struct.
92747         (struct exclude): Use it, as exclude patterns now come with options.
92748         (new_exclude): Support above changes.
92749         (new_exclude, add_exclude_file):
92750         Initial size must now be a power of two to simplify overflow checking.
92751         (free_exclude, fnmatch_no_wildcards): New function.
92752         (excluded_filename): No longer requires options arg, as the options
92753         are determined by add_exclude.  Now returns bool, not int.
92754         (excluded_filename, add_exclude):
92755         Add support for the fancy new exclusion options.
92756         (add_exclude, add_exclude_file): Now takes int options arg.
92757         Check for arithmetic overflow when computing sizes.
92758         (add_exclude_file): xrealloc might modify errno, so don't
92759         realloc until after errno might be used.
92760
92761         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
92762         New macros.
92763         (free_exclude): New decl.
92764         (add_exclude, add_exclude_file): Now takes int options arg.
92765         (excluded_filename): No longer requires options arg, as the options
92766         are determined by add_exclude.  Now returns bool, not int.
92767
92768 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92769
92770         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
92771
92772 2001-08-27  Jim Meyering  <meyering@lucent.com>
92773
92774         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
92775
92776         * lib/version-etc.c (N_): Remove definition.
92777         Revert most of last change.
92778         Instead, simply don't mark the `Copyright...' string for translation.
92779         Based on advice from Paul Eggert.
92780
92781         * lib/strtoxmax.c: Tweak comment.
92782
92783 2001-08-26  Jim Meyering  <meyering@lucent.com>
92784
92785         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
92786
92787         * m4/xstrtoimax.m4: New file.
92788         * m4/xstrtoumax.m4: Add comments explaining why we
92789         AC_REPLACE_FUNCS(strtol).
92790
92791 2001-08-26  Jim Meyering  <meyering@lucent.com>
92792
92793         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
92794         of copyright with `%s' so translators don't get an untranslated
92795         message in 2002.
92796         (COPYRIGHT_YEAR): Define.
92797         (version_etc): Use fprintf rather than fputs.
92798         Suggestion from Ulrich Drepper.
92799
92800         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
92801
92802         * lib/strtoll.c: New file, from GNU libc.
92803         * lib/xstrtoimax.c: New file.
92804
92805         * lib/xstrtol.h: Add xstrtoimax.
92806         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
92807         * lib/strtoimax.c: New file.  Likewise, but first define
92808         STRTOUXMAX_SIGNED.
92809
92810         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
92811         ...
92812         * lib/strtoxmax.c: ... then renamed to this.
92813
92814 2001-08-18  Paul Eggert  <eggert@twinsun.com>
92815
92816         * m4/inttypes.m4: Add AC_PREREQ(2.13).
92817         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
92818         (jm_AC_TYPE_INTMAX_T): New macro.
92819         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
92820
92821         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
92822
92823         * m4/longlong.m4: Renamed from ulonglong.m4.
92824         * m4/inttypes.m4: Renamed from inttypes_h.m4.
92825         * m4/uintmax_t.m4: Removed.
92826
92827 2001-08-13  Paul Eggert  <eggert@twinsun.com>
92828
92829         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
92830         Port to Solaris 8, where 'sed' requires a space after the 'r'
92831         command, and where sh dislikes "$/".  Clean up the spacing a bit.
92832         Redirect output to $tmp just once.
92833
92834 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
92835
92836         * lib/addext.c (<errno.h>): Include.
92837         (errno): Declare if not defined.
92838         (addext): Work correctly when pathconf returns -1 and leaves
92839         errno alone because there is no limit.  Also, work even if
92840         pathconf returns a value greater than SIZE_MAX.
92841
92842 2001-08-12  Jim Meyering  <meyering@lucent.com>
92843
92844         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
92845         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
92846         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
92847         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
92848         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
92849         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
92850         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
92851         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
92852         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
92853         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
92854         utime.m4, utimes.m4, xstrtoumax.m4:
92855         Quote the first argument in each use of AC_DEFUN.
92856
92857 2001-08-12  Jim Meyering  <meyering@lucent.com>
92858
92859         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
92860         Simply `return getcwd (NULL, 0);'.
92861         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
92862         Use 1300 as initial value for length, not PATH_MAX.
92863
92864         * lib/pathmax.h: Clean up cpp syntax.
92865
92866 2001-08-12  Jim Meyering  <meyering@lucent.com>
92867
92868         * lib/gettimeofday.c: New file.
92869         * lib/gtod.h: New file.
92870         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
92871
92872 2001-08-05  Jim Meyering  <meyering@lucent.com>
92873
92874         * m4/jm-macros.m4: Require autoconf-2.52.
92875
92876 2001-08-04  Jim Meyering  <meyering@lucent.com>
92877
92878         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
92879         stmt, to get in sync with glibc.
92880
92881 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92882
92883         The following changes are from gettext 0.10.39 as maintained by
92884         Bruno Haible.
92885
92886         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
92887         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
92888         with inverted sense.  All uses changed.
92889
92890         * lib/mbswidth.c: Don't include <limits.h>.
92891         Include <stdlib.h> and <string.h> unconditionally.
92892         (iswcntrl, mbsinit, ISCNTRL): New macros.
92893         (mbsnwidth): Use K&R style function declarations.
92894         Don't bother checking for MB_LEN_MAX == 1, since the compiler
92895         can optimize it when MB_CUR_MAX == 1.
92896         The width of control characters is zero, not 1.
92897
92898 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92899
92900         The following changes are from gettext 0.10.39 as maintained by
92901         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
92902
92903         * m4/codeset.m4: Upgrade to serial AM1.
92904         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
92905         all uses changed.  Quote first arg of AC_DEFUN.
92906         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
92907
92908         * m4/iconv.m4: Upgrade to serial AM2.
92909         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
92910         Add --with-libconv-prefix.
92911         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
92912         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
92913         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
92914         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
92915         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
92916
92917         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
92918         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
92919         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
92920         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
92921         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
92922         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
92923         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
92924         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
92925         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
92926
92927         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
92928         string.h any more.
92929
92930         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
92931         not the default value.
92932
92933         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
92934         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
92935         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
92936         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
92937         Also check for iswcntrl, used for wcwidth fallback.
92938         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
92939         to Autoconf 2.13.
92940
92941 2001-08-03  Jim Meyering  <meyering@lucent.com>
92942
92943         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
92944         as it was in the original.  Reported by Paul Eggert.
92945
92946 2001-07-16  Jim Meyering  <meyering@lucent.com>
92947
92948         * m4/gettimeofday.m4: New file.
92949         Prompted by a report from Bernhard Baehr.
92950
92951 2001-07-15  Jim Meyering  <meyering@lucent.com>
92952
92953         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
92954         stuff. Now it's in ../Makefile.cfg.
92955
92956 2001-07-15  Jim Meyering  <meyering@lucent.com>
92957
92958         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
92959         (BUILT_SOURCES): Add unlocked-io.h.
92960         (io_functions): Define.
92961         (unlocked-io.h): New rule.
92962         (DISTCLEANFILES): Add unlocked-io.h.
92963         (all-local): Depend on unlocked-io.h, to ensure it is created.
92964
92965         * lib/unlocked-io.hin: New file
92966
92967         * lib/regex.c: Update from glibc.
92968
92969 2001-07-05  Jim Meyering  <meyering@lucent.com>
92970
92971         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
92972         recommendation.
92973         (libfetish_a_SOURCES): Put all .h files here instead.
92974         Remove a thus-exposed (better checks in automake) duplicate and
92975         two unnecessary .h files.
92976
92977 2001-07-04  Jim Meyering  <meyering@lucent.com>
92978
92979         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
92980         that generates jm-glibc-io.m4 so that it doesn't trigger any make
92981         distcheck failure.
92982
92983 2001-07-02  Jim Meyering  <meyering@lucent.com>
92984
92985         The following changes were prompted by suggestions from Bruno Haible.
92986
92987         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
92988         is now generated.
92989         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
92990         definition of EXTRA_DIST.
92991         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
92992         ensure that the generated file is created/updated whenever the list
92993         of $(unlocked_functions) is changed.
92994         (jm-glibc-io.m4): New rule.
92995         (unlocked-io.h): New rule -- currently unused.
92996
92997 2001-06-24  Jim Meyering  <meyering@lucent.com>
92998
92999         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
93000         unmatched right bracket, rather than kludging it with an extra,
93001         falsely-matching quote in a comment.  Patch by Akim Demaille.
93002
93003 2001-06-11  Jim Meyering  <meyering@lucent.com>
93004
93005         * lib/regex.c: Update from GNU libc.
93006
93007 2001-05-27  Jim Meyering  <meyering@lucent.com>
93008
93009         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
93010         Check for ut_type in struct utmp.
93011
93012 2001-05-27  Jim Meyering  <meyering@lucent.com>
93013
93014         * lib/readutmp.h (UT_TYPE): Define.
93015
93016 2001-05-24  Jim Meyering  <meyering@lucent.com>
93017
93018         * lib/argmatch.c: Include "quote.h".
93019         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
93020         quote function.  Reported by Göran Uddeborg.
93021
93022 2001-05-22  Jim Meyering  <meyering@lucent.com>
93023
93024         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
93025         now that we use the package-supplied version unconditionally.
93026         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
93027
93028 2001-05-21  Jim Meyering  <meyering@lucent.com>
93029
93030         * m4/regex.m4: Change a couple backticks to single quotes to avoid
93031         shell syntax errors.
93032
93033 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
93034
93035         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
93036
93037 2001-05-20  Paul Eggert  <eggert@twinsun.com>
93038
93039         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
93040         Don't bother to check library strftime, since
93041         we'll be using our own my_strftime function anyway.
93042         Define my_strftime instead of strftime.
93043
93044 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
93045
93046         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
93047         which is not yet declared.
93048
93049 2001-05-15  Jim Meyering  <meyering@lucent.com>
93050
93051         * m4/regex.m4: Use proper quoting so brackets appear in the test
93052         program.
93053         Reported by, and with help from, Bruno Haible.
93054
93055 2001-05-13  Jim Meyering  <meyering@lucent.com>
93056
93057         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
93058         undefined.
93059
93060 2001-05-11  Paul Eggert  <eggert@twinsun.com>
93061
93062         dirname code cleanup.  base_name now behaves more compatibly
93063         with POSIX basename when given file names that have trailing
93064         slashes, and similarly for dir_name.  Add new primitives
93065         base_len and dir_len.  Put the directory-name-related decls
93066         into dirname.h.
93067
93068         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
93069         * lib/backupfile.c (base_name): Likewise.
93070         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
93071         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
93072         * lib/makepath.c (strip_trailing_slashes): Likewise.
93073         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
93074         ISSLASH): Likewise.
93075         * lib/rename.c (strip_trailing_slashes): Likewise.
93076         * lib/same.c (base_name): Likewise.
93077         * lib/stripslash.c (ISSLASH): Likewise.
93078
93079         * lib/addext.c: Include <dirname.h> after size_t is defined.
93080         * lib/backupfile.c: Likewise.
93081
93082         * lib/addext.c (addext): Use base_len to trim redundant
93083         trailing slashes instead of doing it ourselves.
93084         But do not trim the last slash if it is not redundant.
93085
93086         * lib/backupfile.c (find_backup_file_name,
93087         max_backup_version): Use base_len instead of rolling it ourselves.
93088         Handle the case of "" and (on DOS) "C:" correctly.
93089
93090         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
93091         needed. Include <string.h>, <dirname.h>.
93092         (base_name): Allow file names ending in slashes, other than names
93093         that are all slashes.  In this case, return the basename followed
93094         by the slashes.  This is more general, and can be used in places
93095         where the original base_name purposely had an assertion failure.
93096         (base_len): New function.
93097
93098         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
93099         Do not include <assert.h>; no longer needed.
93100         Include xalloc.h.
93101         (memrchr): Remove decl.
93102         (dir_name_r): Remove.
93103         (dir_len): Renamed from dirlen.  All callers changed.
93104         Rewrite in terms of base_name, for simplicity and consistency.
93105         (dir_name): Never return NULL.  All callers changed.
93106         Do not include <stdlib.h> in test program; no longer needed.
93107         return 0; is fine for test program.
93108
93109         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
93110         New macros.
93111         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
93112
93113         * lib/path-concat.c (path_concat): Use base_len to compute
93114         base length, not strlen; this means we cannot rely on memcpy
93115         to null-terminate.
93116
93117         * lib/same.c (STREQ): Remove.
93118         (same_name): Handle the case where the basename ends in trailing '/'.
93119
93120         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
93121         a slash was stripped.  Do not strip the last slash after a
93122         file system prefix.
93123
93124 2001-05-11  Paul Eggert  <eggert@twinsun.com>
93125
93126         * lib/Makefile.am (libfetish_a_SOURCES):
93127         Add strftime.c, since we now compile it on all hosts.
93128
93129         * lib/strftime.c (my_strftime):
93130         Define to nstrftime if emacs, but only if my_strftime is not defined.
93131         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
93132         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
93133         Add one more extra argument: a nanoseconds value.
93134         All uses changed.
93135         (ns): New macro.
93136         (my_strftime function): Add %N format.
93137         (emacs_strftimeu): Renamed from emacs_strftime,
93138         with extra ut argument.
93139
93140 2001-05-09  Paul Eggert  <eggert@twinsun.com>
93141
93142         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
93143
93144 2001-04-21  Jim Meyering  <meyering@lucent.com>
93145
93146         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
93147         doesn't interfere.
93148
93149 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
93150
93151         * m4/ftruncate.m4: Check for chsize.
93152         Link with ftruncate.o unconditionally if ftruncate is missing.
93153         This was required when cross-compiling to i586-mingw32msvc.
93154
93155 2001-04-08  Jim Meyering  <meyering@lucent.com>
93156
93157         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
93158         recomputed; that's necessary when the offset spans a DST transition.
93159         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
93160
93161 2001-04-02  Jim Meyering  <meyering@lucent.com>
93162
93163         * lib/regex.h, regex.c: Update from GNU libc.
93164
93165 2001-03-24  Jim Meyering  <meyering@lucent.com>
93166
93167         * m4/jm-macros.m4: Require autoconf-2.49d.
93168
93169 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
93170
93171         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
93172
93173 2001-03-19  Paul Eggert  <eggert@twinsun.com>
93174
93175         * lib/version-etc.c (version_etc_copyright): Update to 2001.
93176
93177 2001-03-17  Jim Meyering  <meyering@lucent.com>
93178
93179         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
93180         now that the version in autoconf is equivalent.
93181         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
93182
93183         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
93184         Suggestion from Akim Demaille.
93185
93186         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
93187         (jm_PREREQ_TEMPNAME): New function.
93188
93189 2001-03-16  Paul Eggert  <eggert@twinsun.com>
93190
93191         * lib/tempname.c (uint64_t): Define to uintmax_t if
93192         not defined, and if UINT64_MAX is not defined.
93193         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
93194         Reported by John David Anglin.
93195
93196 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
93197
93198         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
93199         resolve alias if codeset is empty.
93200         * lib/config.charset (BeOS): Use wildcard syntax.
93201
93202 2001-03-13  Jim Meyering  <meyering@lucent.com>
93203
93204         * lib/path-concat.c (path_concat)
93205         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
93206         concatenating e.g., `C:' and `foo'.
93207         From Bruno Haible.
93208
93209 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
93210
93211         * lib/localcharset.c (locale_charset): Don't use
93212         setlocale(LC_CTYPE,NULL). Don't return NULL.
93213         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
93214
93215 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
93216
93217         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
93218         support for DOS/DJGPP.
93219
93220 2001-03-01  Paul Eggert  <eggert@twinsun.com>
93221
93222         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
93223         lacks mkstemp.  Compile our own tempname.c if we compile our own
93224         mkstemp.c, as mkstemp relies on tempname.
93225
93226 2001-03-01  Jim Meyering  <meyering@lucent.com>
93227
93228         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
93229         AH_VERBATIM really does output its argument verbatim.
93230
93231 2001-02-28  Paul Eggert  <eggert@twinsun.com>
93232
93233         * lib/Makefile.am (libfetish_a_SOURCES):
93234         Add dup-safer.c, fopen-safer.c.
93235         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
93236
93237         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
93238         * lib/unistd-safer.h: New files.
93239
93240 2001-02-25  Paul Eggert  <eggert@twinsun.com>
93241
93242         The mkstemp replacement is taken from glibc 2.2.2, with some
93243         portability fixes for use outside glibc, as follows:
93244
93245         * lib/tempname.c (struct_stat64): New macro.
93246         (direxists, __gen_tempname): Use it.
93247         This avoids a portability problem with Solaris 8.
93248
93249         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
93250         (<stddef.h>, <stdint.h>, <string.h>):
93251         Include only if STDC_HEADERS || _LIBC.
93252         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
93253         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
93254         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
93255         (__set_errno): Define this macro if <errno.h> doesn't.
93256         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
93257         Define these macros if <stdio.h> doesn't.
93258         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
93259         Define these macros if <sys/stat.h>
93260         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
93261         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
93262         __xstat64): Define if not _LIBC.
93263         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
93264         (__gen_tempname): Invoke gettimeofday only if
93265         HAVE_GETTIMEOFDAY || _LIBC;
93266         otherwise, fall back on plain "time".
93267         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
93268
93269         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
93270
93271         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
93272
93273 2001-02-18  Paul Eggert  <eggert@twinsun.com>
93274
93275         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
93276
93277 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93278
93279         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
93280         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
93281         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
93282         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
93283
93284 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93285
93286         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
93287         Remove workaround macros for hosts that have mbrtowc but not
93288         mbstate_t, as we now insist on proper declarations for both
93289         before using mbrtowc.
93290
93291 2001-02-17  Jim Meyering  <meyering@lucent.com>
93292
93293         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
93294         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
93295         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
93296         UnixWare 7.1.1.
93297
93298         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
93299         rather than AC_CACHE_VAL.
93300
93301 2001-02-17  Jim Meyering  <meyering@lucent.com>
93302
93303         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
93304         around included file name.
93305
93306         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
93307
93308         * lib/strftime.c: Update from GNU libc (the only changes were to
93309         comments).
93310
93311 2001-02-17  Jim Meyering  <meyering@lucent.com>
93312
93313         * lib/regex.c: Update from libc.
93314
93315 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
93316
93317         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
93318         clash.
93319
93320 2001-02-16  Paul Eggert  <eggert@twinsun.com>
93321
93322         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
93323         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
93324         Reported by Mark Hounschell via Paul Eggert.
93325
93326 2001-02-07  Jim Meyering  <meyering@lucent.com>
93327
93328         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
93329
93330 2001-02-05  Jim Meyering  <meyering@lucent.com>
93331
93332         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
93333         it includes the patch required for `large file' support with at least
93334         HP-UX's 10.20 /bin/cc.
93335
93336 2001-02-03  Jim Meyering  <meyering@lucent.com>
93337
93338         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
93339         AS_IF, now that it works once again (mysteriously).
93340         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93341
93342 2001-01-30  Jim Meyering  <meyering@lucent.com>
93343
93344         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
93345         * m4/chown.m4: Rename conftestchown to conftest.chown.
93346         * m4/rename.m4: s/conftestdir/conftest.d1/ and
93347         s/conftestdir2/conftest.d2/.
93348         * m4/utimes.m4: s/conftestdata/conftest.data/
93349         Inspired by Pavel Roskin's change in autoconf.
93350
93351 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
93352
93353         * lib/config.charset: Update for FreeBSD 4.2.
93354
93355 2001-01-27  Jim Meyering  <meyering@lucent.com>
93356
93357         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
93358         a use of AS_IF.
93359         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93360
93361 2001-01-26  Jim Meyering  <meyering@lucent.com>
93362
93363         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
93364         quotearg.c includes it.
93365
93366 2001-01-26  Jim Meyering  <meyering@lucent.com>
93367
93368         * lib/quotearg.c: Include stddef.h.
93369         * lib/quote.c: Include stddef.h.
93370         Reported by Axel Kittenberger.
93371
93372         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
93373         line in double quotes so that it evokes a better diagnostic.
93374         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
93375         Reported by Axel Kittenberger.
93376
93377 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
93378
93379         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
93380         as if it was a `charset'.
93381
93382 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93383
93384         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
93385         has const.
93386
93387 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93388
93389         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
93390         to avoid a warning.  Add back 'const' to inptr.
93391
93392 2001-01-20  Jim Meyering  <meyering@lucent.com>
93393
93394         Be sure that headers are checked before used in code compiled
93395         for the type checks.
93396         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
93397         In place of that, invoke jm_CHECK_ALL_TYPES.
93398         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
93399         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
93400         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
93401         The check for ssize_t was mistakenly run before the test for unistd.h.
93402
93403         The configure-time check for stdbool.h was missing.
93404         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
93405         (jm_PREREQ_HASH): New function.
93406
93407 2001-01-17  Jim Meyering  <meyering@lucent.com>
93408
93409         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
93410         for autoconf-2.49c.
93411         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
93412
93413 2001-01-16  Jim Meyering  <meyering@lucent.com>
93414
93415         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
93416         From Bruno Haible.
93417
93418 2001-01-14  Jim Meyering  <meyering@lucent.com>
93419
93420         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
93421         foo and bar.  Create conftestdir/ in the script, not in the C code.
93422         Remove directories in the script, not in the C code.
93423         Remove conftestdir{,2} before trying to create the directory.
93424         Make the entire configure script fail if the mkdir fails.
93425
93426 2001-01-14  Jim Meyering  <meyering@lucent.com>
93427
93428         * lib/rename.c: New file.  From Volker Borchert.
93429         Include stdlib.h, string.h or strings.h, and xalloc.h.
93430         Use strip_trailing_slashes rather than open-coding it.
93431
93432 2001-01-03  Paul Eggert  <eggert@twinsun.com>
93433
93434         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
93435
93436 2001-01-03  Jim Meyering  <meyering@lucent.com>
93437
93438         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
93439         of local `inptr' to avoid warning with some system declarations of
93440         iconv.
93441
93442 2001-01-02  Volker Borchert  <bt@teknon.de>
93443
93444         * m4/rename.m4: New file.
93445         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
93446
93447 2001-01-01  Jim Meyering  <meyering@lucent.com>
93448
93449         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
93450         even on systems with utmpx.h.  It's necessary for the declaration of
93451         utmp's ut_user member.  Reported by Andreas Jaeger.
93452
93453         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
93454         available. They are required for the declarations of getgrgid and
93455         getpwuid resp.
93456         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
93457         Reported by Andreas Jaeger.
93458
93459 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
93460
93461         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
93462         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
93463         so `make install' also works in VPATH builds.
93464
93465 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
93466
93467         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
93468         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
93469         can be used in subdirectories.
93470
93471 2000-12-29  Paul Eggert  <eggert@twinsun.com>
93472
93473         * lib/modechange.c: Do not assume that mode_t uses the
93474         traditional octal encoding.  E.g. "chmod 1 FOO" should set
93475         the other-execute bit of FOO even if S_IXOTH != 1.
93476
93477         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
93478         WOTH, XOTH, ALLM): New macros.
93479         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
93480          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
93481         Use them.
93482         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
93483         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
93484         (mode_compile):
93485         No need to use uintmax_t; unsigned long is long enough.
93486         Don't bother to get suffix since we don't use it.
93487
93488 2000-12-26  Jim Meyering  <meyering@lucent.com>
93489
93490         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
93491         better with autoheader.
93492
93493 2000-12-24  Jim Meyering  <meyering@lucent.com>
93494
93495         * lib/hash.c (is_prime): Return explicit boolean values.
93496         (hash_get_first): Return NULL to appease Irix5.6's 89.
93497         Reported by Nelson Beebe.
93498
93499 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
93500
93501         * lib/localcharset.c (locale_charset): Add support for Win32.
93502
93503 2000-12-18  Paul Eggert  <eggert@twinsun.com>
93504
93505         * lib/physmem.h, lib/physmem.c: New files.
93506
93507         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
93508         (noinst_HEADERS): Add physmem.h.
93509
93510         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
93511         't' for compatibility with Solaris 8 sort.
93512
93513 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
93514
93515         * lib/config.charset: Add support for BeOS.
93516
93517 2000-12-17  Jim Meyering  <meyering@lucent.com>
93518
93519         * m4/dos.m4 (jm_AC_DOS): New file and macro.
93520         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
93521
93522 2000-12-16  Jim Meyering  <meyering@lucent.com>
93523
93524         This bug had a serious impact on chown: `chown N:M FILE' (for integer
93525         N and M) would have treated it like `chown N:N FILE'.
93526
93527         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
93528
93529 2000-12-16  Jim Meyering  <meyering@lucent.com>
93530
93531         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
93532         SHELLS_FILE to a file name that's useful on djgpp systems.
93533         Include stdlib.h.
93534         (ADDITIONAL_DEFAULT_SHELLS): Define.
93535         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
93536         Based mostly on a patch from Prashant TR.
93537
93538 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
93539
93540         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
93541         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
93542         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
93543
93544 2000-12-08  Andreas Schwab  <schwab@suse.de>
93545
93546         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
93547         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
93548
93549 2000-12-07  Jim Meyering  <meyering@lucent.com>
93550
93551         * lib/stripslash.c (ISSLASH): Define.
93552         (strip_trailing_slashes): Use ISSLASH rather than comparing against
93553         `/'.
93554         From Prashant TR.
93555
93556         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
93557         (dir_name_r): Declare this function as static.
93558         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
93559         manifest itself on a name containing a mix of slashes and
93560         backslashes.
93561         Make this function work with names starting with a DOS-style
93562         drive letter and colon prefix.
93563         (dir_name): Append `.' if necessary.
93564         Based mostly on patches from Prashant TR and Eli Zaretskii.
93565
93566         * lib/dirname.h (dir_name_r): Remove prototype.
93567
93568 2000-12-06  Paul Eggert  <eggert@twinsun.com>
93569
93570         * m4/off_t-format.m4: Remove this file.
93571         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
93572
93573 2000-12-06  Jim Meyering  <meyering@lucent.com>
93574
93575         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
93576         replacement strtoull, we may well need the replacement strtoul, too.
93577         Check for declarations of strtoul and strtoull.
93578         Check for strtol.  Mainly as a cue to cause automake to include
93579         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
93580         Check for limits.h -- strtol.c needs it.
93581
93582 2000-12-05  Jim Meyering  <meyering@lucent.com>
93583
93584         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
93585
93586 2000-12-04  Jim Meyering  <meyering@lucent.com>
93587
93588         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
93589         Also include memory.h, stdlib.h, unistd.h if appropriate.
93590         Reported by Andreas Jaeger (conflicting declaration of malloc).
93591
93592 2000-12-02  Jim Meyering  <meyering@lucent.com>
93593
93594         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
93595         * m4/jm-macros.m4 (jm_MACROS): require it.
93596
93597 2000-12-02  Jim Meyering  <meyering@lucent.com>
93598
93599         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
93600
93601 2000-12-01  Paul Eggert  <eggert@twinsun.com>
93602
93603         * lib/memrchr.c: Include <config.h> before any system include file.
93604
93605 2000-11-30  Jim Meyering  <meyering@lucent.com>
93606
93607         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
93608
93609 2000-11-30  Jim Meyering  <meyering@lucent.com>
93610
93611         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
93612
93613 2000-11-29  Paul Eggert  <eggert@twinsun.com>
93614
93615         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
93616
93617 2000-11-26  Jim Meyering  <meyering@lucent.com>
93618
93619         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
93620
93621 2000-11-22  Paul Eggert  <eggert@twinsun.com>
93622
93623         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
93624         size of (size_t) -1; it's not portable.
93625
93626 2000-11-17  Jim Meyering  <meyering@lucent.com>
93627
93628         * lib/strstr.c: Update from GNU libc.
93629
93630 2000-11-17  Akim Demaille  <akim@epita.fr>
93631
93632         * lib/obstack.h: Formatting changes.
93633         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
93634         prevent type checking.
93635         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
93636         cast the value to (void *): assigning a `foo *' to a `void *'
93637         variable is valid.
93638         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
93639
93640 2000-11-16  Jim Meyering  <meyering@lucent.com>
93641
93642         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
93643
93644 2000-11-11  Jim Meyering  <meyering@lucent.com>
93645
93646         * lib/error.c: Add a couple #includes, merging from GNU libc version.
93647
93648 2000-11-10  Jim Meyering  <meyering@lucent.com>
93649
93650         * lib/obstack.h: Update from GNU libc.
93651         * lib/obstack.c: Likewise.
93652
93653 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
93654
93655         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
93656
93657 2000-11-06  Paul Eggert  <eggert@twinsun.com>
93658
93659         * lib/getusershell.c (setusershell): Use rewind rather than
93660         fseek/fseeko, to avoid configuration hassles with fseeko.
93661         Don't bother opening SHELLS_FILE if shellstream is NULL;
93662         it's not necessary.
93663
93664 2000-11-05  Jim Meyering  <meyering@lucent.com>
93665
93666         * lib/makepath.h (make_dir): Declare.
93667         * lib/makepath.c (make_dir): Remove `static' attribute.
93668         Tweak a comment.
93669
93670 2000-11-04  Jim Meyering  <meyering@lucent.com>
93671
93672         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
93673
93674 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
93675
93676         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
93677         last one in a bucket, advance to the next bucket.
93678
93679 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
93680
93681         * lib/fnmatch.c: Do not comment out all the code if we are using
93682         the GNU C library, because in some cases we are replacing buggy
93683         code in the GNU C library itself.
93684
93685 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
93686
93687         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
93688         (regex_compile): Catch bogus \(\1\).
93689
93690 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93691
93692         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
93693         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
93694         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
93695
93696 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93697
93698         * lib/error.h, getline.h, modechange.h:
93699         Remove "2000" from Copyright line, as the file hasn't been
93700         changed this year other than in the copyright notice.
93701
93702         * lib/xalloc.h: Add "2000" to Copyright line, as this file
93703         was changed this year.
93704
93705 2000-10-29  Jim Meyering  <meyering@lucent.com>
93706
93707         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
93708         renaming.
93709         * m4/ls-mntd-fs.m4: Likewise
93710
93711 2000-10-29  Jim Meyering  <meyering@lucent.com>
93712
93713         * lib/xstat.in: Fix grammar in comment.
93714
93715 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
93716
93717         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
93718         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
93719         doesn't define __restrict_arr.
93720
93721 2000-10-28  Jim Meyering  <meyering@lucent.com>
93722
93723         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
93724         (jm_PREREQ_MEMCHR): New function.
93725
93726 2000-10-28  Jim Meyering  <meyering@lucent.com>
93727
93728         * lib/memchr.c: Update from libc.
93729         Adjust for portability:
93730         [HAVE_STDLIB_H]: Include stdlib.h.
93731         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
93732         Undef __memchr, too.
93733         [!weak_alias]: Define __memchr to memchr.
93734
93735         * lib/regex.c: Update from libc.
93736         * lib/regex.h: Likewise.
93737         * lib/getopt1.c: Likewise.
93738         * lib/memcmp.c: Likewise.
93739
93740         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
93741         Avoid using fseek, when possible -- it's broken by design.
93742         Patch by Ulrich Drepper.
93743
93744 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
93745
93746         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
93747         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
93748         Giving in to popular pressure to shut up the compiler with casts.
93749
93750 2000-10-26  Jim Meyering  <meyering@lucent.com>
93751
93752         * lib/strftime.c: Update from libc.
93753
93754 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
93755
93756         * regex.c: More `unsigned char' -> `re_char' changes.
93757         Also change several `int' into `re_wchar_t'.
93758         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
93759         (PUSH_FAILURE_POINTER): Don't cast any more.
93760         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
93761         We want GCC to complain, since this piece of code makes
93762         re_match non-reentrant, which *should* be fixed.
93763         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
93764         (EXTEND_BUFFER): Use RETALLOC.
93765         (SET_LIST_BIT): Don't cast.
93766         (re_wchar_t): New type.
93767         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
93768         that those two functions will always properly return.
93769         (IMMEDIATE_QUIT_CHECK): Cast to void.
93770         (analyse_first): Use recursion rather than an explicit stack.
93771         (re_compile_fastmap): Can't fail anymore.
93772         (re_search_2): Don't check re_compile_fastmap for failure.
93773         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
93774         Now also sets the new value (passed in a new argument).
93775         (re_match_2_internal): Use it.
93776         Also, use a new var `reg' of type size_t when looping through regs
93777         rather than reuse the inappropriate `mcnt'.
93778
93779 2000-10-25  Jim Meyering  <meyering@lucent.com>
93780
93781         * lib/obstack.c: Update from libc.
93782
93783 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
93784
93785         * regex.c (regex_compile): Change the way of handling a range from
93786         a char less than 256 to a char not less than 256.
93787
93788 2000-10-24  Andrew Innes  <andrewi@gnu.org>
93789
93790         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
93791         NT-Emacs only.
93792         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
93793         so that re_search functions only quit when callers expect them to.
93794
93795 2000-10-23  Jim Meyering  <meyering@lucent.com>
93796
93797         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
93798         wrong.  That set_locale call must not have any side effects.
93799         From Paul Eggert.
93800
93801 2000-10-22  Jim Meyering  <meyering@lucent.com>
93802
93803         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
93804         [CYCLIC]: Remove now-unused definition.
93805
93806         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
93807         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
93808         Suggestion from Ulrich Drepper.
93809
93810 2000-10-21  Jim Meyering  <meyering@lucent.com>
93811
93812         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
93813         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
93814         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
93815
93816 2000-10-21  Jim Meyering  <meyering@lucent.com>
93817
93818         * lib/dirname.c (memrchr): Declare if necessary.
93819         (dir_name): Remove the restriction that there be no
93820         trailing slashes.  Now, this code skips past them, effectively
93821         ignoring them.
93822         [TEST_DIRNAME] (main): New unit tests.
93823
93824         * lib/memrchr.c: New file from GNU libc.
93825         Undef __memrchr, too.
93826         [!weak_alias]: Define __memrchr to memrchr.
93827         Guard weak_alias use with `#ifdef weak_alias'.
93828
93829 2000-10-21  Jim Meyering  <meyering@lucent.com>
93830
93831         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
93832         (dir_name): Use dir_name_r.
93833         * lib/dirname.h (dir_name_r): Declare it.
93834
93835 2000-10-17  Jim Meyering  <meyering@lucent.com>
93836
93837         * lib/quote.h (PARAMS): Define and use.
93838         Reported by Akim Demaille.
93839
93840         * lib/getopt.c: Update from libc.
93841
93842 2000-10-16  Jim Meyering  <meyering@lucent.com>
93843
93844         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
93845         setlocale.
93846         From Jan Fedak.
93847
93848 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
93849
93850         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
93851
93852 2000-09-25  Jim Meyering  <meyering@lucent.com>
93853
93854         * lib/md5.h (rol): Define (from GnuPG).
93855
93856         * lib/sha.c: Give credit (GnuPG) where due.
93857         (M): Use rol rather than open-coding it.
93858         Add a FIXME comment.
93859
93860 2000-09-21  Jim Meyering  <meyering@lucent.com>
93861
93862         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
93863         Reported by Michael Stone.
93864
93865 2000-09-20  Jim Meyering  <meyering@lucent.com>
93866
93867         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
93868         (noinst_HEADERS): Add sha.h.
93869         Based on code from Scott G. Miller and from GnuPG.
93870
93871 2000-09-18  Jim Meyering  <meyering@lucent.com>
93872
93873         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
93874         LIBS. Otherwise, everyone ends up linking with -lelf for some
93875         configurations.
93876         Reported by Mike Stone.
93877
93878 2000-09-15  Jim Meyering  <meyering@lucent.com>
93879
93880         * lib/regex.c: Update from libc.
93881
93882 2000-09-10  Jim Meyering  <meyering@lucent.com>
93883
93884         * lib/getopt.c (_getopt_internal): Update from glibc.
93885
93886 2000-09-09  Jim Meyering  <meyering@lucent.com>
93887
93888         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
93889         think it should be used as a general replacement for isascii.
93890         * lib/fnmatch.c: Likewise.
93891         * lib/mbswidth.c: Likewise
93892         * lib/regex.c: Likewise.
93893
93894         Don't use atoi.
93895         * lib/userspec.c: Include sys/param.h and limits.h.
93896         Include xstrtol.h.
93897         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93898         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
93899         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
93900         UID, GID.  Check range.
93901
93902 2000-09-06  Jim Meyering  <meyering@lucent.com>
93903
93904         * lib/getopt.c (_getopt_internal): Update from glibc.
93905
93906 2000-08-30  Jim Meyering  <meyering@lucent.com>
93907
93908         * lib/strftime.c: Merge in changes from GNU libc.
93909
93910 2000-08-26  Jim Meyering  <meyering@lucent.com>
93911
93912         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
93913         * m4/fpending.m4: New file.
93914
93915 2000-08-26  Jim Meyering  <meyering@lucent.com>
93916
93917         * lib/closeout.c: Include "__fpending.h".
93918         (close_stdout_status): Return right away if there's nothing to flush.
93919
93920         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
93921         * lib/__fpending.c: New file.
93922         * lib/__fpending.h: New file.
93923
93924 2000-08-20  Jim Meyering  <meyering@lucent.com>
93925
93926         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
93927         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
93928         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
93929
93930 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
93931
93932         Improve fileutils installation on systems where running
93933         programs (like install) can't be unlinked.
93934         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
93935         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
93936
93937 2000-08-07  Paul Eggert  <eggert@twinsun.com>
93938
93939         Standardize on "memory exhausted" instead of "Memory exhausted"
93940         or "virtual memory exhausted".
93941         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
93942         "virtual memory exhausted".
93943         * lib/same.c (same_name): Invoke xalloc_die instead of printing
93944         our own message.
93945         * lib/userspec.c (parse_user_spec): Likewise.
93946         * lib/bumpalloc.h: comment fix
93947         * lib/same.c, userspec.c: Include xalloc.h.
93948
93949         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
93950         not char *const and pointing to a constant array.
93951         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
93952         (xrealloc): Comment fix.
93953
93954         * lib/userspec.c (parse_user_spec):
93955         Don't translate a message until just before returning,
93956         to avoid unnecessary translation.
93957
93958 2000-08-07  Jim Meyering  <meyering@lucent.com>
93959
93960         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
93961         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
93962         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
93963         getgroups.c, gethostname.c, getopt.h, group-member.c,
93964         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
93965         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
93966         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
93967         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
93968         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
93969         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
93970         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
93971         yesno.c: Back out Copyright date changes for each file with no change
93972         this year.  This eases coordination with other programs using the same
93973         source code modules.  From Paul Eggert.
93974
93975 2000-08-06  Paul Eggert  <eggert@twinsun.com>
93976
93977         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
93978         not char, for compatibility with glibc 2.1.3 strftime.c.
93979
93980 2000-08-03  Greg McGary  <greg@mcgary.org>
93981
93982         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
93983         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
93984         (EXTEND_BUFFER): Use them.
93985
93986 2000-08-01  Jim Meyering  <meyering@lucent.com>
93987
93988         * lib/dirname.c (ISSLASH): Define.
93989         (BACKSLASH_IS_PATH_SEPARATOR): Define.
93990         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
93991         both `\' and `/' may be use as path separators.
93992         Based on a patch from Prashant TR.
93993
93994 2000-07-31  Paul Eggert  <eggert@twinsun.com>
93995
93996         * lib/quotearg.c (quotearg_n_options): Don't make the initial
93997         slot vector a constant, since it might get modified.
93998
93999 2000-07-31  Jim Meyering  <meyering@lucent.com>
94000
94001         * lib/xmalloc.c: Use `virtual memory exhausted', not
94002         `Memory exhausted'.
94003         * lib/obstack.c (print_and_abort): Likewise.
94004
94005 2000-07-30  Paul Eggert  <eggert@twinsun.com>
94006
94007         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
94008         buffer, so that the caller can always quote one small
94009         component of a "memory exhausted" message in slot 0.
94010         From a suggestion by Jim Meyering.
94011
94012 2000-07-30  Jim Meyering  <meyering@lucent.com>
94013
94014         * lib/makepath.c (make_path): Quote the other instance, too.
94015
94016         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
94017         (STATIC_BUF_SIZE): Define.
94018         (quotearg_n_options): Use only statically allocated storage when
94019         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
94020         than STATIC_BUF_SIZE.
94021
94022 2000-07-29  Jim Meyering  <meyering@lucent.com>
94023
94024         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
94025         * lib/dirname.c (dir_name): Likewise.
94026
94027         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
94028         `/'.
94029
94030         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
94031         (dir_name): Assert that there are no trailing slashes.
94032
94033 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
94034
94035         * lib/mbswidth.h (mbswidth): Add a flags argument.
94036         (mbswidth): New declaration.
94037         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
94038         * lib/mbswidth.c (mbswidth): Add a flags argument.
94039         (mbsnwidth): New function.
94040
94041 2000-07-24  Jim Meyering  <meyering@lucent.com>
94042
94043         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
94044
94045 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94046
94047         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
94048
94049 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94050
94051         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
94052         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
94053         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
94054         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
94055         invoke multibyte primitives.
94056
94057 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94058
94059         * lib/quotearg.c:
94060         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
94061         so that mbstate_t is always defined.
94062
94063         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
94064         be 1 in at least one GCC installation, and this configuration
94065         error is likely to be common.  Ignoring MB_LEN_MAX hurts
94066         performance on hosts that have mbrtowc but have only unibyte
94067         locales, but I assume these hosts are rare.
94068
94069 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94070
94071         * lib/mbswidth.c (_XOPEN_SOURCE):
94072         Don't define; this causes problems on Solaris 7.
94073         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
94074
94075 2000-07-23  Jim Meyering  <meyering@lucent.com>
94076
94077         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
94078         too: getgrgid, getpwuid, getuid.
94079
94080 2000-07-23  Jim Meyering  <meyering@lucent.com>
94081
94082         * lib/basename.c (base_name): Add an assertion.
94083
94084 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
94085
94086         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
94087         shadow its mbsinit function.
94088
94089 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
94090
94091         * lib/mbswidth.h: New file.
94092         * lib/mbswidth.c: New file.
94093         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
94094         (noinst_HEADERS): Add mbswidth.h.
94095
94096 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
94097
94098         * lib/config.charset: Add support for FreeBSD. Improve support for
94099         HP-UX and IRIX 6.
94100
94101 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
94102
94103         * m4/mbswidth.m4: New file.
94104         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
94105
94106 2000-07-15  Jim Meyering  <meyering@lucent.com>
94107
94108         * lib/makepath.c: Include quote.h.
94109         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
94110         corresponding argument in a `quote (...)' call.
94111         Give better diagnostics.
94112
94113         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
94114         (noinst_HEADERS): Add quote.h.
94115
94116         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
94117         from tar's src/misc.c.
94118         * lib/quote.h: New file.  Prototypes for same.
94119
94120 2000-07-14  Paul Eggert  <eggert@twinsun.com>
94121
94122         From a suggestion by Bruno Haible.
94123         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
94124         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
94125         to decide whether to define the BeOS workaround macro;
94126         this adjusts to the change to AC_MBSTATE_T.
94127
94128 2000-07-14  Jim Meyering  <meyering@lucent.com>
94129
94130         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
94131         jm_AC_TYPE_UINTMAX_T.
94132
94133 2000-07-13  Paul Eggert  <eggert@twinsun.com>
94134
94135         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
94136
94137         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
94138         quotearg_buffer_restyled): Add support for
94139         clocale_quoting_style.  Undo previous change to
94140         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
94141         and "{RIGHT QUOTATION MARK}" msgids.
94142
94143 2000-07-10  Paul Eggert  <eggert@twinsun.com>
94144
94145         From a suggestion by Bruno Haible.
94146         * m4/mbstate_t.m4 (AC_MBSTATE_T):
94147         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
94148         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
94149         and mbstate_t, to a single-part test that simply defines mbstate_t.
94150         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
94151         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
94152
94153 2000-07-10  Jim Meyering  <meyering@lucent.com>
94154
94155         * m4/strerror_r.m4: Mirror the correction made in autoconf.
94156
94157         * m4/gnu-source.m4: Output to confdefs.h directly.
94158         Suggestion from Akim Demaille.
94159
94160 2000-07-09  Paul Eggert  <eggert@twinsun.com>
94161
94162         The old behavior of quoting `like this' doesn't look good with
94163         newer, ISO-style fonts.  See:
94164         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
94165
94166         Instead, quote "like this" by default.  Let the translator
94167         tailor the locale-specific quoting behavior by providing
94168         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
94169
94170         * lib/quotearg.c (N_): New macro.
94171         (gettext_default): New function.
94172         (quotearg_buffer_restyled): Use
94173         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
94174         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
94175
94176 2000-07-09  Jim Meyering  <meyering@lucent.com>
94177
94178         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
94179         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
94180
94181         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
94182         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
94183
94184 2000-07-09  Jim Meyering  <meyering@lucent.com>
94185
94186         * lib/Most files: Update copyright dates to include 2000.
94187
94188 2000-07-08  Jim Meyering  <meyering@lucent.com>
94189
94190         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
94191         if not defined.
94192         (xgethostname): Remove now-unnecessary #ifdef.
94193         Move declaration of `err' into loop where it's used.
94194
94195 2000-07-05  Paul Eggert  <eggert@twinsun.com>
94196         and Bruno Haible  <haible@clisp.cons.org>
94197
94198         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
94199         only if the test for an object-type mbstate_t fails.  This
94200         prevents us from mistakenly reporting that mbstate_t is a
94201         system object type after we "#define mbstate_t int" to work
94202         around its lack.
94203
94204 2000-07-05  Paul Eggert  <eggert@twinsun.com>
94205         and Bruno Haible  <haible@clisp.cons.org>
94206
94207         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
94208
94209 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94210
94211         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
94212         to strerror_r.
94213         Include <ctype.h> for use of isalpha.
94214
94215 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94216
94217         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
94218         by allocating a larger buffer. Test the gethostname return value for
94219         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
94220         returns an error and ENAMETOOLONG isn't defined.
94221
94222 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94223
94224         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
94225         dimension.
94226
94227 2000-07-04  Jim Meyering  <meyering@lucent.com>
94228
94229         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
94230         of the deprecated AC_CHECKING.
94231
94232 2000-07-04  Jim Meyering  <meyering@lucent.com>
94233
94234         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
94235         Reported by Bruno Haible.
94236
94237 2000-07-04  Jim Meyering  <meyering@lucent.com>
94238
94239         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
94240         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
94241         lacks mbrtowc.
94242
94243 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94244
94245         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
94246         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
94247
94248 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94249         and Bruno Haible  <haible@clisp.cons.org>
94250
94251         * lib/quotearg.c (mbrtowc):
94252         Assign to *pwc, and return 1 only if result is nonzero.
94253         (iswprint): Use ISPRINT when substituting our own mbrtowc.
94254
94255 2000-07-03  Jim Meyering  <meyering@lucent.com>
94256
94257         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
94258
94259 2000-07-03  Jim Meyering  <meyering@lucent.com>
94260
94261         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
94262         This is necessary to get a definition of e.g., UTMP_FILE on
94263         HP-UX 10.20.
94264         From Bob Proulx.
94265
94266 2000-07-02  Jim Meyering  <meyering@lucent.com>
94267
94268         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
94269
94270         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
94271         AC_LIBOBJ(function_name).
94272         * m4/chown.m4: Likewise.
94273         * m4/fnmatch.m4: Likewise.
94274         * m4/ftruncate.m4: Likewise.
94275         * m4/getgroups.m4: Likewise.
94276         * m4/getline.m4: Likewise.
94277         * m4/group-member.m4: Likewise.
94278         * m4/jm-macros.m4: Likewise.
94279         * m4/lstat.m4: Likewise.
94280         * m4/malloc.m4: Likewise.
94281         * m4/memcmp.m4: Likewise.
94282         * m4/nanosleep.m4: Likewise.
94283         * m4/putenv.m4: Likewise.
94284         * m4/realloc.m4: Likewise.
94285         * m4/regex.m4: Likewise.
94286         * m4/stat.m4: Likewise.
94287         * m4/strftime.m4: Likewise.
94288
94289 2000-07-02  Jim Meyering  <meyering@lucent.com>
94290
94291         * lib/quotearg.c (mbstate_t): Don't define here.
94292
94293 2000-07-02  Jim Meyering  <meyering@lucent.com>
94294
94295         * lib/nanosleep.c (SIGCONT): Define if not already defined.
94296
94297 2000-07-01  Jim Meyering  <meyering@lucent.com>
94298
94299         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
94300
94301 2000-07-01  Jim Meyering  <meyering@lucent.com>
94302
94303         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
94304         problem.
94305
94306 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94307
94308         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
94309         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
94310
94311 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94312
94313         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
94314         per change in ../m4/ls-mntd-fs.m4.
94315         (read_filesystem_list): Ignore symbolic links.
94316
94317 2000-06-29  Jim Meyering  <meyering@lucent.com>
94318
94319         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
94320         for declaration of strcmp.
94321
94322         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
94323
94324         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
94325         Avoid warning by casting result to `char *' to remove `const'.
94326
94327 2000-06-28  Jim Meyering  <meyering@lucent.com>
94328
94329         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
94330         included by quotearg.c, for which we perform this test.  From
94331         Bruno Haible.
94332
94333 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94334
94335         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
94336         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
94337         <utmpx.h> exists, put readutmp.o into LIBOBJS.
94338
94339 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94340
94341         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
94342
94343 2000-06-26  Paul Eggert  <eggert@twinsun.com>
94344
94345         savedir now sets errno on failure and invokes xmalloc to get memory.
94346         Fix a couple of other minor bugs while we're at it.
94347
94348         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
94349         (NAMLEN): Remove macro.
94350         (malloc, realloc): Remove decls.
94351         (stpcpy): Likewise.
94352         ("xalloc.h"): Include.
94353         (NAME_SIZE_DEFAULT): New macro.
94354         (savedir): Use xmalloc / xrealloc to allocate memory.
94355         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
94356         Skip "" directory entries.
94357         Use strlen to calculate directory entry length, since the old method
94358         is rarely used these days and isn't worth supporting.
94359         Don't use a pointer after freeing it.
94360         Check for integer overflow when calculating allocation size.
94361         Use memcpy to copy entries, instead of stpcpy.
94362         Set errno properly when returning NULL.
94363         Check for readdir error.
94364
94365 2000-06-26  Jim Meyering  <meyering@lucent.com>
94366
94367         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
94368
94369 2000-06-25  Jim Meyering  <meyering@lucent.com>
94370
94371         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
94372         Linux header bug when _XOPEN_SOURCE is defined to 500.
94373
94374 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94375
94376         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
94377         deficiency.
94378
94379 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94380
94381         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
94382         Include xalloc.h.
94383         Don't include <stdlib.h>.  Don't declare malloc, realloc.
94384
94385 2000-06-24  Jim Meyering  <meyering@lucent.com>
94386
94387         * m4/strerror_r.m4: Revive this file -- to try out an experimental
94388         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
94389         for which strerror does return char*, but which lacks a conveniently
94390         accessible declaration of the function.  If the compile-test says
94391         strerror_r doesn't work, then resort to a `run'-test that works on
94392         BeOS and segfaults on DEC Unix.
94393
94394 2000-06-24  Jim Meyering  <meyering@lucent.com>
94395
94396         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
94397
94398 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94399
94400         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
94401         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
94402
94403 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94404
94405         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
94406         (mbrtowc, mbstate_t): Define substitutes if
94407         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
94408         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
94409         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
94410
94411 2000-06-23  Jim Meyering  <meyering@lucent.com>
94412
94413         * m4/afs.m4: Add missing AC_MSG_RESULT.
94414         Reported by Bruno Haible.
94415
94416         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
94417         Suggestion from Bruno Haible.
94418
94419 2000-06-23  Jim Meyering  <meyering@lucent.com>
94420
94421         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
94422
94423 2000-06-21  Jim Meyering  <meyering@lucent.com>
94424
94425         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
94426
94427 2000-06-21  Jim Meyering  <meyering@lucent.com>
94428
94429         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
94430         (noinst_HEADERS): Add getstr.h.
94431
94432         * lib/getline.c (getstr): Move into a separate file.
94433         * lib/getstr.c (getstr): New file, extracted from getline.c, with
94434         the following changes: new parameter, delim2; both delim[12]
94435         parameters have type `int', not `char'.  The latter would lose
94436         with 8-bit delimiters.
94437         * lib/getstr.h: New file.
94438
94439 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94440
94441         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
94442         than 1024, return a memory chunk of least possible size, instead
94443         of size PATH_MAX + 2. In the loop, increment the size proportionally.
94444         Use free/xmalloc instead of xrealloc to avoid copying for very long
94445         paths.
94446
94447 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94448
94449         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
94450         the empty string.
94451
94452 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94453
94454         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
94455         address, not strdup.  Include <stdlib.h> and don't declare free().
94456
94457 2000-06-19  Jim Meyering  <meyering@lucent.com>
94458
94459         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
94460
94461 2000-06-18  Jim Meyering  <meyering@lucent.com>
94462
94463         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
94464
94465         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
94466         `checking whether...' message to be consistent with that of the
94467         lstat test.
94468
94469 2000-06-18  Jim Meyering  <meyering@lucent.com>
94470
94471         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
94472         Besides, these days every porting target provides a mkdir function.
94473
94474         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
94475         needed. (this snippet comes from src/system.h).
94476
94477 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
94478
94479         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
94480
94481 2000-06-15  Paul Eggert  <eggert@twinsun.com>
94482
94483         * lib/human.c (adjust_value): New function.
94484         (human_readable_inexact): Apply rounding style even when
94485         printing approximate values.
94486
94487 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94488
94489         * lib/human.c (human_readable_inexact): Allow an input block
94490         size that is not a multiple of the output block size, and vice versa.
94491         Reported by Piergiorgio Sartor.
94492
94493 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94494
94495         * lib/getdate.y (get_date): Apply relative times after time
94496         zone indicator, not before.  Reported by Todd A. Jacobs.
94497
94498 2000-06-13  Jim Meyering  <meyering@lucent.com>
94499
94500         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
94501
94502         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
94503
94504 2000-06-12  Paul Eggert  <eggert@twinsun.com>
94505
94506         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
94507
94508 2000-06-12  Jim Meyering  <meyering@lucent.com>
94509
94510         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
94511         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
94512         optional argument.
94513         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
94514         the optional argument, `lib'.
94515
94516 2000-06-08  Jim Meyering  <meyering@lucent.com>
94517
94518         * m4/largefile.m4: Remove file (now that it's part of autoconf).
94519
94520 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94521
94522         Rewrite largefile configuration so that we don't need to run
94523         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
94524         AC_CANONICAL_HOST in configure.in -- jmm]
94525
94526         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
94527         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
94528         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
94529         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
94530         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
94531         All uses changed.
94532         Instead of inspecting the output of getconf, try to compile the
94533         test program without and with the macro definition.
94534         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
94535         for getconf.  Instead, check for the needed flags by compiling
94536         test programs.
94537
94538 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94539
94540         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
94541
94542 2000-06-04  Jim Meyering  <meyering@lucent.com>
94543
94544         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
94545         SunOS 4.1.4 for which gid_t is an unsigned type.
94546
94547 2000-06-03  Jim Meyering  <meyering@lucent.com>
94548
94549         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
94550         now that autoconf requires that.
94551
94552         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
94553         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
94554         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
94555
94556 2000-06-03  Jim Meyering  <meyering@lucent.com>
94557
94558         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
94559
94560 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94561
94562         * m4/glibc21.m4: New file.
94563         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
94564
94565 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94566
94567         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
94568         newer, don't install charset.alias.
94569         * lib/config.charset: Change the Linux/glibc rules so they become empty
94570         on glibc-2.1 or newer.
94571
94572 2000-06-02  Jim Meyering  <meyering@lucent.com>
94573
94574         * lib/mountlist.c: Back out last change.  Instead, do this...
94575         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
94576         me_dummy member using the same `ignore'-testing code.
94577         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
94578         fs_type strings.
94579         From Mark D. Roth.
94580
94581 2000-05-29  Jim Meyering  <meyering@lucent.com>
94582
94583         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
94584         mounts with the `ignore' attribute.  Based on a patch from
94585         Mark D. Roth.
94586
94587 2000-05-28  Jim Meyering  <meyering@lucent.com>
94588
94589         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
94590         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94591         * m4/stat.m4: Likewise.
94592         * m4/lstat.m4: Likewise.
94593         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
94594
94595         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
94596         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
94597
94598 2000-05-26  Jim Meyering  <meyering@lucent.com>
94599
94600         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
94601
94602 2000-05-24  Jim Meyering  <meyering@lucent.com>
94603
94604         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
94605         autoconf requires that.
94606         * m4/lib-check.m4: Likewise.
94607         * m4/jm-macros.m4: Likewise.
94608         * m4/strftime.m4: Likewise.
94609
94610         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
94611         AC_CHECK_DECLS, now that autoconf requires that.
94612
94613 2000-05-22  Jim Meyering  <meyering@lucent.com>
94614
94615         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94616         * m4/lstat.m4: Likewise.
94617
94618 2000-05-22  Jim Meyering  <meyering@lucent.com>
94619
94620         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
94621
94622 2000-05-20  Jim Meyering  <meyering@lucent.com>
94623
94624         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
94625         (jm_PREREQ): Use it.
94626
94627 2000-05-18  Jim Meyering  <meyering@lucent.com>
94628
94629         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
94630         back, too, since it may have been modified by allocate_entry.
94631         (hash_delete): Rewrite to use neither the assignment operator
94632         nor the comma operator in an if-expression.
94633
94634 2000-05-15  Paul Eggert  <eggert@twinsun.com>
94635
94636         * lib/closeout.c:
94637         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
94638         Remove; no longer needed.
94639         "quotearg.h": Add include.
94640         (file_name): Do not bother to explicitly initialize to NULL; it's less
94641         efficient on some hosts.
94642         (close_stdout_status): Remove test as to whether stdout was already
94643         closed; it breaks for the case "echo x | sort >&-".
94644         Quote file name colons.
94645         Do not assume that _("write error") lacks format strings.
94646
94647 2000-05-15  Jim Meyering  <meyering@lucent.com>
94648
94649         * lib/version-etc.c (version_etc_copyright): Update the copyright
94650         string used in all --version output.
94651
94652 2000-05-14  Jim Meyering  <meyering@lucent.com>
94653
94654         * lib/closeout.c (close_stdout_set_file_name): New function.
94655         (close_stdout_status): Use new file-scoped global.
94656         Return right away if fstat says the stdout file descriptor is invalid.
94657         * lib/closeout.h (close_stdout_set_file_name): Declare.
94658
94659 2000-05-10  Jim Meyering  <meyering@lucent.com>
94660
94661         * lib/closeout.c [default_exit_status]: New file-scoped variable.
94662         (close_stdout_set_status): New function.
94663         * lib/closeout.h (close_stdout_set_status): Declare.
94664
94665 2000-05-09  Jim Meyering  <meyering@lucent.com>
94666
94667         * m4/gettext.m4: Rename this...
94668         * m4/libintl.m4: ...to this.
94669
94670 2000-05-08  Jim Meyering  <meyering@lucent.com>
94671
94672         * lib/long-options.c: Don't include closeout.h.
94673         (parse_long_options): Don't call close_stdout for --version.
94674
94675 2000-05-06  Paul Eggert  <eggert@twinsun.com>
94676
94677         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
94678         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
94679         2.1.3 bug.  This avoids a clash when files like regex.c define
94680         _GNU_SOURCE.
94681
94682 2000-05-06  Jim Meyering  <meyering@lucent.com>
94683
94684         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
94685         (AC_REPLACE_FUNCS): Add strnlen.
94686
94687         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
94688         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
94689
94690         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
94691         AC_SEARCH_LIBS call for nanosleep.
94692         (LIB_NANOSLEEP): Set and AC_SUBST.
94693
94694 2000-05-06  Jim Meyering  <meyering@lucent.com>
94695
94696         * lib/strnlen.c: Undefine __strnlen and strnlen.
94697         [!weak_alias]: Define __strnlen to strnlen.
94698
94699         * lib/atexit.c: New file, from libiberty.
94700
94701 2000-05-06  Jim Meyering  <meyering@lucent.com>
94702
94703         * lib/closeout.c (close_stdout_status): Also check for errors on the
94704         stderr stream.
94705
94706 2000-05-05  Jim Meyering  <meyering@lucent.com>
94707
94708         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
94709         AC_SEARCH_LIBS call for clock_gettime.
94710         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
94711
94712         * m4/search-libs.m4: Update from autoconf.
94713
94714         su doesn't work on Solaris 2.6.
94715         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
94716         <shadow.h>.  Reported by Dragos Harabor.
94717
94718 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
94719
94720         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
94721         memcpy instead of xmalloc, xrealloc, path_concat.
94722         (locale_charset): Treat empty environment variables as absent.
94723         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
94724
94725 2000-05-04  Jim Meyering  <meyering@lucent.com>
94726
94727         * lib/getopt.c: Update from glibc.
94728         * lib/obstack.c: Likewise.
94729         * lib/obstack.h: Likewise.
94730         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
94731         file
94732
94733         * lib/regex.h: Likewise.
94734         * lib/strndup.c: Likewise.
94735         * lib/strnlen.c: New file, from glibc.
94736
94737 2000-05-03  Jim Meyering  <meyering@lucent.com>
94738
94739         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
94740
94741 2000-05-02  Paul Eggert  <eggert@twinsun.com>
94742
94743         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
94744         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
94745         compile-time test, rather than inspecting host and OS, to
94746         decide whether to define _LARGEFILE_SOURCE.
94747
94748 2000-05-01  Jim Meyering  <meyering@lucent.com>
94749
94750         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
94751
94752         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
94753         Based on a patch from Bruno Haible.
94754
94755 2000-05-01  Jim Meyering  <meyering@lucent.com>
94756
94757         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
94758
94759 2000-04-29  Jim Meyering  <meyering@lucent.com>
94760
94761         * lib/path-concat.c: Declare strdup only if it's not defined.
94762         * lib/canon-host.c: Likewise.
94763
94764 2000-04-28  Jim Meyering  <meyering@lucent.com>
94765
94766         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
94767         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
94768         is included first, then limits.h is included by locale.h by libintl.h.
94769         From John David Anglin.
94770
94771 2000-04-25  Jim Meyering  <meyering@lucent.com>
94772
94773         * lib/makepath.c (S_IRWXUGO): Define.
94774         (make_path): Always perform explicit chmod if MODE specifies any
94775         of the `special' permission bits.  Prompted by a bug report against
94776         install from Mate Wierdl and Joost van Baal.
94777
94778 2000-04-18  Jim Meyering  <meyering@lucent.com>
94779
94780         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
94781         (jm_PREREQ): Use it.
94782
94783 2000-04-18  Jim Meyering  <meyering@lucent.com>
94784
94785         * lib/README: New file.
94786
94787         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
94788         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
94789
94790 2000-04-17  Jim Meyering  <meyering@lucent.com>
94791
94792         Get it right :-)
94793         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
94794         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
94795         Suggestion from Akim Demaille.
94796
94797 2000-04-17  Jim Meyering  <meyering@lucent.com>
94798
94799         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
94800         the definition of it to rpl_strftime also defined-away the system's
94801         declaration.
94802
94803 2000-04-15  Jim Meyering  <meyering@lucent.com>
94804
94805         Use `C' to denote so-called `contiguous' files, the same way
94806         that tar does.
94807         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
94808         (ftypelet): Use S_ISCTG.
94809         From Michael Deutschmann.
94810
94811 2000-04-14  Jim Meyering  <meyering@lucent.com>
94812
94813         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
94814         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
94815         clobbered.
94816
94817 2000-04-14  Jim Meyering  <meyering@lucent.com>
94818
94819         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
94820
94821 2000-04-13  Jim Meyering  <meyering@lucent.com>
94822
94823         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
94824         AH_VERBATIM to insert required #ifndef into config.h.in.
94825         Suggestion from Akim Demaille.
94826
94827 2000-04-12  Jim Meyering  <meyering@lucent.com>
94828
94829         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
94830         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
94831         Christian Krackowizer.
94832
94833         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
94834         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
94835         (AC_SYS_LARGEFILE): Require.
94836         (AM_C_PROTOTYPES): Require.
94837
94838 2000-04-08  Jim Meyering  <meyering@lucent.com>
94839
94840         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
94841         names don't conflict.  Reported by Eli Zaretskii.
94842
94843 2000-04-07  Jim Meyering  <meyering@lucent.com>
94844
94845         * lib/putenv.c: Move inclusion of errno.h so it follows that of
94846         sys/types.h, to work around system header problems on AIX 3.2.5.
94847         From Bruno Haible.
94848
94849 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
94850
94851         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
94852         bug.  Deal with the different error behavior of Irix iconv.
94853
94854 2000-04-05  Paul Eggert  <eggert@twinsun.com>
94855
94856         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
94857         IRIX if the installer said otherwise.
94858
94859 2000-04-05  Jim Meyering  <meyering@lucent.com>
94860
94861         Portability tweaks required for ultrix4.3.
94862         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
94863         (jm_CHECK_DECLS): Add getutent to the list of functions.
94864         (_jm_DECL_HEADERS): Add utmpx.h.
94865         From John David Anglin.
94866
94867         * m4/strftime.m4: Back out the 2000-04-02 change.
94868         Instead of that change, simply undefine putenv in the test program.
94869
94870 2000-04-05  Jim Meyering  <meyering@lucent.com>
94871
94872         Portability tweaks required for ultrix4.3.
94873         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
94874         getutent.
94875         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
94876         * lib/canon-host.c: Declare strdup.
94877         * lib/path-concat.c: Likewise.
94878         From John David Anglin.
94879
94880 2000-04-04  Jim Meyering  <meyering@lucent.com>
94881
94882         Be more DOS 8.3-friendly.
94883         * lib/ref-add.sin: Renamed from ref-add.sed.in.
94884         * lib/ref-del.sin: Renamed from ref-del.sed.in.
94885         * lib/Makefile.am: Reflect renaming.
94886         Reported by Eli Zaretskii.
94887
94888         Use a temporary file name that won't clash with `charset.alias'
94889         in the DOS 8.3 name space.
94890         * lib/Makefile.am (charset_tmp): Define.
94891         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
94892         (uninstall-local): Likewise.
94893         Reported by Eli Zaretskii.
94894
94895 2000-04-03  Jim Meyering  <meyering@lucent.com>
94896
94897         * m4/gettext.m4: Fix typo in comment.
94898
94899         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
94900         textutils/configure.in).  Suggestion from Paul Eggert.
94901         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
94902
94903 2000-04-02  Paul Eggert  <eggert@twinsun.com>
94904
94905         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
94906         variable in the shell rather than using putenv, which isn't
94907         portable.  This avoids the configure-time inter-test dependency
94908         on the potentially-renamed putenv function.
94909
94910 2000-03-30  Paul Eggert  <eggert@twinsun.com>
94911
94912         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
94913         before checking struct stat.st_blksize, so that
94914         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
94915
94916 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94917
94918         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
94919         since strftime.c uses HAVE_STRFTIME to decide whether to use
94920         the underlying strftime.
94921
94922 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94923
94924         * lib/time/strftime.c (my_strftime): Make sure we call the system
94925         strftime, not ourselves, when invoking the underlying strftime.
94926
94927 2000-03-24  Jim Meyering  <meyering@lucent.com>
94928
94929         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
94930         (charset_alias): Define.
94931         (install-exec-local): Factor out common code.
94932         (uninstall-local): Split lines longer than 80.
94933         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
94934         (SUFFIXES): Define.
94935         (.sed.in.sed): New rule.  Don't redirect directly to $@.
94936         (CLEANFILES): Add ref-add.sed and ref-del.sed.
94937
94938 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
94939
94940         * lib/config.charset: Output a line containing "Packages using this
94941         file".
94942         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
94943         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
94944         ref-del.sed): New rules.
94945
94946 2000-03-17  Jim Meyering  <meyering@lucent.com>
94947
94948         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
94949         Otherwise, include <strings.h>
94950
94951 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
94952
94953         * lib/unicodeio.c (utf8_wctomb): New function.
94954         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
94955         format instead of in UCS-4 with platform dependent endianness.
94956
94957 2000-03-10  Jim Meyering  <meyering@lucent.com>
94958
94959         * m4/lib-check.m4: Look for getspnam in -lgen, too.
94960         From Marco Franzen.
94961
94962 2000-03-07  Paul Eggert  <eggert@twinsun.com>
94963
94964         * lib/savedir.c (savedir): Work even if directory size is
94965         negative; this can happen with some screwy NFS configurations.
94966
94967 2000-03-06  Jim Meyering  <meyering@lucent.com>
94968
94969         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
94970         if it's NULL (because we ran out of memory).  From Bruno Haible.
94971
94972 2000-03-05  Jim Meyering  <meyering@lucent.com>
94973
94974         * lib/localcharset.c ("path-concat.h"): Include.
94975         (get_charset_aliases): Use path_concat instead of ANSI string
94976         concatenation.
94977
94978         * lib/unicodeio.h (PARAMS): Define.
94979         Use it to guard prototype.
94980
94981 2000-03-04  Jim Meyering  <meyering@lucent.com>
94982
94983         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
94984         for lib/localcharset.c.
94985
94986 2000-03-04  Jim Meyering  <meyering@lucent.com>
94987
94988         * lib/Makefile.am (install-exec-local): Create $(libdir) before
94989         installing into it.
94990         (uninstall-local): Uncomment this rule so `make distcheck' works
94991         once again.
94992
94993         * lib/unicodeio.c (<errno.h>): Include it.
94994         (errno): Declare if not defined.
94995
94996         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
94997
94998         * lib/config.charset: New version, incorporating remarks from a linux
94999         i18n mailing list.  From Bruno Haible.
95000
95001 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
95002
95003         * m4/codeset.m4: New file.
95004         * m4/iconv.m4: New file.
95005         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
95006
95007 2000-03-03  Jim Meyering  <meyering@lucent.com>
95008
95009         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
95010
95011 2000-03-02  Jim Meyering  <meyering@lucent.com>
95012
95013         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
95014         the messages come out on separate lines.
95015
95016         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
95017         rather than jm_CHECK_DECLARATIONS.
95018         * m4/decl.m4: Remove now-unused file.
95019
95020         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
95021         geteuid.
95022
95023 2000-03-02  Jim Meyering  <meyering@lucent.com>
95024
95025         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
95026
95027 2000-03-01  Jim Meyering  <meyering@lucent.com>
95028
95029         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
95030         * lib/unicodeio.c: Likewise.
95031
95032 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
95033
95034         * lib/config.charset: New file.
95035         * lib/localcharset.c: New file.
95036         * lib/unicodeio.h, lib/unicodeio.c: New files.
95037         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
95038         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
95039         (noinst_HEADERS): Add unicodeio.h.
95040         (all-local, install-exec-local, charset.alias): New targets.
95041
95042 2000-02-28  Paul Eggert  <eggert@twinsun.com>
95043
95044         * lib/quotearg.c (ALERT_CHAR): New macro.
95045         (quotearg_buffer_restyled): Use it.
95046
95047 2000-02-27  Jim Meyering  <meyering@lucent.com>
95048
95049         * m4/check-decl.m4: Add getenv to the list.
95050
95051 2000-02-27  Jim Meyering  <meyering@lucent.com>
95052
95053         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
95054         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
95055
95056         * lib/backupfile.c: Guard inclusion of stdlib.h with
95057         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
95058         Declare malloc if needed.
95059
95060         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
95061         `#ifndef HAVE_DECL..'
95062         now that autoconf always defines the HAVE_DECL_ symbols.
95063         * lib/human.c: Likewise.
95064         * lib/same.c: Likewise.
95065         * lib/strtoumax.c: Likewise.
95066
95067         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
95068         declaration check was not run.
95069         * lib/hash.c: Likewise.
95070         * lib/human.c: Likewise.
95071         * lib/same.c: Likewise.
95072         * lib/strtoumax.c: Likewise.
95073
95074         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
95075         `.', then first look up the entire `.'-containing string as a login
95076         name.
95077
95078 2000-02-23  Jim Meyering  <meyering@lucent.com>
95079
95080         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
95081         in place of my hack.
95082
95083 2000-02-18  Paul Eggert  <eggert@twinsun.com>
95084
95085         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
95086         (textint): New typedef.
95087         (parser_control): Member year changed from int to textint.
95088         All uses changed.
95089         (YYSTYPE): Removed; replaced by %union with int and textint members.
95090         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
95091         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
95092         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
95093         (tSNUMBER, tUNUMBER): Now of type <textintval>.
95094         (date, number, to_year): Use width of number in digits, not its value,
95095         to determine whether it's a 2-digit year, or a 2-digit time.
95096         (yylex): Store number of digits of numeric tokens.
95097         Reported by John Kendall.
95098
95099         (parser_control): Changed from struct parser_control to typedef (for
95100         consistency).  All uses changed.
95101
95102         (tID): Removed; not used.
95103         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
95104
95105 2000-02-14  Paul Eggert  <eggert@twinsun.com>
95106
95107         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
95108         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
95109
95110 2000-02-12  Jim Meyering  <meyering@lucent.com>
95111
95112         * lib/userspec.c (ISDIGIT): Define it.
95113         (isdigit): Remove definition.
95114         (is_number): Use ISDIGIT, not isdigit.
95115         <libintl.h>: Include.
95116         (_ and N_): Define.
95117         (parse_user_spec): Mark translatable strings.
95118
95119 2000-02-10  Jim Meyering  <meyering@lucent.com>
95120
95121         With these changes, nanosleep.[ch] are finally enough like the other
95122         lib/* replacement files to compile on a few more losing systems.
95123
95124         * lib/nanosleep.h: Don't include config.h.
95125         Remove prototype from declaration of nanosleep.
95126         (PARAMS): Remove now-unneeded definition.
95127         * lib/nanosleep.c: #undef nanosleep.
95128         (rpl_nanosleep): Rename from nanosleep.
95129
95130 2000-02-10  Jim Meyering  <meyering@lucent.com>
95131
95132         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
95133         gnu_nanosleep to rpl_nanosleep.
95134
95135 2000-02-09  Jim Meyering  <meyering@lucent.com>
95136
95137         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
95138         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
95139
95140 2000-02-08  Akim Demaille  <akim@epita.fr>
95141
95142         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
95143         `[' and `]' and remove uses of `changequote'.
95144         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
95145         (AC_SYS_LARGEFILE): Likewise.
95146         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
95147         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
95148         of changequote.
95149         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
95150         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
95151         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
95152         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
95153
95154 2000-02-05  Jim Meyering  <meyering@lucent.com>
95155
95156         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
95157         Remove explicit use of AC_HEADER_TIME.  It is required by
95158         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
95159         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
95160         in autoconf whereby the expansion of the latter ended up preceding
95161         the expansion of its prerequisite, AC_HEADER_TIME.
95162         Reported by Volker Borchert.
95163
95164 2000-02-03  Jim Meyering  <meyering@lucent.com>
95165
95166         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
95167
95168 2000-02-03  Jim Meyering  <meyering@lucent.com>
95169
95170         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
95171         rather than with `#if HAVE_UTMPNAME'.
95172
95173 2000-02-02  Jim Meyering  <meyering@lucent.com>
95174
95175         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
95176         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
95177         Reported by Eli Zaretskii.
95178
95179 2000-02-01  Jim Meyering  <meyering@lucent.com>
95180
95181         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
95182
95183 2000-01-31  Jim Meyering  <meyering@lucent.com>
95184
95185         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
95186         functions.  Add the time.h and sys/time.h headers along with the
95187         AC_REQUIRE'ment of AC_HEADER_TIME.
95188
95189 2000-01-31  Jim Meyering  <meyering@lucent.com>
95190
95191         * lib/nanosleep.h (nanosleep): Guard declaration with
95192         `#if ! HAVE_DECL_NANOSLEEP'.
95193         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
95194         the declaration in that vendor's sys/timers.h.
95195         Reported by Christian Krackowizer.
95196
95197         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
95198         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
95199         (ISPRINT): Likewise.
95200         Reported by Tom Tromey.
95201
95202 2000-01-30  Jim Meyering  <meyering@lucent.com>
95203
95204         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
95205
95206         * m4/prereq.m4 (utmp_includes): Define.
95207         Check for ut_user and ut_name members in both struct utmpx
95208         and struct utmp.
95209
95210 2000-01-30  Jim Meyering  <meyering@lucent.com>
95211
95212         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
95213         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
95214         header files where only utmpx.ut_user is declared.
95215
95216         * lib/readutmp.h (UT_USER): Define.
95217
95218 2000-01-29  Jim Meyering  <meyering@lucent.com>
95219
95220         * m4/lib-check.m4: New file containing library-related checks from
95221         fileutils and sh-utils (textutils had none).
95222
95223 2000-01-28  Jim Meyering  <meyering@lucent.com>
95224
95225         * m4/perl.m4: Change format of warning message to look more like that
95226         from the missing script.  Suggestion from François Pinard.
95227
95228 2000-01-25  Jim Meyering  <meyering@lucent.com>
95229
95230         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
95231         well as time.h in the compile check.
95232         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
95233         Fix typo in cross-compiling case: s/yes/no/.
95234
95235 2000-01-23  Jim Meyering  <meyering@lucent.com>
95236
95237         * m4/jm-macros.m4: Move df-related tests here from
95238         fileutils/configure.in
95239
95240         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
95241         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
95242
95243         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
95244         s/space/ac_fsusage_space/.
95245         (jm_FILE_SYSTEM_USAGE): Take two parameters.
95246
95247         * m4/ftruncate.m4: New file (derived from part of
95248         fileutils/configure.in).
95249         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
95250         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
95251
95252         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
95253         AC_SUBST these here, rather than just in sh-util/configure.in, so
95254         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
95255         all the same.
95256         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
95257         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
95258         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
95259         (AC_SUBST(POW_LIBM)): Likewise.
95260         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
95261
95262 2000-01-23  Jim Meyering  <meyering@lucent.com>
95263
95264         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
95265         obstack.c.
95266
95267 2000-01-22  Jim Meyering  <meyering@lucent.com>
95268
95269         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
95270
95271         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
95272
95273         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
95274         configure.in
95275         (AC_CHECK_HEADERS): Likewise for sh-utils.
95276         (AC_CHECK_HEADERS): Likewise for textutils.
95277         Merge the three lists of headers.
95278
95279         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
95280         from fileutils' configure.in.
95281
95282         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
95283         code. Moved tests into their own function (_jm_DECL_HEADERS) in
95284         check-decl.m4.
95285
95286         * m4/check-decl.m4: Use #if rather than #ifdef.
95287         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
95288         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
95289         (_jm_DECL_HEADERS): Define new function.
95290         (jm_CHECK_DECLARATIONS): Require it.
95291
95292 2000-01-22  Jim Meyering  <meyering@lucent.com>
95293
95294         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
95295         [! HAVE_DECL_STRTOULL]: Declare strtoull.
95296         Required for some AIX systems.  Reported by Christian Krackowizer.
95297         [TESTING] (main): New function.
95298
95299         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
95300         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
95301         letters.
95302
95303         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
95304         iswprint.
95305
95306         * lib/strverscmp.c (ISDIGIT): Define.
95307         (strverscmp): Use ISDIGIT, not isdigit.
95308
95309 2000-01-19  Jim Meyering  <meyering@lucent.com>
95310
95311         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
95312         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
95313         defines `struct timespec' in <sys/time.h>
95314
95315         * m4/c-bs-a.m4: Remove uses of changequote altogether.
95316         Thanks to Akim for explaining.
95317
95318 2000-01-17  Paul Eggert  <eggert@twinsun.com>
95319
95320         * lib/nanosleep.c (nanosleep):
95321         Don't use SA_INTERRUPT to decide whether to call sigaction, as
95322         POSIX.1 doesn't require SA_INTERRUPT and some systems
95323         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
95324         it's been part of POSIX.1 since day 1 (in 1988).
95325
95326 2000-01-17  Jim Meyering  <meyering@lucent.com>
95327
95328         * lib/interlock: Remove unused file.  Reported by François Pinard.
95329
95330 2000-01-16  Paul Eggert  <eggert@twinsun.com>
95331
95332         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
95333         alert, backslash, formfeed, and vertical tab unnecessarily in
95334         shell quoting style.
95335
95336 2000-01-16  Jim Meyering  <meyering@lucent.com>
95337
95338         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
95339         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
95340         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
95341         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
95342
95343 2000-01-16  Jim Meyering  <meyering@lucent.com>
95344
95345         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
95346         because the latter didn't work.
95347
95348 2000-01-15  Jim Meyering  <meyering@lucent.com>
95349
95350         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
95351         (AC_REPLACE_FUNCS): Add memcpy and memset.
95352         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
95353         Add strpbrk.
95354         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
95355
95356 2000-01-12  Jim Meyering  <meyering@lucent.com>
95357
95358         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
95359         (jm_PREREQ): Use it.
95360         (jm_PREREQ_READUTMP): New macro.
95361         (jm_PREREQ): Use it.
95362
95363 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95364
95365         Quote multibyte characters correctly.
95366         * m4/c-bs-a.m4: New file.
95367         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
95368         (jm_PREREQ): Use it.
95369
95370 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95371
95372         * m4/uintmax_t.m4: Port to autoconf 2.13.
95373
95374 2000-01-08  Jim Meyering  <meyering@ascend.com>
95375
95376         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
95377         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
95378
95379 2000-01-04  Jim Meyering  <meyering@ascend.com>
95380
95381         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
95382         jm_STRUCT_DIRENT_D_TYPE.
95383         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
95384         jm_STRUCT_DIRENT_D_INO.
95385         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
95386         jm_STRUCT_UTIMBUF.
95387         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
95388         renamings.
95389         * m4/utime.m4: Likewise.
95390
95391         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
95392         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
95393
95394 2000-01-03  Paul Eggert  <eggert@twinsun.com>
95395
95396         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
95397         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
95398
95399 2000-01-02  Jim Meyering  <meyering@ascend.com>
95400
95401         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
95402         remember if this is necessary.
95403
95404 1999-12-26  Jim Meyering  <meyering@ascend.com>
95405
95406         * m4/jm-macros.m4: Use it here.
95407         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
95408
95409 1999-12-23  Jim Meyering  <meyering@ascend.com>
95410
95411         * m4/jm-macros.m4: Check for clock_gettime (moved from
95412         fileutils/configure.in)
95413         Check for gettimeofday.
95414
95415 1999-12-20  Jim Meyering  <meyering@ascend.com>
95416
95417         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
95418         autoconf-2.14a-1999-12-20.
95419
95420 1999-12-19  Jim Meyering  <meyering@ascend.com>
95421
95422         * m4/lstat-slash.m4: New file.
95423         * m4/jm-macros.m4: Use the new macro:
95424         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95425
95426 1999-12-07  Jim Meyering  <meyering@ascend.com>
95427
95428         * m4/perl.m4: Require that File::Compare be available, too.
95429         Too many systems seem to lack it.
95430
95431         * m4/strftime.m4: Add checks for most of the cpp macros tested in
95432         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
95433
95434 1999-11-18  Paul Eggert  <eggert@twinsun.com>
95435
95436         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
95437         problem with the QNX 4.25 shell, which doesn't propagate exit
95438         status of failed commands inside shell assignments.
95439
95440 1999-11-17  Jim Meyering  <meyering@ascend.com>
95441
95442         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
95443
95444 1999-11-07  Jim Meyering  <meyering@ascend.com>
95445
95446         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
95447
95448 1999-11-06  Jim Meyering  <meyering@ascend.com>
95449
95450         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
95451         * m4/jm-macros.m4 (jm_MACROS): Use it here.
95452
95453 1999-11-05  Jim Meyering  <meyering@ascend.com>
95454
95455         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
95456         configure.in of textutils, fileutils, and sh-utils into this one
95457         (shared between those packages) file.
95458         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
95459         AC_STRUCT_ST_BLKSIZE.
95460
95461 1999-11-03  Jim Meyering  <meyering@ascend.com>
95462
95463         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
95464         of AC_CHECK_TYPE checks includes unistd.h.
95465         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
95466         Suggestion from Akim Demaille.
95467
95468 1999-10-30  Jim Meyering  <meyering@ascend.com>
95469
95470         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
95471         m4-quoted string.
95472         * m4/ls-mntd-fs.m4: Likewise.
95473         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
95474         * m4/jm-winsz1.m4: Likewise.
95475
95476         * m4/const.m4: Remove file, since the fix made it into the experimental
95477         version of autoconf.
95478         * m4/mktime.m4: Likewise.
95479
95480         * m4/check-type.m4: Remove file, now that the latest version of
95481         AC_CHECK_TYPE takes a third arg to specify additional #includes.
95482
95483         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
95484         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
95485         AC_CHECK_TYPE.
95486
95487 1999-10-04  Jim Meyering  <meyering@ascend.com>
95488
95489         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
95490
95491 1999-09-22  Paul Eggert  <eggert@twinsun.com>
95492
95493         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
95494         2.95.1 bug with HP-UX 10.20.
95495
95496 1999-09-17  Jim Meyering  <meyering@ascend.com>
95497
95498         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
95499         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
95500         due to missing strdup (against sh-utils-2.0).
95501
95502 1999-08-29  Jim Meyering  <meyering@ascend.com>
95503
95504         * m4/jm-macros.m4: Require jm_BISON.
95505         * m4/bison.m4: New file.
95506
95507 1999-08-17  Paul Eggert  <eggert@twinsun.com>
95508
95509         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
95510         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
95511
95512 1999-08-05  Jim Meyering  <meyering@ascend.com>
95513
95514         * m4/getline.m4: Rename test file from conftestdata to conftest.data
95515         to avoid conflicts with `conftest' on 8+3 filesystems.
95516         Suggestion from Eli Zaretskii.
95517
95518 1999-08-04  Jim Meyering  <meyering@ascend.com>
95519
95520         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
95521         fileutils and sh-utils (textutils's getline test was inadequate).
95522         (AM_FUNC_GETLINE): Run this test.
95523         (AC_CHECK_FUNCS): Check for getdelim.
95524         Reported by Bob Proulx.
95525
95526 1999-08-02  Jim Meyering  <meyering@ascend.com>
95527
95528         * m4/jm-macros.m4: Add a comment.
95529
95530 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95531
95532         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
95533         <inttypes.h> defines strtoumax as a macro (and not as a
95534         function).
95535
95536 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95537
95538         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
95539         that we can shift, multiply and divide unsigned long long
95540         values; Ultrix cc can't do it.
95541
95542 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95543
95544         * m4/mktime.m4: New file, which is a preview of what should appear
95545         in the next public autoconf release.
95546
95547 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95548
95549         * m4/lfs.m4: Remove this file.
95550         * m4/largefile.m4: New file.  It contains the old contents of
95551         lfs.m4, except that all names with prefix AC_LFS have been
95552         changed to use the prefix AC_SYS_LARGEFILE instead, to be
95553         compatible with future autoconf versions.  Also, some minor m4
95554         quoting problems have been fixed.
95555
95556 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95557
95558         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
95559         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
95560         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
95561         and simplify the shell code.
95562
95563 1999-08-01  Jim Meyering  <meyering@ascend.com>
95564
95565         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
95566         m4.
95567
95568 1999-07-20  Jim Meyering  <meyering@ascend.com>
95569
95570         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
95571
95572 1999-07-15  Jim Meyering  <meyering@ascend.com>
95573
95574         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
95575
95576 1999-05-22  Jim Meyering  <meyering@ascend.com>
95577
95578         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
95579
95580 1999-05-20  Jim Meyering  <meyering@ascend.com>
95581
95582         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
95583         Add a colon after each `then' in case $4 is empty.
95584
95585 1999-05-16  Jim Meyering  <meyering@ascend.com>
95586
95587         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
95588
95589 1999-05-10  Jim Meyering  <meyering@ascend.com>
95590
95591         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
95592
95593         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
95594         AC_FUNC_MKTIME.
95595
95596 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
95597
95598         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
95599
95600 1999-05-04  Paul Eggert  <eggert@twinsun.com>
95601
95602         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
95603         not CPPFLAGS, so that linking works correctly in IRIX.
95604
95605 1999-04-30  Paul Eggert  <eggert@twinsun.com>
95606
95607         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
95608
95609 1999-04-20  Paul Eggert  <eggert@twinsun.com>
95610
95611         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
95612         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
95613         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
95614         jm_AC_TYPE_UNSIGNED_LONG_LONG.
95615         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
95616
95617         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
95618
95619 1999-04-20  Jim Meyering  <meyering@ascend.com>
95620
95621         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
95622         AC_REPLACE xstroull if necessary.  From Paul Eggert.
95623         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
95624
95625 1999-04-18  Jim Meyering  <meyering@ascend.com>
95626
95627         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
95628         * m4/jm-macros.m4: Use it.
95629
95630 1999-04-06  Jim Meyering  <meyering@ascend.com>
95631
95632         * m4/strftime.m4: Remove test for %f.
95633
95634 1999-03-29  Jim Meyering  <meyering@ascend.com>
95635
95636         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
95637         superset of the AC_TYPE_* checks in the textutils, fileutils,
95638         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
95639         AC_TYPE_PID_T.
95640
95641 1999-03-28  Jim Meyering  <meyering@ascend.com>
95642
95643         * m4/jm-macros.m4: Define GNU_PACKAGE here.
95644         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
95645         replaced e.g., in the *.sh files of the sh-utils.
95646
95647 1999-03-20  Jim Meyering  <meyering@ascend.com>
95648
95649         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
95650         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
95651         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
95652
95653 1999-03-19  Jim Meyering  <meyering@ascend.com>
95654
95655         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
95656
95657 1999-03-12  Jim Meyering  <meyering@ascend.com>
95658
95659         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
95660
95661 1999-03-07  Jim Meyering  <meyering@ascend.com>
95662
95663         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
95664         declared.
95665
95666 1999-02-17  Jim Meyering  <meyering@ascend.com>
95667
95668         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
95669         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
95670
95671 1999-02-07  Jim Meyering  <meyering@ascend.com>
95672
95673         * m4/group-member.m4: New file -- extracted from sh-utils'
95674         configure.in.
95675
95676         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
95677         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
95678
95679 1999-02-06  Jim Meyering  <meyering@ascend.com>
95680
95681         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
95682         * m4/fnmatch.m4: Likewise.
95683         * m4/getgroups.m4: Likewise.
95684         * m4/lstat.m4: Likewise.
95685         * m4/malloc.m4: Likewise.
95686         * m4/putenv.m4: Likewise.
95687         * m4/realloc.m4: Likewise.
95688         * m4/regex.m4: Likewise.
95689         * m4/stat.m4: Likewise.
95690         * m4/strftime.m4: Likewise.
95691         Suggestion from Alain Magloire.
95692
95693         * m4/chown.m4: Use `.$ac_objext', not `.o'.
95694         * m4/fnmatch.m4: Likewise.
95695         * m4/getgroups.m4: Likewise.
95696         * m4/getline.m4: Likewise.
95697         * m4/lstat.m4: Likewise.
95698         * m4/malloc.m4: Likewise.
95699         * m4/memcmp.m4: Likewise.
95700         * m4/putenv.m4: Likewise.
95701         * m4/realloc.m4: Likewise.
95702         * m4/regex.m4: Likewise.
95703         * m4/stat.m4: Likewise.
95704         * m4/strftime.m4: Likewise.
95705         Suggestion from Alain Magloire.
95706
95707         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
95708         an argument.
95709
95710         * m4/regex.m4: Add a run-time Test for proper operation of
95711         re_compile_pattern.
95712
95713 1999-01-31  Jim Meyering  <meyering@ascend.com>
95714
95715         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
95716
95717 1999-01-30  Jim Meyering  <meyering@ascend.com>
95718
95719         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
95720
95721         * m4/jm-mktime.m4: Make this a wrapper around the official
95722         AM_FUNC_MKTIME rather than my private copy, now that the official one
95723         is up to date.
95724         * m4/mktime.m4: Remove file.
95725
95726         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
95727         * m4/uptime.m4: Likewise.
95728         * m4/uintmax_t.m4: Likewise.
95729
95730 1999-01-28  Jim Meyering  <meyering@ascend.com>
95731
95732         * m4/jm-macros.m4: Use jm_AFS.
95733         * m4/afs.m4: New file (from fileutils' configure.in).
95734
95735         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
95736         * m4/chown.m4: Likewise.
95737         * m4/d-ino.m4: Likewise.
95738         * m4/d-type.m4: Likewise.
95739         * m4/fnmatch.m4: Likewise.
95740         * m4/getgroups.m4: Likewise.
95741         * m4/gettext.m4: Likewise.
95742         * m4/jm-mktime.m4: Likewise.
95743         * m4/jm-winsz2.m4: Likewise.
95744         * m4/lcmessage.m4: Likewise.
95745         * m4/ls-mntd-fs.m4: Likewise.
95746         * m4/malloc.m4: Likewise.
95747         * m4/memcmp.m4: Likewise.
95748         * m4/putenv.m4: Likewise.
95749         * m4/realloc.m4: Likewise.
95750         * m4/st_mtim.m4: Likewise.
95751         * m4/strftime.m4: Likewise.
95752
95753 1999-01-16  Jim Meyering  <meyering@ascend.com>
95754
95755         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
95756         (ARGMATCH_DIE_DECL): Define.
95757
95758 1999-01-12  Jim Meyering  <meyering@ascend.com>
95759
95760         * m4/Makefile.am.in: Rewrite to avoid using fmt.
95761         Reported by Lars Hecking.
95762
95763 1999-01-10  Jim Meyering  <meyering@ascend.com>
95764
95765         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
95766         gross kludge.
95767         * m4/inttypes_h.m4: Likewise.
95768         * m4/lstat.m4: Likewise.
95769         * m4/malloc.m4: Likewise.
95770         * m4/readdir.m4: Likewise.
95771         * m4/realloc.m4: Likewise.
95772         * m4/st_dm_mode.m4: Likewise.
95773         * m4/stat.m4: Likewise.
95774         * m4/utimbuf.m4: Likewise.
95775         * m4/utimes.m4: Likewise.
95776
95777         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
95778         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
95779         comments in config.h.in are meaningful.
95780
95781         * m4/jm-macros.m4: Require autoconf-2.13 here.
95782
95783         * m4/regex.m4: By default, don't use the included regex.c on systems
95784         with glibc 2.  Suggestion from Uli Drepper.
95785
95786 1999-01-02  Jim Meyering  <meyering@ascend.com>
95787
95788         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
95789
95790 1998-12-18  Jim Meyering  <meyering@ascend.com>
95791
95792         * m4/Makefile.am.in (Makefile.am): Simplify rule.
95793         Based on a suggestion from Lars Hecking.
95794
95795 1998-11-16  Paul Eggert  <eggert@twinsun.com>
95796
95797         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
95798
95799 1998-11-16  Jim Meyering  <meyering@ascend.com>
95800
95801         * m4/lfs.m4: Double-quote the `uname...` expression.
95802
95803 1998-11-14  Jim Meyering  <meyering@ascend.com>
95804
95805         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
95806         * m4/stat.m4: Likewise.
95807
95808 1998-11-03  Jim Meyering  <meyering@ascend.com>
95809
95810         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
95811         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
95812
95813 1998-10-18  Jim Meyering  <meyering@ascend.com>
95814
95815         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
95816
95817 1998-10-17  Jim Meyering  <meyering@ascend.com>
95818
95819         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
95820         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
95821         calls for those previously hard-coded headers.  Instead, take a new
95822         parameter.
95823         (jm_CHECK_DECLARATIONS): Reflect interface change.
95824         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
95825         (jm_CHECK_DECL_LOCALTIME_R): New macro.
95826
95827         * m4/mktime.m4: Test for spring-forward gap before long-running test.
95828
95829 1998-10-14  Jim Meyering  <meyering@ascend.com>
95830
95831         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
95832         instead of "TZ=America/Vancouver".  From Paul Eggert.
95833
95834 1998-10-11  Jim Meyering  <meyering@ascend.com>
95835
95836         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
95837         This adds a test for a recently added compatibility fix for mktime.c.
95838         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
95839
95840 1998-09-27  Jim Meyering  <meyering@ascend.com>
95841
95842         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
95843
95844         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
95845         ../configure.in, including a change from Gordon Matzigkeit to allow
95846         cross-compiling for the Hurd.
95847
95848         * m4/glibc.m4: New file/macro to test for the GNU C Library
95849         versions 1 and 2.  From Gordon Matzigkeit.
95850         Indent.
95851
95852 1998-09-21  Jim Meyering  <meyering@ascend.com>
95853
95854         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
95855
95856 1998-08-18  Paul Eggert  <eggert@twinsun.com>
95857
95858         Port nanosecond-resolution times to UnixWare 2.1.2 and
95859         pedantic Solaris 2.6.
95860
95861         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
95862         AC_STRUCT_ST_MTIM.
95863         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
95864         Generate name of ns member, instead of just 1 or undef.
95865         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
95866
95867 1998-08-15  Jim Meyering  <meyering@ascend.com>
95868
95869         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
95870         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
95871         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
95872         instead of jm_TYPE_SSIZE_T.
95873
95874 1998-08-12  Jim Meyering  <meyering@ascend.com>
95875
95876         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
95877
95878 1998-08-02  Jim Meyering  <meyering@ascend.com>
95879
95880         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
95881         in acconfig.h manually.
95882
95883 1998-07-31  Paul Eggert  <eggert@twinsun.com>
95884
95885         * m4/st_mtim.m4: New file.
95886
95887 1998-07-28  Jim Meyering  <meyering@ascend.com>
95888
95889         * m4/utimes.m4: Undef stat.
95890
95891 1998-07-25  Jim Meyering  <meyering@ascend.com>
95892
95893         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
95894         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
95895
95896 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
95897
95898         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
95899         uid and gid actually remain unchanged.
95900
95901 1998-07-07  Jim Meyering  <meyering@ascend.com>
95902
95903         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
95904
95905 1998-07-04  Jim Meyering  <meyering@ascend.com>
95906
95907         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
95908         to prove that this macro can be used in packages without regex.c.
95909
95910 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
95911
95912         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
95913         is to be used.
95914
95915 1998-07-03  Jim Meyering  <meyering@ascend.com>
95916
95917         * m4/gettext.m4: Add -lintl if it's found to be necessary.
95918
95919         * m4/gettext.m4: New file -- from gettext-0.10.35.
95920         * m4/lcmessage.m4: Likewise.
95921         * m4/progtest.m4: Likewise.
95922
95923         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
95924         * m4/jm-macros.m4: Require the new macro.
95925
95926 1998-06-29  Jim Meyering  <meyering@ascend.com>
95927
95928         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
95929         for the definition of NGROUPS (used in a system header included
95930         by sys/mount.h).
95931
95932 1998-06-28  Jim Meyering  <meyering@ascend.com>
95933
95934         * m4/ls-mntd-fs.m4: New file.
95935         * m4/fstypename.m4: New file.
95936
95937         * m4/jm-macros.m4: Require the new macro.
95938         * m4/jm-glibc-io.m4: New file.
95939
95940 1998-05-19  Jim Meyering  <meyering@ascend.com>
95941
95942         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
95943         * m4/lchown.m4: New file.
95944
95945         * m4/Makefile.am.in: New file.
95946         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
95947
95948 1998-05-14  Jim Meyering  <meyering@ascend.com>
95949
95950         * m4/Makefile.am (EXTRA_DIST): Add them.
95951         * m4/jm-macros.m4: New file.
95952         * m4/utimbuf.m4: New file.
95953
95954 1998-05-12  Jim Meyering  <meyering@ascend.com>
95955
95956         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
95957
95958 1998-05-11  Jim Meyering  <meyering@ascend.com>
95959
95960         * m4/isc-posix.m4: New file.
95961
95962 1998-05-10  Jim Meyering  <meyering@ascend.com>
95963
95964         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
95965
95966 1998-05-09  Jim Meyering  <meyering@ascend.com>
95967
95968         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
95969         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
95970         with automake.
95971
95972         * m4/ssize_t.m4: New file.
95973         * m4/mktime.m4: Remove file -- the new automake has this now.
95974
95975 1998-04-26  Jim Meyering  <meyering@ascend.com>
95976
95977         * m4/assert.m4: New file.
95978         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
95979
95980 1998-04-05  Jim Meyering  <meyering@ascend.com>
95981
95982         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
95983         (jm_PREREQ): Use it here.
95984
95985 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
95986
95987         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
95988         in acconfig.h.
95989
95990 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
95991
95992         * m4/prereq.m4: New file.
95993         * m4/error.m4: New file.
95994         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
95995
95996 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
95997
95998         * m4/getline.m4: Don't set am_cv_func_working_getline before the
95999         cache-check for the same variable -- that defeated the purpose of
96000         the test; the test program was never run.  This was a problem only
96001         on systems with losing getline functions -- HP-UX 10.20 is one.
96002         Reported by Bjorn Helgaas.
96003
96004 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
96005
96006         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
96007
96008 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
96009
96010         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
96011
96012         * m4/const.m4: New file.  Use an initializer in this declaration
96013         typedef int charset[2]; const charset x;
96014         Reported by Bob Glickstein.
96015
96016 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
96017
96018         * m4/chown.m4: Fix reversed types on -1 args to chown.
96019         From Kaveh Ghazi.
96020
96021 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
96022
96023         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
96024         Add lseek and memchr.
96025
96026         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
96027         T.E.Dickey <dickey@clark.net> said that some older preprocessors
96028         have a 20-character limit on names.
96029
96030 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
96031
96032         * m4/inttypes_h.m4: New file.
96033         * m4/uintmax_t.m4: New file.
96034         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
96035
96036
96037         -----
96038
96039         Local Variables:
96040         coding: utf-8
96041         End:
96042
96043         Copyright (C) 1997-2012 Free Software Foundation, Inc.
96044
96045         Copying and distribution of this file, with or without
96046         modification, are permitted provided the copyright notice
96047         and this notice are preserved.